| package org.eclipse.osbp.xtext.table.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.table.services.TableDSLGrammarAccess; |
| |
| |
| |
| import org.antlr.runtime.*; |
| import java.util.Stack; |
| import java.util.List; |
| import java.util.ArrayList; |
| import java.util.Map; |
| import java.util.HashMap; |
| @SuppressWarnings("all") |
| public class InternalTableDSLParser extends AbstractInternalAntlrParser { |
| public static final String[] tokenNames = new String[] { |
| "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_ID", "RULE_STRING", "RULE_THEME_RESOURCE", "RULE_INT", "RULE_HEX", "RULE_DECIMAL", "RULE_EVENT_TOPIC", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'package'", "'{'", "'}'", "'table'", "'describedBy'", "'as'", "'selection'", "'multiple'", "'single'", "'alwaysSelected'", "'rowHeader'", "'polling'", "'filtering'", "'embedded'", "'toolbar'", "'using'", "'selectById'", "'bean'", "'preorder'", "'ascending'", "'value'", "'collapse'", "'icon'", "'image'", "'intervals'", "'hidelabel'", "'lookups'", "'formatter'", "'path'", "'dynamic'", "'resize'", "'tooltipPattern'", "'taskId'", "'allColumns'", "'ordinal'", "'column'", "'measure'", "'derived'", "'level'", "'property'", "'aggregation'", "'upToNumber'", "'upToInteger'", "'daysInPast'", "'integer'", "'number'", "'string'", "'datamart'", "'axis'", "'rowheight'", "'details'", "'notifyOnSelect'", "'textcolor'", "'cellcolor'", "'trend'", "'tooltip'", "'grid'", "'selectalways'", "'rowheader'", "'editable'", "'prop'", "'style'", "'dto'", "'.'", "'buttonStyle'", "'eventTopic'", "'htmlStyle'", "'boolStyle'", "'dateStyle'", "'format'", "'numberStyle'", "'progressbarStyle'", "'max'", "'indicatorStyle'", "'greenFrom'", "'redUntil'", "'quantityStyle'", "'='", "'('", "')'", "'uom'", "'priceStyle'", "'currency'", "'textStyle'", "'imageStyle'", "'then'", "'+'", "'-'", "'import'", "'static'", "'extension'", "'*'", "'ns'", "';'", "'@'", "','", "'#'", "'['", "']'", "'+='", "'-='", "'*='", "'/='", "'%='", "'<'", "'>'", "'>='", "'||'", "'&&'", "'=='", "'!='", "'==='", "'!=='", "'instanceof'", "'->'", "'..<'", "'..'", "'=>'", "'<>'", "'?:'", "'**'", "'/'", "'%'", "'!'", "'++'", "'--'", "'::'", "'?.'", "'|'", "'if'", "'else'", "'switch'", "':'", "'default'", "'case'", "'for'", "'while'", "'do'", "'var'", "'val'", "'extends'", "'super'", "'new'", "'false'", "'true'", "'null'", "'typeof'", "'throw'", "'return'", "'try'", "'finally'", "'synchronized'", "'catch'", "'?'", "'&'", "'equal'", "'greater equal'", "'greater than'", "'lower equal'", "'lower than'", "'not equal'", "'rising'", "'bad-rising'", "'sloping'", "'good-sloping'", "'stagnating'", "'hidden'", "'explicit'", "'indexed'", "'columns'", "'rows'", "'pages'", "'sections'", "'chapters'" |
| }; |
| public static final int T__144=144; |
| public static final int T__143=143; |
| public static final int T__146=146; |
| public static final int T__50=50; |
| public static final int T__145=145; |
| public static final int T__140=140; |
| public static final int T__142=142; |
| public static final int T__141=141; |
| public static final int T__59=59; |
| public static final int T__55=55; |
| public static final int T__56=56; |
| public static final int T__57=57; |
| public static final int T__58=58; |
| public static final int T__51=51; |
| public static final int T__137=137; |
| public static final int T__52=52; |
| public static final int T__136=136; |
| public static final int T__53=53; |
| public static final int T__139=139; |
| public static final int T__54=54; |
| public static final int T__138=138; |
| public static final int T__133=133; |
| public static final int T__132=132; |
| public static final int T__60=60; |
| public static final int T__135=135; |
| public static final int T__61=61; |
| public static final int T__134=134; |
| public static final int RULE_ID=4; |
| public static final int T__131=131; |
| public static final int T__130=130; |
| public static final int RULE_EVENT_TOPIC=10; |
| public static final int RULE_INT=7; |
| public static final int T__66=66; |
| public static final int T__67=67; |
| public static final int T__129=129; |
| public static final int T__68=68; |
| public static final int T__69=69; |
| public static final int T__62=62; |
| public static final int T__126=126; |
| public static final int T__63=63; |
| public static final int T__125=125; |
| public static final int T__64=64; |
| public static final int T__128=128; |
| public static final int T__65=65; |
| public static final int T__127=127; |
| public static final int T__166=166; |
| public static final int T__165=165; |
| public static final int T__168=168; |
| public static final int T__167=167; |
| public static final int T__162=162; |
| public static final int T__161=161; |
| public static final int T__164=164; |
| public static final int T__163=163; |
| public static final int T__160=160; |
| public static final int T__37=37; |
| public static final int T__38=38; |
| public static final int T__39=39; |
| public static final int T__33=33; |
| public static final int T__34=34; |
| public static final int T__35=35; |
| public static final int T__36=36; |
| public static final int T__159=159; |
| public static final int T__30=30; |
| public static final int T__158=158; |
| public static final int T__31=31; |
| public static final int T__32=32; |
| public static final int T__155=155; |
| public static final int T__154=154; |
| public static final int T__157=157; |
| public static final int T__156=156; |
| public static final int T__151=151; |
| public static final int T__150=150; |
| public static final int T__153=153; |
| public static final int T__152=152; |
| public static final int T__48=48; |
| public static final int T__49=49; |
| public static final int T__44=44; |
| public static final int T__45=45; |
| public static final int T__46=46; |
| public static final int T__47=47; |
| public static final int T__40=40; |
| public static final int T__148=148; |
| public static final int T__41=41; |
| public static final int T__147=147; |
| public static final int T__42=42; |
| public static final int T__43=43; |
| public static final int T__149=149; |
| public static final int T__100=100; |
| public static final int T__102=102; |
| public static final int T__101=101; |
| public static final int T__19=19; |
| public static final int T__15=15; |
| public static final int T__16=16; |
| public static final int T__17=17; |
| public static final int T__18=18; |
| public static final int RULE_DECIMAL=9; |
| public static final int T__26=26; |
| public static final int T__27=27; |
| public static final int T__28=28; |
| public static final int T__29=29; |
| public static final int T__22=22; |
| public static final int T__23=23; |
| public static final int T__24=24; |
| public static final int T__25=25; |
| public static final int T__20=20; |
| public static final int T__21=21; |
| public static final int T__122=122; |
| public static final int T__121=121; |
| public static final int T__124=124; |
| public static final int T__123=123; |
| public static final int T__120=120; |
| public static final int RULE_SL_COMMENT=12; |
| public static final int T__119=119; |
| public static final int T__118=118; |
| public static final int T__115=115; |
| public static final int EOF=-1; |
| public static final int T__114=114; |
| public static final int T__117=117; |
| public static final int T__116=116; |
| public static final int T__111=111; |
| public static final int T__110=110; |
| public static final int T__113=113; |
| public static final int T__112=112; |
| public static final int T__108=108; |
| public static final int T__107=107; |
| public static final int T__109=109; |
| public static final int T__104=104; |
| public static final int T__103=103; |
| public static final int T__106=106; |
| public static final int T__105=105; |
| public static final int RULE_HEX=8; |
| public static final int RULE_ML_COMMENT=11; |
| public static final int RULE_THEME_RESOURCE=6; |
| public static final int T__91=91; |
| public static final int T__188=188; |
| public static final int T__92=92; |
| public static final int T__187=187; |
| public static final int T__93=93; |
| public static final int T__94=94; |
| public static final int T__184=184; |
| public static final int T__183=183; |
| public static final int T__186=186; |
| public static final int T__90=90; |
| public static final int T__185=185; |
| public static final int T__180=180; |
| public static final int T__182=182; |
| public static final int T__181=181; |
| public static final int T__99=99; |
| public static final int T__95=95; |
| public static final int T__96=96; |
| public static final int T__97=97; |
| public static final int T__98=98; |
| public static final int T__177=177; |
| public static final int T__176=176; |
| public static final int T__179=179; |
| public static final int T__178=178; |
| public static final int T__173=173; |
| public static final int T__172=172; |
| public static final int T__175=175; |
| public static final int T__174=174; |
| public static final int T__171=171; |
| public static final int T__170=170; |
| public static final int T__169=169; |
| public static final int T__70=70; |
| public static final int T__71=71; |
| public static final int T__72=72; |
| public static final int RULE_STRING=5; |
| public static final int T__77=77; |
| public static final int T__78=78; |
| public static final int T__79=79; |
| public static final int T__73=73; |
| public static final int T__74=74; |
| public static final int T__75=75; |
| public static final int T__76=76; |
| public static final int T__80=80; |
| public static final int T__81=81; |
| public static final int T__82=82; |
| public static final int T__83=83; |
| public static final int RULE_WS=13; |
| public static final int RULE_ANY_OTHER=14; |
| public static final int T__88=88; |
| public static final int T__89=89; |
| public static final int T__84=84; |
| public static final int T__85=85; |
| public static final int T__86=86; |
| public static final int T__87=87; |
| |
| // delegates |
| // delegators |
| |
| |
| public InternalTableDSLParser(TokenStream input) { |
| this(input, new RecognizerSharedState()); |
| } |
| public InternalTableDSLParser(TokenStream input, RecognizerSharedState state) { |
| super(input, state); |
| |
| } |
| |
| |
| public String[] getTokenNames() { return InternalTableDSLParser.tokenNames; } |
| public String getGrammarFileName() { return "InternalTableDSL.g"; } |
| |
| |
| |
| private TableDSLGrammarAccess grammarAccess; |
| |
| public InternalTableDSLParser(TokenStream input, TableDSLGrammarAccess grammarAccess) { |
| this(input); |
| this.grammarAccess = grammarAccess; |
| registerRules(grammarAccess.getGrammar()); |
| } |
| |
| @Override |
| protected String getFirstRuleName() { |
| return "TableModel"; |
| } |
| |
| @Override |
| protected TableDSLGrammarAccess getGrammarAccess() { |
| return grammarAccess; |
| } |
| |
| |
| |
| |
| // $ANTLR start "entryRuleTableModel" |
| // InternalTableDSL.g:65:1: entryRuleTableModel returns [EObject current=null] : iv_ruleTableModel= ruleTableModel EOF ; |
| public final EObject entryRuleTableModel() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableModel = null; |
| |
| |
| try { |
| // InternalTableDSL.g:65:51: (iv_ruleTableModel= ruleTableModel EOF ) |
| // InternalTableDSL.g:66:2: iv_ruleTableModel= ruleTableModel EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableModelRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableModel=ruleTableModel(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableModel; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableModel" |
| |
| |
| // $ANTLR start "ruleTableModel" |
| // InternalTableDSL.g:72:1: ruleTableModel returns [EObject current=null] : ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleTablePackage ) )* ) ; |
| public final EObject ruleTableModel() throws RecognitionException { |
| EObject current = null; |
| |
| EObject lv_importSection_0_0 = null; |
| |
| EObject lv_packages_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:78:2: ( ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleTablePackage ) )* ) ) |
| // InternalTableDSL.g:79:2: ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleTablePackage ) )* ) |
| { |
| // InternalTableDSL.g:79:2: ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleTablePackage ) )* ) |
| // InternalTableDSL.g:80:3: ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_packages_1_0= ruleTablePackage ) )* |
| { |
| // InternalTableDSL.g:80:3: ( (lv_importSection_0_0= ruleXImportSection ) )? |
| int alt1=2; |
| int LA1_0 = input.LA(1); |
| |
| if ( (LA1_0==103) ) { |
| alt1=1; |
| } |
| switch (alt1) { |
| case 1 : |
| // InternalTableDSL.g:81:4: (lv_importSection_0_0= ruleXImportSection ) |
| { |
| // InternalTableDSL.g:81:4: (lv_importSection_0_0= ruleXImportSection ) |
| // InternalTableDSL.g:82:5: lv_importSection_0_0= ruleXImportSection |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableModelAccess().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.getTableModelRule()); |
| } |
| set( |
| current, |
| "importSection", |
| lv_importSection_0_0, |
| "org.eclipse.xtext.xbase.Xtype.XImportSection"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalTableDSL.g:99:3: ( (lv_packages_1_0= ruleTablePackage ) )* |
| loop2: |
| do { |
| int alt2=2; |
| int LA2_0 = input.LA(1); |
| |
| if ( (LA2_0==15) ) { |
| alt2=1; |
| } |
| |
| |
| switch (alt2) { |
| case 1 : |
| // InternalTableDSL.g:100:4: (lv_packages_1_0= ruleTablePackage ) |
| { |
| // InternalTableDSL.g:100:4: (lv_packages_1_0= ruleTablePackage ) |
| // InternalTableDSL.g:101:5: lv_packages_1_0= ruleTablePackage |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableModelAccess().getPackagesTablePackageParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_3); |
| lv_packages_1_0=ruleTablePackage(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableModelRule()); |
| } |
| add( |
| current, |
| "packages", |
| lv_packages_1_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TablePackage"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop2; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableModel" |
| |
| |
| // $ANTLR start "entryRuleTablePackage" |
| // InternalTableDSL.g:122:1: entryRuleTablePackage returns [EObject current=null] : iv_ruleTablePackage= ruleTablePackage EOF ; |
| public final EObject entryRuleTablePackage() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTablePackage = null; |
| |
| |
| try { |
| // InternalTableDSL.g:122:53: (iv_ruleTablePackage= ruleTablePackage EOF ) |
| // InternalTableDSL.g:123:2: iv_ruleTablePackage= ruleTablePackage EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTablePackageRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTablePackage=ruleTablePackage(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTablePackage; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTablePackage" |
| |
| |
| // $ANTLR start "ruleTablePackage" |
| // InternalTableDSL.g:129:1: ruleTablePackage returns [EObject current=null] : ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_tables_4_0= ruleTable ) )* otherlv_5= '}' )? ) ; |
| public final EObject ruleTablePackage() 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_tables_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:135:2: ( ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_tables_4_0= ruleTable ) )* otherlv_5= '}' )? ) ) |
| // InternalTableDSL.g:136:2: ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_tables_4_0= ruleTable ) )* otherlv_5= '}' )? ) |
| { |
| // InternalTableDSL.g:136:2: ( () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_tables_4_0= ruleTable ) )* otherlv_5= '}' )? ) |
| // InternalTableDSL.g:137:3: () otherlv_1= 'package' ( (lv_name_2_0= ruleQualifiedName ) ) (otherlv_3= '{' ( (lv_tables_4_0= ruleTable ) )* otherlv_5= '}' )? |
| { |
| // InternalTableDSL.g:137:3: () |
| // InternalTableDSL.g:138:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getTablePackageAccess().getTablePackageAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,15,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTablePackageAccess().getPackageKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:148:3: ( (lv_name_2_0= ruleQualifiedName ) ) |
| // InternalTableDSL.g:149:4: (lv_name_2_0= ruleQualifiedName ) |
| { |
| // InternalTableDSL.g:149:4: (lv_name_2_0= ruleQualifiedName ) |
| // InternalTableDSL.g:150:5: lv_name_2_0= ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTablePackageAccess().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.getTablePackageRule()); |
| } |
| set( |
| current, |
| "name", |
| lv_name_2_0, |
| "org.eclipse.xtext.xbase.Xbase.QualifiedName"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:167:3: (otherlv_3= '{' ( (lv_tables_4_0= ruleTable ) )* otherlv_5= '}' )? |
| int alt4=2; |
| int LA4_0 = input.LA(1); |
| |
| if ( (LA4_0==16) ) { |
| alt4=1; |
| } |
| switch (alt4) { |
| case 1 : |
| // InternalTableDSL.g:168:4: otherlv_3= '{' ( (lv_tables_4_0= ruleTable ) )* otherlv_5= '}' |
| { |
| otherlv_3=(Token)match(input,16,FOLLOW_6); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getTablePackageAccess().getLeftCurlyBracketKeyword_3_0()); |
| |
| } |
| // InternalTableDSL.g:172:4: ( (lv_tables_4_0= ruleTable ) )* |
| loop3: |
| do { |
| int alt3=2; |
| int LA3_0 = input.LA(1); |
| |
| if ( (LA3_0==18) ) { |
| alt3=1; |
| } |
| |
| |
| switch (alt3) { |
| case 1 : |
| // InternalTableDSL.g:173:5: (lv_tables_4_0= ruleTable ) |
| { |
| // InternalTableDSL.g:173:5: (lv_tables_4_0= ruleTable ) |
| // InternalTableDSL.g:174:6: lv_tables_4_0= ruleTable |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTablePackageAccess().getTablesTableParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_6); |
| lv_tables_4_0=ruleTable(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTablePackageRule()); |
| } |
| add( |
| current, |
| "tables", |
| lv_tables_4_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.Table"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop3; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,17,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getTablePackageAccess().getRightCurlyBracketKeyword_3_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTablePackage" |
| |
| |
| // $ANTLR start "entryRuleTable" |
| // InternalTableDSL.g:200:1: entryRuleTable returns [EObject current=null] : iv_ruleTable= ruleTable EOF ; |
| public final EObject entryRuleTable() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTable = null; |
| |
| |
| try { |
| // InternalTableDSL.g:200:46: (iv_ruleTable= ruleTable EOF ) |
| // InternalTableDSL.g:201:2: iv_ruleTable= ruleTable EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTable=ruleTable(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTable; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTable" |
| |
| |
| // $ANTLR start "ruleTable" |
| // InternalTableDSL.g:207:1: ruleTable returns [EObject current=null] : ( () otherlv_1= 'table' ( (lv_name_2_0= RULE_ID ) ) ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) )? otherlv_5= 'as' ( (lv_tabletype_6_0= ruleTableOption ) ) ) ; |
| public final EObject ruleTable() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_name_2_0=null; |
| Token lv_description_3_0=null; |
| Token otherlv_5=null; |
| AntlrDatatypeRuleToken lv_descriptionValue_4_0 = null; |
| |
| EObject lv_tabletype_6_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:213:2: ( ( () otherlv_1= 'table' ( (lv_name_2_0= RULE_ID ) ) ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) )? otherlv_5= 'as' ( (lv_tabletype_6_0= ruleTableOption ) ) ) ) |
| // InternalTableDSL.g:214:2: ( () otherlv_1= 'table' ( (lv_name_2_0= RULE_ID ) ) ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) )? otherlv_5= 'as' ( (lv_tabletype_6_0= ruleTableOption ) ) ) |
| { |
| // InternalTableDSL.g:214:2: ( () otherlv_1= 'table' ( (lv_name_2_0= RULE_ID ) ) ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) )? otherlv_5= 'as' ( (lv_tabletype_6_0= ruleTableOption ) ) ) |
| // InternalTableDSL.g:215:3: () otherlv_1= 'table' ( (lv_name_2_0= RULE_ID ) ) ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) )? otherlv_5= 'as' ( (lv_tabletype_6_0= ruleTableOption ) ) |
| { |
| // InternalTableDSL.g:215:3: () |
| // InternalTableDSL.g:216:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getTableAccess().getTableAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,18,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTableAccess().getTableKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:226:3: ( (lv_name_2_0= RULE_ID ) ) |
| // InternalTableDSL.g:227:4: (lv_name_2_0= RULE_ID ) |
| { |
| // InternalTableDSL.g:227:4: (lv_name_2_0= RULE_ID ) |
| // InternalTableDSL.g:228:5: lv_name_2_0= RULE_ID |
| { |
| lv_name_2_0=(Token)match(input,RULE_ID,FOLLOW_7); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_name_2_0, grammarAccess.getTableAccess().getNameIDTerminalRuleCall_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "name", |
| lv_name_2_0, |
| "org.eclipse.xtext.xbase.Xtype.ID"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:244:3: ( ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) )? |
| int alt5=2; |
| int LA5_0 = input.LA(1); |
| |
| if ( (LA5_0==19) ) { |
| alt5=1; |
| } |
| switch (alt5) { |
| case 1 : |
| // InternalTableDSL.g:245:4: ( (lv_description_3_0= 'describedBy' ) ) ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) |
| { |
| // InternalTableDSL.g:245:4: ( (lv_description_3_0= 'describedBy' ) ) |
| // InternalTableDSL.g:246:5: (lv_description_3_0= 'describedBy' ) |
| { |
| // InternalTableDSL.g:246:5: (lv_description_3_0= 'describedBy' ) |
| // InternalTableDSL.g:247:6: lv_description_3_0= 'describedBy' |
| { |
| lv_description_3_0=(Token)match(input,19,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_description_3_0, grammarAccess.getTableAccess().getDescriptionDescribedByKeyword_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableRule()); |
| } |
| setWithLastConsumed(current, "description", true, "describedBy"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:259:4: ( (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) ) |
| // InternalTableDSL.g:260:5: (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) |
| { |
| // InternalTableDSL.g:260:5: (lv_descriptionValue_4_0= ruleTRANSLATABLESTRING ) |
| // InternalTableDSL.g:261:6: lv_descriptionValue_4_0= ruleTRANSLATABLESTRING |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableAccess().getDescriptionValueTRANSLATABLESTRINGParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_9); |
| lv_descriptionValue_4_0=ruleTRANSLATABLESTRING(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableRule()); |
| } |
| set( |
| current, |
| "descriptionValue", |
| lv_descriptionValue_4_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TRANSLATABLESTRING"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_5=(Token)match(input,20,FOLLOW_10); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getTableAccess().getAsKeyword_4()); |
| |
| } |
| // InternalTableDSL.g:283:3: ( (lv_tabletype_6_0= ruleTableOption ) ) |
| // InternalTableDSL.g:284:4: (lv_tabletype_6_0= ruleTableOption ) |
| { |
| // InternalTableDSL.g:284:4: (lv_tabletype_6_0= ruleTableOption ) |
| // InternalTableDSL.g:285:5: lv_tabletype_6_0= ruleTableOption |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableAccess().getTabletypeTableOptionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_tabletype_6_0=ruleTableOption(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableRule()); |
| } |
| set( |
| current, |
| "tabletype", |
| lv_tabletype_6_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TableOption"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTable" |
| |
| |
| // $ANTLR start "entryRuleTableOption" |
| // InternalTableDSL.g:306:1: entryRuleTableOption returns [EObject current=null] : iv_ruleTableOption= ruleTableOption EOF ; |
| public final EObject entryRuleTableOption() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableOption = null; |
| |
| |
| try { |
| // InternalTableDSL.g:306:52: (iv_ruleTableOption= ruleTableOption EOF ) |
| // InternalTableDSL.g:307:2: iv_ruleTableOption= ruleTableOption EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableOptionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableOption=ruleTableOption(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableOption; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableOption" |
| |
| |
| // $ANTLR start "ruleTableOption" |
| // InternalTableDSL.g:313:1: ruleTableOption returns [EObject current=null] : (this_TableSelection_0= ruleTableSelection | this_TableTable_1= ruleTableTable | this_TableGrid_2= ruleTableGrid | this_TableBean_3= ruleTableBean ) ; |
| public final EObject ruleTableOption() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_TableSelection_0 = null; |
| |
| EObject this_TableTable_1 = null; |
| |
| EObject this_TableGrid_2 = null; |
| |
| EObject this_TableBean_3 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:319:2: ( (this_TableSelection_0= ruleTableSelection | this_TableTable_1= ruleTableTable | this_TableGrid_2= ruleTableGrid | this_TableBean_3= ruleTableBean ) ) |
| // InternalTableDSL.g:320:2: (this_TableSelection_0= ruleTableSelection | this_TableTable_1= ruleTableTable | this_TableGrid_2= ruleTableGrid | this_TableBean_3= ruleTableBean ) |
| { |
| // InternalTableDSL.g:320:2: (this_TableSelection_0= ruleTableSelection | this_TableTable_1= ruleTableTable | this_TableGrid_2= ruleTableGrid | this_TableBean_3= ruleTableBean ) |
| int alt6=4; |
| switch ( input.LA(1) ) { |
| case 21: |
| { |
| alt6=1; |
| } |
| break; |
| case 18: |
| { |
| alt6=2; |
| } |
| break; |
| case 71: |
| { |
| alt6=3; |
| } |
| break; |
| case 32: |
| { |
| alt6=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 6, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt6) { |
| case 1 : |
| // InternalTableDSL.g:321:3: this_TableSelection_0= ruleTableSelection |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableOptionAccess().getTableSelectionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_TableSelection_0=ruleTableSelection(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TableSelection_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:330:3: this_TableTable_1= ruleTableTable |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableOptionAccess().getTableTableParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_TableTable_1=ruleTableTable(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TableTable_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalTableDSL.g:339:3: this_TableGrid_2= ruleTableGrid |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableOptionAccess().getTableGridParserRuleCall_2()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_TableGrid_2=ruleTableGrid(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TableGrid_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalTableDSL.g:348:3: this_TableBean_3= ruleTableBean |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableOptionAccess().getTableBeanParserRuleCall_3()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_TableBean_3=ruleTableBean(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TableBean_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableOption" |
| |
| |
| // $ANTLR start "entryRuleTableSelection" |
| // InternalTableDSL.g:360:1: entryRuleTableSelection returns [EObject current=null] : iv_ruleTableSelection= ruleTableSelection EOF ; |
| public final EObject entryRuleTableSelection() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableSelection = null; |
| |
| |
| try { |
| // InternalTableDSL.g:360:55: (iv_ruleTableSelection= ruleTableSelection EOF ) |
| // InternalTableDSL.g:361:2: iv_ruleTableSelection= ruleTableSelection EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableSelectionRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableSelection=ruleTableSelection(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableSelection; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableSelection" |
| |
| |
| // $ANTLR start "ruleTableSelection" |
| // InternalTableDSL.g:367:1: ruleTableSelection returns [EObject current=null] : ( () otherlv_1= 'selection' ( ( (lv_multiSelection_2_0= 'multiple' ) ) | otherlv_3= 'single' ) ( ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_5_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'rowHeader' ( (lv_headerMode_7_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_8_0= 'polling' ) ) ( (lv_pollingTime_9_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_10_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_11_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'toolbar' ( (otherlv_13= RULE_ID ) ) ) ) ) ) )* ) ) ) (otherlv_14= 'using' ( (lv_source_15_0= ruleTableDatamart ) ) )? ) ; |
| public final EObject ruleTableSelection() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_multiSelection_2_0=null; |
| Token otherlv_3=null; |
| Token lv_selectalways_5_0=null; |
| Token otherlv_6=null; |
| Token lv_polling_8_0=null; |
| Token lv_filtering_10_0=null; |
| Token lv_embedded_11_0=null; |
| Token otherlv_12=null; |
| Token otherlv_13=null; |
| Token otherlv_14=null; |
| Enumerator lv_headerMode_7_0 = null; |
| |
| AntlrDatatypeRuleToken lv_pollingTime_9_0 = null; |
| |
| EObject lv_source_15_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:373:2: ( ( () otherlv_1= 'selection' ( ( (lv_multiSelection_2_0= 'multiple' ) ) | otherlv_3= 'single' ) ( ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_5_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'rowHeader' ( (lv_headerMode_7_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_8_0= 'polling' ) ) ( (lv_pollingTime_9_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_10_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_11_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'toolbar' ( (otherlv_13= RULE_ID ) ) ) ) ) ) )* ) ) ) (otherlv_14= 'using' ( (lv_source_15_0= ruleTableDatamart ) ) )? ) ) |
| // InternalTableDSL.g:374:2: ( () otherlv_1= 'selection' ( ( (lv_multiSelection_2_0= 'multiple' ) ) | otherlv_3= 'single' ) ( ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_5_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'rowHeader' ( (lv_headerMode_7_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_8_0= 'polling' ) ) ( (lv_pollingTime_9_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_10_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_11_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'toolbar' ( (otherlv_13= RULE_ID ) ) ) ) ) ) )* ) ) ) (otherlv_14= 'using' ( (lv_source_15_0= ruleTableDatamart ) ) )? ) |
| { |
| // InternalTableDSL.g:374:2: ( () otherlv_1= 'selection' ( ( (lv_multiSelection_2_0= 'multiple' ) ) | otherlv_3= 'single' ) ( ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_5_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'rowHeader' ( (lv_headerMode_7_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_8_0= 'polling' ) ) ( (lv_pollingTime_9_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_10_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_11_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'toolbar' ( (otherlv_13= RULE_ID ) ) ) ) ) ) )* ) ) ) (otherlv_14= 'using' ( (lv_source_15_0= ruleTableDatamart ) ) )? ) |
| // InternalTableDSL.g:375:3: () otherlv_1= 'selection' ( ( (lv_multiSelection_2_0= 'multiple' ) ) | otherlv_3= 'single' ) ( ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_5_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'rowHeader' ( (lv_headerMode_7_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_8_0= 'polling' ) ) ( (lv_pollingTime_9_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_10_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_11_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'toolbar' ( (otherlv_13= RULE_ID ) ) ) ) ) ) )* ) ) ) (otherlv_14= 'using' ( (lv_source_15_0= ruleTableDatamart ) ) )? |
| { |
| // InternalTableDSL.g:375:3: () |
| // InternalTableDSL.g:376:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getTableSelectionAccess().getTableSelectionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,21,FOLLOW_11); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTableSelectionAccess().getSelectionKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:386:3: ( ( (lv_multiSelection_2_0= 'multiple' ) ) | otherlv_3= 'single' ) |
| int alt7=2; |
| int LA7_0 = input.LA(1); |
| |
| if ( (LA7_0==22) ) { |
| alt7=1; |
| } |
| else if ( (LA7_0==23) ) { |
| alt7=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 7, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt7) { |
| case 1 : |
| // InternalTableDSL.g:387:4: ( (lv_multiSelection_2_0= 'multiple' ) ) |
| { |
| // InternalTableDSL.g:387:4: ( (lv_multiSelection_2_0= 'multiple' ) ) |
| // InternalTableDSL.g:388:5: (lv_multiSelection_2_0= 'multiple' ) |
| { |
| // InternalTableDSL.g:388:5: (lv_multiSelection_2_0= 'multiple' ) |
| // InternalTableDSL.g:389:6: lv_multiSelection_2_0= 'multiple' |
| { |
| lv_multiSelection_2_0=(Token)match(input,22,FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_multiSelection_2_0, grammarAccess.getTableSelectionAccess().getMultiSelectionMultipleKeyword_2_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableSelectionRule()); |
| } |
| setWithLastConsumed(current, "multiSelection", true, "multiple"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:402:4: otherlv_3= 'single' |
| { |
| otherlv_3=(Token)match(input,23,FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getTableSelectionAccess().getSingleKeyword_2_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalTableDSL.g:407:3: ( ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_5_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'rowHeader' ( (lv_headerMode_7_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_8_0= 'polling' ) ) ( (lv_pollingTime_9_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_10_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_11_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'toolbar' ( (otherlv_13= RULE_ID ) ) ) ) ) ) )* ) ) ) |
| // InternalTableDSL.g:408:4: ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_5_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'rowHeader' ( (lv_headerMode_7_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_8_0= 'polling' ) ) ( (lv_pollingTime_9_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_10_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_11_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'toolbar' ( (otherlv_13= RULE_ID ) ) ) ) ) ) )* ) ) |
| { |
| // InternalTableDSL.g:408:4: ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_5_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'rowHeader' ( (lv_headerMode_7_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_8_0= 'polling' ) ) ( (lv_pollingTime_9_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_10_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_11_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'toolbar' ( (otherlv_13= RULE_ID ) ) ) ) ) ) )* ) ) |
| // InternalTableDSL.g:409:5: ( ( ({...}? => ( ({...}? => ( (lv_selectalways_5_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'rowHeader' ( (lv_headerMode_7_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_8_0= 'polling' ) ) ( (lv_pollingTime_9_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_10_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_11_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'toolbar' ( (otherlv_13= RULE_ID ) ) ) ) ) ) )* ) |
| { |
| getUnorderedGroupHelper().enter(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3()); |
| // InternalTableDSL.g:412:5: ( ( ({...}? => ( ({...}? => ( (lv_selectalways_5_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'rowHeader' ( (lv_headerMode_7_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_8_0= 'polling' ) ) ( (lv_pollingTime_9_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_10_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_11_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'toolbar' ( (otherlv_13= RULE_ID ) ) ) ) ) ) )* ) |
| // InternalTableDSL.g:413:6: ( ({...}? => ( ({...}? => ( (lv_selectalways_5_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'rowHeader' ( (lv_headerMode_7_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_8_0= 'polling' ) ) ( (lv_pollingTime_9_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_10_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_11_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'toolbar' ( (otherlv_13= RULE_ID ) ) ) ) ) ) )* |
| { |
| // InternalTableDSL.g:413:6: ( ({...}? => ( ({...}? => ( (lv_selectalways_5_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_6= 'rowHeader' ( (lv_headerMode_7_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_8_0= 'polling' ) ) ( (lv_pollingTime_9_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_10_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_11_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_12= 'toolbar' ( (otherlv_13= RULE_ID ) ) ) ) ) ) )* |
| loop8: |
| do { |
| int alt8=7; |
| int LA8_0 = input.LA(1); |
| |
| if ( LA8_0 == 24 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3(), 0) ) { |
| alt8=1; |
| } |
| else if ( LA8_0 == 25 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3(), 1) ) { |
| alt8=2; |
| } |
| else if ( LA8_0 == 26 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3(), 2) ) { |
| alt8=3; |
| } |
| else if ( LA8_0 == 27 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3(), 3) ) { |
| alt8=4; |
| } |
| else if ( LA8_0 == 28 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3(), 4) ) { |
| alt8=5; |
| } |
| else if ( LA8_0 == 29 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3(), 5) ) { |
| alt8=6; |
| } |
| |
| |
| switch (alt8) { |
| case 1 : |
| // InternalTableDSL.g:414:4: ({...}? => ( ({...}? => ( (lv_selectalways_5_0= 'alwaysSelected' ) ) ) ) ) |
| { |
| // InternalTableDSL.g:414:4: ({...}? => ( ({...}? => ( (lv_selectalways_5_0= 'alwaysSelected' ) ) ) ) ) |
| // InternalTableDSL.g:415:5: {...}? => ( ({...}? => ( (lv_selectalways_5_0= 'alwaysSelected' ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3(), 0) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableSelection", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3(), 0)"); |
| } |
| // InternalTableDSL.g:415:111: ( ({...}? => ( (lv_selectalways_5_0= 'alwaysSelected' ) ) ) ) |
| // InternalTableDSL.g:416:6: ({...}? => ( (lv_selectalways_5_0= 'alwaysSelected' ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3(), 0); |
| // InternalTableDSL.g:419:9: ({...}? => ( (lv_selectalways_5_0= 'alwaysSelected' ) ) ) |
| // InternalTableDSL.g:419:10: {...}? => ( (lv_selectalways_5_0= 'alwaysSelected' ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableSelection", "true"); |
| } |
| // InternalTableDSL.g:419:19: ( (lv_selectalways_5_0= 'alwaysSelected' ) ) |
| // InternalTableDSL.g:419:20: (lv_selectalways_5_0= 'alwaysSelected' ) |
| { |
| // InternalTableDSL.g:419:20: (lv_selectalways_5_0= 'alwaysSelected' ) |
| // InternalTableDSL.g:420:10: lv_selectalways_5_0= 'alwaysSelected' |
| { |
| lv_selectalways_5_0=(Token)match(input,24,FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_selectalways_5_0, grammarAccess.getTableSelectionAccess().getSelectalwaysAlwaysSelectedKeyword_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableSelectionRule()); |
| } |
| setWithLastConsumed(current, "selectalways", true, "alwaysSelected"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:437:4: ({...}? => ( ({...}? => (otherlv_6= 'rowHeader' ( (lv_headerMode_7_0= ruleRowHeaderMode ) ) ) ) ) ) |
| { |
| // InternalTableDSL.g:437:4: ({...}? => ( ({...}? => (otherlv_6= 'rowHeader' ( (lv_headerMode_7_0= ruleRowHeaderMode ) ) ) ) ) ) |
| // InternalTableDSL.g:438:5: {...}? => ( ({...}? => (otherlv_6= 'rowHeader' ( (lv_headerMode_7_0= ruleRowHeaderMode ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3(), 1) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableSelection", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3(), 1)"); |
| } |
| // InternalTableDSL.g:438:111: ( ({...}? => (otherlv_6= 'rowHeader' ( (lv_headerMode_7_0= ruleRowHeaderMode ) ) ) ) ) |
| // InternalTableDSL.g:439:6: ({...}? => (otherlv_6= 'rowHeader' ( (lv_headerMode_7_0= ruleRowHeaderMode ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3(), 1); |
| // InternalTableDSL.g:442:9: ({...}? => (otherlv_6= 'rowHeader' ( (lv_headerMode_7_0= ruleRowHeaderMode ) ) ) ) |
| // InternalTableDSL.g:442:10: {...}? => (otherlv_6= 'rowHeader' ( (lv_headerMode_7_0= ruleRowHeaderMode ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableSelection", "true"); |
| } |
| // InternalTableDSL.g:442:19: (otherlv_6= 'rowHeader' ( (lv_headerMode_7_0= ruleRowHeaderMode ) ) ) |
| // InternalTableDSL.g:442:20: otherlv_6= 'rowHeader' ( (lv_headerMode_7_0= ruleRowHeaderMode ) ) |
| { |
| otherlv_6=(Token)match(input,25,FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getTableSelectionAccess().getRowHeaderKeyword_3_1_0()); |
| |
| } |
| // InternalTableDSL.g:446:9: ( (lv_headerMode_7_0= ruleRowHeaderMode ) ) |
| // InternalTableDSL.g:447:10: (lv_headerMode_7_0= ruleRowHeaderMode ) |
| { |
| // InternalTableDSL.g:447:10: (lv_headerMode_7_0= ruleRowHeaderMode ) |
| // InternalTableDSL.g:448:11: lv_headerMode_7_0= ruleRowHeaderMode |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableSelectionAccess().getHeaderModeRowHeaderModeEnumRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_12); |
| lv_headerMode_7_0=ruleRowHeaderMode(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableSelectionRule()); |
| } |
| set( |
| current, |
| "headerMode", |
| lv_headerMode_7_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.RowHeaderMode"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalTableDSL.g:471:4: ({...}? => ( ({...}? => ( ( (lv_polling_8_0= 'polling' ) ) ( (lv_pollingTime_9_0= ruleNumber ) ) ) ) ) ) |
| { |
| // InternalTableDSL.g:471:4: ({...}? => ( ({...}? => ( ( (lv_polling_8_0= 'polling' ) ) ( (lv_pollingTime_9_0= ruleNumber ) ) ) ) ) ) |
| // InternalTableDSL.g:472:5: {...}? => ( ({...}? => ( ( (lv_polling_8_0= 'polling' ) ) ( (lv_pollingTime_9_0= ruleNumber ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3(), 2) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableSelection", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3(), 2)"); |
| } |
| // InternalTableDSL.g:472:111: ( ({...}? => ( ( (lv_polling_8_0= 'polling' ) ) ( (lv_pollingTime_9_0= ruleNumber ) ) ) ) ) |
| // InternalTableDSL.g:473:6: ({...}? => ( ( (lv_polling_8_0= 'polling' ) ) ( (lv_pollingTime_9_0= ruleNumber ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3(), 2); |
| // InternalTableDSL.g:476:9: ({...}? => ( ( (lv_polling_8_0= 'polling' ) ) ( (lv_pollingTime_9_0= ruleNumber ) ) ) ) |
| // InternalTableDSL.g:476:10: {...}? => ( ( (lv_polling_8_0= 'polling' ) ) ( (lv_pollingTime_9_0= ruleNumber ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableSelection", "true"); |
| } |
| // InternalTableDSL.g:476:19: ( ( (lv_polling_8_0= 'polling' ) ) ( (lv_pollingTime_9_0= ruleNumber ) ) ) |
| // InternalTableDSL.g:476:20: ( (lv_polling_8_0= 'polling' ) ) ( (lv_pollingTime_9_0= ruleNumber ) ) |
| { |
| // InternalTableDSL.g:476:20: ( (lv_polling_8_0= 'polling' ) ) |
| // InternalTableDSL.g:477:10: (lv_polling_8_0= 'polling' ) |
| { |
| // InternalTableDSL.g:477:10: (lv_polling_8_0= 'polling' ) |
| // InternalTableDSL.g:478:11: lv_polling_8_0= 'polling' |
| { |
| lv_polling_8_0=(Token)match(input,26,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_polling_8_0, grammarAccess.getTableSelectionAccess().getPollingPollingKeyword_3_2_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableSelectionRule()); |
| } |
| setWithLastConsumed(current, "polling", true, "polling"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:490:9: ( (lv_pollingTime_9_0= ruleNumber ) ) |
| // InternalTableDSL.g:491:10: (lv_pollingTime_9_0= ruleNumber ) |
| { |
| // InternalTableDSL.g:491:10: (lv_pollingTime_9_0= ruleNumber ) |
| // InternalTableDSL.g:492:11: lv_pollingTime_9_0= ruleNumber |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableSelectionAccess().getPollingTimeNumberParserRuleCall_3_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_12); |
| lv_pollingTime_9_0=ruleNumber(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableSelectionRule()); |
| } |
| set( |
| current, |
| "pollingTime", |
| lv_pollingTime_9_0, |
| "org.eclipse.xtext.xbase.Xbase.Number"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalTableDSL.g:515:4: ({...}? => ( ({...}? => ( (lv_filtering_10_0= 'filtering' ) ) ) ) ) |
| { |
| // InternalTableDSL.g:515:4: ({...}? => ( ({...}? => ( (lv_filtering_10_0= 'filtering' ) ) ) ) ) |
| // InternalTableDSL.g:516:5: {...}? => ( ({...}? => ( (lv_filtering_10_0= 'filtering' ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3(), 3) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableSelection", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3(), 3)"); |
| } |
| // InternalTableDSL.g:516:111: ( ({...}? => ( (lv_filtering_10_0= 'filtering' ) ) ) ) |
| // InternalTableDSL.g:517:6: ({...}? => ( (lv_filtering_10_0= 'filtering' ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3(), 3); |
| // InternalTableDSL.g:520:9: ({...}? => ( (lv_filtering_10_0= 'filtering' ) ) ) |
| // InternalTableDSL.g:520:10: {...}? => ( (lv_filtering_10_0= 'filtering' ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableSelection", "true"); |
| } |
| // InternalTableDSL.g:520:19: ( (lv_filtering_10_0= 'filtering' ) ) |
| // InternalTableDSL.g:520:20: (lv_filtering_10_0= 'filtering' ) |
| { |
| // InternalTableDSL.g:520:20: (lv_filtering_10_0= 'filtering' ) |
| // InternalTableDSL.g:521:10: lv_filtering_10_0= 'filtering' |
| { |
| lv_filtering_10_0=(Token)match(input,27,FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_filtering_10_0, grammarAccess.getTableSelectionAccess().getFilteringFilteringKeyword_3_3_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableSelectionRule()); |
| } |
| setWithLastConsumed(current, "filtering", true, "filtering"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalTableDSL.g:538:4: ({...}? => ( ({...}? => ( (lv_embedded_11_0= 'embedded' ) ) ) ) ) |
| { |
| // InternalTableDSL.g:538:4: ({...}? => ( ({...}? => ( (lv_embedded_11_0= 'embedded' ) ) ) ) ) |
| // InternalTableDSL.g:539:5: {...}? => ( ({...}? => ( (lv_embedded_11_0= 'embedded' ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3(), 4) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableSelection", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3(), 4)"); |
| } |
| // InternalTableDSL.g:539:111: ( ({...}? => ( (lv_embedded_11_0= 'embedded' ) ) ) ) |
| // InternalTableDSL.g:540:6: ({...}? => ( (lv_embedded_11_0= 'embedded' ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3(), 4); |
| // InternalTableDSL.g:543:9: ({...}? => ( (lv_embedded_11_0= 'embedded' ) ) ) |
| // InternalTableDSL.g:543:10: {...}? => ( (lv_embedded_11_0= 'embedded' ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableSelection", "true"); |
| } |
| // InternalTableDSL.g:543:19: ( (lv_embedded_11_0= 'embedded' ) ) |
| // InternalTableDSL.g:543:20: (lv_embedded_11_0= 'embedded' ) |
| { |
| // InternalTableDSL.g:543:20: (lv_embedded_11_0= 'embedded' ) |
| // InternalTableDSL.g:544:10: lv_embedded_11_0= 'embedded' |
| { |
| lv_embedded_11_0=(Token)match(input,28,FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_embedded_11_0, grammarAccess.getTableSelectionAccess().getEmbeddedEmbeddedKeyword_3_4_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableSelectionRule()); |
| } |
| setWithLastConsumed(current, "embedded", true, "embedded"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 6 : |
| // InternalTableDSL.g:561:4: ({...}? => ( ({...}? => (otherlv_12= 'toolbar' ( (otherlv_13= RULE_ID ) ) ) ) ) ) |
| { |
| // InternalTableDSL.g:561:4: ({...}? => ( ({...}? => (otherlv_12= 'toolbar' ( (otherlv_13= RULE_ID ) ) ) ) ) ) |
| // InternalTableDSL.g:562:5: {...}? => ( ({...}? => (otherlv_12= 'toolbar' ( (otherlv_13= RULE_ID ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3(), 5) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableSelection", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3(), 5)"); |
| } |
| // InternalTableDSL.g:562:111: ( ({...}? => (otherlv_12= 'toolbar' ( (otherlv_13= RULE_ID ) ) ) ) ) |
| // InternalTableDSL.g:563:6: ({...}? => (otherlv_12= 'toolbar' ( (otherlv_13= RULE_ID ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3(), 5); |
| // InternalTableDSL.g:566:9: ({...}? => (otherlv_12= 'toolbar' ( (otherlv_13= RULE_ID ) ) ) ) |
| // InternalTableDSL.g:566:10: {...}? => (otherlv_12= 'toolbar' ( (otherlv_13= RULE_ID ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableSelection", "true"); |
| } |
| // InternalTableDSL.g:566:19: (otherlv_12= 'toolbar' ( (otherlv_13= RULE_ID ) ) ) |
| // InternalTableDSL.g:566:20: otherlv_12= 'toolbar' ( (otherlv_13= RULE_ID ) ) |
| { |
| otherlv_12=(Token)match(input,29,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getTableSelectionAccess().getToolbarKeyword_3_5_0()); |
| |
| } |
| // InternalTableDSL.g:570:9: ( (otherlv_13= RULE_ID ) ) |
| // InternalTableDSL.g:571:10: (otherlv_13= RULE_ID ) |
| { |
| // InternalTableDSL.g:571:10: (otherlv_13= RULE_ID ) |
| // InternalTableDSL.g:572:11: otherlv_13= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableSelectionRule()); |
| } |
| |
| } |
| otherlv_13=(Token)match(input,RULE_ID,FOLLOW_12); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getTableSelectionAccess().getToolbarActionToolbarCrossReference_3_5_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop8; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().leave(grammarAccess.getTableSelectionAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| // InternalTableDSL.g:596:3: (otherlv_14= 'using' ( (lv_source_15_0= ruleTableDatamart ) ) )? |
| int alt9=2; |
| int LA9_0 = input.LA(1); |
| |
| if ( (LA9_0==30) ) { |
| alt9=1; |
| } |
| switch (alt9) { |
| case 1 : |
| // InternalTableDSL.g:597:4: otherlv_14= 'using' ( (lv_source_15_0= ruleTableDatamart ) ) |
| { |
| otherlv_14=(Token)match(input,30,FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_14, grammarAccess.getTableSelectionAccess().getUsingKeyword_4_0()); |
| |
| } |
| // InternalTableDSL.g:601:4: ( (lv_source_15_0= ruleTableDatamart ) ) |
| // InternalTableDSL.g:602:5: (lv_source_15_0= ruleTableDatamart ) |
| { |
| // InternalTableDSL.g:602:5: (lv_source_15_0= ruleTableDatamart ) |
| // InternalTableDSL.g:603:6: lv_source_15_0= ruleTableDatamart |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableSelectionAccess().getSourceTableDatamartParserRuleCall_4_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_source_15_0=ruleTableDatamart(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableSelectionRule()); |
| } |
| set( |
| current, |
| "source", |
| lv_source_15_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TableDatamart"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableSelection" |
| |
| |
| // $ANTLR start "entryRuleTableTable" |
| // InternalTableDSL.g:625:1: entryRuleTableTable returns [EObject current=null] : iv_ruleTableTable= ruleTableTable EOF ; |
| public final EObject entryRuleTableTable() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableTable = null; |
| |
| |
| try { |
| // InternalTableDSL.g:625:51: (iv_ruleTableTable= ruleTableTable EOF ) |
| // InternalTableDSL.g:626:2: iv_ruleTableTable= ruleTableTable EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableTableRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableTable=ruleTableTable(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableTable; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableTable" |
| |
| |
| // $ANTLR start "ruleTableTable" |
| // InternalTableDSL.g:632:1: ruleTableTable returns [EObject current=null] : ( () otherlv_1= 'table' ( ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) ) ) (otherlv_13= 'using' ( (lv_source_14_0= ruleTableDatamart ) ) )? ) ; |
| public final EObject ruleTableTable() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_selectalways_3_0=null; |
| Token lv_selectById_4_0=null; |
| Token otherlv_5=null; |
| Token lv_polling_7_0=null; |
| Token lv_filtering_9_0=null; |
| Token lv_embedded_10_0=null; |
| Token otherlv_11=null; |
| Token otherlv_12=null; |
| Token otherlv_13=null; |
| Enumerator lv_headerMode_6_0 = null; |
| |
| AntlrDatatypeRuleToken lv_pollingTime_8_0 = null; |
| |
| EObject lv_source_14_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:638:2: ( ( () otherlv_1= 'table' ( ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) ) ) (otherlv_13= 'using' ( (lv_source_14_0= ruleTableDatamart ) ) )? ) ) |
| // InternalTableDSL.g:639:2: ( () otherlv_1= 'table' ( ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) ) ) (otherlv_13= 'using' ( (lv_source_14_0= ruleTableDatamart ) ) )? ) |
| { |
| // InternalTableDSL.g:639:2: ( () otherlv_1= 'table' ( ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) ) ) (otherlv_13= 'using' ( (lv_source_14_0= ruleTableDatamart ) ) )? ) |
| // InternalTableDSL.g:640:3: () otherlv_1= 'table' ( ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) ) ) (otherlv_13= 'using' ( (lv_source_14_0= ruleTableDatamart ) ) )? |
| { |
| // InternalTableDSL.g:640:3: () |
| // InternalTableDSL.g:641:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getTableTableAccess().getTableTableAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,18,FOLLOW_16); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTableTableAccess().getTableKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:651:3: ( ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) ) ) |
| // InternalTableDSL.g:652:4: ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) ) |
| { |
| // InternalTableDSL.g:652:4: ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) ) |
| // InternalTableDSL.g:653:5: ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) |
| { |
| getUnorderedGroupHelper().enter(grammarAccess.getTableTableAccess().getUnorderedGroup_2()); |
| // InternalTableDSL.g:656:5: ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) |
| // InternalTableDSL.g:657:6: ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* |
| { |
| // InternalTableDSL.g:657:6: ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* |
| loop10: |
| do { |
| int alt10=8; |
| int LA10_0 = input.LA(1); |
| |
| if ( LA10_0 == 24 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableTableAccess().getUnorderedGroup_2(), 0) ) { |
| alt10=1; |
| } |
| else if ( LA10_0 == 31 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableTableAccess().getUnorderedGroup_2(), 1) ) { |
| alt10=2; |
| } |
| else if ( LA10_0 == 25 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableTableAccess().getUnorderedGroup_2(), 2) ) { |
| alt10=3; |
| } |
| else if ( LA10_0 == 26 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableTableAccess().getUnorderedGroup_2(), 3) ) { |
| alt10=4; |
| } |
| else if ( LA10_0 == 27 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableTableAccess().getUnorderedGroup_2(), 4) ) { |
| alt10=5; |
| } |
| else if ( LA10_0 == 28 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableTableAccess().getUnorderedGroup_2(), 5) ) { |
| alt10=6; |
| } |
| else if ( LA10_0 == 29 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableTableAccess().getUnorderedGroup_2(), 6) ) { |
| alt10=7; |
| } |
| |
| |
| switch (alt10) { |
| case 1 : |
| // InternalTableDSL.g:658:4: ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) ) |
| { |
| // InternalTableDSL.g:658:4: ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) ) |
| // InternalTableDSL.g:659:5: {...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableTableAccess().getUnorderedGroup_2(), 0) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableTable", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableTableAccess().getUnorderedGroup_2(), 0)"); |
| } |
| // InternalTableDSL.g:659:107: ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) |
| // InternalTableDSL.g:660:6: ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableTableAccess().getUnorderedGroup_2(), 0); |
| // InternalTableDSL.g:663:9: ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) |
| // InternalTableDSL.g:663:10: {...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableTable", "true"); |
| } |
| // InternalTableDSL.g:663:19: ( (lv_selectalways_3_0= 'alwaysSelected' ) ) |
| // InternalTableDSL.g:663:20: (lv_selectalways_3_0= 'alwaysSelected' ) |
| { |
| // InternalTableDSL.g:663:20: (lv_selectalways_3_0= 'alwaysSelected' ) |
| // InternalTableDSL.g:664:10: lv_selectalways_3_0= 'alwaysSelected' |
| { |
| lv_selectalways_3_0=(Token)match(input,24,FOLLOW_16); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_selectalways_3_0, grammarAccess.getTableTableAccess().getSelectalwaysAlwaysSelectedKeyword_2_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableTableRule()); |
| } |
| setWithLastConsumed(current, "selectalways", true, "alwaysSelected"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableTableAccess().getUnorderedGroup_2()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:681:4: ({...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) ) |
| { |
| // InternalTableDSL.g:681:4: ({...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) ) |
| // InternalTableDSL.g:682:5: {...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableTableAccess().getUnorderedGroup_2(), 1) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableTable", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableTableAccess().getUnorderedGroup_2(), 1)"); |
| } |
| // InternalTableDSL.g:682:107: ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) |
| // InternalTableDSL.g:683:6: ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableTableAccess().getUnorderedGroup_2(), 1); |
| // InternalTableDSL.g:686:9: ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) |
| // InternalTableDSL.g:686:10: {...}? => ( (lv_selectById_4_0= 'selectById' ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableTable", "true"); |
| } |
| // InternalTableDSL.g:686:19: ( (lv_selectById_4_0= 'selectById' ) ) |
| // InternalTableDSL.g:686:20: (lv_selectById_4_0= 'selectById' ) |
| { |
| // InternalTableDSL.g:686:20: (lv_selectById_4_0= 'selectById' ) |
| // InternalTableDSL.g:687:10: lv_selectById_4_0= 'selectById' |
| { |
| lv_selectById_4_0=(Token)match(input,31,FOLLOW_16); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_selectById_4_0, grammarAccess.getTableTableAccess().getSelectByIdSelectByIdKeyword_2_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableTableRule()); |
| } |
| setWithLastConsumed(current, "selectById", true, "selectById"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableTableAccess().getUnorderedGroup_2()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalTableDSL.g:704:4: ({...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) ) |
| { |
| // InternalTableDSL.g:704:4: ({...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) ) |
| // InternalTableDSL.g:705:5: {...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableTableAccess().getUnorderedGroup_2(), 2) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableTable", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableTableAccess().getUnorderedGroup_2(), 2)"); |
| } |
| // InternalTableDSL.g:705:107: ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) |
| // InternalTableDSL.g:706:6: ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableTableAccess().getUnorderedGroup_2(), 2); |
| // InternalTableDSL.g:709:9: ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) |
| // InternalTableDSL.g:709:10: {...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableTable", "true"); |
| } |
| // InternalTableDSL.g:709:19: (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) |
| // InternalTableDSL.g:709:20: otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) |
| { |
| otherlv_5=(Token)match(input,25,FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getTableTableAccess().getRowHeaderKeyword_2_2_0()); |
| |
| } |
| // InternalTableDSL.g:713:9: ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) |
| // InternalTableDSL.g:714:10: (lv_headerMode_6_0= ruleRowHeaderMode ) |
| { |
| // InternalTableDSL.g:714:10: (lv_headerMode_6_0= ruleRowHeaderMode ) |
| // InternalTableDSL.g:715:11: lv_headerMode_6_0= ruleRowHeaderMode |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableTableAccess().getHeaderModeRowHeaderModeEnumRuleCall_2_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_16); |
| lv_headerMode_6_0=ruleRowHeaderMode(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableTableRule()); |
| } |
| set( |
| current, |
| "headerMode", |
| lv_headerMode_6_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.RowHeaderMode"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableTableAccess().getUnorderedGroup_2()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalTableDSL.g:738:4: ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) |
| { |
| // InternalTableDSL.g:738:4: ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) |
| // InternalTableDSL.g:739:5: {...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableTableAccess().getUnorderedGroup_2(), 3) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableTable", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableTableAccess().getUnorderedGroup_2(), 3)"); |
| } |
| // InternalTableDSL.g:739:107: ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) |
| // InternalTableDSL.g:740:6: ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableTableAccess().getUnorderedGroup_2(), 3); |
| // InternalTableDSL.g:743:9: ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) |
| // InternalTableDSL.g:743:10: {...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableTable", "true"); |
| } |
| // InternalTableDSL.g:743:19: ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) |
| // InternalTableDSL.g:743:20: ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) |
| { |
| // InternalTableDSL.g:743:20: ( (lv_polling_7_0= 'polling' ) ) |
| // InternalTableDSL.g:744:10: (lv_polling_7_0= 'polling' ) |
| { |
| // InternalTableDSL.g:744:10: (lv_polling_7_0= 'polling' ) |
| // InternalTableDSL.g:745:11: lv_polling_7_0= 'polling' |
| { |
| lv_polling_7_0=(Token)match(input,26,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_polling_7_0, grammarAccess.getTableTableAccess().getPollingPollingKeyword_2_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableTableRule()); |
| } |
| setWithLastConsumed(current, "polling", true, "polling"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:757:9: ( (lv_pollingTime_8_0= ruleNumber ) ) |
| // InternalTableDSL.g:758:10: (lv_pollingTime_8_0= ruleNumber ) |
| { |
| // InternalTableDSL.g:758:10: (lv_pollingTime_8_0= ruleNumber ) |
| // InternalTableDSL.g:759:11: lv_pollingTime_8_0= ruleNumber |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableTableAccess().getPollingTimeNumberParserRuleCall_2_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_16); |
| lv_pollingTime_8_0=ruleNumber(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableTableRule()); |
| } |
| set( |
| current, |
| "pollingTime", |
| lv_pollingTime_8_0, |
| "org.eclipse.xtext.xbase.Xbase.Number"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableTableAccess().getUnorderedGroup_2()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalTableDSL.g:782:4: ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) |
| { |
| // InternalTableDSL.g:782:4: ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) |
| // InternalTableDSL.g:783:5: {...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableTableAccess().getUnorderedGroup_2(), 4) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableTable", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableTableAccess().getUnorderedGroup_2(), 4)"); |
| } |
| // InternalTableDSL.g:783:107: ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) |
| // InternalTableDSL.g:784:6: ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableTableAccess().getUnorderedGroup_2(), 4); |
| // InternalTableDSL.g:787:9: ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) |
| // InternalTableDSL.g:787:10: {...}? => ( (lv_filtering_9_0= 'filtering' ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableTable", "true"); |
| } |
| // InternalTableDSL.g:787:19: ( (lv_filtering_9_0= 'filtering' ) ) |
| // InternalTableDSL.g:787:20: (lv_filtering_9_0= 'filtering' ) |
| { |
| // InternalTableDSL.g:787:20: (lv_filtering_9_0= 'filtering' ) |
| // InternalTableDSL.g:788:10: lv_filtering_9_0= 'filtering' |
| { |
| lv_filtering_9_0=(Token)match(input,27,FOLLOW_16); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_filtering_9_0, grammarAccess.getTableTableAccess().getFilteringFilteringKeyword_2_4_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableTableRule()); |
| } |
| setWithLastConsumed(current, "filtering", true, "filtering"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableTableAccess().getUnorderedGroup_2()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 6 : |
| // InternalTableDSL.g:805:4: ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) |
| { |
| // InternalTableDSL.g:805:4: ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) |
| // InternalTableDSL.g:806:5: {...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableTableAccess().getUnorderedGroup_2(), 5) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableTable", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableTableAccess().getUnorderedGroup_2(), 5)"); |
| } |
| // InternalTableDSL.g:806:107: ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) |
| // InternalTableDSL.g:807:6: ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableTableAccess().getUnorderedGroup_2(), 5); |
| // InternalTableDSL.g:810:9: ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) |
| // InternalTableDSL.g:810:10: {...}? => ( (lv_embedded_10_0= 'embedded' ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableTable", "true"); |
| } |
| // InternalTableDSL.g:810:19: ( (lv_embedded_10_0= 'embedded' ) ) |
| // InternalTableDSL.g:810:20: (lv_embedded_10_0= 'embedded' ) |
| { |
| // InternalTableDSL.g:810:20: (lv_embedded_10_0= 'embedded' ) |
| // InternalTableDSL.g:811:10: lv_embedded_10_0= 'embedded' |
| { |
| lv_embedded_10_0=(Token)match(input,28,FOLLOW_16); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_embedded_10_0, grammarAccess.getTableTableAccess().getEmbeddedEmbeddedKeyword_2_5_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableTableRule()); |
| } |
| setWithLastConsumed(current, "embedded", true, "embedded"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableTableAccess().getUnorderedGroup_2()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 7 : |
| // InternalTableDSL.g:828:4: ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) |
| { |
| // InternalTableDSL.g:828:4: ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) |
| // InternalTableDSL.g:829:5: {...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableTableAccess().getUnorderedGroup_2(), 6) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableTable", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableTableAccess().getUnorderedGroup_2(), 6)"); |
| } |
| // InternalTableDSL.g:829:107: ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) |
| // InternalTableDSL.g:830:6: ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableTableAccess().getUnorderedGroup_2(), 6); |
| // InternalTableDSL.g:833:9: ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) |
| // InternalTableDSL.g:833:10: {...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableTable", "true"); |
| } |
| // InternalTableDSL.g:833:19: (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) |
| // InternalTableDSL.g:833:20: otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) |
| { |
| otherlv_11=(Token)match(input,29,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getTableTableAccess().getToolbarKeyword_2_6_0()); |
| |
| } |
| // InternalTableDSL.g:837:9: ( (otherlv_12= RULE_ID ) ) |
| // InternalTableDSL.g:838:10: (otherlv_12= RULE_ID ) |
| { |
| // InternalTableDSL.g:838:10: (otherlv_12= RULE_ID ) |
| // InternalTableDSL.g:839:11: otherlv_12= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableTableRule()); |
| } |
| |
| } |
| otherlv_12=(Token)match(input,RULE_ID,FOLLOW_16); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getTableTableAccess().getToolbarActionToolbarCrossReference_2_6_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableTableAccess().getUnorderedGroup_2()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop10; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().leave(grammarAccess.getTableTableAccess().getUnorderedGroup_2()); |
| |
| } |
| |
| // InternalTableDSL.g:863:3: (otherlv_13= 'using' ( (lv_source_14_0= ruleTableDatamart ) ) )? |
| int alt11=2; |
| int LA11_0 = input.LA(1); |
| |
| if ( (LA11_0==30) ) { |
| alt11=1; |
| } |
| switch (alt11) { |
| case 1 : |
| // InternalTableDSL.g:864:4: otherlv_13= 'using' ( (lv_source_14_0= ruleTableDatamart ) ) |
| { |
| otherlv_13=(Token)match(input,30,FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getTableTableAccess().getUsingKeyword_3_0()); |
| |
| } |
| // InternalTableDSL.g:868:4: ( (lv_source_14_0= ruleTableDatamart ) ) |
| // InternalTableDSL.g:869:5: (lv_source_14_0= ruleTableDatamart ) |
| { |
| // InternalTableDSL.g:869:5: (lv_source_14_0= ruleTableDatamart ) |
| // InternalTableDSL.g:870:6: lv_source_14_0= ruleTableDatamart |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableTableAccess().getSourceTableDatamartParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_source_14_0=ruleTableDatamart(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableTableRule()); |
| } |
| set( |
| current, |
| "source", |
| lv_source_14_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TableDatamart"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableTable" |
| |
| |
| // $ANTLR start "entryRuleTableBean" |
| // InternalTableDSL.g:892:1: entryRuleTableBean returns [EObject current=null] : iv_ruleTableBean= ruleTableBean EOF ; |
| public final EObject entryRuleTableBean() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableBean = null; |
| |
| |
| try { |
| // InternalTableDSL.g:892:50: (iv_ruleTableBean= ruleTableBean EOF ) |
| // InternalTableDSL.g:893:2: iv_ruleTableBean= ruleTableBean EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableBeanRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableBean=ruleTableBean(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableBean; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableBean" |
| |
| |
| // $ANTLR start "ruleTableBean" |
| // InternalTableDSL.g:899:1: ruleTableBean returns [EObject current=null] : ( () otherlv_1= 'bean' ( ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) ) ) (otherlv_13= 'using' ( (lv_source_14_0= ruleTableDatamart ) ) )? ) ; |
| public final EObject ruleTableBean() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_selectalways_3_0=null; |
| Token lv_selectById_4_0=null; |
| Token otherlv_5=null; |
| Token lv_polling_7_0=null; |
| Token lv_filtering_9_0=null; |
| Token lv_embedded_10_0=null; |
| Token otherlv_11=null; |
| Token otherlv_12=null; |
| Token otherlv_13=null; |
| Enumerator lv_headerMode_6_0 = null; |
| |
| AntlrDatatypeRuleToken lv_pollingTime_8_0 = null; |
| |
| EObject lv_source_14_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:905:2: ( ( () otherlv_1= 'bean' ( ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) ) ) (otherlv_13= 'using' ( (lv_source_14_0= ruleTableDatamart ) ) )? ) ) |
| // InternalTableDSL.g:906:2: ( () otherlv_1= 'bean' ( ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) ) ) (otherlv_13= 'using' ( (lv_source_14_0= ruleTableDatamart ) ) )? ) |
| { |
| // InternalTableDSL.g:906:2: ( () otherlv_1= 'bean' ( ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) ) ) (otherlv_13= 'using' ( (lv_source_14_0= ruleTableDatamart ) ) )? ) |
| // InternalTableDSL.g:907:3: () otherlv_1= 'bean' ( ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) ) ) (otherlv_13= 'using' ( (lv_source_14_0= ruleTableDatamart ) ) )? |
| { |
| // InternalTableDSL.g:907:3: () |
| // InternalTableDSL.g:908:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getTableBeanAccess().getTableBeanAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,32,FOLLOW_16); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTableBeanAccess().getBeanKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:918:3: ( ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) ) ) |
| // InternalTableDSL.g:919:4: ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) ) |
| { |
| // InternalTableDSL.g:919:4: ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) ) |
| // InternalTableDSL.g:920:5: ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) |
| { |
| getUnorderedGroupHelper().enter(grammarAccess.getTableBeanAccess().getUnorderedGroup_2()); |
| // InternalTableDSL.g:923:5: ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) |
| // InternalTableDSL.g:924:6: ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* |
| { |
| // InternalTableDSL.g:924:6: ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* |
| loop12: |
| do { |
| int alt12=8; |
| int LA12_0 = input.LA(1); |
| |
| if ( LA12_0 == 24 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableBeanAccess().getUnorderedGroup_2(), 0) ) { |
| alt12=1; |
| } |
| else if ( LA12_0 == 31 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableBeanAccess().getUnorderedGroup_2(), 1) ) { |
| alt12=2; |
| } |
| else if ( LA12_0 == 25 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableBeanAccess().getUnorderedGroup_2(), 2) ) { |
| alt12=3; |
| } |
| else if ( LA12_0 == 26 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableBeanAccess().getUnorderedGroup_2(), 3) ) { |
| alt12=4; |
| } |
| else if ( LA12_0 == 27 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableBeanAccess().getUnorderedGroup_2(), 4) ) { |
| alt12=5; |
| } |
| else if ( LA12_0 == 28 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableBeanAccess().getUnorderedGroup_2(), 5) ) { |
| alt12=6; |
| } |
| else if ( LA12_0 == 29 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableBeanAccess().getUnorderedGroup_2(), 6) ) { |
| alt12=7; |
| } |
| |
| |
| switch (alt12) { |
| case 1 : |
| // InternalTableDSL.g:925:4: ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) ) |
| { |
| // InternalTableDSL.g:925:4: ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) ) |
| // InternalTableDSL.g:926:5: {...}? => ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableBeanAccess().getUnorderedGroup_2(), 0) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableBean", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableBeanAccess().getUnorderedGroup_2(), 0)"); |
| } |
| // InternalTableDSL.g:926:106: ( ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) ) |
| // InternalTableDSL.g:927:6: ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableBeanAccess().getUnorderedGroup_2(), 0); |
| // InternalTableDSL.g:930:9: ({...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) ) |
| // InternalTableDSL.g:930:10: {...}? => ( (lv_selectalways_3_0= 'alwaysSelected' ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableBean", "true"); |
| } |
| // InternalTableDSL.g:930:19: ( (lv_selectalways_3_0= 'alwaysSelected' ) ) |
| // InternalTableDSL.g:930:20: (lv_selectalways_3_0= 'alwaysSelected' ) |
| { |
| // InternalTableDSL.g:930:20: (lv_selectalways_3_0= 'alwaysSelected' ) |
| // InternalTableDSL.g:931:10: lv_selectalways_3_0= 'alwaysSelected' |
| { |
| lv_selectalways_3_0=(Token)match(input,24,FOLLOW_16); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_selectalways_3_0, grammarAccess.getTableBeanAccess().getSelectalwaysAlwaysSelectedKeyword_2_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableBeanRule()); |
| } |
| setWithLastConsumed(current, "selectalways", true, "alwaysSelected"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableBeanAccess().getUnorderedGroup_2()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:948:4: ({...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) ) |
| { |
| // InternalTableDSL.g:948:4: ({...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) ) |
| // InternalTableDSL.g:949:5: {...}? => ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableBeanAccess().getUnorderedGroup_2(), 1) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableBean", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableBeanAccess().getUnorderedGroup_2(), 1)"); |
| } |
| // InternalTableDSL.g:949:106: ( ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) ) |
| // InternalTableDSL.g:950:6: ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableBeanAccess().getUnorderedGroup_2(), 1); |
| // InternalTableDSL.g:953:9: ({...}? => ( (lv_selectById_4_0= 'selectById' ) ) ) |
| // InternalTableDSL.g:953:10: {...}? => ( (lv_selectById_4_0= 'selectById' ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableBean", "true"); |
| } |
| // InternalTableDSL.g:953:19: ( (lv_selectById_4_0= 'selectById' ) ) |
| // InternalTableDSL.g:953:20: (lv_selectById_4_0= 'selectById' ) |
| { |
| // InternalTableDSL.g:953:20: (lv_selectById_4_0= 'selectById' ) |
| // InternalTableDSL.g:954:10: lv_selectById_4_0= 'selectById' |
| { |
| lv_selectById_4_0=(Token)match(input,31,FOLLOW_16); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_selectById_4_0, grammarAccess.getTableBeanAccess().getSelectByIdSelectByIdKeyword_2_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableBeanRule()); |
| } |
| setWithLastConsumed(current, "selectById", true, "selectById"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableBeanAccess().getUnorderedGroup_2()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalTableDSL.g:971:4: ({...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) ) |
| { |
| // InternalTableDSL.g:971:4: ({...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) ) |
| // InternalTableDSL.g:972:5: {...}? => ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableBeanAccess().getUnorderedGroup_2(), 2) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableBean", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableBeanAccess().getUnorderedGroup_2(), 2)"); |
| } |
| // InternalTableDSL.g:972:106: ( ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) ) |
| // InternalTableDSL.g:973:6: ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableBeanAccess().getUnorderedGroup_2(), 2); |
| // InternalTableDSL.g:976:9: ({...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) ) |
| // InternalTableDSL.g:976:10: {...}? => (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableBean", "true"); |
| } |
| // InternalTableDSL.g:976:19: (otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) ) |
| // InternalTableDSL.g:976:20: otherlv_5= 'rowHeader' ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) |
| { |
| otherlv_5=(Token)match(input,25,FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getTableBeanAccess().getRowHeaderKeyword_2_2_0()); |
| |
| } |
| // InternalTableDSL.g:980:9: ( (lv_headerMode_6_0= ruleRowHeaderMode ) ) |
| // InternalTableDSL.g:981:10: (lv_headerMode_6_0= ruleRowHeaderMode ) |
| { |
| // InternalTableDSL.g:981:10: (lv_headerMode_6_0= ruleRowHeaderMode ) |
| // InternalTableDSL.g:982:11: lv_headerMode_6_0= ruleRowHeaderMode |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableBeanAccess().getHeaderModeRowHeaderModeEnumRuleCall_2_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_16); |
| lv_headerMode_6_0=ruleRowHeaderMode(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableBeanRule()); |
| } |
| set( |
| current, |
| "headerMode", |
| lv_headerMode_6_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.RowHeaderMode"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableBeanAccess().getUnorderedGroup_2()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalTableDSL.g:1005:4: ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) |
| { |
| // InternalTableDSL.g:1005:4: ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) |
| // InternalTableDSL.g:1006:5: {...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableBeanAccess().getUnorderedGroup_2(), 3) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableBean", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableBeanAccess().getUnorderedGroup_2(), 3)"); |
| } |
| // InternalTableDSL.g:1006:106: ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) |
| // InternalTableDSL.g:1007:6: ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableBeanAccess().getUnorderedGroup_2(), 3); |
| // InternalTableDSL.g:1010:9: ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) |
| // InternalTableDSL.g:1010:10: {...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableBean", "true"); |
| } |
| // InternalTableDSL.g:1010:19: ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) |
| // InternalTableDSL.g:1010:20: ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) |
| { |
| // InternalTableDSL.g:1010:20: ( (lv_polling_7_0= 'polling' ) ) |
| // InternalTableDSL.g:1011:10: (lv_polling_7_0= 'polling' ) |
| { |
| // InternalTableDSL.g:1011:10: (lv_polling_7_0= 'polling' ) |
| // InternalTableDSL.g:1012:11: lv_polling_7_0= 'polling' |
| { |
| lv_polling_7_0=(Token)match(input,26,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_polling_7_0, grammarAccess.getTableBeanAccess().getPollingPollingKeyword_2_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableBeanRule()); |
| } |
| setWithLastConsumed(current, "polling", true, "polling"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:1024:9: ( (lv_pollingTime_8_0= ruleNumber ) ) |
| // InternalTableDSL.g:1025:10: (lv_pollingTime_8_0= ruleNumber ) |
| { |
| // InternalTableDSL.g:1025:10: (lv_pollingTime_8_0= ruleNumber ) |
| // InternalTableDSL.g:1026:11: lv_pollingTime_8_0= ruleNumber |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableBeanAccess().getPollingTimeNumberParserRuleCall_2_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_16); |
| lv_pollingTime_8_0=ruleNumber(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableBeanRule()); |
| } |
| set( |
| current, |
| "pollingTime", |
| lv_pollingTime_8_0, |
| "org.eclipse.xtext.xbase.Xbase.Number"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableBeanAccess().getUnorderedGroup_2()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalTableDSL.g:1049:4: ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) |
| { |
| // InternalTableDSL.g:1049:4: ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) |
| // InternalTableDSL.g:1050:5: {...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableBeanAccess().getUnorderedGroup_2(), 4) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableBean", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableBeanAccess().getUnorderedGroup_2(), 4)"); |
| } |
| // InternalTableDSL.g:1050:106: ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) |
| // InternalTableDSL.g:1051:6: ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableBeanAccess().getUnorderedGroup_2(), 4); |
| // InternalTableDSL.g:1054:9: ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) |
| // InternalTableDSL.g:1054:10: {...}? => ( (lv_filtering_9_0= 'filtering' ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableBean", "true"); |
| } |
| // InternalTableDSL.g:1054:19: ( (lv_filtering_9_0= 'filtering' ) ) |
| // InternalTableDSL.g:1054:20: (lv_filtering_9_0= 'filtering' ) |
| { |
| // InternalTableDSL.g:1054:20: (lv_filtering_9_0= 'filtering' ) |
| // InternalTableDSL.g:1055:10: lv_filtering_9_0= 'filtering' |
| { |
| lv_filtering_9_0=(Token)match(input,27,FOLLOW_16); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_filtering_9_0, grammarAccess.getTableBeanAccess().getFilteringFilteringKeyword_2_4_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableBeanRule()); |
| } |
| setWithLastConsumed(current, "filtering", true, "filtering"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableBeanAccess().getUnorderedGroup_2()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 6 : |
| // InternalTableDSL.g:1072:4: ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) |
| { |
| // InternalTableDSL.g:1072:4: ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) |
| // InternalTableDSL.g:1073:5: {...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableBeanAccess().getUnorderedGroup_2(), 5) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableBean", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableBeanAccess().getUnorderedGroup_2(), 5)"); |
| } |
| // InternalTableDSL.g:1073:106: ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) |
| // InternalTableDSL.g:1074:6: ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableBeanAccess().getUnorderedGroup_2(), 5); |
| // InternalTableDSL.g:1077:9: ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) |
| // InternalTableDSL.g:1077:10: {...}? => ( (lv_embedded_10_0= 'embedded' ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableBean", "true"); |
| } |
| // InternalTableDSL.g:1077:19: ( (lv_embedded_10_0= 'embedded' ) ) |
| // InternalTableDSL.g:1077:20: (lv_embedded_10_0= 'embedded' ) |
| { |
| // InternalTableDSL.g:1077:20: (lv_embedded_10_0= 'embedded' ) |
| // InternalTableDSL.g:1078:10: lv_embedded_10_0= 'embedded' |
| { |
| lv_embedded_10_0=(Token)match(input,28,FOLLOW_16); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_embedded_10_0, grammarAccess.getTableBeanAccess().getEmbeddedEmbeddedKeyword_2_5_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableBeanRule()); |
| } |
| setWithLastConsumed(current, "embedded", true, "embedded"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableBeanAccess().getUnorderedGroup_2()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 7 : |
| // InternalTableDSL.g:1095:4: ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) |
| { |
| // InternalTableDSL.g:1095:4: ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) |
| // InternalTableDSL.g:1096:5: {...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableBeanAccess().getUnorderedGroup_2(), 6) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableBean", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableBeanAccess().getUnorderedGroup_2(), 6)"); |
| } |
| // InternalTableDSL.g:1096:106: ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) |
| // InternalTableDSL.g:1097:6: ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableBeanAccess().getUnorderedGroup_2(), 6); |
| // InternalTableDSL.g:1100:9: ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) |
| // InternalTableDSL.g:1100:10: {...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableBean", "true"); |
| } |
| // InternalTableDSL.g:1100:19: (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) |
| // InternalTableDSL.g:1100:20: otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) |
| { |
| otherlv_11=(Token)match(input,29,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getTableBeanAccess().getToolbarKeyword_2_6_0()); |
| |
| } |
| // InternalTableDSL.g:1104:9: ( (otherlv_12= RULE_ID ) ) |
| // InternalTableDSL.g:1105:10: (otherlv_12= RULE_ID ) |
| { |
| // InternalTableDSL.g:1105:10: (otherlv_12= RULE_ID ) |
| // InternalTableDSL.g:1106:11: otherlv_12= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableBeanRule()); |
| } |
| |
| } |
| otherlv_12=(Token)match(input,RULE_ID,FOLLOW_16); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getTableBeanAccess().getToolbarActionToolbarCrossReference_2_6_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableBeanAccess().getUnorderedGroup_2()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop12; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().leave(grammarAccess.getTableBeanAccess().getUnorderedGroup_2()); |
| |
| } |
| |
| // InternalTableDSL.g:1130:3: (otherlv_13= 'using' ( (lv_source_14_0= ruleTableDatamart ) ) )? |
| int alt13=2; |
| int LA13_0 = input.LA(1); |
| |
| if ( (LA13_0==30) ) { |
| alt13=1; |
| } |
| switch (alt13) { |
| case 1 : |
| // InternalTableDSL.g:1131:4: otherlv_13= 'using' ( (lv_source_14_0= ruleTableDatamart ) ) |
| { |
| otherlv_13=(Token)match(input,30,FOLLOW_15); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getTableBeanAccess().getUsingKeyword_3_0()); |
| |
| } |
| // InternalTableDSL.g:1135:4: ( (lv_source_14_0= ruleTableDatamart ) ) |
| // InternalTableDSL.g:1136:5: (lv_source_14_0= ruleTableDatamart ) |
| { |
| // InternalTableDSL.g:1136:5: (lv_source_14_0= ruleTableDatamart ) |
| // InternalTableDSL.g:1137:6: lv_source_14_0= ruleTableDatamart |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableBeanAccess().getSourceTableDatamartParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_source_14_0=ruleTableDatamart(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableBeanRule()); |
| } |
| set( |
| current, |
| "source", |
| lv_source_14_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TableDatamart"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableBean" |
| |
| |
| // $ANTLR start "entryRuleTablePreorder" |
| // InternalTableDSL.g:1159:1: entryRuleTablePreorder returns [EObject current=null] : iv_ruleTablePreorder= ruleTablePreorder EOF ; |
| public final EObject entryRuleTablePreorder() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTablePreorder = null; |
| |
| |
| try { |
| // InternalTableDSL.g:1159:54: (iv_ruleTablePreorder= ruleTablePreorder EOF ) |
| // InternalTableDSL.g:1160:2: iv_ruleTablePreorder= ruleTablePreorder EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTablePreorderRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTablePreorder=ruleTablePreorder(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTablePreorder; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTablePreorder" |
| |
| |
| // $ANTLR start "ruleTablePreorder" |
| // InternalTableDSL.g:1166:1: ruleTablePreorder returns [EObject current=null] : ( () otherlv_1= 'preorder' ( (lv_column_2_0= ruleTableValueElement ) ) ( (lv_ascending_3_0= 'ascending' ) )? ) ; |
| public final EObject ruleTablePreorder() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_ascending_3_0=null; |
| EObject lv_column_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:1172:2: ( ( () otherlv_1= 'preorder' ( (lv_column_2_0= ruleTableValueElement ) ) ( (lv_ascending_3_0= 'ascending' ) )? ) ) |
| // InternalTableDSL.g:1173:2: ( () otherlv_1= 'preorder' ( (lv_column_2_0= ruleTableValueElement ) ) ( (lv_ascending_3_0= 'ascending' ) )? ) |
| { |
| // InternalTableDSL.g:1173:2: ( () otherlv_1= 'preorder' ( (lv_column_2_0= ruleTableValueElement ) ) ( (lv_ascending_3_0= 'ascending' ) )? ) |
| // InternalTableDSL.g:1174:3: () otherlv_1= 'preorder' ( (lv_column_2_0= ruleTableValueElement ) ) ( (lv_ascending_3_0= 'ascending' ) )? |
| { |
| // InternalTableDSL.g:1174:3: () |
| // InternalTableDSL.g:1175:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getTablePreorderAccess().getTablePreorderAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,33,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTablePreorderAccess().getPreorderKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:1185:3: ( (lv_column_2_0= ruleTableValueElement ) ) |
| // InternalTableDSL.g:1186:4: (lv_column_2_0= ruleTableValueElement ) |
| { |
| // InternalTableDSL.g:1186:4: (lv_column_2_0= ruleTableValueElement ) |
| // InternalTableDSL.g:1187:5: lv_column_2_0= ruleTableValueElement |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTablePreorderAccess().getColumnTableValueElementParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_18); |
| lv_column_2_0=ruleTableValueElement(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTablePreorderRule()); |
| } |
| set( |
| current, |
| "column", |
| lv_column_2_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TableValueElement"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:1204:3: ( (lv_ascending_3_0= 'ascending' ) )? |
| int alt14=2; |
| int LA14_0 = input.LA(1); |
| |
| if ( (LA14_0==34) ) { |
| alt14=1; |
| } |
| switch (alt14) { |
| case 1 : |
| // InternalTableDSL.g:1205:4: (lv_ascending_3_0= 'ascending' ) |
| { |
| // InternalTableDSL.g:1205:4: (lv_ascending_3_0= 'ascending' ) |
| // InternalTableDSL.g:1206:5: lv_ascending_3_0= 'ascending' |
| { |
| lv_ascending_3_0=(Token)match(input,34,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_ascending_3_0, grammarAccess.getTablePreorderAccess().getAscendingAscendingKeyword_3_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTablePreorderRule()); |
| } |
| setWithLastConsumed(current, "ascending", true, "ascending"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTablePreorder" |
| |
| |
| // $ANTLR start "entryRuleTableValue" |
| // InternalTableDSL.g:1222:1: entryRuleTableValue returns [EObject current=null] : iv_ruleTableValue= ruleTableValue EOF ; |
| public final EObject entryRuleTableValue() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableValue = null; |
| |
| |
| try { |
| // InternalTableDSL.g:1222:51: (iv_ruleTableValue= ruleTableValue EOF ) |
| // InternalTableDSL.g:1223:2: iv_ruleTableValue= ruleTableValue EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableValueRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableValue=ruleTableValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableValue; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableValue" |
| |
| |
| // $ANTLR start "ruleTableValue" |
| // InternalTableDSL.g:1229:1: ruleTableValue returns [EObject current=null] : ( () otherlv_1= 'value' ( (lv_column_2_0= ruleTableValueElement ) ) ( ( ( ( ({...}? => ( ({...}? => ( (lv_collapsed_4_0= 'collapse' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'icon' ( (lv_iconName_6_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_formatter_7_0= ruleTableFormatter ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_hasImage_8_0= 'image' ) ) ( (lv_image_9_0= ruleTableImage ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_tooltipPattern_10_0= ruleTableTooltipPattern ) ) ) ) ) )* ) ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_12= 'intervals' ( (lv_hideLabelInterval_13_0= 'hidelabel' ) )? otherlv_14= '{' ( (lv_intervals_15_0= ruleTableInterval ) )* otherlv_16= '}' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_17= 'lookups' ( (lv_hideLabelLookup_18_0= 'hidelabel' ) )? otherlv_19= '{' ( (lv_lookups_20_0= ruleTableLookup ) )* otherlv_21= '}' ) ) ) ) )* ) ) ) ) ; |
| public final EObject ruleTableValue() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_collapsed_4_0=null; |
| Token otherlv_5=null; |
| Token lv_iconName_6_0=null; |
| Token lv_hasImage_8_0=null; |
| Token otherlv_12=null; |
| Token lv_hideLabelInterval_13_0=null; |
| Token otherlv_14=null; |
| Token otherlv_16=null; |
| Token otherlv_17=null; |
| Token lv_hideLabelLookup_18_0=null; |
| Token otherlv_19=null; |
| Token otherlv_21=null; |
| EObject lv_column_2_0 = null; |
| |
| EObject lv_formatter_7_0 = null; |
| |
| EObject lv_image_9_0 = null; |
| |
| EObject lv_tooltipPattern_10_0 = null; |
| |
| EObject lv_intervals_15_0 = null; |
| |
| EObject lv_lookups_20_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:1235:2: ( ( () otherlv_1= 'value' ( (lv_column_2_0= ruleTableValueElement ) ) ( ( ( ( ({...}? => ( ({...}? => ( (lv_collapsed_4_0= 'collapse' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'icon' ( (lv_iconName_6_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_formatter_7_0= ruleTableFormatter ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_hasImage_8_0= 'image' ) ) ( (lv_image_9_0= ruleTableImage ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_tooltipPattern_10_0= ruleTableTooltipPattern ) ) ) ) ) )* ) ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_12= 'intervals' ( (lv_hideLabelInterval_13_0= 'hidelabel' ) )? otherlv_14= '{' ( (lv_intervals_15_0= ruleTableInterval ) )* otherlv_16= '}' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_17= 'lookups' ( (lv_hideLabelLookup_18_0= 'hidelabel' ) )? otherlv_19= '{' ( (lv_lookups_20_0= ruleTableLookup ) )* otherlv_21= '}' ) ) ) ) )* ) ) ) ) ) |
| // InternalTableDSL.g:1236:2: ( () otherlv_1= 'value' ( (lv_column_2_0= ruleTableValueElement ) ) ( ( ( ( ({...}? => ( ({...}? => ( (lv_collapsed_4_0= 'collapse' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'icon' ( (lv_iconName_6_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_formatter_7_0= ruleTableFormatter ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_hasImage_8_0= 'image' ) ) ( (lv_image_9_0= ruleTableImage ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_tooltipPattern_10_0= ruleTableTooltipPattern ) ) ) ) ) )* ) ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_12= 'intervals' ( (lv_hideLabelInterval_13_0= 'hidelabel' ) )? otherlv_14= '{' ( (lv_intervals_15_0= ruleTableInterval ) )* otherlv_16= '}' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_17= 'lookups' ( (lv_hideLabelLookup_18_0= 'hidelabel' ) )? otherlv_19= '{' ( (lv_lookups_20_0= ruleTableLookup ) )* otherlv_21= '}' ) ) ) ) )* ) ) ) ) |
| { |
| // InternalTableDSL.g:1236:2: ( () otherlv_1= 'value' ( (lv_column_2_0= ruleTableValueElement ) ) ( ( ( ( ({...}? => ( ({...}? => ( (lv_collapsed_4_0= 'collapse' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'icon' ( (lv_iconName_6_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_formatter_7_0= ruleTableFormatter ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_hasImage_8_0= 'image' ) ) ( (lv_image_9_0= ruleTableImage ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_tooltipPattern_10_0= ruleTableTooltipPattern ) ) ) ) ) )* ) ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_12= 'intervals' ( (lv_hideLabelInterval_13_0= 'hidelabel' ) )? otherlv_14= '{' ( (lv_intervals_15_0= ruleTableInterval ) )* otherlv_16= '}' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_17= 'lookups' ( (lv_hideLabelLookup_18_0= 'hidelabel' ) )? otherlv_19= '{' ( (lv_lookups_20_0= ruleTableLookup ) )* otherlv_21= '}' ) ) ) ) )* ) ) ) ) |
| // InternalTableDSL.g:1237:3: () otherlv_1= 'value' ( (lv_column_2_0= ruleTableValueElement ) ) ( ( ( ( ({...}? => ( ({...}? => ( (lv_collapsed_4_0= 'collapse' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'icon' ( (lv_iconName_6_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_formatter_7_0= ruleTableFormatter ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_hasImage_8_0= 'image' ) ) ( (lv_image_9_0= ruleTableImage ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_tooltipPattern_10_0= ruleTableTooltipPattern ) ) ) ) ) )* ) ) ) ( ( ( ( ({...}? => ( ({...}? => (otherlv_12= 'intervals' ( (lv_hideLabelInterval_13_0= 'hidelabel' ) )? otherlv_14= '{' ( (lv_intervals_15_0= ruleTableInterval ) )* otherlv_16= '}' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_17= 'lookups' ( (lv_hideLabelLookup_18_0= 'hidelabel' ) )? otherlv_19= '{' ( (lv_lookups_20_0= ruleTableLookup ) )* otherlv_21= '}' ) ) ) ) )* ) ) ) |
| { |
| // InternalTableDSL.g:1237:3: () |
| // InternalTableDSL.g:1238:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getTableValueAccess().getTableValueAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,35,FOLLOW_17); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTableValueAccess().getValueKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:1248:3: ( (lv_column_2_0= ruleTableValueElement ) ) |
| // InternalTableDSL.g:1249:4: (lv_column_2_0= ruleTableValueElement ) |
| { |
| // InternalTableDSL.g:1249:4: (lv_column_2_0= ruleTableValueElement ) |
| // InternalTableDSL.g:1250:5: lv_column_2_0= ruleTableValueElement |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableValueAccess().getColumnTableValueElementParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_19); |
| lv_column_2_0=ruleTableValueElement(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableValueRule()); |
| } |
| set( |
| current, |
| "column", |
| lv_column_2_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TableValueElement"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:1267:3: ( ( ( ( ({...}? => ( ({...}? => ( (lv_collapsed_4_0= 'collapse' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'icon' ( (lv_iconName_6_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_formatter_7_0= ruleTableFormatter ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_hasImage_8_0= 'image' ) ) ( (lv_image_9_0= ruleTableImage ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_tooltipPattern_10_0= ruleTableTooltipPattern ) ) ) ) ) )* ) ) ) |
| // InternalTableDSL.g:1268:4: ( ( ( ({...}? => ( ({...}? => ( (lv_collapsed_4_0= 'collapse' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'icon' ( (lv_iconName_6_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_formatter_7_0= ruleTableFormatter ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_hasImage_8_0= 'image' ) ) ( (lv_image_9_0= ruleTableImage ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_tooltipPattern_10_0= ruleTableTooltipPattern ) ) ) ) ) )* ) ) |
| { |
| // InternalTableDSL.g:1268:4: ( ( ( ({...}? => ( ({...}? => ( (lv_collapsed_4_0= 'collapse' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'icon' ( (lv_iconName_6_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_formatter_7_0= ruleTableFormatter ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_hasImage_8_0= 'image' ) ) ( (lv_image_9_0= ruleTableImage ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_tooltipPattern_10_0= ruleTableTooltipPattern ) ) ) ) ) )* ) ) |
| // InternalTableDSL.g:1269:5: ( ( ({...}? => ( ({...}? => ( (lv_collapsed_4_0= 'collapse' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'icon' ( (lv_iconName_6_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_formatter_7_0= ruleTableFormatter ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_hasImage_8_0= 'image' ) ) ( (lv_image_9_0= ruleTableImage ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_tooltipPattern_10_0= ruleTableTooltipPattern ) ) ) ) ) )* ) |
| { |
| getUnorderedGroupHelper().enter(grammarAccess.getTableValueAccess().getUnorderedGroup_3()); |
| // InternalTableDSL.g:1272:5: ( ( ({...}? => ( ({...}? => ( (lv_collapsed_4_0= 'collapse' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'icon' ( (lv_iconName_6_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_formatter_7_0= ruleTableFormatter ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_hasImage_8_0= 'image' ) ) ( (lv_image_9_0= ruleTableImage ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_tooltipPattern_10_0= ruleTableTooltipPattern ) ) ) ) ) )* ) |
| // InternalTableDSL.g:1273:6: ( ({...}? => ( ({...}? => ( (lv_collapsed_4_0= 'collapse' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'icon' ( (lv_iconName_6_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_formatter_7_0= ruleTableFormatter ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_hasImage_8_0= 'image' ) ) ( (lv_image_9_0= ruleTableImage ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_tooltipPattern_10_0= ruleTableTooltipPattern ) ) ) ) ) )* |
| { |
| // InternalTableDSL.g:1273:6: ( ({...}? => ( ({...}? => ( (lv_collapsed_4_0= 'collapse' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_5= 'icon' ( (lv_iconName_6_0= RULE_STRING ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_formatter_7_0= ruleTableFormatter ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_hasImage_8_0= 'image' ) ) ( (lv_image_9_0= ruleTableImage ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_tooltipPattern_10_0= ruleTableTooltipPattern ) ) ) ) ) )* |
| loop15: |
| do { |
| int alt15=6; |
| int LA15_0 = input.LA(1); |
| |
| if ( LA15_0 == 36 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableValueAccess().getUnorderedGroup_3(), 0) ) { |
| alt15=1; |
| } |
| else if ( LA15_0 == 37 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableValueAccess().getUnorderedGroup_3(), 1) ) { |
| alt15=2; |
| } |
| else if ( LA15_0 == 42 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableValueAccess().getUnorderedGroup_3(), 2) ) { |
| alt15=3; |
| } |
| else if ( LA15_0 == 38 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableValueAccess().getUnorderedGroup_3(), 3) ) { |
| alt15=4; |
| } |
| else if ( LA15_0 == 46 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableValueAccess().getUnorderedGroup_3(), 4) ) { |
| alt15=5; |
| } |
| |
| |
| switch (alt15) { |
| case 1 : |
| // InternalTableDSL.g:1274:4: ({...}? => ( ({...}? => ( (lv_collapsed_4_0= 'collapse' ) ) ) ) ) |
| { |
| // InternalTableDSL.g:1274:4: ({...}? => ( ({...}? => ( (lv_collapsed_4_0= 'collapse' ) ) ) ) ) |
| // InternalTableDSL.g:1275:5: {...}? => ( ({...}? => ( (lv_collapsed_4_0= 'collapse' ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableValueAccess().getUnorderedGroup_3(), 0) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableValue", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableValueAccess().getUnorderedGroup_3(), 0)"); |
| } |
| // InternalTableDSL.g:1275:107: ( ({...}? => ( (lv_collapsed_4_0= 'collapse' ) ) ) ) |
| // InternalTableDSL.g:1276:6: ({...}? => ( (lv_collapsed_4_0= 'collapse' ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableValueAccess().getUnorderedGroup_3(), 0); |
| // InternalTableDSL.g:1279:9: ({...}? => ( (lv_collapsed_4_0= 'collapse' ) ) ) |
| // InternalTableDSL.g:1279:10: {...}? => ( (lv_collapsed_4_0= 'collapse' ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableValue", "true"); |
| } |
| // InternalTableDSL.g:1279:19: ( (lv_collapsed_4_0= 'collapse' ) ) |
| // InternalTableDSL.g:1279:20: (lv_collapsed_4_0= 'collapse' ) |
| { |
| // InternalTableDSL.g:1279:20: (lv_collapsed_4_0= 'collapse' ) |
| // InternalTableDSL.g:1280:10: lv_collapsed_4_0= 'collapse' |
| { |
| lv_collapsed_4_0=(Token)match(input,36,FOLLOW_19); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_collapsed_4_0, grammarAccess.getTableValueAccess().getCollapsedCollapseKeyword_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableValueRule()); |
| } |
| setWithLastConsumed(current, "collapsed", true, "collapse"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableValueAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:1297:4: ({...}? => ( ({...}? => (otherlv_5= 'icon' ( (lv_iconName_6_0= RULE_STRING ) ) ) ) ) ) |
| { |
| // InternalTableDSL.g:1297:4: ({...}? => ( ({...}? => (otherlv_5= 'icon' ( (lv_iconName_6_0= RULE_STRING ) ) ) ) ) ) |
| // InternalTableDSL.g:1298:5: {...}? => ( ({...}? => (otherlv_5= 'icon' ( (lv_iconName_6_0= RULE_STRING ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableValueAccess().getUnorderedGroup_3(), 1) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableValue", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableValueAccess().getUnorderedGroup_3(), 1)"); |
| } |
| // InternalTableDSL.g:1298:107: ( ({...}? => (otherlv_5= 'icon' ( (lv_iconName_6_0= RULE_STRING ) ) ) ) ) |
| // InternalTableDSL.g:1299:6: ({...}? => (otherlv_5= 'icon' ( (lv_iconName_6_0= RULE_STRING ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableValueAccess().getUnorderedGroup_3(), 1); |
| // InternalTableDSL.g:1302:9: ({...}? => (otherlv_5= 'icon' ( (lv_iconName_6_0= RULE_STRING ) ) ) ) |
| // InternalTableDSL.g:1302:10: {...}? => (otherlv_5= 'icon' ( (lv_iconName_6_0= RULE_STRING ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableValue", "true"); |
| } |
| // InternalTableDSL.g:1302:19: (otherlv_5= 'icon' ( (lv_iconName_6_0= RULE_STRING ) ) ) |
| // InternalTableDSL.g:1302:20: otherlv_5= 'icon' ( (lv_iconName_6_0= RULE_STRING ) ) |
| { |
| otherlv_5=(Token)match(input,37,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getTableValueAccess().getIconKeyword_3_1_0()); |
| |
| } |
| // InternalTableDSL.g:1306:9: ( (lv_iconName_6_0= RULE_STRING ) ) |
| // InternalTableDSL.g:1307:10: (lv_iconName_6_0= RULE_STRING ) |
| { |
| // InternalTableDSL.g:1307:10: (lv_iconName_6_0= RULE_STRING ) |
| // InternalTableDSL.g:1308:11: lv_iconName_6_0= RULE_STRING |
| { |
| lv_iconName_6_0=(Token)match(input,RULE_STRING,FOLLOW_19); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_iconName_6_0, grammarAccess.getTableValueAccess().getIconNameSTRINGTerminalRuleCall_3_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableValueRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "iconName", |
| lv_iconName_6_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableValueAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalTableDSL.g:1330:4: ({...}? => ( ({...}? => ( (lv_formatter_7_0= ruleTableFormatter ) ) ) ) ) |
| { |
| // InternalTableDSL.g:1330:4: ({...}? => ( ({...}? => ( (lv_formatter_7_0= ruleTableFormatter ) ) ) ) ) |
| // InternalTableDSL.g:1331:5: {...}? => ( ({...}? => ( (lv_formatter_7_0= ruleTableFormatter ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableValueAccess().getUnorderedGroup_3(), 2) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableValue", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableValueAccess().getUnorderedGroup_3(), 2)"); |
| } |
| // InternalTableDSL.g:1331:107: ( ({...}? => ( (lv_formatter_7_0= ruleTableFormatter ) ) ) ) |
| // InternalTableDSL.g:1332:6: ({...}? => ( (lv_formatter_7_0= ruleTableFormatter ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableValueAccess().getUnorderedGroup_3(), 2); |
| // InternalTableDSL.g:1335:9: ({...}? => ( (lv_formatter_7_0= ruleTableFormatter ) ) ) |
| // InternalTableDSL.g:1335:10: {...}? => ( (lv_formatter_7_0= ruleTableFormatter ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableValue", "true"); |
| } |
| // InternalTableDSL.g:1335:19: ( (lv_formatter_7_0= ruleTableFormatter ) ) |
| // InternalTableDSL.g:1335:20: (lv_formatter_7_0= ruleTableFormatter ) |
| { |
| // InternalTableDSL.g:1335:20: (lv_formatter_7_0= ruleTableFormatter ) |
| // InternalTableDSL.g:1336:10: lv_formatter_7_0= ruleTableFormatter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableValueAccess().getFormatterTableFormatterParserRuleCall_3_2_0()); |
| |
| } |
| pushFollow(FOLLOW_19); |
| lv_formatter_7_0=ruleTableFormatter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableValueRule()); |
| } |
| set( |
| current, |
| "formatter", |
| lv_formatter_7_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TableFormatter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableValueAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalTableDSL.g:1358:4: ({...}? => ( ({...}? => ( ( (lv_hasImage_8_0= 'image' ) ) ( (lv_image_9_0= ruleTableImage ) ) ) ) ) ) |
| { |
| // InternalTableDSL.g:1358:4: ({...}? => ( ({...}? => ( ( (lv_hasImage_8_0= 'image' ) ) ( (lv_image_9_0= ruleTableImage ) ) ) ) ) ) |
| // InternalTableDSL.g:1359:5: {...}? => ( ({...}? => ( ( (lv_hasImage_8_0= 'image' ) ) ( (lv_image_9_0= ruleTableImage ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableValueAccess().getUnorderedGroup_3(), 3) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableValue", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableValueAccess().getUnorderedGroup_3(), 3)"); |
| } |
| // InternalTableDSL.g:1359:107: ( ({...}? => ( ( (lv_hasImage_8_0= 'image' ) ) ( (lv_image_9_0= ruleTableImage ) ) ) ) ) |
| // InternalTableDSL.g:1360:6: ({...}? => ( ( (lv_hasImage_8_0= 'image' ) ) ( (lv_image_9_0= ruleTableImage ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableValueAccess().getUnorderedGroup_3(), 3); |
| // InternalTableDSL.g:1363:9: ({...}? => ( ( (lv_hasImage_8_0= 'image' ) ) ( (lv_image_9_0= ruleTableImage ) ) ) ) |
| // InternalTableDSL.g:1363:10: {...}? => ( ( (lv_hasImage_8_0= 'image' ) ) ( (lv_image_9_0= ruleTableImage ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableValue", "true"); |
| } |
| // InternalTableDSL.g:1363:19: ( ( (lv_hasImage_8_0= 'image' ) ) ( (lv_image_9_0= ruleTableImage ) ) ) |
| // InternalTableDSL.g:1363:20: ( (lv_hasImage_8_0= 'image' ) ) ( (lv_image_9_0= ruleTableImage ) ) |
| { |
| // InternalTableDSL.g:1363:20: ( (lv_hasImage_8_0= 'image' ) ) |
| // InternalTableDSL.g:1364:10: (lv_hasImage_8_0= 'image' ) |
| { |
| // InternalTableDSL.g:1364:10: (lv_hasImage_8_0= 'image' ) |
| // InternalTableDSL.g:1365:11: lv_hasImage_8_0= 'image' |
| { |
| lv_hasImage_8_0=(Token)match(input,38,FOLLOW_20); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_hasImage_8_0, grammarAccess.getTableValueAccess().getHasImageImageKeyword_3_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableValueRule()); |
| } |
| setWithLastConsumed(current, "hasImage", true, "image"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:1377:9: ( (lv_image_9_0= ruleTableImage ) ) |
| // InternalTableDSL.g:1378:10: (lv_image_9_0= ruleTableImage ) |
| { |
| // InternalTableDSL.g:1378:10: (lv_image_9_0= ruleTableImage ) |
| // InternalTableDSL.g:1379:11: lv_image_9_0= ruleTableImage |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableValueAccess().getImageTableImageParserRuleCall_3_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_19); |
| lv_image_9_0=ruleTableImage(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableValueRule()); |
| } |
| set( |
| current, |
| "image", |
| lv_image_9_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TableImage"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableValueAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalTableDSL.g:1402:4: ({...}? => ( ({...}? => ( (lv_tooltipPattern_10_0= ruleTableTooltipPattern ) ) ) ) ) |
| { |
| // InternalTableDSL.g:1402:4: ({...}? => ( ({...}? => ( (lv_tooltipPattern_10_0= ruleTableTooltipPattern ) ) ) ) ) |
| // InternalTableDSL.g:1403:5: {...}? => ( ({...}? => ( (lv_tooltipPattern_10_0= ruleTableTooltipPattern ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableValueAccess().getUnorderedGroup_3(), 4) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableValue", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableValueAccess().getUnorderedGroup_3(), 4)"); |
| } |
| // InternalTableDSL.g:1403:107: ( ({...}? => ( (lv_tooltipPattern_10_0= ruleTableTooltipPattern ) ) ) ) |
| // InternalTableDSL.g:1404:6: ({...}? => ( (lv_tooltipPattern_10_0= ruleTableTooltipPattern ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableValueAccess().getUnorderedGroup_3(), 4); |
| // InternalTableDSL.g:1407:9: ({...}? => ( (lv_tooltipPattern_10_0= ruleTableTooltipPattern ) ) ) |
| // InternalTableDSL.g:1407:10: {...}? => ( (lv_tooltipPattern_10_0= ruleTableTooltipPattern ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableValue", "true"); |
| } |
| // InternalTableDSL.g:1407:19: ( (lv_tooltipPattern_10_0= ruleTableTooltipPattern ) ) |
| // InternalTableDSL.g:1407:20: (lv_tooltipPattern_10_0= ruleTableTooltipPattern ) |
| { |
| // InternalTableDSL.g:1407:20: (lv_tooltipPattern_10_0= ruleTableTooltipPattern ) |
| // InternalTableDSL.g:1408:10: lv_tooltipPattern_10_0= ruleTableTooltipPattern |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableValueAccess().getTooltipPatternTableTooltipPatternParserRuleCall_3_4_0()); |
| |
| } |
| pushFollow(FOLLOW_19); |
| lv_tooltipPattern_10_0=ruleTableTooltipPattern(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableValueRule()); |
| } |
| set( |
| current, |
| "tooltipPattern", |
| lv_tooltipPattern_10_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TableTooltipPattern"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableValueAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop15; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().leave(grammarAccess.getTableValueAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| // InternalTableDSL.g:1437:3: ( ( ( ( ({...}? => ( ({...}? => (otherlv_12= 'intervals' ( (lv_hideLabelInterval_13_0= 'hidelabel' ) )? otherlv_14= '{' ( (lv_intervals_15_0= ruleTableInterval ) )* otherlv_16= '}' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_17= 'lookups' ( (lv_hideLabelLookup_18_0= 'hidelabel' ) )? otherlv_19= '{' ( (lv_lookups_20_0= ruleTableLookup ) )* otherlv_21= '}' ) ) ) ) )* ) ) ) |
| // InternalTableDSL.g:1438:4: ( ( ( ({...}? => ( ({...}? => (otherlv_12= 'intervals' ( (lv_hideLabelInterval_13_0= 'hidelabel' ) )? otherlv_14= '{' ( (lv_intervals_15_0= ruleTableInterval ) )* otherlv_16= '}' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_17= 'lookups' ( (lv_hideLabelLookup_18_0= 'hidelabel' ) )? otherlv_19= '{' ( (lv_lookups_20_0= ruleTableLookup ) )* otherlv_21= '}' ) ) ) ) )* ) ) |
| { |
| // InternalTableDSL.g:1438:4: ( ( ( ({...}? => ( ({...}? => (otherlv_12= 'intervals' ( (lv_hideLabelInterval_13_0= 'hidelabel' ) )? otherlv_14= '{' ( (lv_intervals_15_0= ruleTableInterval ) )* otherlv_16= '}' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_17= 'lookups' ( (lv_hideLabelLookup_18_0= 'hidelabel' ) )? otherlv_19= '{' ( (lv_lookups_20_0= ruleTableLookup ) )* otherlv_21= '}' ) ) ) ) )* ) ) |
| // InternalTableDSL.g:1439:5: ( ( ({...}? => ( ({...}? => (otherlv_12= 'intervals' ( (lv_hideLabelInterval_13_0= 'hidelabel' ) )? otherlv_14= '{' ( (lv_intervals_15_0= ruleTableInterval ) )* otherlv_16= '}' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_17= 'lookups' ( (lv_hideLabelLookup_18_0= 'hidelabel' ) )? otherlv_19= '{' ( (lv_lookups_20_0= ruleTableLookup ) )* otherlv_21= '}' ) ) ) ) )* ) |
| { |
| getUnorderedGroupHelper().enter(grammarAccess.getTableValueAccess().getUnorderedGroup_4()); |
| // InternalTableDSL.g:1442:5: ( ( ({...}? => ( ({...}? => (otherlv_12= 'intervals' ( (lv_hideLabelInterval_13_0= 'hidelabel' ) )? otherlv_14= '{' ( (lv_intervals_15_0= ruleTableInterval ) )* otherlv_16= '}' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_17= 'lookups' ( (lv_hideLabelLookup_18_0= 'hidelabel' ) )? otherlv_19= '{' ( (lv_lookups_20_0= ruleTableLookup ) )* otherlv_21= '}' ) ) ) ) )* ) |
| // InternalTableDSL.g:1443:6: ( ({...}? => ( ({...}? => (otherlv_12= 'intervals' ( (lv_hideLabelInterval_13_0= 'hidelabel' ) )? otherlv_14= '{' ( (lv_intervals_15_0= ruleTableInterval ) )* otherlv_16= '}' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_17= 'lookups' ( (lv_hideLabelLookup_18_0= 'hidelabel' ) )? otherlv_19= '{' ( (lv_lookups_20_0= ruleTableLookup ) )* otherlv_21= '}' ) ) ) ) )* |
| { |
| // InternalTableDSL.g:1443:6: ( ({...}? => ( ({...}? => (otherlv_12= 'intervals' ( (lv_hideLabelInterval_13_0= 'hidelabel' ) )? otherlv_14= '{' ( (lv_intervals_15_0= ruleTableInterval ) )* otherlv_16= '}' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_17= 'lookups' ( (lv_hideLabelLookup_18_0= 'hidelabel' ) )? otherlv_19= '{' ( (lv_lookups_20_0= ruleTableLookup ) )* otherlv_21= '}' ) ) ) ) )* |
| loop20: |
| do { |
| int alt20=3; |
| int LA20_0 = input.LA(1); |
| |
| if ( LA20_0 == 39 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableValueAccess().getUnorderedGroup_4(), 0) ) { |
| alt20=1; |
| } |
| else if ( LA20_0 == 41 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableValueAccess().getUnorderedGroup_4(), 1) ) { |
| alt20=2; |
| } |
| |
| |
| switch (alt20) { |
| case 1 : |
| // InternalTableDSL.g:1444:4: ({...}? => ( ({...}? => (otherlv_12= 'intervals' ( (lv_hideLabelInterval_13_0= 'hidelabel' ) )? otherlv_14= '{' ( (lv_intervals_15_0= ruleTableInterval ) )* otherlv_16= '}' ) ) ) ) |
| { |
| // InternalTableDSL.g:1444:4: ({...}? => ( ({...}? => (otherlv_12= 'intervals' ( (lv_hideLabelInterval_13_0= 'hidelabel' ) )? otherlv_14= '{' ( (lv_intervals_15_0= ruleTableInterval ) )* otherlv_16= '}' ) ) ) ) |
| // InternalTableDSL.g:1445:5: {...}? => ( ({...}? => (otherlv_12= 'intervals' ( (lv_hideLabelInterval_13_0= 'hidelabel' ) )? otherlv_14= '{' ( (lv_intervals_15_0= ruleTableInterval ) )* otherlv_16= '}' ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableValueAccess().getUnorderedGroup_4(), 0) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableValue", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableValueAccess().getUnorderedGroup_4(), 0)"); |
| } |
| // InternalTableDSL.g:1445:107: ( ({...}? => (otherlv_12= 'intervals' ( (lv_hideLabelInterval_13_0= 'hidelabel' ) )? otherlv_14= '{' ( (lv_intervals_15_0= ruleTableInterval ) )* otherlv_16= '}' ) ) ) |
| // InternalTableDSL.g:1446:6: ({...}? => (otherlv_12= 'intervals' ( (lv_hideLabelInterval_13_0= 'hidelabel' ) )? otherlv_14= '{' ( (lv_intervals_15_0= ruleTableInterval ) )* otherlv_16= '}' ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableValueAccess().getUnorderedGroup_4(), 0); |
| // InternalTableDSL.g:1449:9: ({...}? => (otherlv_12= 'intervals' ( (lv_hideLabelInterval_13_0= 'hidelabel' ) )? otherlv_14= '{' ( (lv_intervals_15_0= ruleTableInterval ) )* otherlv_16= '}' ) ) |
| // InternalTableDSL.g:1449:10: {...}? => (otherlv_12= 'intervals' ( (lv_hideLabelInterval_13_0= 'hidelabel' ) )? otherlv_14= '{' ( (lv_intervals_15_0= ruleTableInterval ) )* otherlv_16= '}' ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableValue", "true"); |
| } |
| // InternalTableDSL.g:1449:19: (otherlv_12= 'intervals' ( (lv_hideLabelInterval_13_0= 'hidelabel' ) )? otherlv_14= '{' ( (lv_intervals_15_0= ruleTableInterval ) )* otherlv_16= '}' ) |
| // InternalTableDSL.g:1449:20: otherlv_12= 'intervals' ( (lv_hideLabelInterval_13_0= 'hidelabel' ) )? otherlv_14= '{' ( (lv_intervals_15_0= ruleTableInterval ) )* otherlv_16= '}' |
| { |
| otherlv_12=(Token)match(input,39,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getTableValueAccess().getIntervalsKeyword_4_0_0()); |
| |
| } |
| // InternalTableDSL.g:1453:9: ( (lv_hideLabelInterval_13_0= 'hidelabel' ) )? |
| int alt16=2; |
| int LA16_0 = input.LA(1); |
| |
| if ( (LA16_0==40) ) { |
| alt16=1; |
| } |
| switch (alt16) { |
| case 1 : |
| // InternalTableDSL.g:1454:10: (lv_hideLabelInterval_13_0= 'hidelabel' ) |
| { |
| // InternalTableDSL.g:1454:10: (lv_hideLabelInterval_13_0= 'hidelabel' ) |
| // InternalTableDSL.g:1455:11: lv_hideLabelInterval_13_0= 'hidelabel' |
| { |
| lv_hideLabelInterval_13_0=(Token)match(input,40,FOLLOW_22); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_hideLabelInterval_13_0, grammarAccess.getTableValueAccess().getHideLabelIntervalHidelabelKeyword_4_0_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableValueRule()); |
| } |
| setWithLastConsumed(current, "hideLabelInterval", true, "hidelabel"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_14=(Token)match(input,16,FOLLOW_23); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_14, grammarAccess.getTableValueAccess().getLeftCurlyBracketKeyword_4_0_2()); |
| |
| } |
| // InternalTableDSL.g:1471:9: ( (lv_intervals_15_0= ruleTableInterval ) )* |
| loop17: |
| do { |
| int alt17=2; |
| int LA17_0 = input.LA(1); |
| |
| if ( ((LA17_0>=56 && LA17_0<=58)) ) { |
| alt17=1; |
| } |
| |
| |
| switch (alt17) { |
| case 1 : |
| // InternalTableDSL.g:1472:10: (lv_intervals_15_0= ruleTableInterval ) |
| { |
| // InternalTableDSL.g:1472:10: (lv_intervals_15_0= ruleTableInterval ) |
| // InternalTableDSL.g:1473:11: lv_intervals_15_0= ruleTableInterval |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableValueAccess().getIntervalsTableIntervalParserRuleCall_4_0_3_0()); |
| |
| } |
| pushFollow(FOLLOW_23); |
| lv_intervals_15_0=ruleTableInterval(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableValueRule()); |
| } |
| add( |
| current, |
| "intervals", |
| lv_intervals_15_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TableInterval"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop17; |
| } |
| } while (true); |
| |
| otherlv_16=(Token)match(input,17,FOLLOW_24); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_16, grammarAccess.getTableValueAccess().getRightCurlyBracketKeyword_4_0_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableValueAccess().getUnorderedGroup_4()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:1500:4: ({...}? => ( ({...}? => (otherlv_17= 'lookups' ( (lv_hideLabelLookup_18_0= 'hidelabel' ) )? otherlv_19= '{' ( (lv_lookups_20_0= ruleTableLookup ) )* otherlv_21= '}' ) ) ) ) |
| { |
| // InternalTableDSL.g:1500:4: ({...}? => ( ({...}? => (otherlv_17= 'lookups' ( (lv_hideLabelLookup_18_0= 'hidelabel' ) )? otherlv_19= '{' ( (lv_lookups_20_0= ruleTableLookup ) )* otherlv_21= '}' ) ) ) ) |
| // InternalTableDSL.g:1501:5: {...}? => ( ({...}? => (otherlv_17= 'lookups' ( (lv_hideLabelLookup_18_0= 'hidelabel' ) )? otherlv_19= '{' ( (lv_lookups_20_0= ruleTableLookup ) )* otherlv_21= '}' ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableValueAccess().getUnorderedGroup_4(), 1) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableValue", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableValueAccess().getUnorderedGroup_4(), 1)"); |
| } |
| // InternalTableDSL.g:1501:107: ( ({...}? => (otherlv_17= 'lookups' ( (lv_hideLabelLookup_18_0= 'hidelabel' ) )? otherlv_19= '{' ( (lv_lookups_20_0= ruleTableLookup ) )* otherlv_21= '}' ) ) ) |
| // InternalTableDSL.g:1502:6: ({...}? => (otherlv_17= 'lookups' ( (lv_hideLabelLookup_18_0= 'hidelabel' ) )? otherlv_19= '{' ( (lv_lookups_20_0= ruleTableLookup ) )* otherlv_21= '}' ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableValueAccess().getUnorderedGroup_4(), 1); |
| // InternalTableDSL.g:1505:9: ({...}? => (otherlv_17= 'lookups' ( (lv_hideLabelLookup_18_0= 'hidelabel' ) )? otherlv_19= '{' ( (lv_lookups_20_0= ruleTableLookup ) )* otherlv_21= '}' ) ) |
| // InternalTableDSL.g:1505:10: {...}? => (otherlv_17= 'lookups' ( (lv_hideLabelLookup_18_0= 'hidelabel' ) )? otherlv_19= '{' ( (lv_lookups_20_0= ruleTableLookup ) )* otherlv_21= '}' ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableValue", "true"); |
| } |
| // InternalTableDSL.g:1505:19: (otherlv_17= 'lookups' ( (lv_hideLabelLookup_18_0= 'hidelabel' ) )? otherlv_19= '{' ( (lv_lookups_20_0= ruleTableLookup ) )* otherlv_21= '}' ) |
| // InternalTableDSL.g:1505:20: otherlv_17= 'lookups' ( (lv_hideLabelLookup_18_0= 'hidelabel' ) )? otherlv_19= '{' ( (lv_lookups_20_0= ruleTableLookup ) )* otherlv_21= '}' |
| { |
| otherlv_17=(Token)match(input,41,FOLLOW_21); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_17, grammarAccess.getTableValueAccess().getLookupsKeyword_4_1_0()); |
| |
| } |
| // InternalTableDSL.g:1509:9: ( (lv_hideLabelLookup_18_0= 'hidelabel' ) )? |
| int alt18=2; |
| int LA18_0 = input.LA(1); |
| |
| if ( (LA18_0==40) ) { |
| alt18=1; |
| } |
| switch (alt18) { |
| case 1 : |
| // InternalTableDSL.g:1510:10: (lv_hideLabelLookup_18_0= 'hidelabel' ) |
| { |
| // InternalTableDSL.g:1510:10: (lv_hideLabelLookup_18_0= 'hidelabel' ) |
| // InternalTableDSL.g:1511:11: lv_hideLabelLookup_18_0= 'hidelabel' |
| { |
| lv_hideLabelLookup_18_0=(Token)match(input,40,FOLLOW_22); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_hideLabelLookup_18_0, grammarAccess.getTableValueAccess().getHideLabelLookupHidelabelKeyword_4_1_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableValueRule()); |
| } |
| setWithLastConsumed(current, "hideLabelLookup", true, "hidelabel"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_19=(Token)match(input,16,FOLLOW_25); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_19, grammarAccess.getTableValueAccess().getLeftCurlyBracketKeyword_4_1_2()); |
| |
| } |
| // InternalTableDSL.g:1527:9: ( (lv_lookups_20_0= ruleTableLookup ) )* |
| loop19: |
| do { |
| int alt19=2; |
| int LA19_0 = input.LA(1); |
| |
| if ( ((LA19_0>=58 && LA19_0<=61)) ) { |
| alt19=1; |
| } |
| |
| |
| switch (alt19) { |
| case 1 : |
| // InternalTableDSL.g:1528:10: (lv_lookups_20_0= ruleTableLookup ) |
| { |
| // InternalTableDSL.g:1528:10: (lv_lookups_20_0= ruleTableLookup ) |
| // InternalTableDSL.g:1529:11: lv_lookups_20_0= ruleTableLookup |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableValueAccess().getLookupsTableLookupParserRuleCall_4_1_3_0()); |
| |
| } |
| pushFollow(FOLLOW_25); |
| lv_lookups_20_0=ruleTableLookup(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableValueRule()); |
| } |
| add( |
| current, |
| "lookups", |
| lv_lookups_20_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TableLookup"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop19; |
| } |
| } while (true); |
| |
| otherlv_21=(Token)match(input,17,FOLLOW_24); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_21, grammarAccess.getTableValueAccess().getRightCurlyBracketKeyword_4_1_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableValueAccess().getUnorderedGroup_4()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop20; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().leave(grammarAccess.getTableValueAccess().getUnorderedGroup_4()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableValue" |
| |
| |
| // $ANTLR start "entryRuleTableFormatter" |
| // InternalTableDSL.g:1567:1: entryRuleTableFormatter returns [EObject current=null] : iv_ruleTableFormatter= ruleTableFormatter EOF ; |
| public final EObject entryRuleTableFormatter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableFormatter = null; |
| |
| |
| try { |
| // InternalTableDSL.g:1567:55: (iv_ruleTableFormatter= ruleTableFormatter EOF ) |
| // InternalTableDSL.g:1568:2: iv_ruleTableFormatter= ruleTableFormatter EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableFormatterRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableFormatter=ruleTableFormatter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableFormatter; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableFormatter" |
| |
| |
| // $ANTLR start "ruleTableFormatter" |
| // InternalTableDSL.g:1574:1: ruleTableFormatter returns [EObject current=null] : ( () otherlv_1= 'formatter' ( (lv_format_2_0= RULE_STRING ) ) ) ; |
| public final EObject ruleTableFormatter() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_format_2_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:1580:2: ( ( () otherlv_1= 'formatter' ( (lv_format_2_0= RULE_STRING ) ) ) ) |
| // InternalTableDSL.g:1581:2: ( () otherlv_1= 'formatter' ( (lv_format_2_0= RULE_STRING ) ) ) |
| { |
| // InternalTableDSL.g:1581:2: ( () otherlv_1= 'formatter' ( (lv_format_2_0= RULE_STRING ) ) ) |
| // InternalTableDSL.g:1582:3: () otherlv_1= 'formatter' ( (lv_format_2_0= RULE_STRING ) ) |
| { |
| // InternalTableDSL.g:1582:3: () |
| // InternalTableDSL.g:1583:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getTableFormatterAccess().getTableFormatterAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,42,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTableFormatterAccess().getFormatterKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:1593:3: ( (lv_format_2_0= RULE_STRING ) ) |
| // InternalTableDSL.g:1594:4: (lv_format_2_0= RULE_STRING ) |
| { |
| // InternalTableDSL.g:1594:4: (lv_format_2_0= RULE_STRING ) |
| // InternalTableDSL.g:1595:5: lv_format_2_0= RULE_STRING |
| { |
| lv_format_2_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_format_2_0, grammarAccess.getTableFormatterAccess().getFormatSTRINGTerminalRuleCall_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableFormatterRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "format", |
| lv_format_2_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableFormatter" |
| |
| |
| // $ANTLR start "entryRuleTableImage" |
| // InternalTableDSL.g:1615:1: entryRuleTableImage returns [EObject current=null] : iv_ruleTableImage= ruleTableImage EOF ; |
| public final EObject entryRuleTableImage() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableImage = null; |
| |
| |
| try { |
| // InternalTableDSL.g:1615:51: (iv_ruleTableImage= ruleTableImage EOF ) |
| // InternalTableDSL.g:1616:2: iv_ruleTableImage= ruleTableImage EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableImageRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableImage=ruleTableImage(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableImage; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableImage" |
| |
| |
| // $ANTLR start "ruleTableImage" |
| // InternalTableDSL.g:1622:1: ruleTableImage returns [EObject current=null] : ( () otherlv_1= 'path' ( (lv_imagePathPattern_2_0= RULE_STRING ) ) ( ( ( ( ({...}? => ( ({...}? => ( (lv_hasParameter_4_0= 'dynamic' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_hideImageLabel_5_0= 'hidelabel' ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_resize_6_0= 'resize' ) ) ( (lv_resizeString_7_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) ) ; |
| public final EObject ruleTableImage() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_imagePathPattern_2_0=null; |
| Token lv_hasParameter_4_0=null; |
| Token lv_hideImageLabel_5_0=null; |
| Token lv_resize_6_0=null; |
| Token lv_resizeString_7_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:1628:2: ( ( () otherlv_1= 'path' ( (lv_imagePathPattern_2_0= RULE_STRING ) ) ( ( ( ( ({...}? => ( ({...}? => ( (lv_hasParameter_4_0= 'dynamic' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_hideImageLabel_5_0= 'hidelabel' ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_resize_6_0= 'resize' ) ) ( (lv_resizeString_7_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) ) ) |
| // InternalTableDSL.g:1629:2: ( () otherlv_1= 'path' ( (lv_imagePathPattern_2_0= RULE_STRING ) ) ( ( ( ( ({...}? => ( ({...}? => ( (lv_hasParameter_4_0= 'dynamic' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_hideImageLabel_5_0= 'hidelabel' ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_resize_6_0= 'resize' ) ) ( (lv_resizeString_7_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) ) |
| { |
| // InternalTableDSL.g:1629:2: ( () otherlv_1= 'path' ( (lv_imagePathPattern_2_0= RULE_STRING ) ) ( ( ( ( ({...}? => ( ({...}? => ( (lv_hasParameter_4_0= 'dynamic' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_hideImageLabel_5_0= 'hidelabel' ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_resize_6_0= 'resize' ) ) ( (lv_resizeString_7_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) ) |
| // InternalTableDSL.g:1630:3: () otherlv_1= 'path' ( (lv_imagePathPattern_2_0= RULE_STRING ) ) ( ( ( ( ({...}? => ( ({...}? => ( (lv_hasParameter_4_0= 'dynamic' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_hideImageLabel_5_0= 'hidelabel' ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_resize_6_0= 'resize' ) ) ( (lv_resizeString_7_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) |
| { |
| // InternalTableDSL.g:1630:3: () |
| // InternalTableDSL.g:1631:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getTableImageAccess().getTableImageAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,43,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTableImageAccess().getPathKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:1641:3: ( (lv_imagePathPattern_2_0= RULE_STRING ) ) |
| // InternalTableDSL.g:1642:4: (lv_imagePathPattern_2_0= RULE_STRING ) |
| { |
| // InternalTableDSL.g:1642:4: (lv_imagePathPattern_2_0= RULE_STRING ) |
| // InternalTableDSL.g:1643:5: lv_imagePathPattern_2_0= RULE_STRING |
| { |
| lv_imagePathPattern_2_0=(Token)match(input,RULE_STRING,FOLLOW_26); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_imagePathPattern_2_0, grammarAccess.getTableImageAccess().getImagePathPatternSTRINGTerminalRuleCall_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableImageRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "imagePathPattern", |
| lv_imagePathPattern_2_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:1659:3: ( ( ( ( ({...}? => ( ({...}? => ( (lv_hasParameter_4_0= 'dynamic' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_hideImageLabel_5_0= 'hidelabel' ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_resize_6_0= 'resize' ) ) ( (lv_resizeString_7_0= RULE_STRING ) ) ) ) ) ) )* ) ) ) |
| // InternalTableDSL.g:1660:4: ( ( ( ({...}? => ( ({...}? => ( (lv_hasParameter_4_0= 'dynamic' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_hideImageLabel_5_0= 'hidelabel' ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_resize_6_0= 'resize' ) ) ( (lv_resizeString_7_0= RULE_STRING ) ) ) ) ) ) )* ) ) |
| { |
| // InternalTableDSL.g:1660:4: ( ( ( ({...}? => ( ({...}? => ( (lv_hasParameter_4_0= 'dynamic' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_hideImageLabel_5_0= 'hidelabel' ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_resize_6_0= 'resize' ) ) ( (lv_resizeString_7_0= RULE_STRING ) ) ) ) ) ) )* ) ) |
| // InternalTableDSL.g:1661:5: ( ( ({...}? => ( ({...}? => ( (lv_hasParameter_4_0= 'dynamic' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_hideImageLabel_5_0= 'hidelabel' ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_resize_6_0= 'resize' ) ) ( (lv_resizeString_7_0= RULE_STRING ) ) ) ) ) ) )* ) |
| { |
| getUnorderedGroupHelper().enter(grammarAccess.getTableImageAccess().getUnorderedGroup_3()); |
| // InternalTableDSL.g:1664:5: ( ( ({...}? => ( ({...}? => ( (lv_hasParameter_4_0= 'dynamic' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_hideImageLabel_5_0= 'hidelabel' ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_resize_6_0= 'resize' ) ) ( (lv_resizeString_7_0= RULE_STRING ) ) ) ) ) ) )* ) |
| // InternalTableDSL.g:1665:6: ( ({...}? => ( ({...}? => ( (lv_hasParameter_4_0= 'dynamic' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_hideImageLabel_5_0= 'hidelabel' ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_resize_6_0= 'resize' ) ) ( (lv_resizeString_7_0= RULE_STRING ) ) ) ) ) ) )* |
| { |
| // InternalTableDSL.g:1665:6: ( ({...}? => ( ({...}? => ( (lv_hasParameter_4_0= 'dynamic' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_hideImageLabel_5_0= 'hidelabel' ) ) ) ) ) | ({...}? => ( ({...}? => ( ( (lv_resize_6_0= 'resize' ) ) ( (lv_resizeString_7_0= RULE_STRING ) ) ) ) ) ) )* |
| loop21: |
| do { |
| int alt21=4; |
| int LA21_0 = input.LA(1); |
| |
| if ( LA21_0 == 44 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableImageAccess().getUnorderedGroup_3(), 0) ) { |
| alt21=1; |
| } |
| else if ( LA21_0 == 40 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableImageAccess().getUnorderedGroup_3(), 1) ) { |
| alt21=2; |
| } |
| else if ( LA21_0 == 45 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableImageAccess().getUnorderedGroup_3(), 2) ) { |
| alt21=3; |
| } |
| |
| |
| switch (alt21) { |
| case 1 : |
| // InternalTableDSL.g:1666:4: ({...}? => ( ({...}? => ( (lv_hasParameter_4_0= 'dynamic' ) ) ) ) ) |
| { |
| // InternalTableDSL.g:1666:4: ({...}? => ( ({...}? => ( (lv_hasParameter_4_0= 'dynamic' ) ) ) ) ) |
| // InternalTableDSL.g:1667:5: {...}? => ( ({...}? => ( (lv_hasParameter_4_0= 'dynamic' ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableImageAccess().getUnorderedGroup_3(), 0) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableImage", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableImageAccess().getUnorderedGroup_3(), 0)"); |
| } |
| // InternalTableDSL.g:1667:107: ( ({...}? => ( (lv_hasParameter_4_0= 'dynamic' ) ) ) ) |
| // InternalTableDSL.g:1668:6: ({...}? => ( (lv_hasParameter_4_0= 'dynamic' ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableImageAccess().getUnorderedGroup_3(), 0); |
| // InternalTableDSL.g:1671:9: ({...}? => ( (lv_hasParameter_4_0= 'dynamic' ) ) ) |
| // InternalTableDSL.g:1671:10: {...}? => ( (lv_hasParameter_4_0= 'dynamic' ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableImage", "true"); |
| } |
| // InternalTableDSL.g:1671:19: ( (lv_hasParameter_4_0= 'dynamic' ) ) |
| // InternalTableDSL.g:1671:20: (lv_hasParameter_4_0= 'dynamic' ) |
| { |
| // InternalTableDSL.g:1671:20: (lv_hasParameter_4_0= 'dynamic' ) |
| // InternalTableDSL.g:1672:10: lv_hasParameter_4_0= 'dynamic' |
| { |
| lv_hasParameter_4_0=(Token)match(input,44,FOLLOW_26); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_hasParameter_4_0, grammarAccess.getTableImageAccess().getHasParameterDynamicKeyword_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableImageRule()); |
| } |
| setWithLastConsumed(current, "hasParameter", true, "dynamic"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableImageAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:1689:4: ({...}? => ( ({...}? => ( (lv_hideImageLabel_5_0= 'hidelabel' ) ) ) ) ) |
| { |
| // InternalTableDSL.g:1689:4: ({...}? => ( ({...}? => ( (lv_hideImageLabel_5_0= 'hidelabel' ) ) ) ) ) |
| // InternalTableDSL.g:1690:5: {...}? => ( ({...}? => ( (lv_hideImageLabel_5_0= 'hidelabel' ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableImageAccess().getUnorderedGroup_3(), 1) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableImage", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableImageAccess().getUnorderedGroup_3(), 1)"); |
| } |
| // InternalTableDSL.g:1690:107: ( ({...}? => ( (lv_hideImageLabel_5_0= 'hidelabel' ) ) ) ) |
| // InternalTableDSL.g:1691:6: ({...}? => ( (lv_hideImageLabel_5_0= 'hidelabel' ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableImageAccess().getUnorderedGroup_3(), 1); |
| // InternalTableDSL.g:1694:9: ({...}? => ( (lv_hideImageLabel_5_0= 'hidelabel' ) ) ) |
| // InternalTableDSL.g:1694:10: {...}? => ( (lv_hideImageLabel_5_0= 'hidelabel' ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableImage", "true"); |
| } |
| // InternalTableDSL.g:1694:19: ( (lv_hideImageLabel_5_0= 'hidelabel' ) ) |
| // InternalTableDSL.g:1694:20: (lv_hideImageLabel_5_0= 'hidelabel' ) |
| { |
| // InternalTableDSL.g:1694:20: (lv_hideImageLabel_5_0= 'hidelabel' ) |
| // InternalTableDSL.g:1695:10: lv_hideImageLabel_5_0= 'hidelabel' |
| { |
| lv_hideImageLabel_5_0=(Token)match(input,40,FOLLOW_26); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_hideImageLabel_5_0, grammarAccess.getTableImageAccess().getHideImageLabelHidelabelKeyword_3_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableImageRule()); |
| } |
| setWithLastConsumed(current, "hideImageLabel", true, "hidelabel"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableImageAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalTableDSL.g:1712:4: ({...}? => ( ({...}? => ( ( (lv_resize_6_0= 'resize' ) ) ( (lv_resizeString_7_0= RULE_STRING ) ) ) ) ) ) |
| { |
| // InternalTableDSL.g:1712:4: ({...}? => ( ({...}? => ( ( (lv_resize_6_0= 'resize' ) ) ( (lv_resizeString_7_0= RULE_STRING ) ) ) ) ) ) |
| // InternalTableDSL.g:1713:5: {...}? => ( ({...}? => ( ( (lv_resize_6_0= 'resize' ) ) ( (lv_resizeString_7_0= RULE_STRING ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableImageAccess().getUnorderedGroup_3(), 2) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableImage", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableImageAccess().getUnorderedGroup_3(), 2)"); |
| } |
| // InternalTableDSL.g:1713:107: ( ({...}? => ( ( (lv_resize_6_0= 'resize' ) ) ( (lv_resizeString_7_0= RULE_STRING ) ) ) ) ) |
| // InternalTableDSL.g:1714:6: ({...}? => ( ( (lv_resize_6_0= 'resize' ) ) ( (lv_resizeString_7_0= RULE_STRING ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableImageAccess().getUnorderedGroup_3(), 2); |
| // InternalTableDSL.g:1717:9: ({...}? => ( ( (lv_resize_6_0= 'resize' ) ) ( (lv_resizeString_7_0= RULE_STRING ) ) ) ) |
| // InternalTableDSL.g:1717:10: {...}? => ( ( (lv_resize_6_0= 'resize' ) ) ( (lv_resizeString_7_0= RULE_STRING ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableImage", "true"); |
| } |
| // InternalTableDSL.g:1717:19: ( ( (lv_resize_6_0= 'resize' ) ) ( (lv_resizeString_7_0= RULE_STRING ) ) ) |
| // InternalTableDSL.g:1717:20: ( (lv_resize_6_0= 'resize' ) ) ( (lv_resizeString_7_0= RULE_STRING ) ) |
| { |
| // InternalTableDSL.g:1717:20: ( (lv_resize_6_0= 'resize' ) ) |
| // InternalTableDSL.g:1718:10: (lv_resize_6_0= 'resize' ) |
| { |
| // InternalTableDSL.g:1718:10: (lv_resize_6_0= 'resize' ) |
| // InternalTableDSL.g:1719:11: lv_resize_6_0= 'resize' |
| { |
| lv_resize_6_0=(Token)match(input,45,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_resize_6_0, grammarAccess.getTableImageAccess().getResizeResizeKeyword_3_2_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableImageRule()); |
| } |
| setWithLastConsumed(current, "resize", true, "resize"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:1731:9: ( (lv_resizeString_7_0= RULE_STRING ) ) |
| // InternalTableDSL.g:1732:10: (lv_resizeString_7_0= RULE_STRING ) |
| { |
| // InternalTableDSL.g:1732:10: (lv_resizeString_7_0= RULE_STRING ) |
| // InternalTableDSL.g:1733:11: lv_resizeString_7_0= RULE_STRING |
| { |
| lv_resizeString_7_0=(Token)match(input,RULE_STRING,FOLLOW_26); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_resizeString_7_0, grammarAccess.getTableImageAccess().getResizeStringSTRINGTerminalRuleCall_3_2_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableImageRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "resizeString", |
| lv_resizeString_7_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableImageAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop21; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().leave(grammarAccess.getTableImageAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableImage" |
| |
| |
| // $ANTLR start "entryRuleTableTooltipPattern" |
| // InternalTableDSL.g:1766:1: entryRuleTableTooltipPattern returns [EObject current=null] : iv_ruleTableTooltipPattern= ruleTableTooltipPattern EOF ; |
| public final EObject entryRuleTableTooltipPattern() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableTooltipPattern = null; |
| |
| |
| try { |
| // InternalTableDSL.g:1766:60: (iv_ruleTableTooltipPattern= ruleTableTooltipPattern EOF ) |
| // InternalTableDSL.g:1767:2: iv_ruleTableTooltipPattern= ruleTableTooltipPattern EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableTooltipPatternRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableTooltipPattern=ruleTableTooltipPattern(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableTooltipPattern; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableTooltipPattern" |
| |
| |
| // $ANTLR start "ruleTableTooltipPattern" |
| // InternalTableDSL.g:1773:1: ruleTableTooltipPattern returns [EObject current=null] : ( () otherlv_1= 'tooltipPattern' ( (lv_tooltipPattern_2_0= ruleTRANSLATABLESTRING ) ) ) ; |
| public final EObject ruleTableTooltipPattern() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| AntlrDatatypeRuleToken lv_tooltipPattern_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:1779:2: ( ( () otherlv_1= 'tooltipPattern' ( (lv_tooltipPattern_2_0= ruleTRANSLATABLESTRING ) ) ) ) |
| // InternalTableDSL.g:1780:2: ( () otherlv_1= 'tooltipPattern' ( (lv_tooltipPattern_2_0= ruleTRANSLATABLESTRING ) ) ) |
| { |
| // InternalTableDSL.g:1780:2: ( () otherlv_1= 'tooltipPattern' ( (lv_tooltipPattern_2_0= ruleTRANSLATABLESTRING ) ) ) |
| // InternalTableDSL.g:1781:3: () otherlv_1= 'tooltipPattern' ( (lv_tooltipPattern_2_0= ruleTRANSLATABLESTRING ) ) |
| { |
| // InternalTableDSL.g:1781:3: () |
| // InternalTableDSL.g:1782:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getTableTooltipPatternAccess().getTableTooltipPatternAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,46,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTableTooltipPatternAccess().getTooltipPatternKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:1792:3: ( (lv_tooltipPattern_2_0= ruleTRANSLATABLESTRING ) ) |
| // InternalTableDSL.g:1793:4: (lv_tooltipPattern_2_0= ruleTRANSLATABLESTRING ) |
| { |
| // InternalTableDSL.g:1793:4: (lv_tooltipPattern_2_0= ruleTRANSLATABLESTRING ) |
| // InternalTableDSL.g:1794:5: lv_tooltipPattern_2_0= ruleTRANSLATABLESTRING |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableTooltipPatternAccess().getTooltipPatternTRANSLATABLESTRINGParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_tooltipPattern_2_0=ruleTRANSLATABLESTRING(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableTooltipPatternRule()); |
| } |
| set( |
| current, |
| "tooltipPattern", |
| lv_tooltipPattern_2_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TRANSLATABLESTRING"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableTooltipPattern" |
| |
| |
| // $ANTLR start "entryRuleTableValueElement" |
| // InternalTableDSL.g:1815:1: entryRuleTableValueElement returns [EObject current=null] : iv_ruleTableValueElement= ruleTableValueElement EOF ; |
| public final EObject entryRuleTableValueElement() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableValueElement = null; |
| |
| |
| try { |
| // InternalTableDSL.g:1815:58: (iv_ruleTableValueElement= ruleTableValueElement EOF ) |
| // InternalTableDSL.g:1816:2: iv_ruleTableValueElement= ruleTableValueElement EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableValueElementRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableValueElement=ruleTableValueElement(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableValueElement; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableValueElement" |
| |
| |
| // $ANTLR start "ruleTableValueElement" |
| // InternalTableDSL.g:1822:1: ruleTableValueElement returns [EObject current=null] : (this_TableMeasure_0= ruleTableMeasure | this_TableDerived_1= ruleTableDerived | this_TableHierarchy_2= ruleTableHierarchy | this_TableAttribute_3= ruleTableAttribute | this_TableAggregation_4= ruleTableAggregation | this_TableOrdinal_5= ruleTableOrdinal | this_TableColumn_6= ruleTableColumn | this_TableTask_7= ruleTableTask | this_TableAllColumns_8= ruleTableAllColumns ) ; |
| public final EObject ruleTableValueElement() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_TableMeasure_0 = null; |
| |
| EObject this_TableDerived_1 = null; |
| |
| EObject this_TableHierarchy_2 = null; |
| |
| EObject this_TableAttribute_3 = null; |
| |
| EObject this_TableAggregation_4 = null; |
| |
| EObject this_TableOrdinal_5 = null; |
| |
| EObject this_TableColumn_6 = null; |
| |
| EObject this_TableTask_7 = null; |
| |
| EObject this_TableAllColumns_8 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:1828:2: ( (this_TableMeasure_0= ruleTableMeasure | this_TableDerived_1= ruleTableDerived | this_TableHierarchy_2= ruleTableHierarchy | this_TableAttribute_3= ruleTableAttribute | this_TableAggregation_4= ruleTableAggregation | this_TableOrdinal_5= ruleTableOrdinal | this_TableColumn_6= ruleTableColumn | this_TableTask_7= ruleTableTask | this_TableAllColumns_8= ruleTableAllColumns ) ) |
| // InternalTableDSL.g:1829:2: (this_TableMeasure_0= ruleTableMeasure | this_TableDerived_1= ruleTableDerived | this_TableHierarchy_2= ruleTableHierarchy | this_TableAttribute_3= ruleTableAttribute | this_TableAggregation_4= ruleTableAggregation | this_TableOrdinal_5= ruleTableOrdinal | this_TableColumn_6= ruleTableColumn | this_TableTask_7= ruleTableTask | this_TableAllColumns_8= ruleTableAllColumns ) |
| { |
| // InternalTableDSL.g:1829:2: (this_TableMeasure_0= ruleTableMeasure | this_TableDerived_1= ruleTableDerived | this_TableHierarchy_2= ruleTableHierarchy | this_TableAttribute_3= ruleTableAttribute | this_TableAggregation_4= ruleTableAggregation | this_TableOrdinal_5= ruleTableOrdinal | this_TableColumn_6= ruleTableColumn | this_TableTask_7= ruleTableTask | this_TableAllColumns_8= ruleTableAllColumns ) |
| int alt22=9; |
| switch ( input.LA(1) ) { |
| case 51: |
| { |
| alt22=1; |
| } |
| break; |
| case 52: |
| { |
| alt22=2; |
| } |
| break; |
| case 53: |
| { |
| alt22=3; |
| } |
| break; |
| case 54: |
| { |
| alt22=4; |
| } |
| break; |
| case 55: |
| { |
| alt22=5; |
| } |
| break; |
| case 49: |
| { |
| alt22=6; |
| } |
| break; |
| case 50: |
| { |
| alt22=7; |
| } |
| break; |
| case 47: |
| { |
| alt22=8; |
| } |
| break; |
| case 48: |
| { |
| alt22=9; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 22, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt22) { |
| case 1 : |
| // InternalTableDSL.g:1830:3: this_TableMeasure_0= ruleTableMeasure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableValueElementAccess().getTableMeasureParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_TableMeasure_0=ruleTableMeasure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TableMeasure_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:1839:3: this_TableDerived_1= ruleTableDerived |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableValueElementAccess().getTableDerivedParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_TableDerived_1=ruleTableDerived(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TableDerived_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalTableDSL.g:1848:3: this_TableHierarchy_2= ruleTableHierarchy |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableValueElementAccess().getTableHierarchyParserRuleCall_2()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_TableHierarchy_2=ruleTableHierarchy(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TableHierarchy_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalTableDSL.g:1857:3: this_TableAttribute_3= ruleTableAttribute |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableValueElementAccess().getTableAttributeParserRuleCall_3()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_TableAttribute_3=ruleTableAttribute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TableAttribute_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalTableDSL.g:1866:3: this_TableAggregation_4= ruleTableAggregation |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableValueElementAccess().getTableAggregationParserRuleCall_4()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_TableAggregation_4=ruleTableAggregation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TableAggregation_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalTableDSL.g:1875:3: this_TableOrdinal_5= ruleTableOrdinal |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableValueElementAccess().getTableOrdinalParserRuleCall_5()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_TableOrdinal_5=ruleTableOrdinal(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TableOrdinal_5; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 7 : |
| // InternalTableDSL.g:1884:3: this_TableColumn_6= ruleTableColumn |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableValueElementAccess().getTableColumnParserRuleCall_6()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_TableColumn_6=ruleTableColumn(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TableColumn_6; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 8 : |
| // InternalTableDSL.g:1893:3: this_TableTask_7= ruleTableTask |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableValueElementAccess().getTableTaskParserRuleCall_7()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_TableTask_7=ruleTableTask(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TableTask_7; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 9 : |
| // InternalTableDSL.g:1902:3: this_TableAllColumns_8= ruleTableAllColumns |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableValueElementAccess().getTableAllColumnsParserRuleCall_8()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_TableAllColumns_8=ruleTableAllColumns(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TableAllColumns_8; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableValueElement" |
| |
| |
| // $ANTLR start "entryRuleTableTask" |
| // InternalTableDSL.g:1914:1: entryRuleTableTask returns [EObject current=null] : iv_ruleTableTask= ruleTableTask EOF ; |
| public final EObject entryRuleTableTask() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableTask = null; |
| |
| |
| try { |
| // InternalTableDSL.g:1914:50: (iv_ruleTableTask= ruleTableTask EOF ) |
| // InternalTableDSL.g:1915:2: iv_ruleTableTask= ruleTableTask EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableTaskRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableTask=ruleTableTask(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableTask; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableTask" |
| |
| |
| // $ANTLR start "ruleTableTask" |
| // InternalTableDSL.g:1921:1: ruleTableTask returns [EObject current=null] : ( () otherlv_1= 'taskId' ) ; |
| public final EObject ruleTableTask() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:1927:2: ( ( () otherlv_1= 'taskId' ) ) |
| // InternalTableDSL.g:1928:2: ( () otherlv_1= 'taskId' ) |
| { |
| // InternalTableDSL.g:1928:2: ( () otherlv_1= 'taskId' ) |
| // InternalTableDSL.g:1929:3: () otherlv_1= 'taskId' |
| { |
| // InternalTableDSL.g:1929:3: () |
| // InternalTableDSL.g:1930:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getTableTaskAccess().getTableTaskAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,47,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTableTaskAccess().getTaskIdKeyword_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableTask" |
| |
| |
| // $ANTLR start "entryRuleTableAllColumns" |
| // InternalTableDSL.g:1944:1: entryRuleTableAllColumns returns [EObject current=null] : iv_ruleTableAllColumns= ruleTableAllColumns EOF ; |
| public final EObject entryRuleTableAllColumns() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableAllColumns = null; |
| |
| |
| try { |
| // InternalTableDSL.g:1944:56: (iv_ruleTableAllColumns= ruleTableAllColumns EOF ) |
| // InternalTableDSL.g:1945:2: iv_ruleTableAllColumns= ruleTableAllColumns EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableAllColumnsRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableAllColumns=ruleTableAllColumns(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableAllColumns; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableAllColumns" |
| |
| |
| // $ANTLR start "ruleTableAllColumns" |
| // InternalTableDSL.g:1951:1: ruleTableAllColumns returns [EObject current=null] : ( () otherlv_1= 'allColumns' ) ; |
| public final EObject ruleTableAllColumns() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:1957:2: ( ( () otherlv_1= 'allColumns' ) ) |
| // InternalTableDSL.g:1958:2: ( () otherlv_1= 'allColumns' ) |
| { |
| // InternalTableDSL.g:1958:2: ( () otherlv_1= 'allColumns' ) |
| // InternalTableDSL.g:1959:3: () otherlv_1= 'allColumns' |
| { |
| // InternalTableDSL.g:1959:3: () |
| // InternalTableDSL.g:1960:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getTableAllColumnsAccess().getTableAllColumnsAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,48,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTableAllColumnsAccess().getAllColumnsKeyword_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableAllColumns" |
| |
| |
| // $ANTLR start "entryRuleTableOrdinal" |
| // InternalTableDSL.g:1974:1: entryRuleTableOrdinal returns [EObject current=null] : iv_ruleTableOrdinal= ruleTableOrdinal EOF ; |
| public final EObject entryRuleTableOrdinal() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableOrdinal = null; |
| |
| |
| try { |
| // InternalTableDSL.g:1974:53: (iv_ruleTableOrdinal= ruleTableOrdinal EOF ) |
| // InternalTableDSL.g:1975:2: iv_ruleTableOrdinal= ruleTableOrdinal EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableOrdinalRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableOrdinal=ruleTableOrdinal(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableOrdinal; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableOrdinal" |
| |
| |
| // $ANTLR start "ruleTableOrdinal" |
| // InternalTableDSL.g:1981:1: ruleTableOrdinal returns [EObject current=null] : (otherlv_0= 'ordinal' ( (lv_valueRef_1_0= ruleNumber ) ) ) ; |
| public final EObject ruleTableOrdinal() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| AntlrDatatypeRuleToken lv_valueRef_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:1987:2: ( (otherlv_0= 'ordinal' ( (lv_valueRef_1_0= ruleNumber ) ) ) ) |
| // InternalTableDSL.g:1988:2: (otherlv_0= 'ordinal' ( (lv_valueRef_1_0= ruleNumber ) ) ) |
| { |
| // InternalTableDSL.g:1988:2: (otherlv_0= 'ordinal' ( (lv_valueRef_1_0= ruleNumber ) ) ) |
| // InternalTableDSL.g:1989:3: otherlv_0= 'ordinal' ( (lv_valueRef_1_0= ruleNumber ) ) |
| { |
| otherlv_0=(Token)match(input,49,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getTableOrdinalAccess().getOrdinalKeyword_0()); |
| |
| } |
| // InternalTableDSL.g:1993:3: ( (lv_valueRef_1_0= ruleNumber ) ) |
| // InternalTableDSL.g:1994:4: (lv_valueRef_1_0= ruleNumber ) |
| { |
| // InternalTableDSL.g:1994:4: (lv_valueRef_1_0= ruleNumber ) |
| // InternalTableDSL.g:1995:5: lv_valueRef_1_0= ruleNumber |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableOrdinalAccess().getValueRefNumberParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_valueRef_1_0=ruleNumber(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableOrdinalRule()); |
| } |
| set( |
| current, |
| "valueRef", |
| lv_valueRef_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 "ruleTableOrdinal" |
| |
| |
| // $ANTLR start "entryRuleTableColumn" |
| // InternalTableDSL.g:2016:1: entryRuleTableColumn returns [EObject current=null] : iv_ruleTableColumn= ruleTableColumn EOF ; |
| public final EObject entryRuleTableColumn() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableColumn = null; |
| |
| |
| try { |
| // InternalTableDSL.g:2016:52: (iv_ruleTableColumn= ruleTableColumn EOF ) |
| // InternalTableDSL.g:2017:2: iv_ruleTableColumn= ruleTableColumn EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableColumnRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableColumn=ruleTableColumn(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableColumn; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableColumn" |
| |
| |
| // $ANTLR start "ruleTableColumn" |
| // InternalTableDSL.g:2023:1: ruleTableColumn returns [EObject current=null] : (otherlv_0= 'column' ( (otherlv_1= RULE_ID ) ) ) ; |
| public final EObject ruleTableColumn() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:2029:2: ( (otherlv_0= 'column' ( (otherlv_1= RULE_ID ) ) ) ) |
| // InternalTableDSL.g:2030:2: (otherlv_0= 'column' ( (otherlv_1= RULE_ID ) ) ) |
| { |
| // InternalTableDSL.g:2030:2: (otherlv_0= 'column' ( (otherlv_1= RULE_ID ) ) ) |
| // InternalTableDSL.g:2031:3: otherlv_0= 'column' ( (otherlv_1= RULE_ID ) ) |
| { |
| otherlv_0=(Token)match(input,50,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getTableColumnAccess().getColumnKeyword_0()); |
| |
| } |
| // InternalTableDSL.g:2035:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalTableDSL.g:2036:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalTableDSL.g:2036:4: (otherlv_1= RULE_ID ) |
| // InternalTableDSL.g:2037:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableColumnRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTableColumnAccess().getValueRefDatamartColumnCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableColumn" |
| |
| |
| // $ANTLR start "entryRuleTableMeasure" |
| // InternalTableDSL.g:2052:1: entryRuleTableMeasure returns [EObject current=null] : iv_ruleTableMeasure= ruleTableMeasure EOF ; |
| public final EObject entryRuleTableMeasure() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableMeasure = null; |
| |
| |
| try { |
| // InternalTableDSL.g:2052:53: (iv_ruleTableMeasure= ruleTableMeasure EOF ) |
| // InternalTableDSL.g:2053:2: iv_ruleTableMeasure= ruleTableMeasure EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableMeasureRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableMeasure=ruleTableMeasure(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableMeasure; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableMeasure" |
| |
| |
| // $ANTLR start "ruleTableMeasure" |
| // InternalTableDSL.g:2059:1: ruleTableMeasure returns [EObject current=null] : (otherlv_0= 'measure' ( (otherlv_1= RULE_ID ) ) ) ; |
| public final EObject ruleTableMeasure() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:2065:2: ( (otherlv_0= 'measure' ( (otherlv_1= RULE_ID ) ) ) ) |
| // InternalTableDSL.g:2066:2: (otherlv_0= 'measure' ( (otherlv_1= RULE_ID ) ) ) |
| { |
| // InternalTableDSL.g:2066:2: (otherlv_0= 'measure' ( (otherlv_1= RULE_ID ) ) ) |
| // InternalTableDSL.g:2067:3: otherlv_0= 'measure' ( (otherlv_1= RULE_ID ) ) |
| { |
| otherlv_0=(Token)match(input,51,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getTableMeasureAccess().getMeasureKeyword_0()); |
| |
| } |
| // InternalTableDSL.g:2071:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalTableDSL.g:2072:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalTableDSL.g:2072:4: (otherlv_1= RULE_ID ) |
| // InternalTableDSL.g:2073:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableMeasureRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTableMeasureAccess().getValueRefDatamartMeasureCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableMeasure" |
| |
| |
| // $ANTLR start "entryRuleTableDerived" |
| // InternalTableDSL.g:2088:1: entryRuleTableDerived returns [EObject current=null] : iv_ruleTableDerived= ruleTableDerived EOF ; |
| public final EObject entryRuleTableDerived() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableDerived = null; |
| |
| |
| try { |
| // InternalTableDSL.g:2088:53: (iv_ruleTableDerived= ruleTableDerived EOF ) |
| // InternalTableDSL.g:2089:2: iv_ruleTableDerived= ruleTableDerived EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableDerivedRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableDerived=ruleTableDerived(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableDerived; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableDerived" |
| |
| |
| // $ANTLR start "ruleTableDerived" |
| // InternalTableDSL.g:2095:1: ruleTableDerived returns [EObject current=null] : (otherlv_0= 'derived' ( (otherlv_1= RULE_ID ) ) ) ; |
| public final EObject ruleTableDerived() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:2101:2: ( (otherlv_0= 'derived' ( (otherlv_1= RULE_ID ) ) ) ) |
| // InternalTableDSL.g:2102:2: (otherlv_0= 'derived' ( (otherlv_1= RULE_ID ) ) ) |
| { |
| // InternalTableDSL.g:2102:2: (otherlv_0= 'derived' ( (otherlv_1= RULE_ID ) ) ) |
| // InternalTableDSL.g:2103:3: otherlv_0= 'derived' ( (otherlv_1= RULE_ID ) ) |
| { |
| otherlv_0=(Token)match(input,52,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getTableDerivedAccess().getDerivedKeyword_0()); |
| |
| } |
| // InternalTableDSL.g:2107:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalTableDSL.g:2108:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalTableDSL.g:2108:4: (otherlv_1= RULE_ID ) |
| // InternalTableDSL.g:2109:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableDerivedRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTableDerivedAccess().getValueRefDatamartDerivedMeasureCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableDerived" |
| |
| |
| // $ANTLR start "entryRuleTableHierarchy" |
| // InternalTableDSL.g:2124:1: entryRuleTableHierarchy returns [EObject current=null] : iv_ruleTableHierarchy= ruleTableHierarchy EOF ; |
| public final EObject entryRuleTableHierarchy() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableHierarchy = null; |
| |
| |
| try { |
| // InternalTableDSL.g:2124:55: (iv_ruleTableHierarchy= ruleTableHierarchy EOF ) |
| // InternalTableDSL.g:2125:2: iv_ruleTableHierarchy= ruleTableHierarchy EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableHierarchyRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableHierarchy=ruleTableHierarchy(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableHierarchy; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableHierarchy" |
| |
| |
| // $ANTLR start "ruleTableHierarchy" |
| // InternalTableDSL.g:2131:1: ruleTableHierarchy returns [EObject current=null] : (otherlv_0= 'level' ( (otherlv_1= RULE_ID ) ) ) ; |
| public final EObject ruleTableHierarchy() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:2137:2: ( (otherlv_0= 'level' ( (otherlv_1= RULE_ID ) ) ) ) |
| // InternalTableDSL.g:2138:2: (otherlv_0= 'level' ( (otherlv_1= RULE_ID ) ) ) |
| { |
| // InternalTableDSL.g:2138:2: (otherlv_0= 'level' ( (otherlv_1= RULE_ID ) ) ) |
| // InternalTableDSL.g:2139:3: otherlv_0= 'level' ( (otherlv_1= RULE_ID ) ) |
| { |
| otherlv_0=(Token)match(input,53,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getTableHierarchyAccess().getLevelKeyword_0()); |
| |
| } |
| // InternalTableDSL.g:2143:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalTableDSL.g:2144:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalTableDSL.g:2144:4: (otherlv_1= RULE_ID ) |
| // InternalTableDSL.g:2145:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableHierarchyRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTableHierarchyAccess().getValueRefCubeLevelCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableHierarchy" |
| |
| |
| // $ANTLR start "entryRuleTableAttribute" |
| // InternalTableDSL.g:2160:1: entryRuleTableAttribute returns [EObject current=null] : iv_ruleTableAttribute= ruleTableAttribute EOF ; |
| public final EObject entryRuleTableAttribute() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableAttribute = null; |
| |
| |
| try { |
| // InternalTableDSL.g:2160:55: (iv_ruleTableAttribute= ruleTableAttribute EOF ) |
| // InternalTableDSL.g:2161:2: iv_ruleTableAttribute= ruleTableAttribute EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableAttributeRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableAttribute=ruleTableAttribute(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableAttribute; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableAttribute" |
| |
| |
| // $ANTLR start "ruleTableAttribute" |
| // InternalTableDSL.g:2167:1: ruleTableAttribute returns [EObject current=null] : ( () otherlv_1= 'property' ( (otherlv_2= RULE_ID ) ) ) ; |
| public final EObject ruleTableAttribute() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:2173:2: ( ( () otherlv_1= 'property' ( (otherlv_2= RULE_ID ) ) ) ) |
| // InternalTableDSL.g:2174:2: ( () otherlv_1= 'property' ( (otherlv_2= RULE_ID ) ) ) |
| { |
| // InternalTableDSL.g:2174:2: ( () otherlv_1= 'property' ( (otherlv_2= RULE_ID ) ) ) |
| // InternalTableDSL.g:2175:3: () otherlv_1= 'property' ( (otherlv_2= RULE_ID ) ) |
| { |
| // InternalTableDSL.g:2175:3: () |
| // InternalTableDSL.g:2176:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getTableAttributeAccess().getTableAttributeAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,54,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTableAttributeAccess().getPropertyKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:2186:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalTableDSL.g:2187:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalTableDSL.g:2187:4: (otherlv_2= RULE_ID ) |
| // InternalTableDSL.g:2188:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableAttributeRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getTableAttributeAccess().getValueRefDatamartAttributeCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableAttribute" |
| |
| |
| // $ANTLR start "entryRuleTableAggregation" |
| // InternalTableDSL.g:2203:1: entryRuleTableAggregation returns [EObject current=null] : iv_ruleTableAggregation= ruleTableAggregation EOF ; |
| public final EObject entryRuleTableAggregation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableAggregation = null; |
| |
| |
| try { |
| // InternalTableDSL.g:2203:57: (iv_ruleTableAggregation= ruleTableAggregation EOF ) |
| // InternalTableDSL.g:2204:2: iv_ruleTableAggregation= ruleTableAggregation EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableAggregationRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableAggregation=ruleTableAggregation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableAggregation; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableAggregation" |
| |
| |
| // $ANTLR start "ruleTableAggregation" |
| // InternalTableDSL.g:2210:1: ruleTableAggregation returns [EObject current=null] : (otherlv_0= 'aggregation' ( (otherlv_1= RULE_ID ) ) ) ; |
| public final EObject ruleTableAggregation() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:2216:2: ( (otherlv_0= 'aggregation' ( (otherlv_1= RULE_ID ) ) ) ) |
| // InternalTableDSL.g:2217:2: (otherlv_0= 'aggregation' ( (otherlv_1= RULE_ID ) ) ) |
| { |
| // InternalTableDSL.g:2217:2: (otherlv_0= 'aggregation' ( (otherlv_1= RULE_ID ) ) ) |
| // InternalTableDSL.g:2218:3: otherlv_0= 'aggregation' ( (otherlv_1= RULE_ID ) ) |
| { |
| otherlv_0=(Token)match(input,55,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getTableAggregationAccess().getAggregationKeyword_0()); |
| |
| } |
| // InternalTableDSL.g:2222:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalTableDSL.g:2223:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalTableDSL.g:2223:4: (otherlv_1= RULE_ID ) |
| // InternalTableDSL.g:2224:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableAggregationRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTableAggregationAccess().getValueRefDatamartSetAggregationFunctionCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableAggregation" |
| |
| |
| // $ANTLR start "entryRuleTableInterval" |
| // InternalTableDSL.g:2239:1: entryRuleTableInterval returns [EObject current=null] : iv_ruleTableInterval= ruleTableInterval EOF ; |
| public final EObject entryRuleTableInterval() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableInterval = null; |
| |
| |
| try { |
| // InternalTableDSL.g:2239:54: (iv_ruleTableInterval= ruleTableInterval EOF ) |
| // InternalTableDSL.g:2240:2: iv_ruleTableInterval= ruleTableInterval EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableIntervalRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableInterval=ruleTableInterval(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableInterval; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableInterval" |
| |
| |
| // $ANTLR start "ruleTableInterval" |
| // InternalTableDSL.g:2246:1: ruleTableInterval returns [EObject current=null] : (this_TableNumberInterval_0= ruleTableNumberInterval | this_TableIntInterval_1= ruleTableIntInterval | this_TableDateDayInterval_2= ruleTableDateDayInterval ) ; |
| public final EObject ruleTableInterval() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_TableNumberInterval_0 = null; |
| |
| EObject this_TableIntInterval_1 = null; |
| |
| EObject this_TableDateDayInterval_2 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:2252:2: ( (this_TableNumberInterval_0= ruleTableNumberInterval | this_TableIntInterval_1= ruleTableIntInterval | this_TableDateDayInterval_2= ruleTableDateDayInterval ) ) |
| // InternalTableDSL.g:2253:2: (this_TableNumberInterval_0= ruleTableNumberInterval | this_TableIntInterval_1= ruleTableIntInterval | this_TableDateDayInterval_2= ruleTableDateDayInterval ) |
| { |
| // InternalTableDSL.g:2253:2: (this_TableNumberInterval_0= ruleTableNumberInterval | this_TableIntInterval_1= ruleTableIntInterval | this_TableDateDayInterval_2= ruleTableDateDayInterval ) |
| int alt23=3; |
| switch ( input.LA(1) ) { |
| case 56: |
| { |
| alt23=1; |
| } |
| break; |
| case 57: |
| { |
| alt23=2; |
| } |
| break; |
| case 58: |
| { |
| alt23=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 23, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt23) { |
| case 1 : |
| // InternalTableDSL.g:2254:3: this_TableNumberInterval_0= ruleTableNumberInterval |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableIntervalAccess().getTableNumberIntervalParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_TableNumberInterval_0=ruleTableNumberInterval(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TableNumberInterval_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:2263:3: this_TableIntInterval_1= ruleTableIntInterval |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableIntervalAccess().getTableIntIntervalParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_TableIntInterval_1=ruleTableIntInterval(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TableIntInterval_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalTableDSL.g:2272:3: this_TableDateDayInterval_2= ruleTableDateDayInterval |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableIntervalAccess().getTableDateDayIntervalParserRuleCall_2()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_TableDateDayInterval_2=ruleTableDateDayInterval(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TableDateDayInterval_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableInterval" |
| |
| |
| // $ANTLR start "entryRuleTableNumberInterval" |
| // InternalTableDSL.g:2284:1: entryRuleTableNumberInterval returns [EObject current=null] : iv_ruleTableNumberInterval= ruleTableNumberInterval EOF ; |
| public final EObject entryRuleTableNumberInterval() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableNumberInterval = null; |
| |
| |
| try { |
| // InternalTableDSL.g:2284:60: (iv_ruleTableNumberInterval= ruleTableNumberInterval EOF ) |
| // InternalTableDSL.g:2285:2: iv_ruleTableNumberInterval= ruleTableNumberInterval EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableNumberIntervalRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableNumberInterval=ruleTableNumberInterval(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableNumberInterval; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableNumberInterval" |
| |
| |
| // $ANTLR start "ruleTableNumberInterval" |
| // InternalTableDSL.g:2291:1: ruleTableNumberInterval returns [EObject current=null] : ( () otherlv_1= 'upToNumber' ( (lv_numberIntervalValue_2_0= ruleSignedNumber ) ) ( (lv_numberRange_3_0= ruleTableRangeElement ) ) ) ; |
| public final EObject ruleTableNumberInterval() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| AntlrDatatypeRuleToken lv_numberIntervalValue_2_0 = null; |
| |
| EObject lv_numberRange_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:2297:2: ( ( () otherlv_1= 'upToNumber' ( (lv_numberIntervalValue_2_0= ruleSignedNumber ) ) ( (lv_numberRange_3_0= ruleTableRangeElement ) ) ) ) |
| // InternalTableDSL.g:2298:2: ( () otherlv_1= 'upToNumber' ( (lv_numberIntervalValue_2_0= ruleSignedNumber ) ) ( (lv_numberRange_3_0= ruleTableRangeElement ) ) ) |
| { |
| // InternalTableDSL.g:2298:2: ( () otherlv_1= 'upToNumber' ( (lv_numberIntervalValue_2_0= ruleSignedNumber ) ) ( (lv_numberRange_3_0= ruleTableRangeElement ) ) ) |
| // InternalTableDSL.g:2299:3: () otherlv_1= 'upToNumber' ( (lv_numberIntervalValue_2_0= ruleSignedNumber ) ) ( (lv_numberRange_3_0= ruleTableRangeElement ) ) |
| { |
| // InternalTableDSL.g:2299:3: () |
| // InternalTableDSL.g:2300:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getTableNumberIntervalAccess().getTableNumberIntervalAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,56,FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTableNumberIntervalAccess().getUpToNumberKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:2310:3: ( (lv_numberIntervalValue_2_0= ruleSignedNumber ) ) |
| // InternalTableDSL.g:2311:4: (lv_numberIntervalValue_2_0= ruleSignedNumber ) |
| { |
| // InternalTableDSL.g:2311:4: (lv_numberIntervalValue_2_0= ruleSignedNumber ) |
| // InternalTableDSL.g:2312:5: lv_numberIntervalValue_2_0= ruleSignedNumber |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableNumberIntervalAccess().getNumberIntervalValueSignedNumberParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_28); |
| lv_numberIntervalValue_2_0=ruleSignedNumber(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableNumberIntervalRule()); |
| } |
| set( |
| current, |
| "numberIntervalValue", |
| lv_numberIntervalValue_2_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.SignedNumber"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:2329:3: ( (lv_numberRange_3_0= ruleTableRangeElement ) ) |
| // InternalTableDSL.g:2330:4: (lv_numberRange_3_0= ruleTableRangeElement ) |
| { |
| // InternalTableDSL.g:2330:4: (lv_numberRange_3_0= ruleTableRangeElement ) |
| // InternalTableDSL.g:2331:5: lv_numberRange_3_0= ruleTableRangeElement |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableNumberIntervalAccess().getNumberRangeTableRangeElementParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_numberRange_3_0=ruleTableRangeElement(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableNumberIntervalRule()); |
| } |
| set( |
| current, |
| "numberRange", |
| lv_numberRange_3_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TableRangeElement"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableNumberInterval" |
| |
| |
| // $ANTLR start "entryRuleTableIntInterval" |
| // InternalTableDSL.g:2352:1: entryRuleTableIntInterval returns [EObject current=null] : iv_ruleTableIntInterval= ruleTableIntInterval EOF ; |
| public final EObject entryRuleTableIntInterval() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableIntInterval = null; |
| |
| |
| try { |
| // InternalTableDSL.g:2352:57: (iv_ruleTableIntInterval= ruleTableIntInterval EOF ) |
| // InternalTableDSL.g:2353:2: iv_ruleTableIntInterval= ruleTableIntInterval EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableIntIntervalRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableIntInterval=ruleTableIntInterval(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableIntInterval; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableIntInterval" |
| |
| |
| // $ANTLR start "ruleTableIntInterval" |
| // InternalTableDSL.g:2359:1: ruleTableIntInterval returns [EObject current=null] : ( () otherlv_1= 'upToInteger' ( (lv_intIntervalValue_2_0= ruleSignedInt ) ) ( (lv_intRange_3_0= ruleTableRangeElement ) ) ) ; |
| public final EObject ruleTableIntInterval() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| AntlrDatatypeRuleToken lv_intIntervalValue_2_0 = null; |
| |
| EObject lv_intRange_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:2365:2: ( ( () otherlv_1= 'upToInteger' ( (lv_intIntervalValue_2_0= ruleSignedInt ) ) ( (lv_intRange_3_0= ruleTableRangeElement ) ) ) ) |
| // InternalTableDSL.g:2366:2: ( () otherlv_1= 'upToInteger' ( (lv_intIntervalValue_2_0= ruleSignedInt ) ) ( (lv_intRange_3_0= ruleTableRangeElement ) ) ) |
| { |
| // InternalTableDSL.g:2366:2: ( () otherlv_1= 'upToInteger' ( (lv_intIntervalValue_2_0= ruleSignedInt ) ) ( (lv_intRange_3_0= ruleTableRangeElement ) ) ) |
| // InternalTableDSL.g:2367:3: () otherlv_1= 'upToInteger' ( (lv_intIntervalValue_2_0= ruleSignedInt ) ) ( (lv_intRange_3_0= ruleTableRangeElement ) ) |
| { |
| // InternalTableDSL.g:2367:3: () |
| // InternalTableDSL.g:2368:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getTableIntIntervalAccess().getTableIntIntervalAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,57,FOLLOW_29); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTableIntIntervalAccess().getUpToIntegerKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:2378:3: ( (lv_intIntervalValue_2_0= ruleSignedInt ) ) |
| // InternalTableDSL.g:2379:4: (lv_intIntervalValue_2_0= ruleSignedInt ) |
| { |
| // InternalTableDSL.g:2379:4: (lv_intIntervalValue_2_0= ruleSignedInt ) |
| // InternalTableDSL.g:2380:5: lv_intIntervalValue_2_0= ruleSignedInt |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableIntIntervalAccess().getIntIntervalValueSignedIntParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_28); |
| lv_intIntervalValue_2_0=ruleSignedInt(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableIntIntervalRule()); |
| } |
| set( |
| current, |
| "intIntervalValue", |
| lv_intIntervalValue_2_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.SignedInt"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:2397:3: ( (lv_intRange_3_0= ruleTableRangeElement ) ) |
| // InternalTableDSL.g:2398:4: (lv_intRange_3_0= ruleTableRangeElement ) |
| { |
| // InternalTableDSL.g:2398:4: (lv_intRange_3_0= ruleTableRangeElement ) |
| // InternalTableDSL.g:2399:5: lv_intRange_3_0= ruleTableRangeElement |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableIntIntervalAccess().getIntRangeTableRangeElementParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_intRange_3_0=ruleTableRangeElement(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableIntIntervalRule()); |
| } |
| set( |
| current, |
| "intRange", |
| lv_intRange_3_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TableRangeElement"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableIntInterval" |
| |
| |
| // $ANTLR start "entryRuleTableDateDayInterval" |
| // InternalTableDSL.g:2420:1: entryRuleTableDateDayInterval returns [EObject current=null] : iv_ruleTableDateDayInterval= ruleTableDateDayInterval EOF ; |
| public final EObject entryRuleTableDateDayInterval() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableDateDayInterval = null; |
| |
| |
| try { |
| // InternalTableDSL.g:2420:61: (iv_ruleTableDateDayInterval= ruleTableDateDayInterval EOF ) |
| // InternalTableDSL.g:2421:2: iv_ruleTableDateDayInterval= ruleTableDateDayInterval EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableDateDayIntervalRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableDateDayInterval=ruleTableDateDayInterval(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableDateDayInterval; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableDateDayInterval" |
| |
| |
| // $ANTLR start "ruleTableDateDayInterval" |
| // InternalTableDSL.g:2427:1: ruleTableDateDayInterval returns [EObject current=null] : ( () otherlv_1= 'daysInPast' ( (lv_dateIntervalValue_2_0= ruleSignedInt ) ) ( (lv_dateRange_3_0= ruleTableRangeElement ) ) ) ; |
| public final EObject ruleTableDateDayInterval() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| AntlrDatatypeRuleToken lv_dateIntervalValue_2_0 = null; |
| |
| EObject lv_dateRange_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:2433:2: ( ( () otherlv_1= 'daysInPast' ( (lv_dateIntervalValue_2_0= ruleSignedInt ) ) ( (lv_dateRange_3_0= ruleTableRangeElement ) ) ) ) |
| // InternalTableDSL.g:2434:2: ( () otherlv_1= 'daysInPast' ( (lv_dateIntervalValue_2_0= ruleSignedInt ) ) ( (lv_dateRange_3_0= ruleTableRangeElement ) ) ) |
| { |
| // InternalTableDSL.g:2434:2: ( () otherlv_1= 'daysInPast' ( (lv_dateIntervalValue_2_0= ruleSignedInt ) ) ( (lv_dateRange_3_0= ruleTableRangeElement ) ) ) |
| // InternalTableDSL.g:2435:3: () otherlv_1= 'daysInPast' ( (lv_dateIntervalValue_2_0= ruleSignedInt ) ) ( (lv_dateRange_3_0= ruleTableRangeElement ) ) |
| { |
| // InternalTableDSL.g:2435:3: () |
| // InternalTableDSL.g:2436:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getTableDateDayIntervalAccess().getTableDateDayIntervalAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,58,FOLLOW_29); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTableDateDayIntervalAccess().getDaysInPastKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:2446:3: ( (lv_dateIntervalValue_2_0= ruleSignedInt ) ) |
| // InternalTableDSL.g:2447:4: (lv_dateIntervalValue_2_0= ruleSignedInt ) |
| { |
| // InternalTableDSL.g:2447:4: (lv_dateIntervalValue_2_0= ruleSignedInt ) |
| // InternalTableDSL.g:2448:5: lv_dateIntervalValue_2_0= ruleSignedInt |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableDateDayIntervalAccess().getDateIntervalValueSignedIntParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_28); |
| lv_dateIntervalValue_2_0=ruleSignedInt(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableDateDayIntervalRule()); |
| } |
| set( |
| current, |
| "dateIntervalValue", |
| lv_dateIntervalValue_2_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.SignedInt"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:2465:3: ( (lv_dateRange_3_0= ruleTableRangeElement ) ) |
| // InternalTableDSL.g:2466:4: (lv_dateRange_3_0= ruleTableRangeElement ) |
| { |
| // InternalTableDSL.g:2466:4: (lv_dateRange_3_0= ruleTableRangeElement ) |
| // InternalTableDSL.g:2467:5: lv_dateRange_3_0= ruleTableRangeElement |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableDateDayIntervalAccess().getDateRangeTableRangeElementParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_dateRange_3_0=ruleTableRangeElement(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableDateDayIntervalRule()); |
| } |
| set( |
| current, |
| "dateRange", |
| lv_dateRange_3_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TableRangeElement"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableDateDayInterval" |
| |
| |
| // $ANTLR start "entryRuleTableLookup" |
| // InternalTableDSL.g:2488:1: entryRuleTableLookup returns [EObject current=null] : iv_ruleTableLookup= ruleTableLookup EOF ; |
| public final EObject entryRuleTableLookup() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableLookup = null; |
| |
| |
| try { |
| // InternalTableDSL.g:2488:52: (iv_ruleTableLookup= ruleTableLookup EOF ) |
| // InternalTableDSL.g:2489:2: iv_ruleTableLookup= ruleTableLookup EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableLookupRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableLookup=ruleTableLookup(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableLookup; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableLookup" |
| |
| |
| // $ANTLR start "ruleTableLookup" |
| // InternalTableDSL.g:2495:1: ruleTableLookup returns [EObject current=null] : (this_TableNumberLookup_0= ruleTableNumberLookup | this_TableIntLookup_1= ruleTableIntLookup | this_TableStringLookup_2= ruleTableStringLookup | this_TableDateDayLookup_3= ruleTableDateDayLookup ) ; |
| public final EObject ruleTableLookup() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_TableNumberLookup_0 = null; |
| |
| EObject this_TableIntLookup_1 = null; |
| |
| EObject this_TableStringLookup_2 = null; |
| |
| EObject this_TableDateDayLookup_3 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:2501:2: ( (this_TableNumberLookup_0= ruleTableNumberLookup | this_TableIntLookup_1= ruleTableIntLookup | this_TableStringLookup_2= ruleTableStringLookup | this_TableDateDayLookup_3= ruleTableDateDayLookup ) ) |
| // InternalTableDSL.g:2502:2: (this_TableNumberLookup_0= ruleTableNumberLookup | this_TableIntLookup_1= ruleTableIntLookup | this_TableStringLookup_2= ruleTableStringLookup | this_TableDateDayLookup_3= ruleTableDateDayLookup ) |
| { |
| // InternalTableDSL.g:2502:2: (this_TableNumberLookup_0= ruleTableNumberLookup | this_TableIntLookup_1= ruleTableIntLookup | this_TableStringLookup_2= ruleTableStringLookup | this_TableDateDayLookup_3= ruleTableDateDayLookup ) |
| int alt24=4; |
| switch ( input.LA(1) ) { |
| case 60: |
| { |
| alt24=1; |
| } |
| break; |
| case 59: |
| { |
| alt24=2; |
| } |
| break; |
| case 61: |
| { |
| alt24=3; |
| } |
| break; |
| case 58: |
| { |
| alt24=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 24, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt24) { |
| case 1 : |
| // InternalTableDSL.g:2503:3: this_TableNumberLookup_0= ruleTableNumberLookup |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableLookupAccess().getTableNumberLookupParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_TableNumberLookup_0=ruleTableNumberLookup(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TableNumberLookup_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:2512:3: this_TableIntLookup_1= ruleTableIntLookup |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableLookupAccess().getTableIntLookupParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_TableIntLookup_1=ruleTableIntLookup(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TableIntLookup_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalTableDSL.g:2521:3: this_TableStringLookup_2= ruleTableStringLookup |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableLookupAccess().getTableStringLookupParserRuleCall_2()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_TableStringLookup_2=ruleTableStringLookup(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TableStringLookup_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalTableDSL.g:2530:3: this_TableDateDayLookup_3= ruleTableDateDayLookup |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableLookupAccess().getTableDateDayLookupParserRuleCall_3()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_TableDateDayLookup_3=ruleTableDateDayLookup(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TableDateDayLookup_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableLookup" |
| |
| |
| // $ANTLR start "entryRuleTableIntLookup" |
| // InternalTableDSL.g:2542:1: entryRuleTableIntLookup returns [EObject current=null] : iv_ruleTableIntLookup= ruleTableIntLookup EOF ; |
| public final EObject entryRuleTableIntLookup() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableIntLookup = null; |
| |
| |
| try { |
| // InternalTableDSL.g:2542:55: (iv_ruleTableIntLookup= ruleTableIntLookup EOF ) |
| // InternalTableDSL.g:2543:2: iv_ruleTableIntLookup= ruleTableIntLookup EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableIntLookupRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableIntLookup=ruleTableIntLookup(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableIntLookup; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableIntLookup" |
| |
| |
| // $ANTLR start "ruleTableIntLookup" |
| // InternalTableDSL.g:2549:1: ruleTableIntLookup returns [EObject current=null] : ( () otherlv_1= 'integer' ( (lv_lookupValue_2_0= ruleSignedInt ) ) ( (lv_discrete_3_0= ruleTableRangeElement ) ) ) ; |
| public final EObject ruleTableIntLookup() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| AntlrDatatypeRuleToken lv_lookupValue_2_0 = null; |
| |
| EObject lv_discrete_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:2555:2: ( ( () otherlv_1= 'integer' ( (lv_lookupValue_2_0= ruleSignedInt ) ) ( (lv_discrete_3_0= ruleTableRangeElement ) ) ) ) |
| // InternalTableDSL.g:2556:2: ( () otherlv_1= 'integer' ( (lv_lookupValue_2_0= ruleSignedInt ) ) ( (lv_discrete_3_0= ruleTableRangeElement ) ) ) |
| { |
| // InternalTableDSL.g:2556:2: ( () otherlv_1= 'integer' ( (lv_lookupValue_2_0= ruleSignedInt ) ) ( (lv_discrete_3_0= ruleTableRangeElement ) ) ) |
| // InternalTableDSL.g:2557:3: () otherlv_1= 'integer' ( (lv_lookupValue_2_0= ruleSignedInt ) ) ( (lv_discrete_3_0= ruleTableRangeElement ) ) |
| { |
| // InternalTableDSL.g:2557:3: () |
| // InternalTableDSL.g:2558:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getTableIntLookupAccess().getTableIntLookupAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,59,FOLLOW_29); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTableIntLookupAccess().getIntegerKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:2568:3: ( (lv_lookupValue_2_0= ruleSignedInt ) ) |
| // InternalTableDSL.g:2569:4: (lv_lookupValue_2_0= ruleSignedInt ) |
| { |
| // InternalTableDSL.g:2569:4: (lv_lookupValue_2_0= ruleSignedInt ) |
| // InternalTableDSL.g:2570:5: lv_lookupValue_2_0= ruleSignedInt |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableIntLookupAccess().getLookupValueSignedIntParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_28); |
| lv_lookupValue_2_0=ruleSignedInt(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableIntLookupRule()); |
| } |
| set( |
| current, |
| "lookupValue", |
| lv_lookupValue_2_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.SignedInt"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:2587:3: ( (lv_discrete_3_0= ruleTableRangeElement ) ) |
| // InternalTableDSL.g:2588:4: (lv_discrete_3_0= ruleTableRangeElement ) |
| { |
| // InternalTableDSL.g:2588:4: (lv_discrete_3_0= ruleTableRangeElement ) |
| // InternalTableDSL.g:2589:5: lv_discrete_3_0= ruleTableRangeElement |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableIntLookupAccess().getDiscreteTableRangeElementParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_discrete_3_0=ruleTableRangeElement(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableIntLookupRule()); |
| } |
| set( |
| current, |
| "discrete", |
| lv_discrete_3_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TableRangeElement"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableIntLookup" |
| |
| |
| // $ANTLR start "entryRuleTableNumberLookup" |
| // InternalTableDSL.g:2610:1: entryRuleTableNumberLookup returns [EObject current=null] : iv_ruleTableNumberLookup= ruleTableNumberLookup EOF ; |
| public final EObject entryRuleTableNumberLookup() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableNumberLookup = null; |
| |
| |
| try { |
| // InternalTableDSL.g:2610:58: (iv_ruleTableNumberLookup= ruleTableNumberLookup EOF ) |
| // InternalTableDSL.g:2611:2: iv_ruleTableNumberLookup= ruleTableNumberLookup EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableNumberLookupRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableNumberLookup=ruleTableNumberLookup(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableNumberLookup; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableNumberLookup" |
| |
| |
| // $ANTLR start "ruleTableNumberLookup" |
| // InternalTableDSL.g:2617:1: ruleTableNumberLookup returns [EObject current=null] : ( () otherlv_1= 'number' ( (lv_lookupValue_2_0= ruleSignedNumber ) ) ( (lv_discrete_3_0= ruleTableRangeElement ) ) ) ; |
| public final EObject ruleTableNumberLookup() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| AntlrDatatypeRuleToken lv_lookupValue_2_0 = null; |
| |
| EObject lv_discrete_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:2623:2: ( ( () otherlv_1= 'number' ( (lv_lookupValue_2_0= ruleSignedNumber ) ) ( (lv_discrete_3_0= ruleTableRangeElement ) ) ) ) |
| // InternalTableDSL.g:2624:2: ( () otherlv_1= 'number' ( (lv_lookupValue_2_0= ruleSignedNumber ) ) ( (lv_discrete_3_0= ruleTableRangeElement ) ) ) |
| { |
| // InternalTableDSL.g:2624:2: ( () otherlv_1= 'number' ( (lv_lookupValue_2_0= ruleSignedNumber ) ) ( (lv_discrete_3_0= ruleTableRangeElement ) ) ) |
| // InternalTableDSL.g:2625:3: () otherlv_1= 'number' ( (lv_lookupValue_2_0= ruleSignedNumber ) ) ( (lv_discrete_3_0= ruleTableRangeElement ) ) |
| { |
| // InternalTableDSL.g:2625:3: () |
| // InternalTableDSL.g:2626:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getTableNumberLookupAccess().getTableNumberLookupAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,60,FOLLOW_27); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTableNumberLookupAccess().getNumberKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:2636:3: ( (lv_lookupValue_2_0= ruleSignedNumber ) ) |
| // InternalTableDSL.g:2637:4: (lv_lookupValue_2_0= ruleSignedNumber ) |
| { |
| // InternalTableDSL.g:2637:4: (lv_lookupValue_2_0= ruleSignedNumber ) |
| // InternalTableDSL.g:2638:5: lv_lookupValue_2_0= ruleSignedNumber |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableNumberLookupAccess().getLookupValueSignedNumberParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_28); |
| lv_lookupValue_2_0=ruleSignedNumber(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableNumberLookupRule()); |
| } |
| set( |
| current, |
| "lookupValue", |
| lv_lookupValue_2_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.SignedNumber"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:2655:3: ( (lv_discrete_3_0= ruleTableRangeElement ) ) |
| // InternalTableDSL.g:2656:4: (lv_discrete_3_0= ruleTableRangeElement ) |
| { |
| // InternalTableDSL.g:2656:4: (lv_discrete_3_0= ruleTableRangeElement ) |
| // InternalTableDSL.g:2657:5: lv_discrete_3_0= ruleTableRangeElement |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableNumberLookupAccess().getDiscreteTableRangeElementParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_discrete_3_0=ruleTableRangeElement(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableNumberLookupRule()); |
| } |
| set( |
| current, |
| "discrete", |
| lv_discrete_3_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TableRangeElement"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableNumberLookup" |
| |
| |
| // $ANTLR start "entryRuleTableStringLookup" |
| // InternalTableDSL.g:2678:1: entryRuleTableStringLookup returns [EObject current=null] : iv_ruleTableStringLookup= ruleTableStringLookup EOF ; |
| public final EObject entryRuleTableStringLookup() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableStringLookup = null; |
| |
| |
| try { |
| // InternalTableDSL.g:2678:58: (iv_ruleTableStringLookup= ruleTableStringLookup EOF ) |
| // InternalTableDSL.g:2679:2: iv_ruleTableStringLookup= ruleTableStringLookup EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableStringLookupRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableStringLookup=ruleTableStringLookup(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableStringLookup; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableStringLookup" |
| |
| |
| // $ANTLR start "ruleTableStringLookup" |
| // InternalTableDSL.g:2685:1: ruleTableStringLookup returns [EObject current=null] : ( () otherlv_1= 'string' ( (lv_lookupValue_2_0= RULE_STRING ) ) ( (lv_discrete_3_0= ruleTableRangeElement ) ) ) ; |
| public final EObject ruleTableStringLookup() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_lookupValue_2_0=null; |
| EObject lv_discrete_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:2691:2: ( ( () otherlv_1= 'string' ( (lv_lookupValue_2_0= RULE_STRING ) ) ( (lv_discrete_3_0= ruleTableRangeElement ) ) ) ) |
| // InternalTableDSL.g:2692:2: ( () otherlv_1= 'string' ( (lv_lookupValue_2_0= RULE_STRING ) ) ( (lv_discrete_3_0= ruleTableRangeElement ) ) ) |
| { |
| // InternalTableDSL.g:2692:2: ( () otherlv_1= 'string' ( (lv_lookupValue_2_0= RULE_STRING ) ) ( (lv_discrete_3_0= ruleTableRangeElement ) ) ) |
| // InternalTableDSL.g:2693:3: () otherlv_1= 'string' ( (lv_lookupValue_2_0= RULE_STRING ) ) ( (lv_discrete_3_0= ruleTableRangeElement ) ) |
| { |
| // InternalTableDSL.g:2693:3: () |
| // InternalTableDSL.g:2694:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getTableStringLookupAccess().getTableStringLookupAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,61,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTableStringLookupAccess().getStringKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:2704:3: ( (lv_lookupValue_2_0= RULE_STRING ) ) |
| // InternalTableDSL.g:2705:4: (lv_lookupValue_2_0= RULE_STRING ) |
| { |
| // InternalTableDSL.g:2705:4: (lv_lookupValue_2_0= RULE_STRING ) |
| // InternalTableDSL.g:2706:5: lv_lookupValue_2_0= RULE_STRING |
| { |
| lv_lookupValue_2_0=(Token)match(input,RULE_STRING,FOLLOW_28); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_lookupValue_2_0, grammarAccess.getTableStringLookupAccess().getLookupValueSTRINGTerminalRuleCall_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableStringLookupRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "lookupValue", |
| lv_lookupValue_2_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:2722:3: ( (lv_discrete_3_0= ruleTableRangeElement ) ) |
| // InternalTableDSL.g:2723:4: (lv_discrete_3_0= ruleTableRangeElement ) |
| { |
| // InternalTableDSL.g:2723:4: (lv_discrete_3_0= ruleTableRangeElement ) |
| // InternalTableDSL.g:2724:5: lv_discrete_3_0= ruleTableRangeElement |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableStringLookupAccess().getDiscreteTableRangeElementParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_discrete_3_0=ruleTableRangeElement(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableStringLookupRule()); |
| } |
| set( |
| current, |
| "discrete", |
| lv_discrete_3_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TableRangeElement"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableStringLookup" |
| |
| |
| // $ANTLR start "entryRuleTableDateDayLookup" |
| // InternalTableDSL.g:2745:1: entryRuleTableDateDayLookup returns [EObject current=null] : iv_ruleTableDateDayLookup= ruleTableDateDayLookup EOF ; |
| public final EObject entryRuleTableDateDayLookup() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableDateDayLookup = null; |
| |
| |
| try { |
| // InternalTableDSL.g:2745:59: (iv_ruleTableDateDayLookup= ruleTableDateDayLookup EOF ) |
| // InternalTableDSL.g:2746:2: iv_ruleTableDateDayLookup= ruleTableDateDayLookup EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableDateDayLookupRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableDateDayLookup=ruleTableDateDayLookup(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableDateDayLookup; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableDateDayLookup" |
| |
| |
| // $ANTLR start "ruleTableDateDayLookup" |
| // InternalTableDSL.g:2752:1: ruleTableDateDayLookup returns [EObject current=null] : ( () otherlv_1= 'daysInPast' ( (lv_lookupValue_2_0= ruleSignedInt ) ) ( (lv_discrete_3_0= ruleTableRangeElement ) ) ) ; |
| public final EObject ruleTableDateDayLookup() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| AntlrDatatypeRuleToken lv_lookupValue_2_0 = null; |
| |
| EObject lv_discrete_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:2758:2: ( ( () otherlv_1= 'daysInPast' ( (lv_lookupValue_2_0= ruleSignedInt ) ) ( (lv_discrete_3_0= ruleTableRangeElement ) ) ) ) |
| // InternalTableDSL.g:2759:2: ( () otherlv_1= 'daysInPast' ( (lv_lookupValue_2_0= ruleSignedInt ) ) ( (lv_discrete_3_0= ruleTableRangeElement ) ) ) |
| { |
| // InternalTableDSL.g:2759:2: ( () otherlv_1= 'daysInPast' ( (lv_lookupValue_2_0= ruleSignedInt ) ) ( (lv_discrete_3_0= ruleTableRangeElement ) ) ) |
| // InternalTableDSL.g:2760:3: () otherlv_1= 'daysInPast' ( (lv_lookupValue_2_0= ruleSignedInt ) ) ( (lv_discrete_3_0= ruleTableRangeElement ) ) |
| { |
| // InternalTableDSL.g:2760:3: () |
| // InternalTableDSL.g:2761:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getTableDateDayLookupAccess().getTableDateDayLookupAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,58,FOLLOW_29); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTableDateDayLookupAccess().getDaysInPastKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:2771:3: ( (lv_lookupValue_2_0= ruleSignedInt ) ) |
| // InternalTableDSL.g:2772:4: (lv_lookupValue_2_0= ruleSignedInt ) |
| { |
| // InternalTableDSL.g:2772:4: (lv_lookupValue_2_0= ruleSignedInt ) |
| // InternalTableDSL.g:2773:5: lv_lookupValue_2_0= ruleSignedInt |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableDateDayLookupAccess().getLookupValueSignedIntParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_28); |
| lv_lookupValue_2_0=ruleSignedInt(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableDateDayLookupRule()); |
| } |
| set( |
| current, |
| "lookupValue", |
| lv_lookupValue_2_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.SignedInt"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:2790:3: ( (lv_discrete_3_0= ruleTableRangeElement ) ) |
| // InternalTableDSL.g:2791:4: (lv_discrete_3_0= ruleTableRangeElement ) |
| { |
| // InternalTableDSL.g:2791:4: (lv_discrete_3_0= ruleTableRangeElement ) |
| // InternalTableDSL.g:2792:5: lv_discrete_3_0= ruleTableRangeElement |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableDateDayLookupAccess().getDiscreteTableRangeElementParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_discrete_3_0=ruleTableRangeElement(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableDateDayLookupRule()); |
| } |
| set( |
| current, |
| "discrete", |
| lv_discrete_3_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TableRangeElement"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableDateDayLookup" |
| |
| |
| // $ANTLR start "entryRuleTableDatamart" |
| // InternalTableDSL.g:2813:1: entryRuleTableDatamart returns [EObject current=null] : iv_ruleTableDatamart= ruleTableDatamart EOF ; |
| public final EObject entryRuleTableDatamart() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableDatamart = null; |
| |
| |
| try { |
| // InternalTableDSL.g:2813:54: (iv_ruleTableDatamart= ruleTableDatamart EOF ) |
| // InternalTableDSL.g:2814:2: iv_ruleTableDatamart= ruleTableDatamart EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableDatamartRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableDatamart=ruleTableDatamart(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableDatamart; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableDatamart" |
| |
| |
| // $ANTLR start "ruleTableDatamart" |
| // InternalTableDSL.g:2820:1: ruleTableDatamart returns [EObject current=null] : (otherlv_0= 'datamart' ( (otherlv_1= RULE_ID ) ) (otherlv_2= '{' ( (lv_elements_3_0= ruleTableElement ) )* otherlv_4= '}' )? ) ; |
| public final EObject ruleTableDatamart() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| EObject lv_elements_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:2826:2: ( (otherlv_0= 'datamart' ( (otherlv_1= RULE_ID ) ) (otherlv_2= '{' ( (lv_elements_3_0= ruleTableElement ) )* otherlv_4= '}' )? ) ) |
| // InternalTableDSL.g:2827:2: (otherlv_0= 'datamart' ( (otherlv_1= RULE_ID ) ) (otherlv_2= '{' ( (lv_elements_3_0= ruleTableElement ) )* otherlv_4= '}' )? ) |
| { |
| // InternalTableDSL.g:2827:2: (otherlv_0= 'datamart' ( (otherlv_1= RULE_ID ) ) (otherlv_2= '{' ( (lv_elements_3_0= ruleTableElement ) )* otherlv_4= '}' )? ) |
| // InternalTableDSL.g:2828:3: otherlv_0= 'datamart' ( (otherlv_1= RULE_ID ) ) (otherlv_2= '{' ( (lv_elements_3_0= ruleTableElement ) )* otherlv_4= '}' )? |
| { |
| otherlv_0=(Token)match(input,62,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getTableDatamartAccess().getDatamartKeyword_0()); |
| |
| } |
| // InternalTableDSL.g:2832:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalTableDSL.g:2833:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalTableDSL.g:2833:4: (otherlv_1= RULE_ID ) |
| // InternalTableDSL.g:2834:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableDatamartRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_5); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTableDatamartAccess().getDatamartRefDatamartDefinitionCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:2845:3: (otherlv_2= '{' ( (lv_elements_3_0= ruleTableElement ) )* otherlv_4= '}' )? |
| int alt26=2; |
| int LA26_0 = input.LA(1); |
| |
| if ( (LA26_0==16) ) { |
| alt26=1; |
| } |
| switch (alt26) { |
| case 1 : |
| // InternalTableDSL.g:2846:4: otherlv_2= '{' ( (lv_elements_3_0= ruleTableElement ) )* otherlv_4= '}' |
| { |
| otherlv_2=(Token)match(input,16,FOLLOW_30); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getTableDatamartAccess().getLeftCurlyBracketKeyword_2_0()); |
| |
| } |
| // InternalTableDSL.g:2850:4: ( (lv_elements_3_0= ruleTableElement ) )* |
| loop25: |
| do { |
| int alt25=2; |
| int LA25_0 = input.LA(1); |
| |
| if ( (LA25_0==63) ) { |
| alt25=1; |
| } |
| |
| |
| switch (alt25) { |
| case 1 : |
| // InternalTableDSL.g:2851:5: (lv_elements_3_0= ruleTableElement ) |
| { |
| // InternalTableDSL.g:2851:5: (lv_elements_3_0= ruleTableElement ) |
| // InternalTableDSL.g:2852:6: lv_elements_3_0= ruleTableElement |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableDatamartAccess().getElementsTableElementParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_30); |
| lv_elements_3_0=ruleTableElement(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableDatamartRule()); |
| } |
| add( |
| current, |
| "elements", |
| lv_elements_3_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TableElement"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop25; |
| } |
| } while (true); |
| |
| otherlv_4=(Token)match(input,17,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getTableDatamartAccess().getRightCurlyBracketKeyword_2_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableDatamart" |
| |
| |
| // $ANTLR start "entryRuleTableElement" |
| // InternalTableDSL.g:2878:1: entryRuleTableElement returns [EObject current=null] : iv_ruleTableElement= ruleTableElement EOF ; |
| public final EObject entryRuleTableElement() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableElement = null; |
| |
| |
| try { |
| // InternalTableDSL.g:2878:53: (iv_ruleTableElement= ruleTableElement EOF ) |
| // InternalTableDSL.g:2879:2: iv_ruleTableElement= ruleTableElement EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableElementRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableElement=ruleTableElement(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableElement; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableElement" |
| |
| |
| // $ANTLR start "ruleTableElement" |
| // InternalTableDSL.g:2885:1: ruleTableElement returns [EObject current=null] : this_TableAxis_0= ruleTableAxis ; |
| public final EObject ruleTableElement() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_TableAxis_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:2891:2: (this_TableAxis_0= ruleTableAxis ) |
| // InternalTableDSL.g:2892:2: this_TableAxis_0= ruleTableAxis |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableElementAccess().getTableAxisParserRuleCall()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_TableAxis_0=ruleTableAxis(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TableAxis_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableElement" |
| |
| |
| // $ANTLR start "entryRuleTableEvent" |
| // InternalTableDSL.g:2903:1: entryRuleTableEvent returns [EObject current=null] : iv_ruleTableEvent= ruleTableEvent EOF ; |
| public final EObject entryRuleTableEvent() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableEvent = null; |
| |
| |
| try { |
| // InternalTableDSL.g:2903:51: (iv_ruleTableEvent= ruleTableEvent EOF ) |
| // InternalTableDSL.g:2904:2: iv_ruleTableEvent= ruleTableEvent EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableEventRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableEvent=ruleTableEvent(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableEvent; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableEvent" |
| |
| |
| // $ANTLR start "ruleTableEvent" |
| // InternalTableDSL.g:2910:1: ruleTableEvent returns [EObject current=null] : ( (lv_source_0_0= ruleTableValueElement ) ) ; |
| public final EObject ruleTableEvent() throws RecognitionException { |
| EObject current = null; |
| |
| EObject lv_source_0_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:2916:2: ( ( (lv_source_0_0= ruleTableValueElement ) ) ) |
| // InternalTableDSL.g:2917:2: ( (lv_source_0_0= ruleTableValueElement ) ) |
| { |
| // InternalTableDSL.g:2917:2: ( (lv_source_0_0= ruleTableValueElement ) ) |
| // InternalTableDSL.g:2918:3: (lv_source_0_0= ruleTableValueElement ) |
| { |
| // InternalTableDSL.g:2918:3: (lv_source_0_0= ruleTableValueElement ) |
| // InternalTableDSL.g:2919:4: lv_source_0_0= ruleTableValueElement |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableEventAccess().getSourceTableValueElementParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_source_0_0=ruleTableValueElement(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableEventRule()); |
| } |
| set( |
| current, |
| "source", |
| lv_source_0_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TableValueElement"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableEvent" |
| |
| |
| // $ANTLR start "entryRuleTableAxis" |
| // InternalTableDSL.g:2939:1: entryRuleTableAxis returns [EObject current=null] : iv_ruleTableAxis= ruleTableAxis EOF ; |
| public final EObject entryRuleTableAxis() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableAxis = null; |
| |
| |
| try { |
| // InternalTableDSL.g:2939:50: (iv_ruleTableAxis= ruleTableAxis EOF ) |
| // InternalTableDSL.g:2940:2: iv_ruleTableAxis= ruleTableAxis EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableAxisRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableAxis=ruleTableAxis(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableAxis; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableAxis" |
| |
| |
| // $ANTLR start "ruleTableAxis" |
| // InternalTableDSL.g:2946:1: ruleTableAxis returns [EObject current=null] : (otherlv_0= 'axis' ( (lv_axis_1_0= ruleAxisEnum ) ) ( ( ( ( ({...}? => ( ({...}? => ( ( (lv_hasRowHeight_3_0= 'rowheight' ) ) ( (lv_rowHeight_4_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_preOrder_5_0= ruleTablePreorder ) ) ) ) ) )* ) ) ) ( ( (lv_hasDetails_6_0= 'details' ) ) otherlv_7= '{' ( (lv_values_8_0= ruleTableValue ) )* otherlv_9= '}' )? ( ( (lv_hasEvents_10_0= 'notifyOnSelect' ) ) otherlv_11= '{' ( (lv_events_12_0= ruleTableEvent ) )* otherlv_13= '}' )? ) ; |
| public final EObject ruleTableAxis() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token lv_hasRowHeight_3_0=null; |
| Token lv_hasDetails_6_0=null; |
| Token otherlv_7=null; |
| Token otherlv_9=null; |
| Token lv_hasEvents_10_0=null; |
| Token otherlv_11=null; |
| Token otherlv_13=null; |
| Enumerator lv_axis_1_0 = null; |
| |
| AntlrDatatypeRuleToken lv_rowHeight_4_0 = null; |
| |
| EObject lv_preOrder_5_0 = null; |
| |
| EObject lv_values_8_0 = null; |
| |
| EObject lv_events_12_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:2952:2: ( (otherlv_0= 'axis' ( (lv_axis_1_0= ruleAxisEnum ) ) ( ( ( ( ({...}? => ( ({...}? => ( ( (lv_hasRowHeight_3_0= 'rowheight' ) ) ( (lv_rowHeight_4_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_preOrder_5_0= ruleTablePreorder ) ) ) ) ) )* ) ) ) ( ( (lv_hasDetails_6_0= 'details' ) ) otherlv_7= '{' ( (lv_values_8_0= ruleTableValue ) )* otherlv_9= '}' )? ( ( (lv_hasEvents_10_0= 'notifyOnSelect' ) ) otherlv_11= '{' ( (lv_events_12_0= ruleTableEvent ) )* otherlv_13= '}' )? ) ) |
| // InternalTableDSL.g:2953:2: (otherlv_0= 'axis' ( (lv_axis_1_0= ruleAxisEnum ) ) ( ( ( ( ({...}? => ( ({...}? => ( ( (lv_hasRowHeight_3_0= 'rowheight' ) ) ( (lv_rowHeight_4_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_preOrder_5_0= ruleTablePreorder ) ) ) ) ) )* ) ) ) ( ( (lv_hasDetails_6_0= 'details' ) ) otherlv_7= '{' ( (lv_values_8_0= ruleTableValue ) )* otherlv_9= '}' )? ( ( (lv_hasEvents_10_0= 'notifyOnSelect' ) ) otherlv_11= '{' ( (lv_events_12_0= ruleTableEvent ) )* otherlv_13= '}' )? ) |
| { |
| // InternalTableDSL.g:2953:2: (otherlv_0= 'axis' ( (lv_axis_1_0= ruleAxisEnum ) ) ( ( ( ( ({...}? => ( ({...}? => ( ( (lv_hasRowHeight_3_0= 'rowheight' ) ) ( (lv_rowHeight_4_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_preOrder_5_0= ruleTablePreorder ) ) ) ) ) )* ) ) ) ( ( (lv_hasDetails_6_0= 'details' ) ) otherlv_7= '{' ( (lv_values_8_0= ruleTableValue ) )* otherlv_9= '}' )? ( ( (lv_hasEvents_10_0= 'notifyOnSelect' ) ) otherlv_11= '{' ( (lv_events_12_0= ruleTableEvent ) )* otherlv_13= '}' )? ) |
| // InternalTableDSL.g:2954:3: otherlv_0= 'axis' ( (lv_axis_1_0= ruleAxisEnum ) ) ( ( ( ( ({...}? => ( ({...}? => ( ( (lv_hasRowHeight_3_0= 'rowheight' ) ) ( (lv_rowHeight_4_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_preOrder_5_0= ruleTablePreorder ) ) ) ) ) )* ) ) ) ( ( (lv_hasDetails_6_0= 'details' ) ) otherlv_7= '{' ( (lv_values_8_0= ruleTableValue ) )* otherlv_9= '}' )? ( ( (lv_hasEvents_10_0= 'notifyOnSelect' ) ) otherlv_11= '{' ( (lv_events_12_0= ruleTableEvent ) )* otherlv_13= '}' )? |
| { |
| otherlv_0=(Token)match(input,63,FOLLOW_31); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getTableAxisAccess().getAxisKeyword_0()); |
| |
| } |
| // InternalTableDSL.g:2958:3: ( (lv_axis_1_0= ruleAxisEnum ) ) |
| // InternalTableDSL.g:2959:4: (lv_axis_1_0= ruleAxisEnum ) |
| { |
| // InternalTableDSL.g:2959:4: (lv_axis_1_0= ruleAxisEnum ) |
| // InternalTableDSL.g:2960:5: lv_axis_1_0= ruleAxisEnum |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableAxisAccess().getAxisAxisEnumEnumRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_32); |
| lv_axis_1_0=ruleAxisEnum(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableAxisRule()); |
| } |
| set( |
| current, |
| "axis", |
| lv_axis_1_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.AxisEnum"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:2977:3: ( ( ( ( ({...}? => ( ({...}? => ( ( (lv_hasRowHeight_3_0= 'rowheight' ) ) ( (lv_rowHeight_4_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_preOrder_5_0= ruleTablePreorder ) ) ) ) ) )* ) ) ) |
| // InternalTableDSL.g:2978:4: ( ( ( ({...}? => ( ({...}? => ( ( (lv_hasRowHeight_3_0= 'rowheight' ) ) ( (lv_rowHeight_4_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_preOrder_5_0= ruleTablePreorder ) ) ) ) ) )* ) ) |
| { |
| // InternalTableDSL.g:2978:4: ( ( ( ({...}? => ( ({...}? => ( ( (lv_hasRowHeight_3_0= 'rowheight' ) ) ( (lv_rowHeight_4_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_preOrder_5_0= ruleTablePreorder ) ) ) ) ) )* ) ) |
| // InternalTableDSL.g:2979:5: ( ( ({...}? => ( ({...}? => ( ( (lv_hasRowHeight_3_0= 'rowheight' ) ) ( (lv_rowHeight_4_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_preOrder_5_0= ruleTablePreorder ) ) ) ) ) )* ) |
| { |
| getUnorderedGroupHelper().enter(grammarAccess.getTableAxisAccess().getUnorderedGroup_2()); |
| // InternalTableDSL.g:2982:5: ( ( ({...}? => ( ({...}? => ( ( (lv_hasRowHeight_3_0= 'rowheight' ) ) ( (lv_rowHeight_4_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_preOrder_5_0= ruleTablePreorder ) ) ) ) ) )* ) |
| // InternalTableDSL.g:2983:6: ( ({...}? => ( ({...}? => ( ( (lv_hasRowHeight_3_0= 'rowheight' ) ) ( (lv_rowHeight_4_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_preOrder_5_0= ruleTablePreorder ) ) ) ) ) )* |
| { |
| // InternalTableDSL.g:2983:6: ( ({...}? => ( ({...}? => ( ( (lv_hasRowHeight_3_0= 'rowheight' ) ) ( (lv_rowHeight_4_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_preOrder_5_0= ruleTablePreorder ) ) ) ) ) )* |
| loop27: |
| do { |
| int alt27=3; |
| int LA27_0 = input.LA(1); |
| |
| if ( LA27_0 == 64 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableAxisAccess().getUnorderedGroup_2(), 0) ) { |
| alt27=1; |
| } |
| else if ( LA27_0 == 33 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableAxisAccess().getUnorderedGroup_2(), 1) ) { |
| alt27=2; |
| } |
| |
| |
| switch (alt27) { |
| case 1 : |
| // InternalTableDSL.g:2984:4: ({...}? => ( ({...}? => ( ( (lv_hasRowHeight_3_0= 'rowheight' ) ) ( (lv_rowHeight_4_0= ruleNumber ) ) ) ) ) ) |
| { |
| // InternalTableDSL.g:2984:4: ({...}? => ( ({...}? => ( ( (lv_hasRowHeight_3_0= 'rowheight' ) ) ( (lv_rowHeight_4_0= ruleNumber ) ) ) ) ) ) |
| // InternalTableDSL.g:2985:5: {...}? => ( ({...}? => ( ( (lv_hasRowHeight_3_0= 'rowheight' ) ) ( (lv_rowHeight_4_0= ruleNumber ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableAxisAccess().getUnorderedGroup_2(), 0) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableAxis", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableAxisAccess().getUnorderedGroup_2(), 0)"); |
| } |
| // InternalTableDSL.g:2985:106: ( ({...}? => ( ( (lv_hasRowHeight_3_0= 'rowheight' ) ) ( (lv_rowHeight_4_0= ruleNumber ) ) ) ) ) |
| // InternalTableDSL.g:2986:6: ({...}? => ( ( (lv_hasRowHeight_3_0= 'rowheight' ) ) ( (lv_rowHeight_4_0= ruleNumber ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableAxisAccess().getUnorderedGroup_2(), 0); |
| // InternalTableDSL.g:2989:9: ({...}? => ( ( (lv_hasRowHeight_3_0= 'rowheight' ) ) ( (lv_rowHeight_4_0= ruleNumber ) ) ) ) |
| // InternalTableDSL.g:2989:10: {...}? => ( ( (lv_hasRowHeight_3_0= 'rowheight' ) ) ( (lv_rowHeight_4_0= ruleNumber ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableAxis", "true"); |
| } |
| // InternalTableDSL.g:2989:19: ( ( (lv_hasRowHeight_3_0= 'rowheight' ) ) ( (lv_rowHeight_4_0= ruleNumber ) ) ) |
| // InternalTableDSL.g:2989:20: ( (lv_hasRowHeight_3_0= 'rowheight' ) ) ( (lv_rowHeight_4_0= ruleNumber ) ) |
| { |
| // InternalTableDSL.g:2989:20: ( (lv_hasRowHeight_3_0= 'rowheight' ) ) |
| // InternalTableDSL.g:2990:10: (lv_hasRowHeight_3_0= 'rowheight' ) |
| { |
| // InternalTableDSL.g:2990:10: (lv_hasRowHeight_3_0= 'rowheight' ) |
| // InternalTableDSL.g:2991:11: lv_hasRowHeight_3_0= 'rowheight' |
| { |
| lv_hasRowHeight_3_0=(Token)match(input,64,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_hasRowHeight_3_0, grammarAccess.getTableAxisAccess().getHasRowHeightRowheightKeyword_2_0_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableAxisRule()); |
| } |
| setWithLastConsumed(current, "hasRowHeight", true, "rowheight"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:3003:9: ( (lv_rowHeight_4_0= ruleNumber ) ) |
| // InternalTableDSL.g:3004:10: (lv_rowHeight_4_0= ruleNumber ) |
| { |
| // InternalTableDSL.g:3004:10: (lv_rowHeight_4_0= ruleNumber ) |
| // InternalTableDSL.g:3005:11: lv_rowHeight_4_0= ruleNumber |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableAxisAccess().getRowHeightNumberParserRuleCall_2_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_32); |
| lv_rowHeight_4_0=ruleNumber(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableAxisRule()); |
| } |
| set( |
| current, |
| "rowHeight", |
| lv_rowHeight_4_0, |
| "org.eclipse.xtext.xbase.Xbase.Number"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableAxisAccess().getUnorderedGroup_2()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:3028:4: ({...}? => ( ({...}? => ( (lv_preOrder_5_0= ruleTablePreorder ) ) ) ) ) |
| { |
| // InternalTableDSL.g:3028:4: ({...}? => ( ({...}? => ( (lv_preOrder_5_0= ruleTablePreorder ) ) ) ) ) |
| // InternalTableDSL.g:3029:5: {...}? => ( ({...}? => ( (lv_preOrder_5_0= ruleTablePreorder ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableAxisAccess().getUnorderedGroup_2(), 1) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableAxis", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableAxisAccess().getUnorderedGroup_2(), 1)"); |
| } |
| // InternalTableDSL.g:3029:106: ( ({...}? => ( (lv_preOrder_5_0= ruleTablePreorder ) ) ) ) |
| // InternalTableDSL.g:3030:6: ({...}? => ( (lv_preOrder_5_0= ruleTablePreorder ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableAxisAccess().getUnorderedGroup_2(), 1); |
| // InternalTableDSL.g:3033:9: ({...}? => ( (lv_preOrder_5_0= ruleTablePreorder ) ) ) |
| // InternalTableDSL.g:3033:10: {...}? => ( (lv_preOrder_5_0= ruleTablePreorder ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableAxis", "true"); |
| } |
| // InternalTableDSL.g:3033:19: ( (lv_preOrder_5_0= ruleTablePreorder ) ) |
| // InternalTableDSL.g:3033:20: (lv_preOrder_5_0= ruleTablePreorder ) |
| { |
| // InternalTableDSL.g:3033:20: (lv_preOrder_5_0= ruleTablePreorder ) |
| // InternalTableDSL.g:3034:10: lv_preOrder_5_0= ruleTablePreorder |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableAxisAccess().getPreOrderTablePreorderParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_32); |
| lv_preOrder_5_0=ruleTablePreorder(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableAxisRule()); |
| } |
| set( |
| current, |
| "preOrder", |
| lv_preOrder_5_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TablePreorder"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableAxisAccess().getUnorderedGroup_2()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop27; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().leave(grammarAccess.getTableAxisAccess().getUnorderedGroup_2()); |
| |
| } |
| |
| // InternalTableDSL.g:3063:3: ( ( (lv_hasDetails_6_0= 'details' ) ) otherlv_7= '{' ( (lv_values_8_0= ruleTableValue ) )* otherlv_9= '}' )? |
| int alt29=2; |
| int LA29_0 = input.LA(1); |
| |
| if ( (LA29_0==65) ) { |
| alt29=1; |
| } |
| switch (alt29) { |
| case 1 : |
| // InternalTableDSL.g:3064:4: ( (lv_hasDetails_6_0= 'details' ) ) otherlv_7= '{' ( (lv_values_8_0= ruleTableValue ) )* otherlv_9= '}' |
| { |
| // InternalTableDSL.g:3064:4: ( (lv_hasDetails_6_0= 'details' ) ) |
| // InternalTableDSL.g:3065:5: (lv_hasDetails_6_0= 'details' ) |
| { |
| // InternalTableDSL.g:3065:5: (lv_hasDetails_6_0= 'details' ) |
| // InternalTableDSL.g:3066:6: lv_hasDetails_6_0= 'details' |
| { |
| lv_hasDetails_6_0=(Token)match(input,65,FOLLOW_22); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_hasDetails_6_0, grammarAccess.getTableAxisAccess().getHasDetailsDetailsKeyword_3_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableAxisRule()); |
| } |
| setWithLastConsumed(current, "hasDetails", true, "details"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_7=(Token)match(input,16,FOLLOW_33); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getTableAxisAccess().getLeftCurlyBracketKeyword_3_1()); |
| |
| } |
| // InternalTableDSL.g:3082:4: ( (lv_values_8_0= ruleTableValue ) )* |
| loop28: |
| do { |
| int alt28=2; |
| int LA28_0 = input.LA(1); |
| |
| if ( (LA28_0==35) ) { |
| alt28=1; |
| } |
| |
| |
| switch (alt28) { |
| case 1 : |
| // InternalTableDSL.g:3083:5: (lv_values_8_0= ruleTableValue ) |
| { |
| // InternalTableDSL.g:3083:5: (lv_values_8_0= ruleTableValue ) |
| // InternalTableDSL.g:3084:6: lv_values_8_0= ruleTableValue |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableAxisAccess().getValuesTableValueParserRuleCall_3_2_0()); |
| |
| } |
| pushFollow(FOLLOW_33); |
| lv_values_8_0=ruleTableValue(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableAxisRule()); |
| } |
| add( |
| current, |
| "values", |
| lv_values_8_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TableValue"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop28; |
| } |
| } while (true); |
| |
| otherlv_9=(Token)match(input,17,FOLLOW_34); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getTableAxisAccess().getRightCurlyBracketKeyword_3_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalTableDSL.g:3106:3: ( ( (lv_hasEvents_10_0= 'notifyOnSelect' ) ) otherlv_11= '{' ( (lv_events_12_0= ruleTableEvent ) )* otherlv_13= '}' )? |
| int alt31=2; |
| int LA31_0 = input.LA(1); |
| |
| if ( (LA31_0==66) ) { |
| alt31=1; |
| } |
| switch (alt31) { |
| case 1 : |
| // InternalTableDSL.g:3107:4: ( (lv_hasEvents_10_0= 'notifyOnSelect' ) ) otherlv_11= '{' ( (lv_events_12_0= ruleTableEvent ) )* otherlv_13= '}' |
| { |
| // InternalTableDSL.g:3107:4: ( (lv_hasEvents_10_0= 'notifyOnSelect' ) ) |
| // InternalTableDSL.g:3108:5: (lv_hasEvents_10_0= 'notifyOnSelect' ) |
| { |
| // InternalTableDSL.g:3108:5: (lv_hasEvents_10_0= 'notifyOnSelect' ) |
| // InternalTableDSL.g:3109:6: lv_hasEvents_10_0= 'notifyOnSelect' |
| { |
| lv_hasEvents_10_0=(Token)match(input,66,FOLLOW_22); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_hasEvents_10_0, grammarAccess.getTableAxisAccess().getHasEventsNotifyOnSelectKeyword_4_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableAxisRule()); |
| } |
| setWithLastConsumed(current, "hasEvents", true, "notifyOnSelect"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_11=(Token)match(input,16,FOLLOW_35); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getTableAxisAccess().getLeftCurlyBracketKeyword_4_1()); |
| |
| } |
| // InternalTableDSL.g:3125:4: ( (lv_events_12_0= ruleTableEvent ) )* |
| loop30: |
| do { |
| int alt30=2; |
| int LA30_0 = input.LA(1); |
| |
| if ( ((LA30_0>=47 && LA30_0<=55)) ) { |
| alt30=1; |
| } |
| |
| |
| switch (alt30) { |
| case 1 : |
| // InternalTableDSL.g:3126:5: (lv_events_12_0= ruleTableEvent ) |
| { |
| // InternalTableDSL.g:3126:5: (lv_events_12_0= ruleTableEvent ) |
| // InternalTableDSL.g:3127:6: lv_events_12_0= ruleTableEvent |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableAxisAccess().getEventsTableEventParserRuleCall_4_2_0()); |
| |
| } |
| pushFollow(FOLLOW_35); |
| lv_events_12_0=ruleTableEvent(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableAxisRule()); |
| } |
| add( |
| current, |
| "events", |
| lv_events_12_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TableEvent"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop30; |
| } |
| } while (true); |
| |
| otherlv_13=(Token)match(input,17,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getTableAxisAccess().getRightCurlyBracketKeyword_4_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableAxis" |
| |
| |
| // $ANTLR start "entryRuleTableRangeElement" |
| // InternalTableDSL.g:3153:1: entryRuleTableRangeElement returns [EObject current=null] : iv_ruleTableRangeElement= ruleTableRangeElement EOF ; |
| public final EObject entryRuleTableRangeElement() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableRangeElement = null; |
| |
| |
| try { |
| // InternalTableDSL.g:3153:58: (iv_ruleTableRangeElement= ruleTableRangeElement EOF ) |
| // InternalTableDSL.g:3154:2: iv_ruleTableRangeElement= ruleTableRangeElement EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableRangeElementRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableRangeElement=ruleTableRangeElement(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableRangeElement; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableRangeElement" |
| |
| |
| // $ANTLR start "ruleTableRangeElement" |
| // InternalTableDSL.g:3160:1: ruleTableRangeElement returns [EObject current=null] : (this_TableTextColor_0= ruleTableTextColor | this_TableCellColor_1= ruleTableCellColor | this_TableIcon_2= ruleTableIcon | this_TableTrend_3= ruleTableTrend | this_TableTooltip_4= ruleTableTooltip ) ; |
| public final EObject ruleTableRangeElement() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_TableTextColor_0 = null; |
| |
| EObject this_TableCellColor_1 = null; |
| |
| EObject this_TableIcon_2 = null; |
| |
| EObject this_TableTrend_3 = null; |
| |
| EObject this_TableTooltip_4 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:3166:2: ( (this_TableTextColor_0= ruleTableTextColor | this_TableCellColor_1= ruleTableCellColor | this_TableIcon_2= ruleTableIcon | this_TableTrend_3= ruleTableTrend | this_TableTooltip_4= ruleTableTooltip ) ) |
| // InternalTableDSL.g:3167:2: (this_TableTextColor_0= ruleTableTextColor | this_TableCellColor_1= ruleTableCellColor | this_TableIcon_2= ruleTableIcon | this_TableTrend_3= ruleTableTrend | this_TableTooltip_4= ruleTableTooltip ) |
| { |
| // InternalTableDSL.g:3167:2: (this_TableTextColor_0= ruleTableTextColor | this_TableCellColor_1= ruleTableCellColor | this_TableIcon_2= ruleTableIcon | this_TableTrend_3= ruleTableTrend | this_TableTooltip_4= ruleTableTooltip ) |
| int alt32=5; |
| switch ( input.LA(1) ) { |
| case 67: |
| { |
| alt32=1; |
| } |
| break; |
| case 68: |
| { |
| alt32=2; |
| } |
| break; |
| case 37: |
| { |
| alt32=3; |
| } |
| break; |
| case 69: |
| { |
| alt32=4; |
| } |
| break; |
| case 70: |
| { |
| alt32=5; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 32, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt32) { |
| case 1 : |
| // InternalTableDSL.g:3168:3: this_TableTextColor_0= ruleTableTextColor |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableRangeElementAccess().getTableTextColorParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_TableTextColor_0=ruleTableTextColor(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TableTextColor_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:3177:3: this_TableCellColor_1= ruleTableCellColor |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableRangeElementAccess().getTableCellColorParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_TableCellColor_1=ruleTableCellColor(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TableCellColor_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalTableDSL.g:3186:3: this_TableIcon_2= ruleTableIcon |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableRangeElementAccess().getTableIconParserRuleCall_2()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_TableIcon_2=ruleTableIcon(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TableIcon_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalTableDSL.g:3195:3: this_TableTrend_3= ruleTableTrend |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableRangeElementAccess().getTableTrendParserRuleCall_3()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_TableTrend_3=ruleTableTrend(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TableTrend_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalTableDSL.g:3204:3: this_TableTooltip_4= ruleTableTooltip |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableRangeElementAccess().getTableTooltipParserRuleCall_4()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_TableTooltip_4=ruleTableTooltip(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_TableTooltip_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableRangeElement" |
| |
| |
| // $ANTLR start "entryRuleTableTextColor" |
| // InternalTableDSL.g:3216:1: entryRuleTableTextColor returns [EObject current=null] : iv_ruleTableTextColor= ruleTableTextColor EOF ; |
| public final EObject entryRuleTableTextColor() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableTextColor = null; |
| |
| |
| try { |
| // InternalTableDSL.g:3216:55: (iv_ruleTableTextColor= ruleTableTextColor EOF ) |
| // InternalTableDSL.g:3217:2: iv_ruleTableTextColor= ruleTableTextColor EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableTextColorRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableTextColor=ruleTableTextColor(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableTextColor; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableTextColor" |
| |
| |
| // $ANTLR start "ruleTableTextColor" |
| // InternalTableDSL.g:3223:1: ruleTableTextColor returns [EObject current=null] : (otherlv_0= 'textcolor' ( (lv_rgb_1_0= RULE_STRING ) ) ) ; |
| public final EObject ruleTableTextColor() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token lv_rgb_1_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:3229:2: ( (otherlv_0= 'textcolor' ( (lv_rgb_1_0= RULE_STRING ) ) ) ) |
| // InternalTableDSL.g:3230:2: (otherlv_0= 'textcolor' ( (lv_rgb_1_0= RULE_STRING ) ) ) |
| { |
| // InternalTableDSL.g:3230:2: (otherlv_0= 'textcolor' ( (lv_rgb_1_0= RULE_STRING ) ) ) |
| // InternalTableDSL.g:3231:3: otherlv_0= 'textcolor' ( (lv_rgb_1_0= RULE_STRING ) ) |
| { |
| otherlv_0=(Token)match(input,67,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getTableTextColorAccess().getTextcolorKeyword_0()); |
| |
| } |
| // InternalTableDSL.g:3235:3: ( (lv_rgb_1_0= RULE_STRING ) ) |
| // InternalTableDSL.g:3236:4: (lv_rgb_1_0= RULE_STRING ) |
| { |
| // InternalTableDSL.g:3236:4: (lv_rgb_1_0= RULE_STRING ) |
| // InternalTableDSL.g:3237:5: lv_rgb_1_0= RULE_STRING |
| { |
| lv_rgb_1_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_rgb_1_0, grammarAccess.getTableTextColorAccess().getRgbSTRINGTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableTextColorRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "rgb", |
| lv_rgb_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 "ruleTableTextColor" |
| |
| |
| // $ANTLR start "entryRuleTableCellColor" |
| // InternalTableDSL.g:3257:1: entryRuleTableCellColor returns [EObject current=null] : iv_ruleTableCellColor= ruleTableCellColor EOF ; |
| public final EObject entryRuleTableCellColor() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableCellColor = null; |
| |
| |
| try { |
| // InternalTableDSL.g:3257:55: (iv_ruleTableCellColor= ruleTableCellColor EOF ) |
| // InternalTableDSL.g:3258:2: iv_ruleTableCellColor= ruleTableCellColor EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableCellColorRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableCellColor=ruleTableCellColor(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableCellColor; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableCellColor" |
| |
| |
| // $ANTLR start "ruleTableCellColor" |
| // InternalTableDSL.g:3264:1: ruleTableCellColor returns [EObject current=null] : (otherlv_0= 'cellcolor' ( (lv_rgb_1_0= RULE_STRING ) ) ) ; |
| public final EObject ruleTableCellColor() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token lv_rgb_1_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:3270:2: ( (otherlv_0= 'cellcolor' ( (lv_rgb_1_0= RULE_STRING ) ) ) ) |
| // InternalTableDSL.g:3271:2: (otherlv_0= 'cellcolor' ( (lv_rgb_1_0= RULE_STRING ) ) ) |
| { |
| // InternalTableDSL.g:3271:2: (otherlv_0= 'cellcolor' ( (lv_rgb_1_0= RULE_STRING ) ) ) |
| // InternalTableDSL.g:3272:3: otherlv_0= 'cellcolor' ( (lv_rgb_1_0= RULE_STRING ) ) |
| { |
| otherlv_0=(Token)match(input,68,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getTableCellColorAccess().getCellcolorKeyword_0()); |
| |
| } |
| // InternalTableDSL.g:3276:3: ( (lv_rgb_1_0= RULE_STRING ) ) |
| // InternalTableDSL.g:3277:4: (lv_rgb_1_0= RULE_STRING ) |
| { |
| // InternalTableDSL.g:3277:4: (lv_rgb_1_0= RULE_STRING ) |
| // InternalTableDSL.g:3278:5: lv_rgb_1_0= RULE_STRING |
| { |
| lv_rgb_1_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_rgb_1_0, grammarAccess.getTableCellColorAccess().getRgbSTRINGTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableCellColorRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "rgb", |
| lv_rgb_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 "ruleTableCellColor" |
| |
| |
| // $ANTLR start "entryRuleTableIcon" |
| // InternalTableDSL.g:3298:1: entryRuleTableIcon returns [EObject current=null] : iv_ruleTableIcon= ruleTableIcon EOF ; |
| public final EObject entryRuleTableIcon() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableIcon = null; |
| |
| |
| try { |
| // InternalTableDSL.g:3298:50: (iv_ruleTableIcon= ruleTableIcon EOF ) |
| // InternalTableDSL.g:3299:2: iv_ruleTableIcon= ruleTableIcon EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableIconRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableIcon=ruleTableIcon(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableIcon; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableIcon" |
| |
| |
| // $ANTLR start "ruleTableIcon" |
| // InternalTableDSL.g:3305:1: ruleTableIcon returns [EObject current=null] : (otherlv_0= 'icon' ( (lv_icon_1_0= RULE_STRING ) ) ) ; |
| public final EObject ruleTableIcon() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token lv_icon_1_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:3311:2: ( (otherlv_0= 'icon' ( (lv_icon_1_0= RULE_STRING ) ) ) ) |
| // InternalTableDSL.g:3312:2: (otherlv_0= 'icon' ( (lv_icon_1_0= RULE_STRING ) ) ) |
| { |
| // InternalTableDSL.g:3312:2: (otherlv_0= 'icon' ( (lv_icon_1_0= RULE_STRING ) ) ) |
| // InternalTableDSL.g:3313:3: otherlv_0= 'icon' ( (lv_icon_1_0= RULE_STRING ) ) |
| { |
| otherlv_0=(Token)match(input,37,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getTableIconAccess().getIconKeyword_0()); |
| |
| } |
| // InternalTableDSL.g:3317:3: ( (lv_icon_1_0= RULE_STRING ) ) |
| // InternalTableDSL.g:3318:4: (lv_icon_1_0= RULE_STRING ) |
| { |
| // InternalTableDSL.g:3318:4: (lv_icon_1_0= RULE_STRING ) |
| // InternalTableDSL.g:3319:5: lv_icon_1_0= RULE_STRING |
| { |
| lv_icon_1_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_icon_1_0, grammarAccess.getTableIconAccess().getIconSTRINGTerminalRuleCall_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableIconRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "icon", |
| lv_icon_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 "ruleTableIcon" |
| |
| |
| // $ANTLR start "entryRuleTableTrend" |
| // InternalTableDSL.g:3339:1: entryRuleTableTrend returns [EObject current=null] : iv_ruleTableTrend= ruleTableTrend EOF ; |
| public final EObject entryRuleTableTrend() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableTrend = null; |
| |
| |
| try { |
| // InternalTableDSL.g:3339:51: (iv_ruleTableTrend= ruleTableTrend EOF ) |
| // InternalTableDSL.g:3340:2: iv_ruleTableTrend= ruleTableTrend EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableTrendRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableTrend=ruleTableTrend(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableTrend; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableTrend" |
| |
| |
| // $ANTLR start "ruleTableTrend" |
| // InternalTableDSL.g:3346:1: ruleTableTrend returns [EObject current=null] : (otherlv_0= 'trend' ( (lv_icon_1_0= ruleTrendIconEnum ) ) ) ; |
| public final EObject ruleTableTrend() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Enumerator lv_icon_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:3352:2: ( (otherlv_0= 'trend' ( (lv_icon_1_0= ruleTrendIconEnum ) ) ) ) |
| // InternalTableDSL.g:3353:2: (otherlv_0= 'trend' ( (lv_icon_1_0= ruleTrendIconEnum ) ) ) |
| { |
| // InternalTableDSL.g:3353:2: (otherlv_0= 'trend' ( (lv_icon_1_0= ruleTrendIconEnum ) ) ) |
| // InternalTableDSL.g:3354:3: otherlv_0= 'trend' ( (lv_icon_1_0= ruleTrendIconEnum ) ) |
| { |
| otherlv_0=(Token)match(input,69,FOLLOW_36); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getTableTrendAccess().getTrendKeyword_0()); |
| |
| } |
| // InternalTableDSL.g:3358:3: ( (lv_icon_1_0= ruleTrendIconEnum ) ) |
| // InternalTableDSL.g:3359:4: (lv_icon_1_0= ruleTrendIconEnum ) |
| { |
| // InternalTableDSL.g:3359:4: (lv_icon_1_0= ruleTrendIconEnum ) |
| // InternalTableDSL.g:3360:5: lv_icon_1_0= ruleTrendIconEnum |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableTrendAccess().getIconTrendIconEnumEnumRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_icon_1_0=ruleTrendIconEnum(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableTrendRule()); |
| } |
| set( |
| current, |
| "icon", |
| lv_icon_1_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TrendIconEnum"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableTrend" |
| |
| |
| // $ANTLR start "entryRuleTableTooltip" |
| // InternalTableDSL.g:3381:1: entryRuleTableTooltip returns [EObject current=null] : iv_ruleTableTooltip= ruleTableTooltip EOF ; |
| public final EObject entryRuleTableTooltip() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableTooltip = null; |
| |
| |
| try { |
| // InternalTableDSL.g:3381:53: (iv_ruleTableTooltip= ruleTableTooltip EOF ) |
| // InternalTableDSL.g:3382:2: iv_ruleTableTooltip= ruleTableTooltip EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableTooltipRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableTooltip=ruleTableTooltip(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableTooltip; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableTooltip" |
| |
| |
| // $ANTLR start "ruleTableTooltip" |
| // InternalTableDSL.g:3388:1: ruleTableTooltip returns [EObject current=null] : (otherlv_0= 'tooltip' ( (lv_tooltip_1_0= ruleTRANSLATABLESTRING ) ) ) ; |
| public final EObject ruleTableTooltip() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| AntlrDatatypeRuleToken lv_tooltip_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:3394:2: ( (otherlv_0= 'tooltip' ( (lv_tooltip_1_0= ruleTRANSLATABLESTRING ) ) ) ) |
| // InternalTableDSL.g:3395:2: (otherlv_0= 'tooltip' ( (lv_tooltip_1_0= ruleTRANSLATABLESTRING ) ) ) |
| { |
| // InternalTableDSL.g:3395:2: (otherlv_0= 'tooltip' ( (lv_tooltip_1_0= ruleTRANSLATABLESTRING ) ) ) |
| // InternalTableDSL.g:3396:3: otherlv_0= 'tooltip' ( (lv_tooltip_1_0= ruleTRANSLATABLESTRING ) ) |
| { |
| otherlv_0=(Token)match(input,70,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getTableTooltipAccess().getTooltipKeyword_0()); |
| |
| } |
| // InternalTableDSL.g:3400:3: ( (lv_tooltip_1_0= ruleTRANSLATABLESTRING ) ) |
| // InternalTableDSL.g:3401:4: (lv_tooltip_1_0= ruleTRANSLATABLESTRING ) |
| { |
| // InternalTableDSL.g:3401:4: (lv_tooltip_1_0= ruleTRANSLATABLESTRING ) |
| // InternalTableDSL.g:3402:5: lv_tooltip_1_0= ruleTRANSLATABLESTRING |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableTooltipAccess().getTooltipTRANSLATABLESTRINGParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_tooltip_1_0=ruleTRANSLATABLESTRING(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableTooltipRule()); |
| } |
| set( |
| current, |
| "tooltip", |
| lv_tooltip_1_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TRANSLATABLESTRING"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableTooltip" |
| |
| |
| // $ANTLR start "entryRuleTableGrid" |
| // InternalTableDSL.g:3423:1: entryRuleTableGrid returns [EObject current=null] : iv_ruleTableGrid= ruleTableGrid EOF ; |
| public final EObject entryRuleTableGrid() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableGrid = null; |
| |
| |
| try { |
| // InternalTableDSL.g:3423:50: (iv_ruleTableGrid= ruleTableGrid EOF ) |
| // InternalTableDSL.g:3424:2: iv_ruleTableGrid= ruleTableGrid EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableGridRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableGrid=ruleTableGrid(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableGrid; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableGrid" |
| |
| |
| // $ANTLR start "ruleTableGrid" |
| // InternalTableDSL.g:3430:1: ruleTableGrid returns [EObject current=null] : ( () otherlv_1= 'grid' ( ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'selectalways' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_4= 'rowheader' ( (lv_headerMode_5_0= ruleRowHeaderMode ) ) ) ) ) ) )* ) ) ) ( ( ( ( ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) ) ) (otherlv_13= 'using' ( (lv_source_14_0= ruleTableDtoDatasource ) ) )? ) ; |
| public final EObject ruleTableGrid() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_selectalways_3_0=null; |
| Token otherlv_4=null; |
| Token lv_polling_7_0=null; |
| Token lv_filtering_9_0=null; |
| Token lv_embedded_10_0=null; |
| Token otherlv_11=null; |
| Token otherlv_12=null; |
| Token otherlv_13=null; |
| Enumerator lv_headerMode_5_0 = null; |
| |
| AntlrDatatypeRuleToken lv_pollingTime_8_0 = null; |
| |
| EObject lv_source_14_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:3436:2: ( ( () otherlv_1= 'grid' ( ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'selectalways' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_4= 'rowheader' ( (lv_headerMode_5_0= ruleRowHeaderMode ) ) ) ) ) ) )* ) ) ) ( ( ( ( ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) ) ) (otherlv_13= 'using' ( (lv_source_14_0= ruleTableDtoDatasource ) ) )? ) ) |
| // InternalTableDSL.g:3437:2: ( () otherlv_1= 'grid' ( ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'selectalways' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_4= 'rowheader' ( (lv_headerMode_5_0= ruleRowHeaderMode ) ) ) ) ) ) )* ) ) ) ( ( ( ( ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) ) ) (otherlv_13= 'using' ( (lv_source_14_0= ruleTableDtoDatasource ) ) )? ) |
| { |
| // InternalTableDSL.g:3437:2: ( () otherlv_1= 'grid' ( ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'selectalways' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_4= 'rowheader' ( (lv_headerMode_5_0= ruleRowHeaderMode ) ) ) ) ) ) )* ) ) ) ( ( ( ( ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) ) ) (otherlv_13= 'using' ( (lv_source_14_0= ruleTableDtoDatasource ) ) )? ) |
| // InternalTableDSL.g:3438:3: () otherlv_1= 'grid' ( ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'selectalways' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_4= 'rowheader' ( (lv_headerMode_5_0= ruleRowHeaderMode ) ) ) ) ) ) )* ) ) ) ( ( ( ( ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) ) ) (otherlv_13= 'using' ( (lv_source_14_0= ruleTableDtoDatasource ) ) )? |
| { |
| // InternalTableDSL.g:3438:3: () |
| // InternalTableDSL.g:3439:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getTableGridAccess().getTableGridAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,71,FOLLOW_37); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTableGridAccess().getGridKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:3449:3: ( ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'selectalways' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_4= 'rowheader' ( (lv_headerMode_5_0= ruleRowHeaderMode ) ) ) ) ) ) )* ) ) ) |
| // InternalTableDSL.g:3450:4: ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'selectalways' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_4= 'rowheader' ( (lv_headerMode_5_0= ruleRowHeaderMode ) ) ) ) ) ) )* ) ) |
| { |
| // InternalTableDSL.g:3450:4: ( ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'selectalways' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_4= 'rowheader' ( (lv_headerMode_5_0= ruleRowHeaderMode ) ) ) ) ) ) )* ) ) |
| // InternalTableDSL.g:3451:5: ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'selectalways' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_4= 'rowheader' ( (lv_headerMode_5_0= ruleRowHeaderMode ) ) ) ) ) ) )* ) |
| { |
| getUnorderedGroupHelper().enter(grammarAccess.getTableGridAccess().getUnorderedGroup_2()); |
| // InternalTableDSL.g:3454:5: ( ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'selectalways' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_4= 'rowheader' ( (lv_headerMode_5_0= ruleRowHeaderMode ) ) ) ) ) ) )* ) |
| // InternalTableDSL.g:3455:6: ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'selectalways' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_4= 'rowheader' ( (lv_headerMode_5_0= ruleRowHeaderMode ) ) ) ) ) ) )* |
| { |
| // InternalTableDSL.g:3455:6: ( ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'selectalways' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_4= 'rowheader' ( (lv_headerMode_5_0= ruleRowHeaderMode ) ) ) ) ) ) )* |
| loop33: |
| do { |
| int alt33=3; |
| int LA33_0 = input.LA(1); |
| |
| if ( LA33_0 == 72 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableGridAccess().getUnorderedGroup_2(), 0) ) { |
| alt33=1; |
| } |
| else if ( LA33_0 == 73 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableGridAccess().getUnorderedGroup_2(), 1) ) { |
| alt33=2; |
| } |
| |
| |
| switch (alt33) { |
| case 1 : |
| // InternalTableDSL.g:3456:4: ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'selectalways' ) ) ) ) ) |
| { |
| // InternalTableDSL.g:3456:4: ({...}? => ( ({...}? => ( (lv_selectalways_3_0= 'selectalways' ) ) ) ) ) |
| // InternalTableDSL.g:3457:5: {...}? => ( ({...}? => ( (lv_selectalways_3_0= 'selectalways' ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableGridAccess().getUnorderedGroup_2(), 0) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableGrid", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableGridAccess().getUnorderedGroup_2(), 0)"); |
| } |
| // InternalTableDSL.g:3457:106: ( ({...}? => ( (lv_selectalways_3_0= 'selectalways' ) ) ) ) |
| // InternalTableDSL.g:3458:6: ({...}? => ( (lv_selectalways_3_0= 'selectalways' ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableGridAccess().getUnorderedGroup_2(), 0); |
| // InternalTableDSL.g:3461:9: ({...}? => ( (lv_selectalways_3_0= 'selectalways' ) ) ) |
| // InternalTableDSL.g:3461:10: {...}? => ( (lv_selectalways_3_0= 'selectalways' ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableGrid", "true"); |
| } |
| // InternalTableDSL.g:3461:19: ( (lv_selectalways_3_0= 'selectalways' ) ) |
| // InternalTableDSL.g:3461:20: (lv_selectalways_3_0= 'selectalways' ) |
| { |
| // InternalTableDSL.g:3461:20: (lv_selectalways_3_0= 'selectalways' ) |
| // InternalTableDSL.g:3462:10: lv_selectalways_3_0= 'selectalways' |
| { |
| lv_selectalways_3_0=(Token)match(input,72,FOLLOW_37); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_selectalways_3_0, grammarAccess.getTableGridAccess().getSelectalwaysSelectalwaysKeyword_2_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableGridRule()); |
| } |
| setWithLastConsumed(current, "selectalways", true, "selectalways"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableGridAccess().getUnorderedGroup_2()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:3479:4: ({...}? => ( ({...}? => (otherlv_4= 'rowheader' ( (lv_headerMode_5_0= ruleRowHeaderMode ) ) ) ) ) ) |
| { |
| // InternalTableDSL.g:3479:4: ({...}? => ( ({...}? => (otherlv_4= 'rowheader' ( (lv_headerMode_5_0= ruleRowHeaderMode ) ) ) ) ) ) |
| // InternalTableDSL.g:3480:5: {...}? => ( ({...}? => (otherlv_4= 'rowheader' ( (lv_headerMode_5_0= ruleRowHeaderMode ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableGridAccess().getUnorderedGroup_2(), 1) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableGrid", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableGridAccess().getUnorderedGroup_2(), 1)"); |
| } |
| // InternalTableDSL.g:3480:106: ( ({...}? => (otherlv_4= 'rowheader' ( (lv_headerMode_5_0= ruleRowHeaderMode ) ) ) ) ) |
| // InternalTableDSL.g:3481:6: ({...}? => (otherlv_4= 'rowheader' ( (lv_headerMode_5_0= ruleRowHeaderMode ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableGridAccess().getUnorderedGroup_2(), 1); |
| // InternalTableDSL.g:3484:9: ({...}? => (otherlv_4= 'rowheader' ( (lv_headerMode_5_0= ruleRowHeaderMode ) ) ) ) |
| // InternalTableDSL.g:3484:10: {...}? => (otherlv_4= 'rowheader' ( (lv_headerMode_5_0= ruleRowHeaderMode ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableGrid", "true"); |
| } |
| // InternalTableDSL.g:3484:19: (otherlv_4= 'rowheader' ( (lv_headerMode_5_0= ruleRowHeaderMode ) ) ) |
| // InternalTableDSL.g:3484:20: otherlv_4= 'rowheader' ( (lv_headerMode_5_0= ruleRowHeaderMode ) ) |
| { |
| otherlv_4=(Token)match(input,73,FOLLOW_13); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getTableGridAccess().getRowheaderKeyword_2_1_0()); |
| |
| } |
| // InternalTableDSL.g:3488:9: ( (lv_headerMode_5_0= ruleRowHeaderMode ) ) |
| // InternalTableDSL.g:3489:10: (lv_headerMode_5_0= ruleRowHeaderMode ) |
| { |
| // InternalTableDSL.g:3489:10: (lv_headerMode_5_0= ruleRowHeaderMode ) |
| // InternalTableDSL.g:3490:11: lv_headerMode_5_0= ruleRowHeaderMode |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableGridAccess().getHeaderModeRowHeaderModeEnumRuleCall_2_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_37); |
| lv_headerMode_5_0=ruleRowHeaderMode(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableGridRule()); |
| } |
| set( |
| current, |
| "headerMode", |
| lv_headerMode_5_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.RowHeaderMode"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableGridAccess().getUnorderedGroup_2()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop33; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().leave(grammarAccess.getTableGridAccess().getUnorderedGroup_2()); |
| |
| } |
| |
| // InternalTableDSL.g:3520:3: ( ( ( ( ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) ) ) |
| // InternalTableDSL.g:3521:4: ( ( ( ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) ) |
| { |
| // InternalTableDSL.g:3521:4: ( ( ( ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) ) |
| // InternalTableDSL.g:3522:5: ( ( ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) |
| { |
| getUnorderedGroupHelper().enter(grammarAccess.getTableGridAccess().getUnorderedGroup_3()); |
| // InternalTableDSL.g:3525:5: ( ( ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* ) |
| // InternalTableDSL.g:3526:6: ( ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* |
| { |
| // InternalTableDSL.g:3526:6: ( ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) | ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) )* |
| loop34: |
| do { |
| int alt34=5; |
| int LA34_0 = input.LA(1); |
| |
| if ( LA34_0 == 26 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableGridAccess().getUnorderedGroup_3(), 0) ) { |
| alt34=1; |
| } |
| else if ( LA34_0 == 27 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableGridAccess().getUnorderedGroup_3(), 1) ) { |
| alt34=2; |
| } |
| else if ( LA34_0 == 28 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableGridAccess().getUnorderedGroup_3(), 2) ) { |
| alt34=3; |
| } |
| else if ( LA34_0 == 29 && getUnorderedGroupHelper().canSelect(grammarAccess.getTableGridAccess().getUnorderedGroup_3(), 3) ) { |
| alt34=4; |
| } |
| |
| |
| switch (alt34) { |
| case 1 : |
| // InternalTableDSL.g:3527:4: ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) |
| { |
| // InternalTableDSL.g:3527:4: ({...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) ) |
| // InternalTableDSL.g:3528:5: {...}? => ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableGridAccess().getUnorderedGroup_3(), 0) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableGrid", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableGridAccess().getUnorderedGroup_3(), 0)"); |
| } |
| // InternalTableDSL.g:3528:106: ( ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) ) |
| // InternalTableDSL.g:3529:6: ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableGridAccess().getUnorderedGroup_3(), 0); |
| // InternalTableDSL.g:3532:9: ({...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) ) |
| // InternalTableDSL.g:3532:10: {...}? => ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableGrid", "true"); |
| } |
| // InternalTableDSL.g:3532:19: ( ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) ) |
| // InternalTableDSL.g:3532:20: ( (lv_polling_7_0= 'polling' ) ) ( (lv_pollingTime_8_0= ruleNumber ) ) |
| { |
| // InternalTableDSL.g:3532:20: ( (lv_polling_7_0= 'polling' ) ) |
| // InternalTableDSL.g:3533:10: (lv_polling_7_0= 'polling' ) |
| { |
| // InternalTableDSL.g:3533:10: (lv_polling_7_0= 'polling' ) |
| // InternalTableDSL.g:3534:11: lv_polling_7_0= 'polling' |
| { |
| lv_polling_7_0=(Token)match(input,26,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_polling_7_0, grammarAccess.getTableGridAccess().getPollingPollingKeyword_3_0_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableGridRule()); |
| } |
| setWithLastConsumed(current, "polling", true, "polling"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:3546:9: ( (lv_pollingTime_8_0= ruleNumber ) ) |
| // InternalTableDSL.g:3547:10: (lv_pollingTime_8_0= ruleNumber ) |
| { |
| // InternalTableDSL.g:3547:10: (lv_pollingTime_8_0= ruleNumber ) |
| // InternalTableDSL.g:3548:11: lv_pollingTime_8_0= ruleNumber |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableGridAccess().getPollingTimeNumberParserRuleCall_3_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_38); |
| lv_pollingTime_8_0=ruleNumber(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableGridRule()); |
| } |
| set( |
| current, |
| "pollingTime", |
| lv_pollingTime_8_0, |
| "org.eclipse.xtext.xbase.Xbase.Number"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableGridAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:3571:4: ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) |
| { |
| // InternalTableDSL.g:3571:4: ({...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) ) |
| // InternalTableDSL.g:3572:5: {...}? => ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableGridAccess().getUnorderedGroup_3(), 1) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableGrid", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableGridAccess().getUnorderedGroup_3(), 1)"); |
| } |
| // InternalTableDSL.g:3572:106: ( ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) ) |
| // InternalTableDSL.g:3573:6: ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableGridAccess().getUnorderedGroup_3(), 1); |
| // InternalTableDSL.g:3576:9: ({...}? => ( (lv_filtering_9_0= 'filtering' ) ) ) |
| // InternalTableDSL.g:3576:10: {...}? => ( (lv_filtering_9_0= 'filtering' ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableGrid", "true"); |
| } |
| // InternalTableDSL.g:3576:19: ( (lv_filtering_9_0= 'filtering' ) ) |
| // InternalTableDSL.g:3576:20: (lv_filtering_9_0= 'filtering' ) |
| { |
| // InternalTableDSL.g:3576:20: (lv_filtering_9_0= 'filtering' ) |
| // InternalTableDSL.g:3577:10: lv_filtering_9_0= 'filtering' |
| { |
| lv_filtering_9_0=(Token)match(input,27,FOLLOW_38); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_filtering_9_0, grammarAccess.getTableGridAccess().getFilteringFilteringKeyword_3_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableGridRule()); |
| } |
| setWithLastConsumed(current, "filtering", true, "filtering"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableGridAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalTableDSL.g:3594:4: ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) |
| { |
| // InternalTableDSL.g:3594:4: ({...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) ) |
| // InternalTableDSL.g:3595:5: {...}? => ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableGridAccess().getUnorderedGroup_3(), 2) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableGrid", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableGridAccess().getUnorderedGroup_3(), 2)"); |
| } |
| // InternalTableDSL.g:3595:106: ( ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) ) |
| // InternalTableDSL.g:3596:6: ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableGridAccess().getUnorderedGroup_3(), 2); |
| // InternalTableDSL.g:3599:9: ({...}? => ( (lv_embedded_10_0= 'embedded' ) ) ) |
| // InternalTableDSL.g:3599:10: {...}? => ( (lv_embedded_10_0= 'embedded' ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableGrid", "true"); |
| } |
| // InternalTableDSL.g:3599:19: ( (lv_embedded_10_0= 'embedded' ) ) |
| // InternalTableDSL.g:3599:20: (lv_embedded_10_0= 'embedded' ) |
| { |
| // InternalTableDSL.g:3599:20: (lv_embedded_10_0= 'embedded' ) |
| // InternalTableDSL.g:3600:10: lv_embedded_10_0= 'embedded' |
| { |
| lv_embedded_10_0=(Token)match(input,28,FOLLOW_38); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_embedded_10_0, grammarAccess.getTableGridAccess().getEmbeddedEmbeddedKeyword_3_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableGridRule()); |
| } |
| setWithLastConsumed(current, "embedded", true, "embedded"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableGridAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalTableDSL.g:3617:4: ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) |
| { |
| // InternalTableDSL.g:3617:4: ({...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) ) |
| // InternalTableDSL.g:3618:5: {...}? => ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) |
| { |
| if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getTableGridAccess().getUnorderedGroup_3(), 3) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableGrid", "getUnorderedGroupHelper().canSelect(grammarAccess.getTableGridAccess().getUnorderedGroup_3(), 3)"); |
| } |
| // InternalTableDSL.g:3618:106: ( ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) ) |
| // InternalTableDSL.g:3619:6: ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) |
| { |
| getUnorderedGroupHelper().select(grammarAccess.getTableGridAccess().getUnorderedGroup_3(), 3); |
| // InternalTableDSL.g:3622:9: ({...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) ) |
| // InternalTableDSL.g:3622:10: {...}? => (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) |
| { |
| if ( !((true)) ) { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| throw new FailedPredicateException(input, "ruleTableGrid", "true"); |
| } |
| // InternalTableDSL.g:3622:19: (otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) ) |
| // InternalTableDSL.g:3622:20: otherlv_11= 'toolbar' ( (otherlv_12= RULE_ID ) ) |
| { |
| otherlv_11=(Token)match(input,29,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getTableGridAccess().getToolbarKeyword_3_3_0()); |
| |
| } |
| // InternalTableDSL.g:3626:9: ( (otherlv_12= RULE_ID ) ) |
| // InternalTableDSL.g:3627:10: (otherlv_12= RULE_ID ) |
| { |
| // InternalTableDSL.g:3627:10: (otherlv_12= RULE_ID ) |
| // InternalTableDSL.g:3628:11: otherlv_12= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableGridRule()); |
| } |
| |
| } |
| otherlv_12=(Token)match(input,RULE_ID,FOLLOW_38); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getTableGridAccess().getToolbarActionToolbarCrossReference_3_3_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().returnFromSelection(grammarAccess.getTableGridAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop34; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| getUnorderedGroupHelper().leave(grammarAccess.getTableGridAccess().getUnorderedGroup_3()); |
| |
| } |
| |
| // InternalTableDSL.g:3652:3: (otherlv_13= 'using' ( (lv_source_14_0= ruleTableDtoDatasource ) ) )? |
| int alt35=2; |
| int LA35_0 = input.LA(1); |
| |
| if ( (LA35_0==30) ) { |
| alt35=1; |
| } |
| switch (alt35) { |
| case 1 : |
| // InternalTableDSL.g:3653:4: otherlv_13= 'using' ( (lv_source_14_0= ruleTableDtoDatasource ) ) |
| { |
| otherlv_13=(Token)match(input,30,FOLLOW_39); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getTableGridAccess().getUsingKeyword_4_0()); |
| |
| } |
| // InternalTableDSL.g:3657:4: ( (lv_source_14_0= ruleTableDtoDatasource ) ) |
| // InternalTableDSL.g:3658:5: (lv_source_14_0= ruleTableDtoDatasource ) |
| { |
| // InternalTableDSL.g:3658:5: (lv_source_14_0= ruleTableDtoDatasource ) |
| // InternalTableDSL.g:3659:6: lv_source_14_0= ruleTableDtoDatasource |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableGridAccess().getSourceTableDtoDatasourceParserRuleCall_4_1_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_source_14_0=ruleTableDtoDatasource(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableGridRule()); |
| } |
| set( |
| current, |
| "source", |
| lv_source_14_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.TableDtoDatasource"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableGrid" |
| |
| |
| // $ANTLR start "entryRuleProperty" |
| // InternalTableDSL.g:3681:1: entryRuleProperty returns [EObject current=null] : iv_ruleProperty= ruleProperty EOF ; |
| public final EObject entryRuleProperty() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleProperty = null; |
| |
| |
| try { |
| // InternalTableDSL.g:3681:49: (iv_ruleProperty= ruleProperty EOF ) |
| // InternalTableDSL.g:3682:2: iv_ruleProperty= ruleProperty EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleProperty=ruleProperty(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleProperty; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleProperty" |
| |
| |
| // $ANTLR start "ruleProperty" |
| // InternalTableDSL.g:3688:1: ruleProperty returns [EObject current=null] : ( ( (lv_editable_0_0= 'editable' ) )? otherlv_1= 'prop' ( (lv_path_2_0= ruleNestedField ) ) otherlv_3= 'style' ( (lv_style_4_0= rulePropertyStyle ) ) ) ; |
| public final EObject ruleProperty() throws RecognitionException { |
| EObject current = null; |
| |
| Token lv_editable_0_0=null; |
| Token otherlv_1=null; |
| Token otherlv_3=null; |
| EObject lv_path_2_0 = null; |
| |
| EObject lv_style_4_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:3694:2: ( ( ( (lv_editable_0_0= 'editable' ) )? otherlv_1= 'prop' ( (lv_path_2_0= ruleNestedField ) ) otherlv_3= 'style' ( (lv_style_4_0= rulePropertyStyle ) ) ) ) |
| // InternalTableDSL.g:3695:2: ( ( (lv_editable_0_0= 'editable' ) )? otherlv_1= 'prop' ( (lv_path_2_0= ruleNestedField ) ) otherlv_3= 'style' ( (lv_style_4_0= rulePropertyStyle ) ) ) |
| { |
| // InternalTableDSL.g:3695:2: ( ( (lv_editable_0_0= 'editable' ) )? otherlv_1= 'prop' ( (lv_path_2_0= ruleNestedField ) ) otherlv_3= 'style' ( (lv_style_4_0= rulePropertyStyle ) ) ) |
| // InternalTableDSL.g:3696:3: ( (lv_editable_0_0= 'editable' ) )? otherlv_1= 'prop' ( (lv_path_2_0= ruleNestedField ) ) otherlv_3= 'style' ( (lv_style_4_0= rulePropertyStyle ) ) |
| { |
| // InternalTableDSL.g:3696:3: ( (lv_editable_0_0= 'editable' ) )? |
| int alt36=2; |
| int LA36_0 = input.LA(1); |
| |
| if ( (LA36_0==74) ) { |
| alt36=1; |
| } |
| switch (alt36) { |
| case 1 : |
| // InternalTableDSL.g:3697:4: (lv_editable_0_0= 'editable' ) |
| { |
| // InternalTableDSL.g:3697:4: (lv_editable_0_0= 'editable' ) |
| // InternalTableDSL.g:3698:5: lv_editable_0_0= 'editable' |
| { |
| lv_editable_0_0=(Token)match(input,74,FOLLOW_40); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_editable_0_0, grammarAccess.getPropertyAccess().getEditableEditableKeyword_0_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyRule()); |
| } |
| setWithLastConsumed(current, "editable", true, "editable"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_1=(Token)match(input,75,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyAccess().getPropKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:3714:3: ( (lv_path_2_0= ruleNestedField ) ) |
| // InternalTableDSL.g:3715:4: (lv_path_2_0= ruleNestedField ) |
| { |
| // InternalTableDSL.g:3715:4: (lv_path_2_0= ruleNestedField ) |
| // InternalTableDSL.g:3716:5: lv_path_2_0= ruleNestedField |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyAccess().getPathNestedFieldParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_41); |
| lv_path_2_0=ruleNestedField(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyRule()); |
| } |
| set( |
| current, |
| "path", |
| lv_path_2_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.NestedField"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,76,FOLLOW_42); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getPropertyAccess().getStyleKeyword_3()); |
| |
| } |
| // InternalTableDSL.g:3737:3: ( (lv_style_4_0= rulePropertyStyle ) ) |
| // InternalTableDSL.g:3738:4: (lv_style_4_0= rulePropertyStyle ) |
| { |
| // InternalTableDSL.g:3738:4: (lv_style_4_0= rulePropertyStyle ) |
| // InternalTableDSL.g:3739:5: lv_style_4_0= rulePropertyStyle |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyAccess().getStylePropertyStyleParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_style_4_0=rulePropertyStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyRule()); |
| } |
| set( |
| current, |
| "style", |
| lv_style_4_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.PropertyStyle"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleProperty" |
| |
| |
| // $ANTLR start "entryRuleTableDtoDatasource" |
| // InternalTableDSL.g:3760:1: entryRuleTableDtoDatasource returns [EObject current=null] : iv_ruleTableDtoDatasource= ruleTableDtoDatasource EOF ; |
| public final EObject entryRuleTableDtoDatasource() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleTableDtoDatasource = null; |
| |
| |
| try { |
| // InternalTableDSL.g:3760:59: (iv_ruleTableDtoDatasource= ruleTableDtoDatasource EOF ) |
| // InternalTableDSL.g:3761:2: iv_ruleTableDtoDatasource= ruleTableDtoDatasource EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTableDtoDatasourceRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTableDtoDatasource=ruleTableDtoDatasource(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTableDtoDatasource; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTableDtoDatasource" |
| |
| |
| // $ANTLR start "ruleTableDtoDatasource" |
| // InternalTableDSL.g:3767:1: ruleTableDtoDatasource returns [EObject current=null] : (otherlv_0= 'dto' ( (otherlv_1= RULE_ID ) ) (otherlv_2= '{' ( (lv_properties_3_0= ruleProperty ) )* otherlv_4= '}' )? ) ; |
| public final EObject ruleTableDtoDatasource() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| EObject lv_properties_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:3773:2: ( (otherlv_0= 'dto' ( (otherlv_1= RULE_ID ) ) (otherlv_2= '{' ( (lv_properties_3_0= ruleProperty ) )* otherlv_4= '}' )? ) ) |
| // InternalTableDSL.g:3774:2: (otherlv_0= 'dto' ( (otherlv_1= RULE_ID ) ) (otherlv_2= '{' ( (lv_properties_3_0= ruleProperty ) )* otherlv_4= '}' )? ) |
| { |
| // InternalTableDSL.g:3774:2: (otherlv_0= 'dto' ( (otherlv_1= RULE_ID ) ) (otherlv_2= '{' ( (lv_properties_3_0= ruleProperty ) )* otherlv_4= '}' )? ) |
| // InternalTableDSL.g:3775:3: otherlv_0= 'dto' ( (otherlv_1= RULE_ID ) ) (otherlv_2= '{' ( (lv_properties_3_0= ruleProperty ) )* otherlv_4= '}' )? |
| { |
| otherlv_0=(Token)match(input,77,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getTableDtoDatasourceAccess().getDtoKeyword_0()); |
| |
| } |
| // InternalTableDSL.g:3779:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalTableDSL.g:3780:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalTableDSL.g:3780:4: (otherlv_1= RULE_ID ) |
| // InternalTableDSL.g:3781:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getTableDtoDatasourceRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_5); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getTableDtoDatasourceAccess().getDtoSourceLDtoCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:3792:3: (otherlv_2= '{' ( (lv_properties_3_0= ruleProperty ) )* otherlv_4= '}' )? |
| int alt38=2; |
| int LA38_0 = input.LA(1); |
| |
| if ( (LA38_0==16) ) { |
| alt38=1; |
| } |
| switch (alt38) { |
| case 1 : |
| // InternalTableDSL.g:3793:4: otherlv_2= '{' ( (lv_properties_3_0= ruleProperty ) )* otherlv_4= '}' |
| { |
| otherlv_2=(Token)match(input,16,FOLLOW_43); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getTableDtoDatasourceAccess().getLeftCurlyBracketKeyword_2_0()); |
| |
| } |
| // InternalTableDSL.g:3797:4: ( (lv_properties_3_0= ruleProperty ) )* |
| loop37: |
| do { |
| int alt37=2; |
| int LA37_0 = input.LA(1); |
| |
| if ( ((LA37_0>=74 && LA37_0<=75)) ) { |
| alt37=1; |
| } |
| |
| |
| switch (alt37) { |
| case 1 : |
| // InternalTableDSL.g:3798:5: (lv_properties_3_0= ruleProperty ) |
| { |
| // InternalTableDSL.g:3798:5: (lv_properties_3_0= ruleProperty ) |
| // InternalTableDSL.g:3799:6: lv_properties_3_0= ruleProperty |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getTableDtoDatasourceAccess().getPropertiesPropertyParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_43); |
| lv_properties_3_0=ruleProperty(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getTableDtoDatasourceRule()); |
| } |
| add( |
| current, |
| "properties", |
| lv_properties_3_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.Property"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop37; |
| } |
| } while (true); |
| |
| otherlv_4=(Token)match(input,17,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getTableDtoDatasourceAccess().getRightCurlyBracketKeyword_2_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTableDtoDatasource" |
| |
| |
| // $ANTLR start "entryRuleNestedField" |
| // InternalTableDSL.g:3825:1: entryRuleNestedField returns [EObject current=null] : iv_ruleNestedField= ruleNestedField EOF ; |
| public final EObject entryRuleNestedField() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleNestedField = null; |
| |
| |
| try { |
| // InternalTableDSL.g:3825:52: (iv_ruleNestedField= ruleNestedField EOF ) |
| // InternalTableDSL.g:3826:2: iv_ruleNestedField= ruleNestedField EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getNestedFieldRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleNestedField=ruleNestedField(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleNestedField; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleNestedField" |
| |
| |
| // $ANTLR start "ruleNestedField" |
| // InternalTableDSL.g:3832:1: ruleNestedField returns [EObject current=null] : ( () ( (otherlv_1= RULE_ID ) ) ( (lv_path_2_0= ruleNestedPath ) )? ) ; |
| public final EObject ruleNestedField() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| EObject lv_path_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:3838:2: ( ( () ( (otherlv_1= RULE_ID ) ) ( (lv_path_2_0= ruleNestedPath ) )? ) ) |
| // InternalTableDSL.g:3839:2: ( () ( (otherlv_1= RULE_ID ) ) ( (lv_path_2_0= ruleNestedPath ) )? ) |
| { |
| // InternalTableDSL.g:3839:2: ( () ( (otherlv_1= RULE_ID ) ) ( (lv_path_2_0= ruleNestedPath ) )? ) |
| // InternalTableDSL.g:3840:3: () ( (otherlv_1= RULE_ID ) ) ( (lv_path_2_0= ruleNestedPath ) )? |
| { |
| // InternalTableDSL.g:3840:3: () |
| // InternalTableDSL.g:3841:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getNestedFieldAccess().getCxGridNestedFieldAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:3847:3: ( (otherlv_1= RULE_ID ) ) |
| // InternalTableDSL.g:3848:4: (otherlv_1= RULE_ID ) |
| { |
| // InternalTableDSL.g:3848:4: (otherlv_1= RULE_ID ) |
| // InternalTableDSL.g:3849:5: otherlv_1= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getNestedFieldRule()); |
| } |
| |
| } |
| otherlv_1=(Token)match(input,RULE_ID,FOLLOW_44); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getNestedFieldAccess().getFieldJvmOperationCrossReference_1_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:3860:3: ( (lv_path_2_0= ruleNestedPath ) )? |
| int alt39=2; |
| int LA39_0 = input.LA(1); |
| |
| if ( (LA39_0==78) ) { |
| alt39=1; |
| } |
| switch (alt39) { |
| case 1 : |
| // InternalTableDSL.g:3861:4: (lv_path_2_0= ruleNestedPath ) |
| { |
| // InternalTableDSL.g:3861:4: (lv_path_2_0= ruleNestedPath ) |
| // InternalTableDSL.g:3862:5: lv_path_2_0= ruleNestedPath |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNestedFieldAccess().getPathNestedPathParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_path_2_0=ruleNestedPath(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNestedFieldRule()); |
| } |
| set( |
| current, |
| "path", |
| lv_path_2_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.NestedPath"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleNestedField" |
| |
| |
| // $ANTLR start "entryRuleNestedPath" |
| // InternalTableDSL.g:3883:1: entryRuleNestedPath returns [EObject current=null] : iv_ruleNestedPath= ruleNestedPath EOF ; |
| public final EObject entryRuleNestedPath() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleNestedPath = null; |
| |
| |
| try { |
| // InternalTableDSL.g:3883:51: (iv_ruleNestedPath= ruleNestedPath EOF ) |
| // InternalTableDSL.g:3884:2: iv_ruleNestedPath= ruleNestedPath EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getNestedPathRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleNestedPath=ruleNestedPath(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleNestedPath; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleNestedPath" |
| |
| |
| // $ANTLR start "ruleNestedPath" |
| // InternalTableDSL.g:3890:1: ruleNestedPath returns [EObject current=null] : ( () otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ( (lv_path_3_0= ruleNestedPath ) )? ) ; |
| public final EObject ruleNestedPath() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| EObject lv_path_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:3896:2: ( ( () otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ( (lv_path_3_0= ruleNestedPath ) )? ) ) |
| // InternalTableDSL.g:3897:2: ( () otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ( (lv_path_3_0= ruleNestedPath ) )? ) |
| { |
| // InternalTableDSL.g:3897:2: ( () otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ( (lv_path_3_0= ruleNestedPath ) )? ) |
| // InternalTableDSL.g:3898:3: () otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ( (lv_path_3_0= ruleNestedPath ) )? |
| { |
| // InternalTableDSL.g:3898:3: () |
| // InternalTableDSL.g:3899:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getNestedPathAccess().getCxGridNestedPathAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,78,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getNestedPathAccess().getFullStopKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:3909:3: ( (otherlv_2= RULE_ID ) ) |
| // InternalTableDSL.g:3910:4: (otherlv_2= RULE_ID ) |
| { |
| // InternalTableDSL.g:3910:4: (otherlv_2= RULE_ID ) |
| // InternalTableDSL.g:3911:5: otherlv_2= RULE_ID |
| { |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getNestedPathRule()); |
| } |
| |
| } |
| otherlv_2=(Token)match(input,RULE_ID,FOLLOW_44); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getNestedPathAccess().getFieldJvmOperationCrossReference_2_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:3922:3: ( (lv_path_3_0= ruleNestedPath ) )? |
| int alt40=2; |
| int LA40_0 = input.LA(1); |
| |
| if ( (LA40_0==78) ) { |
| alt40=1; |
| } |
| switch (alt40) { |
| case 1 : |
| // InternalTableDSL.g:3923:4: (lv_path_3_0= ruleNestedPath ) |
| { |
| // InternalTableDSL.g:3923:4: (lv_path_3_0= ruleNestedPath ) |
| // InternalTableDSL.g:3924:5: lv_path_3_0= ruleNestedPath |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNestedPathAccess().getPathNestedPathParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_path_3_0=ruleNestedPath(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNestedPathRule()); |
| } |
| set( |
| current, |
| "path", |
| lv_path_3_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.NestedPath"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleNestedPath" |
| |
| |
| // $ANTLR start "entryRulePropertyStyle" |
| // InternalTableDSL.g:3945:1: entryRulePropertyStyle returns [EObject current=null] : iv_rulePropertyStyle= rulePropertyStyle EOF ; |
| public final EObject entryRulePropertyStyle() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyStyle = null; |
| |
| |
| try { |
| // InternalTableDSL.g:3945:54: (iv_rulePropertyStyle= rulePropertyStyle EOF ) |
| // InternalTableDSL.g:3946:2: iv_rulePropertyStyle= rulePropertyStyle EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyStyleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyStyle=rulePropertyStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyStyle; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyStyle" |
| |
| |
| // $ANTLR start "rulePropertyStyle" |
| // InternalTableDSL.g:3952:1: rulePropertyStyle returns [EObject current=null] : (this_PropertyButtonStyle_0= rulePropertyButtonStyle | this_PropertyHtmlStyle_1= rulePropertyHtmlStyle | this_PropertyProgressbarStyle_2= rulePropertyProgressbarStyle | this_PropertyTextStyle_3= rulePropertyTextStyle | this_PropertyBooleanStyle_4= rulePropertyBooleanStyle | this_PropertyDateStyle_5= rulePropertyDateStyle | this_PropertyNumberStyle_6= rulePropertyNumberStyle | this_PropertyImageStyle_7= rulePropertyImageStyle | this_PropertyQuantityStyle_8= rulePropertyQuantityStyle | this_PropertyPriceStyle_9= rulePropertyPriceStyle | this_GridPropIndicatorStyle_10= ruleGridPropIndicatorStyle ) ; |
| public final EObject rulePropertyStyle() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_PropertyButtonStyle_0 = null; |
| |
| EObject this_PropertyHtmlStyle_1 = null; |
| |
| EObject this_PropertyProgressbarStyle_2 = null; |
| |
| EObject this_PropertyTextStyle_3 = null; |
| |
| EObject this_PropertyBooleanStyle_4 = null; |
| |
| EObject this_PropertyDateStyle_5 = null; |
| |
| EObject this_PropertyNumberStyle_6 = null; |
| |
| EObject this_PropertyImageStyle_7 = null; |
| |
| EObject this_PropertyQuantityStyle_8 = null; |
| |
| EObject this_PropertyPriceStyle_9 = null; |
| |
| EObject this_GridPropIndicatorStyle_10 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:3958:2: ( (this_PropertyButtonStyle_0= rulePropertyButtonStyle | this_PropertyHtmlStyle_1= rulePropertyHtmlStyle | this_PropertyProgressbarStyle_2= rulePropertyProgressbarStyle | this_PropertyTextStyle_3= rulePropertyTextStyle | this_PropertyBooleanStyle_4= rulePropertyBooleanStyle | this_PropertyDateStyle_5= rulePropertyDateStyle | this_PropertyNumberStyle_6= rulePropertyNumberStyle | this_PropertyImageStyle_7= rulePropertyImageStyle | this_PropertyQuantityStyle_8= rulePropertyQuantityStyle | this_PropertyPriceStyle_9= rulePropertyPriceStyle | this_GridPropIndicatorStyle_10= ruleGridPropIndicatorStyle ) ) |
| // InternalTableDSL.g:3959:2: (this_PropertyButtonStyle_0= rulePropertyButtonStyle | this_PropertyHtmlStyle_1= rulePropertyHtmlStyle | this_PropertyProgressbarStyle_2= rulePropertyProgressbarStyle | this_PropertyTextStyle_3= rulePropertyTextStyle | this_PropertyBooleanStyle_4= rulePropertyBooleanStyle | this_PropertyDateStyle_5= rulePropertyDateStyle | this_PropertyNumberStyle_6= rulePropertyNumberStyle | this_PropertyImageStyle_7= rulePropertyImageStyle | this_PropertyQuantityStyle_8= rulePropertyQuantityStyle | this_PropertyPriceStyle_9= rulePropertyPriceStyle | this_GridPropIndicatorStyle_10= ruleGridPropIndicatorStyle ) |
| { |
| // InternalTableDSL.g:3959:2: (this_PropertyButtonStyle_0= rulePropertyButtonStyle | this_PropertyHtmlStyle_1= rulePropertyHtmlStyle | this_PropertyProgressbarStyle_2= rulePropertyProgressbarStyle | this_PropertyTextStyle_3= rulePropertyTextStyle | this_PropertyBooleanStyle_4= rulePropertyBooleanStyle | this_PropertyDateStyle_5= rulePropertyDateStyle | this_PropertyNumberStyle_6= rulePropertyNumberStyle | this_PropertyImageStyle_7= rulePropertyImageStyle | this_PropertyQuantityStyle_8= rulePropertyQuantityStyle | this_PropertyPriceStyle_9= rulePropertyPriceStyle | this_GridPropIndicatorStyle_10= ruleGridPropIndicatorStyle ) |
| int alt41=11; |
| switch ( input.LA(1) ) { |
| case 79: |
| { |
| alt41=1; |
| } |
| break; |
| case 81: |
| { |
| alt41=2; |
| } |
| break; |
| case 86: |
| { |
| alt41=3; |
| } |
| break; |
| case 98: |
| { |
| alt41=4; |
| } |
| break; |
| case 82: |
| { |
| alt41=5; |
| } |
| break; |
| case 83: |
| { |
| alt41=6; |
| } |
| break; |
| case 85: |
| { |
| alt41=7; |
| } |
| break; |
| case 99: |
| { |
| alt41=8; |
| } |
| break; |
| case 91: |
| { |
| alt41=9; |
| } |
| break; |
| case 96: |
| { |
| alt41=10; |
| } |
| break; |
| case 88: |
| { |
| alt41=11; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 41, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt41) { |
| case 1 : |
| // InternalTableDSL.g:3960:3: this_PropertyButtonStyle_0= rulePropertyButtonStyle |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyButtonStyleParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyButtonStyle_0=rulePropertyButtonStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyButtonStyle_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:3969:3: this_PropertyHtmlStyle_1= rulePropertyHtmlStyle |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyHtmlStyleParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyHtmlStyle_1=rulePropertyHtmlStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyHtmlStyle_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalTableDSL.g:3978:3: this_PropertyProgressbarStyle_2= rulePropertyProgressbarStyle |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyProgressbarStyleParserRuleCall_2()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyProgressbarStyle_2=rulePropertyProgressbarStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyProgressbarStyle_2; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalTableDSL.g:3987:3: this_PropertyTextStyle_3= rulePropertyTextStyle |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyTextStyleParserRuleCall_3()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyTextStyle_3=rulePropertyTextStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyTextStyle_3; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalTableDSL.g:3996:3: this_PropertyBooleanStyle_4= rulePropertyBooleanStyle |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyBooleanStyleParserRuleCall_4()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyBooleanStyle_4=rulePropertyBooleanStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyBooleanStyle_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalTableDSL.g:4005:3: this_PropertyDateStyle_5= rulePropertyDateStyle |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyDateStyleParserRuleCall_5()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyDateStyle_5=rulePropertyDateStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyDateStyle_5; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 7 : |
| // InternalTableDSL.g:4014:3: this_PropertyNumberStyle_6= rulePropertyNumberStyle |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyNumberStyleParserRuleCall_6()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyNumberStyle_6=rulePropertyNumberStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyNumberStyle_6; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 8 : |
| // InternalTableDSL.g:4023:3: this_PropertyImageStyle_7= rulePropertyImageStyle |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyImageStyleParserRuleCall_7()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyImageStyle_7=rulePropertyImageStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyImageStyle_7; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 9 : |
| // InternalTableDSL.g:4032:3: this_PropertyQuantityStyle_8= rulePropertyQuantityStyle |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyQuantityStyleParserRuleCall_8()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyQuantityStyle_8=rulePropertyQuantityStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyQuantityStyle_8; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 10 : |
| // InternalTableDSL.g:4041:3: this_PropertyPriceStyle_9= rulePropertyPriceStyle |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyStyleAccess().getPropertyPriceStyleParserRuleCall_9()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_PropertyPriceStyle_9=rulePropertyPriceStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_PropertyPriceStyle_9; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 11 : |
| // InternalTableDSL.g:4050:3: this_GridPropIndicatorStyle_10= ruleGridPropIndicatorStyle |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyStyleAccess().getGridPropIndicatorStyleParserRuleCall_10()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_GridPropIndicatorStyle_10=ruleGridPropIndicatorStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_GridPropIndicatorStyle_10; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyStyle" |
| |
| |
| // $ANTLR start "entryRulePropertyButtonStyle" |
| // InternalTableDSL.g:4062:1: entryRulePropertyButtonStyle returns [EObject current=null] : iv_rulePropertyButtonStyle= rulePropertyButtonStyle EOF ; |
| public final EObject entryRulePropertyButtonStyle() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyButtonStyle = null; |
| |
| |
| try { |
| // InternalTableDSL.g:4062:60: (iv_rulePropertyButtonStyle= rulePropertyButtonStyle EOF ) |
| // InternalTableDSL.g:4063:2: iv_rulePropertyButtonStyle= rulePropertyButtonStyle EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyButtonStyleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyButtonStyle=rulePropertyButtonStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyButtonStyle; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyButtonStyle" |
| |
| |
| // $ANTLR start "rulePropertyButtonStyle" |
| // InternalTableDSL.g:4069:1: rulePropertyButtonStyle returns [EObject current=null] : ( () otherlv_1= 'buttonStyle' otherlv_2= 'eventTopic' ( (lv_eventTopic_3_0= RULE_STRING ) ) ) ; |
| public final EObject rulePropertyButtonStyle() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token lv_eventTopic_3_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:4075:2: ( ( () otherlv_1= 'buttonStyle' otherlv_2= 'eventTopic' ( (lv_eventTopic_3_0= RULE_STRING ) ) ) ) |
| // InternalTableDSL.g:4076:2: ( () otherlv_1= 'buttonStyle' otherlv_2= 'eventTopic' ( (lv_eventTopic_3_0= RULE_STRING ) ) ) |
| { |
| // InternalTableDSL.g:4076:2: ( () otherlv_1= 'buttonStyle' otherlv_2= 'eventTopic' ( (lv_eventTopic_3_0= RULE_STRING ) ) ) |
| // InternalTableDSL.g:4077:3: () otherlv_1= 'buttonStyle' otherlv_2= 'eventTopic' ( (lv_eventTopic_3_0= RULE_STRING ) ) |
| { |
| // InternalTableDSL.g:4077:3: () |
| // InternalTableDSL.g:4078:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPropertyButtonStyleAccess().getCxGridPropButtonStyleAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,79,FOLLOW_45); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyButtonStyleAccess().getButtonStyleKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,80,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getPropertyButtonStyleAccess().getEventTopicKeyword_2()); |
| |
| } |
| // InternalTableDSL.g:4092:3: ( (lv_eventTopic_3_0= RULE_STRING ) ) |
| // InternalTableDSL.g:4093:4: (lv_eventTopic_3_0= RULE_STRING ) |
| { |
| // InternalTableDSL.g:4093:4: (lv_eventTopic_3_0= RULE_STRING ) |
| // InternalTableDSL.g:4094:5: lv_eventTopic_3_0= RULE_STRING |
| { |
| lv_eventTopic_3_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_eventTopic_3_0, grammarAccess.getPropertyButtonStyleAccess().getEventTopicSTRINGTerminalRuleCall_3_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyButtonStyleRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "eventTopic", |
| lv_eventTopic_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 "rulePropertyButtonStyle" |
| |
| |
| // $ANTLR start "entryRulePropertyHtmlStyle" |
| // InternalTableDSL.g:4114:1: entryRulePropertyHtmlStyle returns [EObject current=null] : iv_rulePropertyHtmlStyle= rulePropertyHtmlStyle EOF ; |
| public final EObject entryRulePropertyHtmlStyle() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyHtmlStyle = null; |
| |
| |
| try { |
| // InternalTableDSL.g:4114:58: (iv_rulePropertyHtmlStyle= rulePropertyHtmlStyle EOF ) |
| // InternalTableDSL.g:4115:2: iv_rulePropertyHtmlStyle= rulePropertyHtmlStyle EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyHtmlStyleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyHtmlStyle=rulePropertyHtmlStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyHtmlStyle; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyHtmlStyle" |
| |
| |
| // $ANTLR start "rulePropertyHtmlStyle" |
| // InternalTableDSL.g:4121:1: rulePropertyHtmlStyle returns [EObject current=null] : ( () otherlv_1= 'htmlStyle' ) ; |
| public final EObject rulePropertyHtmlStyle() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:4127:2: ( ( () otherlv_1= 'htmlStyle' ) ) |
| // InternalTableDSL.g:4128:2: ( () otherlv_1= 'htmlStyle' ) |
| { |
| // InternalTableDSL.g:4128:2: ( () otherlv_1= 'htmlStyle' ) |
| // InternalTableDSL.g:4129:3: () otherlv_1= 'htmlStyle' |
| { |
| // InternalTableDSL.g:4129:3: () |
| // InternalTableDSL.g:4130:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPropertyHtmlStyleAccess().getCxGridPropHtmlStyleAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,81,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyHtmlStyleAccess().getHtmlStyleKeyword_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyHtmlStyle" |
| |
| |
| // $ANTLR start "entryRulePropertyBooleanStyle" |
| // InternalTableDSL.g:4144:1: entryRulePropertyBooleanStyle returns [EObject current=null] : iv_rulePropertyBooleanStyle= rulePropertyBooleanStyle EOF ; |
| public final EObject entryRulePropertyBooleanStyle() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyBooleanStyle = null; |
| |
| |
| try { |
| // InternalTableDSL.g:4144:61: (iv_rulePropertyBooleanStyle= rulePropertyBooleanStyle EOF ) |
| // InternalTableDSL.g:4145:2: iv_rulePropertyBooleanStyle= rulePropertyBooleanStyle EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyBooleanStyleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyBooleanStyle=rulePropertyBooleanStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyBooleanStyle; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyBooleanStyle" |
| |
| |
| // $ANTLR start "rulePropertyBooleanStyle" |
| // InternalTableDSL.g:4151:1: rulePropertyBooleanStyle returns [EObject current=null] : ( () otherlv_1= 'boolStyle' ) ; |
| public final EObject rulePropertyBooleanStyle() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:4157:2: ( ( () otherlv_1= 'boolStyle' ) ) |
| // InternalTableDSL.g:4158:2: ( () otherlv_1= 'boolStyle' ) |
| { |
| // InternalTableDSL.g:4158:2: ( () otherlv_1= 'boolStyle' ) |
| // InternalTableDSL.g:4159:3: () otherlv_1= 'boolStyle' |
| { |
| // InternalTableDSL.g:4159:3: () |
| // InternalTableDSL.g:4160:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPropertyBooleanStyleAccess().getCxGridPropBooleanStyleAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,82,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyBooleanStyleAccess().getBoolStyleKeyword_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyBooleanStyle" |
| |
| |
| // $ANTLR start "entryRulePropertyDateStyle" |
| // InternalTableDSL.g:4174:1: entryRulePropertyDateStyle returns [EObject current=null] : iv_rulePropertyDateStyle= rulePropertyDateStyle EOF ; |
| public final EObject entryRulePropertyDateStyle() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyDateStyle = null; |
| |
| |
| try { |
| // InternalTableDSL.g:4174:58: (iv_rulePropertyDateStyle= rulePropertyDateStyle EOF ) |
| // InternalTableDSL.g:4175:2: iv_rulePropertyDateStyle= rulePropertyDateStyle EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyDateStyleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyDateStyle=rulePropertyDateStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyDateStyle; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyDateStyle" |
| |
| |
| // $ANTLR start "rulePropertyDateStyle" |
| // InternalTableDSL.g:4181:1: rulePropertyDateStyle returns [EObject current=null] : ( () otherlv_1= 'dateStyle' otherlv_2= 'format' ( (lv_dateFormat_3_0= RULE_STRING ) ) ) ; |
| public final EObject rulePropertyDateStyle() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token lv_dateFormat_3_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:4187:2: ( ( () otherlv_1= 'dateStyle' otherlv_2= 'format' ( (lv_dateFormat_3_0= RULE_STRING ) ) ) ) |
| // InternalTableDSL.g:4188:2: ( () otherlv_1= 'dateStyle' otherlv_2= 'format' ( (lv_dateFormat_3_0= RULE_STRING ) ) ) |
| { |
| // InternalTableDSL.g:4188:2: ( () otherlv_1= 'dateStyle' otherlv_2= 'format' ( (lv_dateFormat_3_0= RULE_STRING ) ) ) |
| // InternalTableDSL.g:4189:3: () otherlv_1= 'dateStyle' otherlv_2= 'format' ( (lv_dateFormat_3_0= RULE_STRING ) ) |
| { |
| // InternalTableDSL.g:4189:3: () |
| // InternalTableDSL.g:4190:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPropertyDateStyleAccess().getCxGridPropDateStyleAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,83,FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyDateStyleAccess().getDateStyleKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,84,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getPropertyDateStyleAccess().getFormatKeyword_2()); |
| |
| } |
| // InternalTableDSL.g:4204:3: ( (lv_dateFormat_3_0= RULE_STRING ) ) |
| // InternalTableDSL.g:4205:4: (lv_dateFormat_3_0= RULE_STRING ) |
| { |
| // InternalTableDSL.g:4205:4: (lv_dateFormat_3_0= RULE_STRING ) |
| // InternalTableDSL.g:4206:5: lv_dateFormat_3_0= RULE_STRING |
| { |
| lv_dateFormat_3_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_dateFormat_3_0, grammarAccess.getPropertyDateStyleAccess().getDateFormatSTRINGTerminalRuleCall_3_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyDateStyleRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "dateFormat", |
| lv_dateFormat_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 "rulePropertyDateStyle" |
| |
| |
| // $ANTLR start "entryRulePropertyNumberStyle" |
| // InternalTableDSL.g:4226:1: entryRulePropertyNumberStyle returns [EObject current=null] : iv_rulePropertyNumberStyle= rulePropertyNumberStyle EOF ; |
| public final EObject entryRulePropertyNumberStyle() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyNumberStyle = null; |
| |
| |
| try { |
| // InternalTableDSL.g:4226:60: (iv_rulePropertyNumberStyle= rulePropertyNumberStyle EOF ) |
| // InternalTableDSL.g:4227:2: iv_rulePropertyNumberStyle= rulePropertyNumberStyle EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyNumberStyleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyNumberStyle=rulePropertyNumberStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyNumberStyle; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyNumberStyle" |
| |
| |
| // $ANTLR start "rulePropertyNumberStyle" |
| // InternalTableDSL.g:4233:1: rulePropertyNumberStyle returns [EObject current=null] : ( () otherlv_1= 'numberStyle' otherlv_2= 'format' ( (lv_numberFormat_3_0= RULE_STRING ) ) ) ; |
| public final EObject rulePropertyNumberStyle() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token lv_numberFormat_3_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:4239:2: ( ( () otherlv_1= 'numberStyle' otherlv_2= 'format' ( (lv_numberFormat_3_0= RULE_STRING ) ) ) ) |
| // InternalTableDSL.g:4240:2: ( () otherlv_1= 'numberStyle' otherlv_2= 'format' ( (lv_numberFormat_3_0= RULE_STRING ) ) ) |
| { |
| // InternalTableDSL.g:4240:2: ( () otherlv_1= 'numberStyle' otherlv_2= 'format' ( (lv_numberFormat_3_0= RULE_STRING ) ) ) |
| // InternalTableDSL.g:4241:3: () otherlv_1= 'numberStyle' otherlv_2= 'format' ( (lv_numberFormat_3_0= RULE_STRING ) ) |
| { |
| // InternalTableDSL.g:4241:3: () |
| // InternalTableDSL.g:4242:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPropertyNumberStyleAccess().getCxGridPropNumberStyleAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,85,FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyNumberStyleAccess().getNumberStyleKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,84,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getPropertyNumberStyleAccess().getFormatKeyword_2()); |
| |
| } |
| // InternalTableDSL.g:4256:3: ( (lv_numberFormat_3_0= RULE_STRING ) ) |
| // InternalTableDSL.g:4257:4: (lv_numberFormat_3_0= RULE_STRING ) |
| { |
| // InternalTableDSL.g:4257:4: (lv_numberFormat_3_0= RULE_STRING ) |
| // InternalTableDSL.g:4258:5: lv_numberFormat_3_0= RULE_STRING |
| { |
| lv_numberFormat_3_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_numberFormat_3_0, grammarAccess.getPropertyNumberStyleAccess().getNumberFormatSTRINGTerminalRuleCall_3_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyNumberStyleRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "numberFormat", |
| lv_numberFormat_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 "rulePropertyNumberStyle" |
| |
| |
| // $ANTLR start "entryRulePropertyProgressbarStyle" |
| // InternalTableDSL.g:4278:1: entryRulePropertyProgressbarStyle returns [EObject current=null] : iv_rulePropertyProgressbarStyle= rulePropertyProgressbarStyle EOF ; |
| public final EObject entryRulePropertyProgressbarStyle() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyProgressbarStyle = null; |
| |
| |
| try { |
| // InternalTableDSL.g:4278:65: (iv_rulePropertyProgressbarStyle= rulePropertyProgressbarStyle EOF ) |
| // InternalTableDSL.g:4279:2: iv_rulePropertyProgressbarStyle= rulePropertyProgressbarStyle EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyProgressbarStyleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyProgressbarStyle=rulePropertyProgressbarStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyProgressbarStyle; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyProgressbarStyle" |
| |
| |
| // $ANTLR start "rulePropertyProgressbarStyle" |
| // InternalTableDSL.g:4285:1: rulePropertyProgressbarStyle returns [EObject current=null] : ( () otherlv_1= 'progressbarStyle' otherlv_2= 'max' ( (lv_maxValue_3_0= ruleLDouble ) ) ) ; |
| public final EObject rulePropertyProgressbarStyle() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| AntlrDatatypeRuleToken lv_maxValue_3_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:4291:2: ( ( () otherlv_1= 'progressbarStyle' otherlv_2= 'max' ( (lv_maxValue_3_0= ruleLDouble ) ) ) ) |
| // InternalTableDSL.g:4292:2: ( () otherlv_1= 'progressbarStyle' otherlv_2= 'max' ( (lv_maxValue_3_0= ruleLDouble ) ) ) |
| { |
| // InternalTableDSL.g:4292:2: ( () otherlv_1= 'progressbarStyle' otherlv_2= 'max' ( (lv_maxValue_3_0= ruleLDouble ) ) ) |
| // InternalTableDSL.g:4293:3: () otherlv_1= 'progressbarStyle' otherlv_2= 'max' ( (lv_maxValue_3_0= ruleLDouble ) ) |
| { |
| // InternalTableDSL.g:4293:3: () |
| // InternalTableDSL.g:4294:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPropertyProgressbarStyleAccess().getCxGridPropProgressbarStyleAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,86,FOLLOW_47); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyProgressbarStyleAccess().getProgressbarStyleKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,87,FOLLOW_48); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getPropertyProgressbarStyleAccess().getMaxKeyword_2()); |
| |
| } |
| // InternalTableDSL.g:4308:3: ( (lv_maxValue_3_0= ruleLDouble ) ) |
| // InternalTableDSL.g:4309:4: (lv_maxValue_3_0= ruleLDouble ) |
| { |
| // InternalTableDSL.g:4309:4: (lv_maxValue_3_0= ruleLDouble ) |
| // InternalTableDSL.g:4310:5: lv_maxValue_3_0= ruleLDouble |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyProgressbarStyleAccess().getMaxValueLDoubleParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_maxValue_3_0=ruleLDouble(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyProgressbarStyleRule()); |
| } |
| set( |
| current, |
| "maxValue", |
| lv_maxValue_3_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.LDouble"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyProgressbarStyle" |
| |
| |
| // $ANTLR start "entryRuleGridPropIndicatorStyle" |
| // InternalTableDSL.g:4331:1: entryRuleGridPropIndicatorStyle returns [EObject current=null] : iv_ruleGridPropIndicatorStyle= ruleGridPropIndicatorStyle EOF ; |
| public final EObject entryRuleGridPropIndicatorStyle() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleGridPropIndicatorStyle = null; |
| |
| |
| try { |
| // InternalTableDSL.g:4331:63: (iv_ruleGridPropIndicatorStyle= ruleGridPropIndicatorStyle EOF ) |
| // InternalTableDSL.g:4332:2: iv_ruleGridPropIndicatorStyle= ruleGridPropIndicatorStyle EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getGridPropIndicatorStyleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleGridPropIndicatorStyle=ruleGridPropIndicatorStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleGridPropIndicatorStyle; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleGridPropIndicatorStyle" |
| |
| |
| // $ANTLR start "ruleGridPropIndicatorStyle" |
| // InternalTableDSL.g:4338:1: ruleGridPropIndicatorStyle returns [EObject current=null] : ( () otherlv_1= 'indicatorStyle' otherlv_2= 'greenFrom' ( (lv_greenStarts_3_0= ruleLDouble ) ) otherlv_4= 'redUntil' ( (lv_redEnds_5_0= ruleLDouble ) ) ) ; |
| public final EObject ruleGridPropIndicatorStyle() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token otherlv_4=null; |
| AntlrDatatypeRuleToken lv_greenStarts_3_0 = null; |
| |
| AntlrDatatypeRuleToken lv_redEnds_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:4344:2: ( ( () otherlv_1= 'indicatorStyle' otherlv_2= 'greenFrom' ( (lv_greenStarts_3_0= ruleLDouble ) ) otherlv_4= 'redUntil' ( (lv_redEnds_5_0= ruleLDouble ) ) ) ) |
| // InternalTableDSL.g:4345:2: ( () otherlv_1= 'indicatorStyle' otherlv_2= 'greenFrom' ( (lv_greenStarts_3_0= ruleLDouble ) ) otherlv_4= 'redUntil' ( (lv_redEnds_5_0= ruleLDouble ) ) ) |
| { |
| // InternalTableDSL.g:4345:2: ( () otherlv_1= 'indicatorStyle' otherlv_2= 'greenFrom' ( (lv_greenStarts_3_0= ruleLDouble ) ) otherlv_4= 'redUntil' ( (lv_redEnds_5_0= ruleLDouble ) ) ) |
| // InternalTableDSL.g:4346:3: () otherlv_1= 'indicatorStyle' otherlv_2= 'greenFrom' ( (lv_greenStarts_3_0= ruleLDouble ) ) otherlv_4= 'redUntil' ( (lv_redEnds_5_0= ruleLDouble ) ) |
| { |
| // InternalTableDSL.g:4346:3: () |
| // InternalTableDSL.g:4347:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getGridPropIndicatorStyleAccess().getCxGridPropIndicatorStyleAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,88,FOLLOW_49); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getGridPropIndicatorStyleAccess().getIndicatorStyleKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,89,FOLLOW_48); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getGridPropIndicatorStyleAccess().getGreenFromKeyword_2()); |
| |
| } |
| // InternalTableDSL.g:4361:3: ( (lv_greenStarts_3_0= ruleLDouble ) ) |
| // InternalTableDSL.g:4362:4: (lv_greenStarts_3_0= ruleLDouble ) |
| { |
| // InternalTableDSL.g:4362:4: (lv_greenStarts_3_0= ruleLDouble ) |
| // InternalTableDSL.g:4363:5: lv_greenStarts_3_0= ruleLDouble |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getGridPropIndicatorStyleAccess().getGreenStartsLDoubleParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_50); |
| lv_greenStarts_3_0=ruleLDouble(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getGridPropIndicatorStyleRule()); |
| } |
| set( |
| current, |
| "greenStarts", |
| lv_greenStarts_3_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.LDouble"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,90,FOLLOW_48); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getGridPropIndicatorStyleAccess().getRedUntilKeyword_4()); |
| |
| } |
| // InternalTableDSL.g:4384:3: ( (lv_redEnds_5_0= ruleLDouble ) ) |
| // InternalTableDSL.g:4385:4: (lv_redEnds_5_0= ruleLDouble ) |
| { |
| // InternalTableDSL.g:4385:4: (lv_redEnds_5_0= ruleLDouble ) |
| // InternalTableDSL.g:4386:5: lv_redEnds_5_0= ruleLDouble |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getGridPropIndicatorStyleAccess().getRedEndsLDoubleParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_redEnds_5_0=ruleLDouble(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getGridPropIndicatorStyleRule()); |
| } |
| set( |
| current, |
| "redEnds", |
| lv_redEnds_5_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.LDouble"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleGridPropIndicatorStyle" |
| |
| |
| // $ANTLR start "entryRulePropertyQuantityStyle" |
| // InternalTableDSL.g:4407:1: entryRulePropertyQuantityStyle returns [EObject current=null] : iv_rulePropertyQuantityStyle= rulePropertyQuantityStyle EOF ; |
| public final EObject entryRulePropertyQuantityStyle() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyQuantityStyle = null; |
| |
| |
| try { |
| // InternalTableDSL.g:4407:62: (iv_rulePropertyQuantityStyle= rulePropertyQuantityStyle EOF ) |
| // InternalTableDSL.g:4408:2: iv_rulePropertyQuantityStyle= rulePropertyQuantityStyle EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyQuantityStyleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyQuantityStyle=rulePropertyQuantityStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyQuantityStyle; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyQuantityStyle" |
| |
| |
| // $ANTLR start "rulePropertyQuantityStyle" |
| // InternalTableDSL.g:4414:1: rulePropertyQuantityStyle returns [EObject current=null] : ( () otherlv_1= 'quantityStyle' ( (lv_htmlPattern_2_0= RULE_STRING ) )? otherlv_3= 'value' otherlv_4= '=' ( (lv_valuePropertyPath_5_0= ruleNestedField ) ) (otherlv_6= '(' otherlv_7= 'format' ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) otherlv_9= ')' )? otherlv_10= 'uom' otherlv_11= '=' ( (lv_uomPropertyPath_12_0= ruleNestedField ) ) ) ; |
| public final EObject rulePropertyQuantityStyle() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_htmlPattern_2_0=null; |
| Token otherlv_3=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| Token otherlv_7=null; |
| Token lv_valueNumberFormat_8_0=null; |
| Token otherlv_9=null; |
| Token otherlv_10=null; |
| Token otherlv_11=null; |
| EObject lv_valuePropertyPath_5_0 = null; |
| |
| EObject lv_uomPropertyPath_12_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:4420:2: ( ( () otherlv_1= 'quantityStyle' ( (lv_htmlPattern_2_0= RULE_STRING ) )? otherlv_3= 'value' otherlv_4= '=' ( (lv_valuePropertyPath_5_0= ruleNestedField ) ) (otherlv_6= '(' otherlv_7= 'format' ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) otherlv_9= ')' )? otherlv_10= 'uom' otherlv_11= '=' ( (lv_uomPropertyPath_12_0= ruleNestedField ) ) ) ) |
| // InternalTableDSL.g:4421:2: ( () otherlv_1= 'quantityStyle' ( (lv_htmlPattern_2_0= RULE_STRING ) )? otherlv_3= 'value' otherlv_4= '=' ( (lv_valuePropertyPath_5_0= ruleNestedField ) ) (otherlv_6= '(' otherlv_7= 'format' ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) otherlv_9= ')' )? otherlv_10= 'uom' otherlv_11= '=' ( (lv_uomPropertyPath_12_0= ruleNestedField ) ) ) |
| { |
| // InternalTableDSL.g:4421:2: ( () otherlv_1= 'quantityStyle' ( (lv_htmlPattern_2_0= RULE_STRING ) )? otherlv_3= 'value' otherlv_4= '=' ( (lv_valuePropertyPath_5_0= ruleNestedField ) ) (otherlv_6= '(' otherlv_7= 'format' ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) otherlv_9= ')' )? otherlv_10= 'uom' otherlv_11= '=' ( (lv_uomPropertyPath_12_0= ruleNestedField ) ) ) |
| // InternalTableDSL.g:4422:3: () otherlv_1= 'quantityStyle' ( (lv_htmlPattern_2_0= RULE_STRING ) )? otherlv_3= 'value' otherlv_4= '=' ( (lv_valuePropertyPath_5_0= ruleNestedField ) ) (otherlv_6= '(' otherlv_7= 'format' ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) otherlv_9= ')' )? otherlv_10= 'uom' otherlv_11= '=' ( (lv_uomPropertyPath_12_0= ruleNestedField ) ) |
| { |
| // InternalTableDSL.g:4422:3: () |
| // InternalTableDSL.g:4423:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPropertyQuantityStyleAccess().getCxGridPropQuantityStyleAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,91,FOLLOW_51); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyQuantityStyleAccess().getQuantityStyleKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:4433:3: ( (lv_htmlPattern_2_0= RULE_STRING ) )? |
| int alt42=2; |
| int LA42_0 = input.LA(1); |
| |
| if ( (LA42_0==RULE_STRING) ) { |
| alt42=1; |
| } |
| switch (alt42) { |
| case 1 : |
| // InternalTableDSL.g:4434:4: (lv_htmlPattern_2_0= RULE_STRING ) |
| { |
| // InternalTableDSL.g:4434:4: (lv_htmlPattern_2_0= RULE_STRING ) |
| // InternalTableDSL.g:4435:5: lv_htmlPattern_2_0= RULE_STRING |
| { |
| lv_htmlPattern_2_0=(Token)match(input,RULE_STRING,FOLLOW_52); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_htmlPattern_2_0, grammarAccess.getPropertyQuantityStyleAccess().getHtmlPatternSTRINGTerminalRuleCall_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyQuantityStyleRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "htmlPattern", |
| lv_htmlPattern_2_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_3=(Token)match(input,35,FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getPropertyQuantityStyleAccess().getValueKeyword_3()); |
| |
| } |
| otherlv_4=(Token)match(input,92,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getPropertyQuantityStyleAccess().getEqualsSignKeyword_4()); |
| |
| } |
| // InternalTableDSL.g:4459:3: ( (lv_valuePropertyPath_5_0= ruleNestedField ) ) |
| // InternalTableDSL.g:4460:4: (lv_valuePropertyPath_5_0= ruleNestedField ) |
| { |
| // InternalTableDSL.g:4460:4: (lv_valuePropertyPath_5_0= ruleNestedField ) |
| // InternalTableDSL.g:4461:5: lv_valuePropertyPath_5_0= ruleNestedField |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyQuantityStyleAccess().getValuePropertyPathNestedFieldParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_54); |
| lv_valuePropertyPath_5_0=ruleNestedField(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyQuantityStyleRule()); |
| } |
| set( |
| current, |
| "valuePropertyPath", |
| lv_valuePropertyPath_5_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.NestedField"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:4478:3: (otherlv_6= '(' otherlv_7= 'format' ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) otherlv_9= ')' )? |
| int alt43=2; |
| int LA43_0 = input.LA(1); |
| |
| if ( (LA43_0==93) ) { |
| alt43=1; |
| } |
| switch (alt43) { |
| case 1 : |
| // InternalTableDSL.g:4479:4: otherlv_6= '(' otherlv_7= 'format' ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) otherlv_9= ')' |
| { |
| otherlv_6=(Token)match(input,93,FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getPropertyQuantityStyleAccess().getLeftParenthesisKeyword_6_0()); |
| |
| } |
| otherlv_7=(Token)match(input,84,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getPropertyQuantityStyleAccess().getFormatKeyword_6_1()); |
| |
| } |
| // InternalTableDSL.g:4487:4: ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) |
| // InternalTableDSL.g:4488:5: (lv_valueNumberFormat_8_0= RULE_STRING ) |
| { |
| // InternalTableDSL.g:4488:5: (lv_valueNumberFormat_8_0= RULE_STRING ) |
| // InternalTableDSL.g:4489:6: lv_valueNumberFormat_8_0= RULE_STRING |
| { |
| lv_valueNumberFormat_8_0=(Token)match(input,RULE_STRING,FOLLOW_55); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_valueNumberFormat_8_0, grammarAccess.getPropertyQuantityStyleAccess().getValueNumberFormatSTRINGTerminalRuleCall_6_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyQuantityStyleRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "valueNumberFormat", |
| lv_valueNumberFormat_8_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_9=(Token)match(input,94,FOLLOW_56); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getPropertyQuantityStyleAccess().getRightParenthesisKeyword_6_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_10=(Token)match(input,95,FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getPropertyQuantityStyleAccess().getUomKeyword_7()); |
| |
| } |
| otherlv_11=(Token)match(input,92,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getPropertyQuantityStyleAccess().getEqualsSignKeyword_8()); |
| |
| } |
| // InternalTableDSL.g:4518:3: ( (lv_uomPropertyPath_12_0= ruleNestedField ) ) |
| // InternalTableDSL.g:4519:4: (lv_uomPropertyPath_12_0= ruleNestedField ) |
| { |
| // InternalTableDSL.g:4519:4: (lv_uomPropertyPath_12_0= ruleNestedField ) |
| // InternalTableDSL.g:4520:5: lv_uomPropertyPath_12_0= ruleNestedField |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyQuantityStyleAccess().getUomPropertyPathNestedFieldParserRuleCall_9_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_uomPropertyPath_12_0=ruleNestedField(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyQuantityStyleRule()); |
| } |
| set( |
| current, |
| "uomPropertyPath", |
| lv_uomPropertyPath_12_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.NestedField"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyQuantityStyle" |
| |
| |
| // $ANTLR start "entryRulePropertyPriceStyle" |
| // InternalTableDSL.g:4541:1: entryRulePropertyPriceStyle returns [EObject current=null] : iv_rulePropertyPriceStyle= rulePropertyPriceStyle EOF ; |
| public final EObject entryRulePropertyPriceStyle() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyPriceStyle = null; |
| |
| |
| try { |
| // InternalTableDSL.g:4541:59: (iv_rulePropertyPriceStyle= rulePropertyPriceStyle EOF ) |
| // InternalTableDSL.g:4542:2: iv_rulePropertyPriceStyle= rulePropertyPriceStyle EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyPriceStyleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyPriceStyle=rulePropertyPriceStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyPriceStyle; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyPriceStyle" |
| |
| |
| // $ANTLR start "rulePropertyPriceStyle" |
| // InternalTableDSL.g:4548:1: rulePropertyPriceStyle returns [EObject current=null] : ( () otherlv_1= 'priceStyle' ( (lv_htmlPattern_2_0= RULE_STRING ) )? otherlv_3= 'value' otherlv_4= '=' ( (lv_valuePropertyPath_5_0= ruleNestedField ) ) (otherlv_6= '(' otherlv_7= 'format' ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) otherlv_9= ')' )? otherlv_10= 'currency' otherlv_11= '=' ( (lv_currencyPropertyPath_12_0= ruleNestedField ) ) ) ; |
| public final EObject rulePropertyPriceStyle() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token lv_htmlPattern_2_0=null; |
| Token otherlv_3=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| Token otherlv_7=null; |
| Token lv_valueNumberFormat_8_0=null; |
| Token otherlv_9=null; |
| Token otherlv_10=null; |
| Token otherlv_11=null; |
| EObject lv_valuePropertyPath_5_0 = null; |
| |
| EObject lv_currencyPropertyPath_12_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:4554:2: ( ( () otherlv_1= 'priceStyle' ( (lv_htmlPattern_2_0= RULE_STRING ) )? otherlv_3= 'value' otherlv_4= '=' ( (lv_valuePropertyPath_5_0= ruleNestedField ) ) (otherlv_6= '(' otherlv_7= 'format' ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) otherlv_9= ')' )? otherlv_10= 'currency' otherlv_11= '=' ( (lv_currencyPropertyPath_12_0= ruleNestedField ) ) ) ) |
| // InternalTableDSL.g:4555:2: ( () otherlv_1= 'priceStyle' ( (lv_htmlPattern_2_0= RULE_STRING ) )? otherlv_3= 'value' otherlv_4= '=' ( (lv_valuePropertyPath_5_0= ruleNestedField ) ) (otherlv_6= '(' otherlv_7= 'format' ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) otherlv_9= ')' )? otherlv_10= 'currency' otherlv_11= '=' ( (lv_currencyPropertyPath_12_0= ruleNestedField ) ) ) |
| { |
| // InternalTableDSL.g:4555:2: ( () otherlv_1= 'priceStyle' ( (lv_htmlPattern_2_0= RULE_STRING ) )? otherlv_3= 'value' otherlv_4= '=' ( (lv_valuePropertyPath_5_0= ruleNestedField ) ) (otherlv_6= '(' otherlv_7= 'format' ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) otherlv_9= ')' )? otherlv_10= 'currency' otherlv_11= '=' ( (lv_currencyPropertyPath_12_0= ruleNestedField ) ) ) |
| // InternalTableDSL.g:4556:3: () otherlv_1= 'priceStyle' ( (lv_htmlPattern_2_0= RULE_STRING ) )? otherlv_3= 'value' otherlv_4= '=' ( (lv_valuePropertyPath_5_0= ruleNestedField ) ) (otherlv_6= '(' otherlv_7= 'format' ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) otherlv_9= ')' )? otherlv_10= 'currency' otherlv_11= '=' ( (lv_currencyPropertyPath_12_0= ruleNestedField ) ) |
| { |
| // InternalTableDSL.g:4556:3: () |
| // InternalTableDSL.g:4557:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPropertyPriceStyleAccess().getCxGridPropPriceStyleAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,96,FOLLOW_51); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyPriceStyleAccess().getPriceStyleKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:4567:3: ( (lv_htmlPattern_2_0= RULE_STRING ) )? |
| int alt44=2; |
| int LA44_0 = input.LA(1); |
| |
| if ( (LA44_0==RULE_STRING) ) { |
| alt44=1; |
| } |
| switch (alt44) { |
| case 1 : |
| // InternalTableDSL.g:4568:4: (lv_htmlPattern_2_0= RULE_STRING ) |
| { |
| // InternalTableDSL.g:4568:4: (lv_htmlPattern_2_0= RULE_STRING ) |
| // InternalTableDSL.g:4569:5: lv_htmlPattern_2_0= RULE_STRING |
| { |
| lv_htmlPattern_2_0=(Token)match(input,RULE_STRING,FOLLOW_52); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_htmlPattern_2_0, grammarAccess.getPropertyPriceStyleAccess().getHtmlPatternSTRINGTerminalRuleCall_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyPriceStyleRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "htmlPattern", |
| lv_htmlPattern_2_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_3=(Token)match(input,35,FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getPropertyPriceStyleAccess().getValueKeyword_3()); |
| |
| } |
| otherlv_4=(Token)match(input,92,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getPropertyPriceStyleAccess().getEqualsSignKeyword_4()); |
| |
| } |
| // InternalTableDSL.g:4593:3: ( (lv_valuePropertyPath_5_0= ruleNestedField ) ) |
| // InternalTableDSL.g:4594:4: (lv_valuePropertyPath_5_0= ruleNestedField ) |
| { |
| // InternalTableDSL.g:4594:4: (lv_valuePropertyPath_5_0= ruleNestedField ) |
| // InternalTableDSL.g:4595:5: lv_valuePropertyPath_5_0= ruleNestedField |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyPriceStyleAccess().getValuePropertyPathNestedFieldParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_57); |
| lv_valuePropertyPath_5_0=ruleNestedField(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyPriceStyleRule()); |
| } |
| set( |
| current, |
| "valuePropertyPath", |
| lv_valuePropertyPath_5_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.NestedField"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:4612:3: (otherlv_6= '(' otherlv_7= 'format' ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) otherlv_9= ')' )? |
| int alt45=2; |
| int LA45_0 = input.LA(1); |
| |
| if ( (LA45_0==93) ) { |
| alt45=1; |
| } |
| switch (alt45) { |
| case 1 : |
| // InternalTableDSL.g:4613:4: otherlv_6= '(' otherlv_7= 'format' ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) otherlv_9= ')' |
| { |
| otherlv_6=(Token)match(input,93,FOLLOW_46); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getPropertyPriceStyleAccess().getLeftParenthesisKeyword_6_0()); |
| |
| } |
| otherlv_7=(Token)match(input,84,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getPropertyPriceStyleAccess().getFormatKeyword_6_1()); |
| |
| } |
| // InternalTableDSL.g:4621:4: ( (lv_valueNumberFormat_8_0= RULE_STRING ) ) |
| // InternalTableDSL.g:4622:5: (lv_valueNumberFormat_8_0= RULE_STRING ) |
| { |
| // InternalTableDSL.g:4622:5: (lv_valueNumberFormat_8_0= RULE_STRING ) |
| // InternalTableDSL.g:4623:6: lv_valueNumberFormat_8_0= RULE_STRING |
| { |
| lv_valueNumberFormat_8_0=(Token)match(input,RULE_STRING,FOLLOW_55); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_valueNumberFormat_8_0, grammarAccess.getPropertyPriceStyleAccess().getValueNumberFormatSTRINGTerminalRuleCall_6_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyPriceStyleRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "valueNumberFormat", |
| lv_valueNumberFormat_8_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_9=(Token)match(input,94,FOLLOW_58); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getPropertyPriceStyleAccess().getRightParenthesisKeyword_6_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_10=(Token)match(input,97,FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getPropertyPriceStyleAccess().getCurrencyKeyword_7()); |
| |
| } |
| otherlv_11=(Token)match(input,92,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getPropertyPriceStyleAccess().getEqualsSignKeyword_8()); |
| |
| } |
| // InternalTableDSL.g:4652:3: ( (lv_currencyPropertyPath_12_0= ruleNestedField ) ) |
| // InternalTableDSL.g:4653:4: (lv_currencyPropertyPath_12_0= ruleNestedField ) |
| { |
| // InternalTableDSL.g:4653:4: (lv_currencyPropertyPath_12_0= ruleNestedField ) |
| // InternalTableDSL.g:4654:5: lv_currencyPropertyPath_12_0= ruleNestedField |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyPriceStyleAccess().getCurrencyPropertyPathNestedFieldParserRuleCall_9_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| lv_currencyPropertyPath_12_0=ruleNestedField(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyPriceStyleRule()); |
| } |
| set( |
| current, |
| "currencyPropertyPath", |
| lv_currencyPropertyPath_12_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.NestedField"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyPriceStyle" |
| |
| |
| // $ANTLR start "entryRulePropertyTextStyle" |
| // InternalTableDSL.g:4675:1: entryRulePropertyTextStyle returns [EObject current=null] : iv_rulePropertyTextStyle= rulePropertyTextStyle EOF ; |
| public final EObject entryRulePropertyTextStyle() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyTextStyle = null; |
| |
| |
| try { |
| // InternalTableDSL.g:4675:58: (iv_rulePropertyTextStyle= rulePropertyTextStyle EOF ) |
| // InternalTableDSL.g:4676:2: iv_rulePropertyTextStyle= rulePropertyTextStyle EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyTextStyleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyTextStyle=rulePropertyTextStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyTextStyle; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyTextStyle" |
| |
| |
| // $ANTLR start "rulePropertyTextStyle" |
| // InternalTableDSL.g:4682:1: rulePropertyTextStyle returns [EObject current=null] : ( () otherlv_1= 'textStyle' ) ; |
| public final EObject rulePropertyTextStyle() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:4688:2: ( ( () otherlv_1= 'textStyle' ) ) |
| // InternalTableDSL.g:4689:2: ( () otherlv_1= 'textStyle' ) |
| { |
| // InternalTableDSL.g:4689:2: ( () otherlv_1= 'textStyle' ) |
| // InternalTableDSL.g:4690:3: () otherlv_1= 'textStyle' |
| { |
| // InternalTableDSL.g:4690:3: () |
| // InternalTableDSL.g:4691:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPropertyTextStyleAccess().getCxGridPropTextStyleAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,98,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyTextStyleAccess().getTextStyleKeyword_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyTextStyle" |
| |
| |
| // $ANTLR start "entryRulePropertyImageStyle" |
| // InternalTableDSL.g:4705:1: entryRulePropertyImageStyle returns [EObject current=null] : iv_rulePropertyImageStyle= rulePropertyImageStyle EOF ; |
| public final EObject entryRulePropertyImageStyle() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_rulePropertyImageStyle = null; |
| |
| |
| try { |
| // InternalTableDSL.g:4705:59: (iv_rulePropertyImageStyle= rulePropertyImageStyle EOF ) |
| // InternalTableDSL.g:4706:2: iv_rulePropertyImageStyle= rulePropertyImageStyle EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getPropertyImageStyleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_rulePropertyImageStyle=rulePropertyImageStyle(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_rulePropertyImageStyle; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRulePropertyImageStyle" |
| |
| |
| // $ANTLR start "rulePropertyImageStyle" |
| // InternalTableDSL.g:4712:1: rulePropertyImageStyle returns [EObject current=null] : ( () otherlv_1= 'imageStyle' (otherlv_2= 'eventTopic' ( (lv_eventTopic_3_0= RULE_STRING ) ) )? otherlv_4= '{' ( (lv_configs_5_0= ruleStyleConfig ) )* otherlv_6= '}' ) ; |
| public final EObject rulePropertyImageStyle() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| Token otherlv_2=null; |
| Token lv_eventTopic_3_0=null; |
| Token otherlv_4=null; |
| Token otherlv_6=null; |
| EObject lv_configs_5_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:4718:2: ( ( () otherlv_1= 'imageStyle' (otherlv_2= 'eventTopic' ( (lv_eventTopic_3_0= RULE_STRING ) ) )? otherlv_4= '{' ( (lv_configs_5_0= ruleStyleConfig ) )* otherlv_6= '}' ) ) |
| // InternalTableDSL.g:4719:2: ( () otherlv_1= 'imageStyle' (otherlv_2= 'eventTopic' ( (lv_eventTopic_3_0= RULE_STRING ) ) )? otherlv_4= '{' ( (lv_configs_5_0= ruleStyleConfig ) )* otherlv_6= '}' ) |
| { |
| // InternalTableDSL.g:4719:2: ( () otherlv_1= 'imageStyle' (otherlv_2= 'eventTopic' ( (lv_eventTopic_3_0= RULE_STRING ) ) )? otherlv_4= '{' ( (lv_configs_5_0= ruleStyleConfig ) )* otherlv_6= '}' ) |
| // InternalTableDSL.g:4720:3: () otherlv_1= 'imageStyle' (otherlv_2= 'eventTopic' ( (lv_eventTopic_3_0= RULE_STRING ) ) )? otherlv_4= '{' ( (lv_configs_5_0= ruleStyleConfig ) )* otherlv_6= '}' |
| { |
| // InternalTableDSL.g:4720:3: () |
| // InternalTableDSL.g:4721:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getPropertyImageStyleAccess().getCxGridPropImageStyleAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,99,FOLLOW_59); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getPropertyImageStyleAccess().getImageStyleKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:4731:3: (otherlv_2= 'eventTopic' ( (lv_eventTopic_3_0= RULE_STRING ) ) )? |
| int alt46=2; |
| int LA46_0 = input.LA(1); |
| |
| if ( (LA46_0==80) ) { |
| alt46=1; |
| } |
| switch (alt46) { |
| case 1 : |
| // InternalTableDSL.g:4732:4: otherlv_2= 'eventTopic' ( (lv_eventTopic_3_0= RULE_STRING ) ) |
| { |
| otherlv_2=(Token)match(input,80,FOLLOW_8); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getPropertyImageStyleAccess().getEventTopicKeyword_2_0()); |
| |
| } |
| // InternalTableDSL.g:4736:4: ( (lv_eventTopic_3_0= RULE_STRING ) ) |
| // InternalTableDSL.g:4737:5: (lv_eventTopic_3_0= RULE_STRING ) |
| { |
| // InternalTableDSL.g:4737:5: (lv_eventTopic_3_0= RULE_STRING ) |
| // InternalTableDSL.g:4738:6: lv_eventTopic_3_0= RULE_STRING |
| { |
| lv_eventTopic_3_0=(Token)match(input,RULE_STRING,FOLLOW_22); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_eventTopic_3_0, grammarAccess.getPropertyImageStyleAccess().getEventTopicSTRINGTerminalRuleCall_2_1_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getPropertyImageStyleRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "eventTopic", |
| lv_eventTopic_3_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_4=(Token)match(input,16,FOLLOW_60); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getPropertyImageStyleAccess().getLeftCurlyBracketKeyword_3()); |
| |
| } |
| // InternalTableDSL.g:4759:3: ( (lv_configs_5_0= ruleStyleConfig ) )* |
| loop47: |
| do { |
| int alt47=2; |
| int LA47_0 = input.LA(1); |
| |
| if ( ((LA47_0>=60 && LA47_0<=61)) ) { |
| alt47=1; |
| } |
| |
| |
| switch (alt47) { |
| case 1 : |
| // InternalTableDSL.g:4760:4: (lv_configs_5_0= ruleStyleConfig ) |
| { |
| // InternalTableDSL.g:4760:4: (lv_configs_5_0= ruleStyleConfig ) |
| // InternalTableDSL.g:4761:5: lv_configs_5_0= ruleStyleConfig |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getPropertyImageStyleAccess().getConfigsStyleConfigParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_60); |
| lv_configs_5_0=ruleStyleConfig(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getPropertyImageStyleRule()); |
| } |
| add( |
| current, |
| "configs", |
| lv_configs_5_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.StyleConfig"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop47; |
| } |
| } while (true); |
| |
| otherlv_6=(Token)match(input,17,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getPropertyImageStyleAccess().getRightCurlyBracketKeyword_5()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "rulePropertyImageStyle" |
| |
| |
| // $ANTLR start "entryRuleStyleConfig" |
| // InternalTableDSL.g:4786:1: entryRuleStyleConfig returns [EObject current=null] : iv_ruleStyleConfig= ruleStyleConfig EOF ; |
| public final EObject entryRuleStyleConfig() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleStyleConfig = null; |
| |
| |
| try { |
| // InternalTableDSL.g:4786:52: (iv_ruleStyleConfig= ruleStyleConfig EOF ) |
| // InternalTableDSL.g:4787:2: iv_ruleStyleConfig= ruleStyleConfig EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getStyleConfigRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleStyleConfig=ruleStyleConfig(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleStyleConfig; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleStyleConfig" |
| |
| |
| // $ANTLR start "ruleStyleConfig" |
| // InternalTableDSL.g:4793:1: ruleStyleConfig returns [EObject current=null] : (this_NumericToResourceStyleConfig_0= ruleNumericToResourceStyleConfig | this_StringToResourceStyleConfig_1= ruleStringToResourceStyleConfig ) ; |
| public final EObject ruleStyleConfig() throws RecognitionException { |
| EObject current = null; |
| |
| EObject this_NumericToResourceStyleConfig_0 = null; |
| |
| EObject this_StringToResourceStyleConfig_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:4799:2: ( (this_NumericToResourceStyleConfig_0= ruleNumericToResourceStyleConfig | this_StringToResourceStyleConfig_1= ruleStringToResourceStyleConfig ) ) |
| // InternalTableDSL.g:4800:2: (this_NumericToResourceStyleConfig_0= ruleNumericToResourceStyleConfig | this_StringToResourceStyleConfig_1= ruleStringToResourceStyleConfig ) |
| { |
| // InternalTableDSL.g:4800:2: (this_NumericToResourceStyleConfig_0= ruleNumericToResourceStyleConfig | this_StringToResourceStyleConfig_1= ruleStringToResourceStyleConfig ) |
| int alt48=2; |
| int LA48_0 = input.LA(1); |
| |
| if ( (LA48_0==60) ) { |
| alt48=1; |
| } |
| else if ( (LA48_0==61) ) { |
| alt48=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 48, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt48) { |
| case 1 : |
| // InternalTableDSL.g:4801:3: this_NumericToResourceStyleConfig_0= ruleNumericToResourceStyleConfig |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getStyleConfigAccess().getNumericToResourceStyleConfigParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_NumericToResourceStyleConfig_0=ruleNumericToResourceStyleConfig(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_NumericToResourceStyleConfig_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:4810:3: this_StringToResourceStyleConfig_1= ruleStringToResourceStyleConfig |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getStyleConfigAccess().getStringToResourceStyleConfigParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_StringToResourceStyleConfig_1=ruleStringToResourceStyleConfig(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_StringToResourceStyleConfig_1; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleStyleConfig" |
| |
| |
| // $ANTLR start "entryRuleNumericToResourceStyleConfig" |
| // InternalTableDSL.g:4822:1: entryRuleNumericToResourceStyleConfig returns [EObject current=null] : iv_ruleNumericToResourceStyleConfig= ruleNumericToResourceStyleConfig EOF ; |
| public final EObject entryRuleNumericToResourceStyleConfig() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleNumericToResourceStyleConfig = null; |
| |
| |
| try { |
| // InternalTableDSL.g:4822:69: (iv_ruleNumericToResourceStyleConfig= ruleNumericToResourceStyleConfig EOF ) |
| // InternalTableDSL.g:4823:2: iv_ruleNumericToResourceStyleConfig= ruleNumericToResourceStyleConfig EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getNumericToResourceStyleConfigRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleNumericToResourceStyleConfig=ruleNumericToResourceStyleConfig(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleNumericToResourceStyleConfig; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleNumericToResourceStyleConfig" |
| |
| |
| // $ANTLR start "ruleNumericToResourceStyleConfig" |
| // InternalTableDSL.g:4829:1: ruleNumericToResourceStyleConfig returns [EObject current=null] : (otherlv_0= 'number' ( (lv_compare_1_0= ruleStyleCompare ) ) ( (lv_value_2_0= ruleLDouble ) ) otherlv_3= 'then' ( (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) ) ) ; |
| public final EObject ruleNumericToResourceStyleConfig() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token otherlv_3=null; |
| Token lv_resourceThemePath_4_0=null; |
| Enumerator lv_compare_1_0 = null; |
| |
| AntlrDatatypeRuleToken lv_value_2_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:4835:2: ( (otherlv_0= 'number' ( (lv_compare_1_0= ruleStyleCompare ) ) ( (lv_value_2_0= ruleLDouble ) ) otherlv_3= 'then' ( (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) ) ) ) |
| // InternalTableDSL.g:4836:2: (otherlv_0= 'number' ( (lv_compare_1_0= ruleStyleCompare ) ) ( (lv_value_2_0= ruleLDouble ) ) otherlv_3= 'then' ( (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) ) ) |
| { |
| // InternalTableDSL.g:4836:2: (otherlv_0= 'number' ( (lv_compare_1_0= ruleStyleCompare ) ) ( (lv_value_2_0= ruleLDouble ) ) otherlv_3= 'then' ( (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) ) ) |
| // InternalTableDSL.g:4837:3: otherlv_0= 'number' ( (lv_compare_1_0= ruleStyleCompare ) ) ( (lv_value_2_0= ruleLDouble ) ) otherlv_3= 'then' ( (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) ) |
| { |
| otherlv_0=(Token)match(input,60,FOLLOW_61); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getNumericToResourceStyleConfigAccess().getNumberKeyword_0()); |
| |
| } |
| // InternalTableDSL.g:4841:3: ( (lv_compare_1_0= ruleStyleCompare ) ) |
| // InternalTableDSL.g:4842:4: (lv_compare_1_0= ruleStyleCompare ) |
| { |
| // InternalTableDSL.g:4842:4: (lv_compare_1_0= ruleStyleCompare ) |
| // InternalTableDSL.g:4843:5: lv_compare_1_0= ruleStyleCompare |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNumericToResourceStyleConfigAccess().getCompareStyleCompareEnumRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_48); |
| lv_compare_1_0=ruleStyleCompare(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNumericToResourceStyleConfigRule()); |
| } |
| set( |
| current, |
| "compare", |
| lv_compare_1_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.StyleCompare"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:4860:3: ( (lv_value_2_0= ruleLDouble ) ) |
| // InternalTableDSL.g:4861:4: (lv_value_2_0= ruleLDouble ) |
| { |
| // InternalTableDSL.g:4861:4: (lv_value_2_0= ruleLDouble ) |
| // InternalTableDSL.g:4862:5: lv_value_2_0= ruleLDouble |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getNumericToResourceStyleConfigAccess().getValueLDoubleParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_62); |
| lv_value_2_0=ruleLDouble(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getNumericToResourceStyleConfigRule()); |
| } |
| set( |
| current, |
| "value", |
| lv_value_2_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.LDouble"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,100,FOLLOW_63); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getNumericToResourceStyleConfigAccess().getThenKeyword_3()); |
| |
| } |
| // InternalTableDSL.g:4883:3: ( (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) ) |
| // InternalTableDSL.g:4884:4: (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) |
| { |
| // InternalTableDSL.g:4884:4: (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) |
| // InternalTableDSL.g:4885:5: lv_resourceThemePath_4_0= RULE_THEME_RESOURCE |
| { |
| lv_resourceThemePath_4_0=(Token)match(input,RULE_THEME_RESOURCE,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_resourceThemePath_4_0, grammarAccess.getNumericToResourceStyleConfigAccess().getResourceThemePathTHEME_RESOURCETerminalRuleCall_4_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getNumericToResourceStyleConfigRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "resourceThemePath", |
| lv_resourceThemePath_4_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.THEME_RESOURCE"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleNumericToResourceStyleConfig" |
| |
| |
| // $ANTLR start "entryRuleStringToResourceStyleConfig" |
| // InternalTableDSL.g:4905:1: entryRuleStringToResourceStyleConfig returns [EObject current=null] : iv_ruleStringToResourceStyleConfig= ruleStringToResourceStyleConfig EOF ; |
| public final EObject entryRuleStringToResourceStyleConfig() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleStringToResourceStyleConfig = null; |
| |
| |
| try { |
| // InternalTableDSL.g:4905:68: (iv_ruleStringToResourceStyleConfig= ruleStringToResourceStyleConfig EOF ) |
| // InternalTableDSL.g:4906:2: iv_ruleStringToResourceStyleConfig= ruleStringToResourceStyleConfig EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getStringToResourceStyleConfigRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleStringToResourceStyleConfig=ruleStringToResourceStyleConfig(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleStringToResourceStyleConfig; |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleStringToResourceStyleConfig" |
| |
| |
| // $ANTLR start "ruleStringToResourceStyleConfig" |
| // InternalTableDSL.g:4912:1: ruleStringToResourceStyleConfig returns [EObject current=null] : (otherlv_0= 'string' ( (lv_compare_1_0= ruleStyleCompare ) ) ( (lv_value_2_0= RULE_STRING ) ) otherlv_3= 'then' ( (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) ) ) ; |
| public final EObject ruleStringToResourceStyleConfig() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_0=null; |
| Token lv_value_2_0=null; |
| Token otherlv_3=null; |
| Token lv_resourceThemePath_4_0=null; |
| Enumerator lv_compare_1_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:4918:2: ( (otherlv_0= 'string' ( (lv_compare_1_0= ruleStyleCompare ) ) ( (lv_value_2_0= RULE_STRING ) ) otherlv_3= 'then' ( (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) ) ) ) |
| // InternalTableDSL.g:4919:2: (otherlv_0= 'string' ( (lv_compare_1_0= ruleStyleCompare ) ) ( (lv_value_2_0= RULE_STRING ) ) otherlv_3= 'then' ( (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) ) ) |
| { |
| // InternalTableDSL.g:4919:2: (otherlv_0= 'string' ( (lv_compare_1_0= ruleStyleCompare ) ) ( (lv_value_2_0= RULE_STRING ) ) otherlv_3= 'then' ( (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) ) ) |
| // InternalTableDSL.g:4920:3: otherlv_0= 'string' ( (lv_compare_1_0= ruleStyleCompare ) ) ( (lv_value_2_0= RULE_STRING ) ) otherlv_3= 'then' ( (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) ) |
| { |
| otherlv_0=(Token)match(input,61,FOLLOW_61); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getStringToResourceStyleConfigAccess().getStringKeyword_0()); |
| |
| } |
| // InternalTableDSL.g:4924:3: ( (lv_compare_1_0= ruleStyleCompare ) ) |
| // InternalTableDSL.g:4925:4: (lv_compare_1_0= ruleStyleCompare ) |
| { |
| // InternalTableDSL.g:4925:4: (lv_compare_1_0= ruleStyleCompare ) |
| // InternalTableDSL.g:4926:5: lv_compare_1_0= ruleStyleCompare |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getStringToResourceStyleConfigAccess().getCompareStyleCompareEnumRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_8); |
| lv_compare_1_0=ruleStyleCompare(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getStringToResourceStyleConfigRule()); |
| } |
| set( |
| current, |
| "compare", |
| lv_compare_1_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.StyleCompare"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:4943:3: ( (lv_value_2_0= RULE_STRING ) ) |
| // InternalTableDSL.g:4944:4: (lv_value_2_0= RULE_STRING ) |
| { |
| // InternalTableDSL.g:4944:4: (lv_value_2_0= RULE_STRING ) |
| // InternalTableDSL.g:4945:5: lv_value_2_0= RULE_STRING |
| { |
| lv_value_2_0=(Token)match(input,RULE_STRING,FOLLOW_62); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_value_2_0, grammarAccess.getStringToResourceStyleConfigAccess().getValueSTRINGTerminalRuleCall_2_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getStringToResourceStyleConfigRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "value", |
| lv_value_2_0, |
| "org.eclipse.xtext.xbase.Xtype.STRING"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_3=(Token)match(input,100,FOLLOW_63); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getStringToResourceStyleConfigAccess().getThenKeyword_3()); |
| |
| } |
| // InternalTableDSL.g:4965:3: ( (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) ) |
| // InternalTableDSL.g:4966:4: (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) |
| { |
| // InternalTableDSL.g:4966:4: (lv_resourceThemePath_4_0= RULE_THEME_RESOURCE ) |
| // InternalTableDSL.g:4967:5: lv_resourceThemePath_4_0= RULE_THEME_RESOURCE |
| { |
| lv_resourceThemePath_4_0=(Token)match(input,RULE_THEME_RESOURCE,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(lv_resourceThemePath_4_0, grammarAccess.getStringToResourceStyleConfigAccess().getResourceThemePathTHEME_RESOURCETerminalRuleCall_4_0()); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElement(grammarAccess.getStringToResourceStyleConfigRule()); |
| } |
| setWithLastConsumed( |
| current, |
| "resourceThemePath", |
| lv_resourceThemePath_4_0, |
| "org.eclipse.osbp.xtext.table.TableDSL.THEME_RESOURCE"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleStringToResourceStyleConfig" |
| |
| |
| // $ANTLR start "entryRuleLInt" |
| // InternalTableDSL.g:4987:1: entryRuleLInt returns [String current=null] : iv_ruleLInt= ruleLInt EOF ; |
| public final String entryRuleLInt() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleLInt = null; |
| |
| |
| try { |
| // InternalTableDSL.g:4987:44: (iv_ruleLInt= ruleLInt EOF ) |
| // InternalTableDSL.g:4988:2: iv_ruleLInt= ruleLInt EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getLIntRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleLInt=ruleLInt(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleLInt.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleLInt" |
| |
| |
| // $ANTLR start "ruleLInt" |
| // InternalTableDSL.g:4994:1: ruleLInt returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT ) ; |
| public final AntlrDatatypeRuleToken ruleLInt() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| Token this_INT_2=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:5000:2: ( ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT ) ) |
| // InternalTableDSL.g:5001:2: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT ) |
| { |
| // InternalTableDSL.g:5001:2: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT ) |
| // InternalTableDSL.g:5002:3: (kw= '+' | kw= '-' )? this_INT_2= RULE_INT |
| { |
| // InternalTableDSL.g:5002:3: (kw= '+' | kw= '-' )? |
| int alt49=3; |
| int LA49_0 = input.LA(1); |
| |
| if ( (LA49_0==101) ) { |
| alt49=1; |
| } |
| else if ( (LA49_0==102) ) { |
| alt49=2; |
| } |
| switch (alt49) { |
| case 1 : |
| // InternalTableDSL.g:5003:4: kw= '+' |
| { |
| kw=(Token)match(input,101,FOLLOW_64); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getLIntAccess().getPlusSignKeyword_0_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:5009:4: kw= '-' |
| { |
| kw=(Token)match(input,102,FOLLOW_64); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getLIntAccess().getHyphenMinusKeyword_0_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| this_INT_2=(Token)match(input,RULE_INT,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_INT_2); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_INT_2, grammarAccess.getLIntAccess().getINTTerminalRuleCall_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleLInt" |
| |
| |
| // $ANTLR start "entryRuleLDouble" |
| // InternalTableDSL.g:5026:1: entryRuleLDouble returns [String current=null] : iv_ruleLDouble= ruleLDouble EOF ; |
| public final String entryRuleLDouble() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleLDouble = null; |
| |
| |
| try { |
| // InternalTableDSL.g:5026:47: (iv_ruleLDouble= ruleLDouble EOF ) |
| // InternalTableDSL.g:5027:2: iv_ruleLDouble= ruleLDouble EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getLDoubleRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleLDouble=ruleLDouble(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleLDouble.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleLDouble" |
| |
| |
| // $ANTLR start "ruleLDouble" |
| // InternalTableDSL.g:5033:1: ruleLDouble returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_LInt_0= ruleLInt (kw= '.' this_INT_2= RULE_INT )? ) ; |
| public final AntlrDatatypeRuleToken ruleLDouble() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| Token this_INT_2=null; |
| AntlrDatatypeRuleToken this_LInt_0 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:5039:2: ( (this_LInt_0= ruleLInt (kw= '.' this_INT_2= RULE_INT )? ) ) |
| // InternalTableDSL.g:5040:2: (this_LInt_0= ruleLInt (kw= '.' this_INT_2= RULE_INT )? ) |
| { |
| // InternalTableDSL.g:5040:2: (this_LInt_0= ruleLInt (kw= '.' this_INT_2= RULE_INT )? ) |
| // InternalTableDSL.g:5041:3: this_LInt_0= ruleLInt (kw= '.' this_INT_2= RULE_INT )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getLDoubleAccess().getLIntParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_44); |
| this_LInt_0=ruleLInt(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_LInt_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalTableDSL.g:5051:3: (kw= '.' this_INT_2= RULE_INT )? |
| int alt50=2; |
| int LA50_0 = input.LA(1); |
| |
| if ( (LA50_0==78) ) { |
| alt50=1; |
| } |
| switch (alt50) { |
| case 1 : |
| // InternalTableDSL.g:5052:4: kw= '.' this_INT_2= RULE_INT |
| { |
| kw=(Token)match(input,78,FOLLOW_64); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getLDoubleAccess().getFullStopKeyword_1_0()); |
| |
| } |
| this_INT_2=(Token)match(input,RULE_INT,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_INT_2); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_INT_2, grammarAccess.getLDoubleAccess().getINTTerminalRuleCall_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleLDouble" |
| |
| |
| // $ANTLR start "entryRuleSignedNumber" |
| // InternalTableDSL.g:5069:1: entryRuleSignedNumber returns [String current=null] : iv_ruleSignedNumber= ruleSignedNumber EOF ; |
| public final String entryRuleSignedNumber() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleSignedNumber = null; |
| |
| |
| try { |
| // InternalTableDSL.g:5069:52: (iv_ruleSignedNumber= ruleSignedNumber EOF ) |
| // InternalTableDSL.g:5070:2: iv_ruleSignedNumber= ruleSignedNumber EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getSignedNumberRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleSignedNumber=ruleSignedNumber(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleSignedNumber.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleSignedNumber" |
| |
| |
| // $ANTLR start "ruleSignedNumber" |
| // InternalTableDSL.g:5076:1: ruleSignedNumber returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= '-' )? this_Number_1= ruleNumber ) ; |
| public final AntlrDatatypeRuleToken ruleSignedNumber() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| AntlrDatatypeRuleToken this_Number_1 = null; |
| |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:5082:2: ( ( (kw= '-' )? this_Number_1= ruleNumber ) ) |
| // InternalTableDSL.g:5083:2: ( (kw= '-' )? this_Number_1= ruleNumber ) |
| { |
| // InternalTableDSL.g:5083:2: ( (kw= '-' )? this_Number_1= ruleNumber ) |
| // InternalTableDSL.g:5084:3: (kw= '-' )? this_Number_1= ruleNumber |
| { |
| // InternalTableDSL.g:5084:3: (kw= '-' )? |
| int alt51=2; |
| int LA51_0 = input.LA(1); |
| |
| if ( (LA51_0==102) ) { |
| alt51=1; |
| } |
| switch (alt51) { |
| case 1 : |
| // InternalTableDSL.g:5085:4: kw= '-' |
| { |
| kw=(Token)match(input,102,FOLLOW_14); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getSignedNumberAccess().getHyphenMinusKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getSignedNumberAccess().getNumberParserRuleCall_1()); |
| |
| } |
| pushFollow(FOLLOW_2); |
| this_Number_1=ruleNumber(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_Number_1); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleSignedNumber" |
| |
| |
| // $ANTLR start "entryRuleSignedInt" |
| // InternalTableDSL.g:5105:1: entryRuleSignedInt returns [String current=null] : iv_ruleSignedInt= ruleSignedInt EOF ; |
| public final String entryRuleSignedInt() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleSignedInt = null; |
| |
| |
| try { |
| // InternalTableDSL.g:5105:49: (iv_ruleSignedInt= ruleSignedInt EOF ) |
| // InternalTableDSL.g:5106:2: iv_ruleSignedInt= ruleSignedInt EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getSignedIntRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleSignedInt=ruleSignedInt(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleSignedInt.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleSignedInt" |
| |
| |
| // $ANTLR start "ruleSignedInt" |
| // InternalTableDSL.g:5112:1: ruleSignedInt returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= '-' )? this_INT_1= RULE_INT ) ; |
| public final AntlrDatatypeRuleToken ruleSignedInt() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| Token this_INT_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:5118:2: ( ( (kw= '-' )? this_INT_1= RULE_INT ) ) |
| // InternalTableDSL.g:5119:2: ( (kw= '-' )? this_INT_1= RULE_INT ) |
| { |
| // InternalTableDSL.g:5119:2: ( (kw= '-' )? this_INT_1= RULE_INT ) |
| // InternalTableDSL.g:5120:3: (kw= '-' )? this_INT_1= RULE_INT |
| { |
| // InternalTableDSL.g:5120:3: (kw= '-' )? |
| int alt52=2; |
| int LA52_0 = input.LA(1); |
| |
| if ( (LA52_0==102) ) { |
| alt52=1; |
| } |
| switch (alt52) { |
| case 1 : |
| // InternalTableDSL.g:5121:4: kw= '-' |
| { |
| kw=(Token)match(input,102,FOLLOW_64); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getSignedIntAccess().getHyphenMinusKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| this_INT_1=(Token)match(input,RULE_INT,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_INT_1); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_INT_1, grammarAccess.getSignedIntAccess().getINTTerminalRuleCall_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleSignedInt" |
| |
| |
| // $ANTLR start "entryRuleTRANSLATABLESTRING" |
| // InternalTableDSL.g:5138:1: entryRuleTRANSLATABLESTRING returns [String current=null] : iv_ruleTRANSLATABLESTRING= ruleTRANSLATABLESTRING EOF ; |
| public final String entryRuleTRANSLATABLESTRING() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleTRANSLATABLESTRING = null; |
| |
| |
| try { |
| // InternalTableDSL.g:5138:58: (iv_ruleTRANSLATABLESTRING= ruleTRANSLATABLESTRING EOF ) |
| // InternalTableDSL.g:5139:2: iv_ruleTRANSLATABLESTRING= ruleTRANSLATABLESTRING EOF |
| { |
| if ( state.backtracking==0 ) { |
| newCompositeNode(grammarAccess.getTRANSLATABLESTRINGRule()); |
| } |
| pushFollow(FOLLOW_1); |
| iv_ruleTRANSLATABLESTRING=ruleTRANSLATABLESTRING(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| current =iv_ruleTRANSLATABLESTRING.getText(); |
| } |
| match(input,EOF,FOLLOW_2); if (state.failed) return current; |
| |
| } |
| |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "entryRuleTRANSLATABLESTRING" |
| |
| |
| // $ANTLR start "ruleTRANSLATABLESTRING" |
| // InternalTableDSL.g:5145:1: ruleTRANSLATABLESTRING returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_STRING_0= RULE_STRING ; |
| public final AntlrDatatypeRuleToken ruleTRANSLATABLESTRING() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token this_STRING_0=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:5151:2: (this_STRING_0= RULE_STRING ) |
| // InternalTableDSL.g:5152:2: this_STRING_0= RULE_STRING |
| { |
| this_STRING_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(this_STRING_0); |
| |
| } |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(this_STRING_0, grammarAccess.getTRANSLATABLESTRINGAccess().getSTRINGTerminalRuleCall()); |
| |
| } |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTRANSLATABLESTRING" |
| |
| |
| // $ANTLR start "entryRuleXImportDeclaration" |
| // InternalTableDSL.g:5162:1: entryRuleXImportDeclaration returns [EObject current=null] : iv_ruleXImportDeclaration= ruleXImportDeclaration EOF ; |
| public final EObject entryRuleXImportDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXImportDeclaration = null; |
| |
| |
| try { |
| // InternalTableDSL.g:5162:59: (iv_ruleXImportDeclaration= ruleXImportDeclaration EOF ) |
| // InternalTableDSL.g:5163: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" |
| // InternalTableDSL.g:5169: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 { |
| // InternalTableDSL.g:5175: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= ';' )? ) ) |
| // InternalTableDSL.g:5176: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= ';' )? ) |
| { |
| // InternalTableDSL.g:5176: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= ';' )? ) |
| // InternalTableDSL.g:5177: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= ';' )? |
| { |
| // InternalTableDSL.g:5177:3: () |
| // InternalTableDSL.g:5178:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXImportDeclarationAccess().getOXImportDeclarationAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,103,FOLLOW_65); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXImportDeclarationAccess().getImportKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:5188: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 alt55=4; |
| alt55 = dfa55.predict(input); |
| switch (alt55) { |
| case 1 : |
| // InternalTableDSL.g:5189:4: ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) |
| { |
| // InternalTableDSL.g:5189:4: ( ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) ) |
| // InternalTableDSL.g:5190:5: ( (lv_static_2_0= 'static' ) ) ( (lv_extension_3_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) |
| { |
| // InternalTableDSL.g:5190:5: ( (lv_static_2_0= 'static' ) ) |
| // InternalTableDSL.g:5191:6: (lv_static_2_0= 'static' ) |
| { |
| // InternalTableDSL.g:5191:6: (lv_static_2_0= 'static' ) |
| // InternalTableDSL.g:5192:7: lv_static_2_0= 'static' |
| { |
| lv_static_2_0=(Token)match(input,104,FOLLOW_66); 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"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:5204:5: ( (lv_extension_3_0= 'extension' ) )? |
| int alt53=2; |
| int LA53_0 = input.LA(1); |
| |
| if ( (LA53_0==105) ) { |
| alt53=1; |
| } |
| switch (alt53) { |
| case 1 : |
| // InternalTableDSL.g:5205:6: (lv_extension_3_0= 'extension' ) |
| { |
| // InternalTableDSL.g:5205:6: (lv_extension_3_0= 'extension' ) |
| // InternalTableDSL.g:5206:7: lv_extension_3_0= 'extension' |
| { |
| lv_extension_3_0=(Token)match(input,105,FOLLOW_66); 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; |
| |
| } |
| |
| // InternalTableDSL.g:5218:5: ( ( ruleQualifiedNameInStaticImport ) ) |
| // InternalTableDSL.g:5219:6: ( ruleQualifiedNameInStaticImport ) |
| { |
| // InternalTableDSL.g:5219:6: ( ruleQualifiedNameInStaticImport ) |
| // InternalTableDSL.g:5220: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_67); |
| ruleQualifiedNameInStaticImport(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:5234:5: ( ( (lv_wildcard_5_0= '*' ) ) | ( (lv_memberName_6_0= ruleValidID ) ) ) |
| int alt54=2; |
| int LA54_0 = input.LA(1); |
| |
| if ( (LA54_0==106) ) { |
| alt54=1; |
| } |
| else if ( (LA54_0==RULE_ID) ) { |
| alt54=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 54, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt54) { |
| case 1 : |
| // InternalTableDSL.g:5235:6: ( (lv_wildcard_5_0= '*' ) ) |
| { |
| // InternalTableDSL.g:5235:6: ( (lv_wildcard_5_0= '*' ) ) |
| // InternalTableDSL.g:5236:7: (lv_wildcard_5_0= '*' ) |
| { |
| // InternalTableDSL.g:5236:7: (lv_wildcard_5_0= '*' ) |
| // InternalTableDSL.g:5237:8: lv_wildcard_5_0= '*' |
| { |
| lv_wildcard_5_0=(Token)match(input,106,FOLLOW_68); 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 : |
| // InternalTableDSL.g:5250:6: ( (lv_memberName_6_0= ruleValidID ) ) |
| { |
| // InternalTableDSL.g:5250:6: ( (lv_memberName_6_0= ruleValidID ) ) |
| // InternalTableDSL.g:5251:7: (lv_memberName_6_0= ruleValidID ) |
| { |
| // InternalTableDSL.g:5251:7: (lv_memberName_6_0= ruleValidID ) |
| // InternalTableDSL.g:5252:8: lv_memberName_6_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getMemberNameValidIDParserRuleCall_2_0_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_68); |
| 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 : |
| // InternalTableDSL.g:5272:4: ( ( ruleQualifiedName ) ) |
| { |
| // InternalTableDSL.g:5272:4: ( ( ruleQualifiedName ) ) |
| // InternalTableDSL.g:5273:5: ( ruleQualifiedName ) |
| { |
| // InternalTableDSL.g:5273:5: ( ruleQualifiedName ) |
| // InternalTableDSL.g:5274: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_68); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalTableDSL.g:5289:4: ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) |
| { |
| // InternalTableDSL.g:5289:4: ( (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) ) |
| // InternalTableDSL.g:5290:5: (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) |
| { |
| // InternalTableDSL.g:5290:5: (lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard ) |
| // InternalTableDSL.g:5291:6: lv_importedNamespace_8_0= ruleQualifiedNameWithWildcard |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_2_2_0()); |
| |
| } |
| pushFollow(FOLLOW_68); |
| 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 : |
| // InternalTableDSL.g:5309:4: ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) |
| { |
| // InternalTableDSL.g:5309:4: ( ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) ) |
| // InternalTableDSL.g:5310:5: ( (lv_fqnImport_9_0= 'ns' ) ) ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) |
| { |
| // InternalTableDSL.g:5310:5: ( (lv_fqnImport_9_0= 'ns' ) ) |
| // InternalTableDSL.g:5311:6: (lv_fqnImport_9_0= 'ns' ) |
| { |
| // InternalTableDSL.g:5311:6: (lv_fqnImport_9_0= 'ns' ) |
| // InternalTableDSL.g:5312:7: lv_fqnImport_9_0= 'ns' |
| { |
| lv_fqnImport_9_0=(Token)match(input,107,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"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:5324:5: ( (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) ) |
| // InternalTableDSL.g:5325:6: (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) |
| { |
| // InternalTableDSL.g:5325:6: (lv_importedFullyQualifiedName_10_0= ruleQualifiedName ) |
| // InternalTableDSL.g:5326:7: lv_importedFullyQualifiedName_10_0= ruleQualifiedName |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedFullyQualifiedNameQualifiedNameParserRuleCall_2_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_68); |
| 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; |
| |
| } |
| |
| // InternalTableDSL.g:5345:3: (otherlv_11= ';' )? |
| int alt56=2; |
| int LA56_0 = input.LA(1); |
| |
| if ( (LA56_0==108) ) { |
| alt56=1; |
| } |
| switch (alt56) { |
| case 1 : |
| // InternalTableDSL.g:5346:4: otherlv_11= ';' |
| { |
| otherlv_11=(Token)match(input,108,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" |
| // InternalTableDSL.g:5355:1: entryRuleXAnnotation returns [EObject current=null] : iv_ruleXAnnotation= ruleXAnnotation EOF ; |
| public final EObject entryRuleXAnnotation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotation = null; |
| |
| |
| try { |
| // InternalTableDSL.g:5355:52: (iv_ruleXAnnotation= ruleXAnnotation EOF ) |
| // InternalTableDSL.g:5356: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" |
| // InternalTableDSL.g:5362: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 { |
| // InternalTableDSL.g:5368: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= ')' )? ) ) |
| // InternalTableDSL.g:5369: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= ')' )? ) |
| { |
| // InternalTableDSL.g:5369: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= ')' )? ) |
| // InternalTableDSL.g:5370: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= ')' )? |
| { |
| // InternalTableDSL.g:5370:3: () |
| // InternalTableDSL.g:5371:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAnnotationAccess().getXAnnotationAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,109,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationAccess().getCommercialAtKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:5381:3: ( ( ruleQualifiedName ) ) |
| // InternalTableDSL.g:5382:4: ( ruleQualifiedName ) |
| { |
| // InternalTableDSL.g:5382:4: ( ruleQualifiedName ) |
| // InternalTableDSL.g:5383: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_69); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:5397: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 alt59=2; |
| int LA59_0 = input.LA(1); |
| |
| if ( (LA59_0==93) && (synpred1_InternalTableDSL())) { |
| alt59=1; |
| } |
| switch (alt59) { |
| case 1 : |
| // InternalTableDSL.g:5398:4: ( ( '(' )=>otherlv_3= '(' ) ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? otherlv_8= ')' |
| { |
| // InternalTableDSL.g:5398:4: ( ( '(' )=>otherlv_3= '(' ) |
| // InternalTableDSL.g:5399:5: ( '(' )=>otherlv_3= '(' |
| { |
| otherlv_3=(Token)match(input,93,FOLLOW_70); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXAnnotationAccess().getLeftParenthesisKeyword_3_0()); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:5405:4: ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) | ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) )? |
| int alt58=3; |
| alt58 = dfa58.predict(input); |
| switch (alt58) { |
| case 1 : |
| // InternalTableDSL.g:5406:5: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) |
| { |
| // InternalTableDSL.g:5406:5: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* ) |
| // InternalTableDSL.g:5407:6: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* |
| { |
| // InternalTableDSL.g:5407:6: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) ) |
| // InternalTableDSL.g:5408:7: ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) |
| { |
| // InternalTableDSL.g:5417:7: (lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair ) |
| // InternalTableDSL.g:5418:8: lv_elementValuePairs_4_0= ruleXAnnotationElementValuePair |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getElementValuePairsXAnnotationElementValuePairParserRuleCall_3_1_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_71); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:5435:6: (otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) )* |
| loop57: |
| do { |
| int alt57=2; |
| int LA57_0 = input.LA(1); |
| |
| if ( (LA57_0==110) ) { |
| alt57=1; |
| } |
| |
| |
| switch (alt57) { |
| case 1 : |
| // InternalTableDSL.g:5436:7: otherlv_5= ',' ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) |
| { |
| otherlv_5=(Token)match(input,110,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXAnnotationAccess().getCommaKeyword_3_1_0_1_0()); |
| |
| } |
| // InternalTableDSL.g:5440:7: ( ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) ) |
| // InternalTableDSL.g:5441:8: ( ( ( ( ruleValidID ) ) '=' ) )=> (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) |
| { |
| // InternalTableDSL.g:5450:8: (lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair ) |
| // InternalTableDSL.g:5451:9: lv_elementValuePairs_6_0= ruleXAnnotationElementValuePair |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getElementValuePairsXAnnotationElementValuePairParserRuleCall_3_1_0_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_71); |
| 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 loop57; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:5471:5: ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) |
| { |
| // InternalTableDSL.g:5471:5: ( (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) ) |
| // InternalTableDSL.g:5472:6: (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) |
| { |
| // InternalTableDSL.g:5472:6: (lv_value_7_0= ruleXAnnotationElementValueOrCommaList ) |
| // InternalTableDSL.g:5473:7: lv_value_7_0= ruleXAnnotationElementValueOrCommaList |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationAccess().getValueXAnnotationElementValueOrCommaListParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_55); |
| 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,94,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" |
| // InternalTableDSL.g:5500:1: entryRuleXAnnotationElementValuePair returns [EObject current=null] : iv_ruleXAnnotationElementValuePair= ruleXAnnotationElementValuePair EOF ; |
| public final EObject entryRuleXAnnotationElementValuePair() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotationElementValuePair = null; |
| |
| |
| try { |
| // InternalTableDSL.g:5500:68: (iv_ruleXAnnotationElementValuePair= ruleXAnnotationElementValuePair EOF ) |
| // InternalTableDSL.g:5501: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" |
| // InternalTableDSL.g:5507: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 { |
| // InternalTableDSL.g:5513:2: ( ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) ) |
| // InternalTableDSL.g:5514:2: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) |
| { |
| // InternalTableDSL.g:5514:2: ( ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) ) |
| // InternalTableDSL.g:5515:3: ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) ( (lv_value_2_0= ruleXAnnotationElementValue ) ) |
| { |
| // InternalTableDSL.g:5515:3: ( ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) ) |
| // InternalTableDSL.g:5516:4: ( ( ( ( ruleValidID ) ) '=' ) )=> ( ( ( ruleValidID ) ) otherlv_1= '=' ) |
| { |
| // InternalTableDSL.g:5525:4: ( ( ( ruleValidID ) ) otherlv_1= '=' ) |
| // InternalTableDSL.g:5526:5: ( ( ruleValidID ) ) otherlv_1= '=' |
| { |
| // InternalTableDSL.g:5526:5: ( ( ruleValidID ) ) |
| // InternalTableDSL.g:5527:6: ( ruleValidID ) |
| { |
| // InternalTableDSL.g:5527:6: ( ruleValidID ) |
| // InternalTableDSL.g:5528: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_53); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_1=(Token)match(input,92,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValuePairAccess().getEqualsSignKeyword_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:5548:3: ( (lv_value_2_0= ruleXAnnotationElementValue ) ) |
| // InternalTableDSL.g:5549:4: (lv_value_2_0= ruleXAnnotationElementValue ) |
| { |
| // InternalTableDSL.g:5549:4: (lv_value_2_0= ruleXAnnotationElementValue ) |
| // InternalTableDSL.g:5550: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" |
| // InternalTableDSL.g:5571:1: entryRuleXAnnotationElementValueOrCommaList returns [EObject current=null] : iv_ruleXAnnotationElementValueOrCommaList= ruleXAnnotationElementValueOrCommaList EOF ; |
| public final EObject entryRuleXAnnotationElementValueOrCommaList() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotationElementValueOrCommaList = null; |
| |
| |
| try { |
| // InternalTableDSL.g:5571:75: (iv_ruleXAnnotationElementValueOrCommaList= ruleXAnnotationElementValueOrCommaList EOF ) |
| // InternalTableDSL.g:5572: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" |
| // InternalTableDSL.g:5578: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 { |
| // InternalTableDSL.g:5584: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 ) ) )+ )? ) ) ) |
| // InternalTableDSL.g:5585: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 ) ) )+ )? ) ) |
| { |
| // InternalTableDSL.g:5585: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 alt64=2; |
| alt64 = dfa64.predict(input); |
| switch (alt64) { |
| case 1 : |
| // InternalTableDSL.g:5586:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| { |
| // InternalTableDSL.g:5586:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| // InternalTableDSL.g:5587:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' |
| { |
| // InternalTableDSL.g:5587:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) |
| // InternalTableDSL.g:5588:5: ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) |
| { |
| // InternalTableDSL.g:5595:5: ( () otherlv_1= '#' otherlv_2= '[' ) |
| // InternalTableDSL.g:5596:6: () otherlv_1= '#' otherlv_2= '[' |
| { |
| // InternalTableDSL.g:5596:6: () |
| // InternalTableDSL.g:5597:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXListLiteralAction_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,111,FOLLOW_73); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getNumberSignKeyword_0_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,112,FOLLOW_74); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getLeftSquareBracketKeyword_0_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:5613:4: ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? |
| int alt61=2; |
| int LA61_0 = input.LA(1); |
| |
| if ( ((LA61_0>=RULE_ID && LA61_0<=RULE_STRING)||(LA61_0>=RULE_INT && LA61_0<=RULE_DECIMAL)||LA61_0==16||LA61_0==93||(LA61_0>=101 && LA61_0<=105)||LA61_0==109||(LA61_0>=111 && LA61_0<=112)||LA61_0==119||LA61_0==138||LA61_0==144||LA61_0==146||(LA61_0>=150 && LA61_0<=152)||(LA61_0>=155 && LA61_0<=164)||LA61_0==166) ) { |
| alt61=1; |
| } |
| switch (alt61) { |
| case 1 : |
| // InternalTableDSL.g:5614:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| { |
| // InternalTableDSL.g:5614:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) |
| // InternalTableDSL.g:5615:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalTableDSL.g:5615:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| // InternalTableDSL.g:5616:7: lv_elements_3_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_75); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:5633:5: (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| loop60: |
| do { |
| int alt60=2; |
| int LA60_0 = input.LA(1); |
| |
| if ( (LA60_0==110) ) { |
| alt60=1; |
| } |
| |
| |
| switch (alt60) { |
| case 1 : |
| // InternalTableDSL.g:5634:6: otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| { |
| otherlv_4=(Token)match(input,110,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getCommaKeyword_0_1_1_0()); |
| |
| } |
| // InternalTableDSL.g:5638:6: ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| // InternalTableDSL.g:5639:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalTableDSL.g:5639:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| // InternalTableDSL.g:5640:8: lv_elements_5_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_75); |
| 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 loop60; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,113,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getRightSquareBracketKeyword_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:5665:3: (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) |
| { |
| // InternalTableDSL.g:5665:3: (this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? ) |
| // InternalTableDSL.g:5666:4: this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXAnnotationOrExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_76); |
| this_XAnnotationOrExpression_7=ruleXAnnotationOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAnnotationOrExpression_7; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalTableDSL.g:5674:4: ( () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ )? |
| int alt63=2; |
| int LA63_0 = input.LA(1); |
| |
| if ( (LA63_0==110) ) { |
| alt63=1; |
| } |
| switch (alt63) { |
| case 1 : |
| // InternalTableDSL.g:5675:5: () (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ |
| { |
| // InternalTableDSL.g:5675:5: () |
| // InternalTableDSL.g:5676:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndAdd( |
| grammarAccess.getXAnnotationElementValueOrCommaListAccess().getXListLiteralElementsAction_1_1_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:5682:5: (otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) )+ |
| int cnt62=0; |
| loop62: |
| do { |
| int alt62=2; |
| int LA62_0 = input.LA(1); |
| |
| if ( (LA62_0==110) ) { |
| alt62=1; |
| } |
| |
| |
| switch (alt62) { |
| case 1 : |
| // InternalTableDSL.g:5683:6: otherlv_9= ',' ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) |
| { |
| otherlv_9=(Token)match(input,110,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getXAnnotationElementValueOrCommaListAccess().getCommaKeyword_1_1_1_0()); |
| |
| } |
| // InternalTableDSL.g:5687:6: ( (lv_elements_10_0= ruleXAnnotationOrExpression ) ) |
| // InternalTableDSL.g:5688:7: (lv_elements_10_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalTableDSL.g:5688:7: (lv_elements_10_0= ruleXAnnotationOrExpression ) |
| // InternalTableDSL.g:5689:8: lv_elements_10_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueOrCommaListAccess().getElementsXAnnotationOrExpressionParserRuleCall_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_76); |
| 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 ( cnt62 >= 1 ) break loop62; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(62, input); |
| throw eee; |
| } |
| cnt62++; |
| } 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" |
| // InternalTableDSL.g:5713:1: entryRuleXAnnotationElementValue returns [EObject current=null] : iv_ruleXAnnotationElementValue= ruleXAnnotationElementValue EOF ; |
| public final EObject entryRuleXAnnotationElementValue() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotationElementValue = null; |
| |
| |
| try { |
| // InternalTableDSL.g:5713:64: (iv_ruleXAnnotationElementValue= ruleXAnnotationElementValue EOF ) |
| // InternalTableDSL.g:5714: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" |
| // InternalTableDSL.g:5720: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 { |
| // InternalTableDSL.g:5726:2: ( ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ) ) |
| // InternalTableDSL.g:5727:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ) |
| { |
| // InternalTableDSL.g:5727:2: ( ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) | this_XAnnotationOrExpression_7= ruleXAnnotationOrExpression ) |
| int alt67=2; |
| alt67 = dfa67.predict(input); |
| switch (alt67) { |
| case 1 : |
| // InternalTableDSL.g:5728:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| { |
| // InternalTableDSL.g:5728:3: ( ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' ) |
| // InternalTableDSL.g:5729:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? otherlv_6= ']' |
| { |
| // InternalTableDSL.g:5729:4: ( ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) ) |
| // InternalTableDSL.g:5730:5: ( ( () '#' '[' ) )=> ( () otherlv_1= '#' otherlv_2= '[' ) |
| { |
| // InternalTableDSL.g:5737:5: ( () otherlv_1= '#' otherlv_2= '[' ) |
| // InternalTableDSL.g:5738:6: () otherlv_1= '#' otherlv_2= '[' |
| { |
| // InternalTableDSL.g:5738:6: () |
| // InternalTableDSL.g:5739:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAnnotationElementValueAccess().getXListLiteralAction_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,111,FOLLOW_73); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXAnnotationElementValueAccess().getNumberSignKeyword_0_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,112,FOLLOW_74); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXAnnotationElementValueAccess().getLeftSquareBracketKeyword_0_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:5755:4: ( ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* )? |
| int alt66=2; |
| int LA66_0 = input.LA(1); |
| |
| if ( ((LA66_0>=RULE_ID && LA66_0<=RULE_STRING)||(LA66_0>=RULE_INT && LA66_0<=RULE_DECIMAL)||LA66_0==16||LA66_0==93||(LA66_0>=101 && LA66_0<=105)||LA66_0==109||(LA66_0>=111 && LA66_0<=112)||LA66_0==119||LA66_0==138||LA66_0==144||LA66_0==146||(LA66_0>=150 && LA66_0<=152)||(LA66_0>=155 && LA66_0<=164)||LA66_0==166) ) { |
| alt66=1; |
| } |
| switch (alt66) { |
| case 1 : |
| // InternalTableDSL.g:5756:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| { |
| // InternalTableDSL.g:5756:5: ( (lv_elements_3_0= ruleXAnnotationOrExpression ) ) |
| // InternalTableDSL.g:5757:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalTableDSL.g:5757:6: (lv_elements_3_0= ruleXAnnotationOrExpression ) |
| // InternalTableDSL.g:5758:7: lv_elements_3_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_75); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:5775:5: (otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) )* |
| loop65: |
| do { |
| int alt65=2; |
| int LA65_0 = input.LA(1); |
| |
| if ( (LA65_0==110) ) { |
| alt65=1; |
| } |
| |
| |
| switch (alt65) { |
| case 1 : |
| // InternalTableDSL.g:5776:6: otherlv_4= ',' ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| { |
| otherlv_4=(Token)match(input,110,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXAnnotationElementValueAccess().getCommaKeyword_0_1_1_0()); |
| |
| } |
| // InternalTableDSL.g:5780:6: ( (lv_elements_5_0= ruleXAnnotationOrExpression ) ) |
| // InternalTableDSL.g:5781:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| { |
| // InternalTableDSL.g:5781:7: (lv_elements_5_0= ruleXAnnotationOrExpression ) |
| // InternalTableDSL.g:5782:8: lv_elements_5_0= ruleXAnnotationOrExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAnnotationElementValueAccess().getElementsXAnnotationOrExpressionParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_75); |
| 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 loop65; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,113,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXAnnotationElementValueAccess().getRightSquareBracketKeyword_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:5807: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" |
| // InternalTableDSL.g:5819:1: entryRuleXAnnotationOrExpression returns [EObject current=null] : iv_ruleXAnnotationOrExpression= ruleXAnnotationOrExpression EOF ; |
| public final EObject entryRuleXAnnotationOrExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAnnotationOrExpression = null; |
| |
| |
| try { |
| // InternalTableDSL.g:5819:64: (iv_ruleXAnnotationOrExpression= ruleXAnnotationOrExpression EOF ) |
| // InternalTableDSL.g:5820: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" |
| // InternalTableDSL.g:5826: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 { |
| // InternalTableDSL.g:5832:2: ( (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) ) |
| // InternalTableDSL.g:5833:2: (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) |
| { |
| // InternalTableDSL.g:5833:2: (this_XAnnotation_0= ruleXAnnotation | this_XExpression_1= ruleXExpression ) |
| int alt68=2; |
| int LA68_0 = input.LA(1); |
| |
| if ( (LA68_0==109) ) { |
| alt68=1; |
| } |
| else if ( ((LA68_0>=RULE_ID && LA68_0<=RULE_STRING)||(LA68_0>=RULE_INT && LA68_0<=RULE_DECIMAL)||LA68_0==16||LA68_0==93||(LA68_0>=101 && LA68_0<=105)||(LA68_0>=111 && LA68_0<=112)||LA68_0==119||LA68_0==138||LA68_0==144||LA68_0==146||(LA68_0>=150 && LA68_0<=152)||(LA68_0>=155 && LA68_0<=164)||LA68_0==166) ) { |
| alt68=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 68, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt68) { |
| case 1 : |
| // InternalTableDSL.g:5834: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 : |
| // InternalTableDSL.g:5843: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" |
| // InternalTableDSL.g:5855:1: entryRuleXExpression returns [EObject current=null] : iv_ruleXExpression= ruleXExpression EOF ; |
| public final EObject entryRuleXExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXExpression = null; |
| |
| |
| try { |
| // InternalTableDSL.g:5855:52: (iv_ruleXExpression= ruleXExpression EOF ) |
| // InternalTableDSL.g:5856: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" |
| // InternalTableDSL.g:5862: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 { |
| // InternalTableDSL.g:5868:2: (this_XAssignment_0= ruleXAssignment ) |
| // InternalTableDSL.g:5869: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" |
| // InternalTableDSL.g:5880:1: entryRuleXAssignment returns [EObject current=null] : iv_ruleXAssignment= ruleXAssignment EOF ; |
| public final EObject entryRuleXAssignment() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAssignment = null; |
| |
| |
| try { |
| // InternalTableDSL.g:5880:52: (iv_ruleXAssignment= ruleXAssignment EOF ) |
| // InternalTableDSL.g:5881: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" |
| // InternalTableDSL.g:5887: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 { |
| // InternalTableDSL.g:5893:2: ( ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) ) |
| // InternalTableDSL.g:5894:2: ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) |
| { |
| // InternalTableDSL.g:5894:2: ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) |
| int alt70=2; |
| switch ( input.LA(1) ) { |
| case RULE_ID: |
| { |
| int LA70_1 = input.LA(2); |
| |
| if ( (LA70_1==92) ) { |
| alt70=1; |
| } |
| else if ( (LA70_1==EOF||(LA70_1>=RULE_ID && LA70_1<=RULE_STRING)||(LA70_1>=RULE_INT && LA70_1<=RULE_DECIMAL)||(LA70_1>=16 && LA70_1<=17)||LA70_1==20||LA70_1==78||(LA70_1>=93 && LA70_1<=94)||(LA70_1>=101 && LA70_1<=106)||LA70_1==108||(LA70_1>=110 && LA70_1<=142)||(LA70_1>=144 && LA70_1<=167)) ) { |
| alt70=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 70, 1, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 155: |
| { |
| int LA70_2 = input.LA(2); |
| |
| if ( (LA70_2==92) ) { |
| alt70=1; |
| } |
| else if ( (LA70_2==EOF||(LA70_2>=RULE_ID && LA70_2<=RULE_STRING)||(LA70_2>=RULE_INT && LA70_2<=RULE_DECIMAL)||(LA70_2>=16 && LA70_2<=17)||LA70_2==20||LA70_2==78||(LA70_2>=93 && LA70_2<=94)||(LA70_2>=101 && LA70_2<=106)||LA70_2==108||(LA70_2>=110 && LA70_2<=142)||(LA70_2>=144 && LA70_2<=167)) ) { |
| alt70=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 70, 2, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 104: |
| { |
| int LA70_3 = input.LA(2); |
| |
| if ( (LA70_3==92) ) { |
| alt70=1; |
| } |
| else if ( (LA70_3==EOF||(LA70_3>=RULE_ID && LA70_3<=RULE_STRING)||(LA70_3>=RULE_INT && LA70_3<=RULE_DECIMAL)||(LA70_3>=16 && LA70_3<=17)||LA70_3==20||LA70_3==78||(LA70_3>=93 && LA70_3<=94)||(LA70_3>=101 && LA70_3<=106)||LA70_3==108||(LA70_3>=110 && LA70_3<=142)||(LA70_3>=144 && LA70_3<=167)) ) { |
| alt70=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 70, 3, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 103: |
| { |
| int LA70_4 = input.LA(2); |
| |
| if ( (LA70_4==92) ) { |
| alt70=1; |
| } |
| else if ( (LA70_4==EOF||(LA70_4>=RULE_ID && LA70_4<=RULE_STRING)||(LA70_4>=RULE_INT && LA70_4<=RULE_DECIMAL)||(LA70_4>=16 && LA70_4<=17)||LA70_4==20||LA70_4==78||(LA70_4>=93 && LA70_4<=94)||(LA70_4>=101 && LA70_4<=106)||LA70_4==108||(LA70_4>=110 && LA70_4<=142)||(LA70_4>=144 && LA70_4<=167)) ) { |
| alt70=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 70, 4, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 105: |
| { |
| int LA70_5 = input.LA(2); |
| |
| if ( (LA70_5==EOF||(LA70_5>=RULE_ID && LA70_5<=RULE_STRING)||(LA70_5>=RULE_INT && LA70_5<=RULE_DECIMAL)||(LA70_5>=16 && LA70_5<=17)||LA70_5==20||LA70_5==78||(LA70_5>=93 && LA70_5<=94)||(LA70_5>=101 && LA70_5<=106)||LA70_5==108||(LA70_5>=110 && LA70_5<=142)||(LA70_5>=144 && LA70_5<=167)) ) { |
| alt70=2; |
| } |
| else if ( (LA70_5==92) ) { |
| alt70=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 70, 5, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case RULE_STRING: |
| case RULE_INT: |
| case RULE_HEX: |
| case RULE_DECIMAL: |
| case 16: |
| case 93: |
| case 101: |
| case 102: |
| case 111: |
| case 112: |
| case 119: |
| case 138: |
| case 144: |
| case 146: |
| case 150: |
| case 151: |
| case 152: |
| case 156: |
| case 157: |
| case 158: |
| case 159: |
| case 160: |
| case 161: |
| case 162: |
| case 163: |
| case 164: |
| case 166: |
| { |
| alt70=2; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 70, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt70) { |
| case 1 : |
| // InternalTableDSL.g:5895:3: ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) |
| { |
| // InternalTableDSL.g:5895:3: ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) |
| // InternalTableDSL.g:5896:4: () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) |
| { |
| // InternalTableDSL.g:5896:4: () |
| // InternalTableDSL.g:5897:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXAssignmentAccess().getXAssignmentAction_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:5903:4: ( ( ruleFeatureCallID ) ) |
| // InternalTableDSL.g:5904:5: ( ruleFeatureCallID ) |
| { |
| // InternalTableDSL.g:5904:5: ( ruleFeatureCallID ) |
| // InternalTableDSL.g:5905: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_53); |
| 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_72); |
| ruleOpSingleAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalTableDSL.g:5926:4: ( (lv_value_3_0= ruleXAssignment ) ) |
| // InternalTableDSL.g:5927:5: (lv_value_3_0= ruleXAssignment ) |
| { |
| // InternalTableDSL.g:5927:5: (lv_value_3_0= ruleXAssignment ) |
| // InternalTableDSL.g:5928: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 : |
| // InternalTableDSL.g:5947:3: (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) |
| { |
| // InternalTableDSL.g:5947:3: (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) |
| // InternalTableDSL.g:5948:4: this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAssignmentAccess().getXOrExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_77); |
| this_XOrExpression_4=ruleXOrExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XOrExpression_4; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalTableDSL.g:5956:4: ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? |
| int alt69=2; |
| alt69 = dfa69.predict(input); |
| switch (alt69) { |
| case 1 : |
| // InternalTableDSL.g:5957:5: ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) |
| { |
| // InternalTableDSL.g:5957:5: ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) |
| // InternalTableDSL.g:5958:6: ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) |
| { |
| // InternalTableDSL.g:5968:6: ( () ( ( ruleOpMultiAssign ) ) ) |
| // InternalTableDSL.g:5969:7: () ( ( ruleOpMultiAssign ) ) |
| { |
| // InternalTableDSL.g:5969:7: () |
| // InternalTableDSL.g:5970:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXAssignmentAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:5976:7: ( ( ruleOpMultiAssign ) ) |
| // InternalTableDSL.g:5977:8: ( ruleOpMultiAssign ) |
| { |
| // InternalTableDSL.g:5977:8: ( ruleOpMultiAssign ) |
| // InternalTableDSL.g:5978: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_72); |
| ruleOpMultiAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:5994:5: ( (lv_rightOperand_7_0= ruleXAssignment ) ) |
| // InternalTableDSL.g:5995:6: (lv_rightOperand_7_0= ruleXAssignment ) |
| { |
| // InternalTableDSL.g:5995:6: (lv_rightOperand_7_0= ruleXAssignment ) |
| // InternalTableDSL.g:5996: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" |
| // InternalTableDSL.g:6019:1: entryRuleOpSingleAssign returns [String current=null] : iv_ruleOpSingleAssign= ruleOpSingleAssign EOF ; |
| public final String entryRuleOpSingleAssign() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpSingleAssign = null; |
| |
| |
| try { |
| // InternalTableDSL.g:6019:54: (iv_ruleOpSingleAssign= ruleOpSingleAssign EOF ) |
| // InternalTableDSL.g:6020: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" |
| // InternalTableDSL.g:6026:1: ruleOpSingleAssign returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '=' ; |
| public final AntlrDatatypeRuleToken ruleOpSingleAssign() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:6032:2: (kw= '=' ) |
| // InternalTableDSL.g:6033:2: kw= '=' |
| { |
| kw=(Token)match(input,92,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" |
| // InternalTableDSL.g:6041:1: entryRuleOpMultiAssign returns [String current=null] : iv_ruleOpMultiAssign= ruleOpMultiAssign EOF ; |
| public final String entryRuleOpMultiAssign() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpMultiAssign = null; |
| |
| |
| try { |
| // InternalTableDSL.g:6041:53: (iv_ruleOpMultiAssign= ruleOpMultiAssign EOF ) |
| // InternalTableDSL.g:6042: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" |
| // InternalTableDSL.g:6048: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 { |
| // InternalTableDSL.g:6054:2: ( (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) ) |
| // InternalTableDSL.g:6055:2: (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) |
| { |
| // InternalTableDSL.g:6055:2: (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) |
| int alt72=7; |
| switch ( input.LA(1) ) { |
| case 114: |
| { |
| alt72=1; |
| } |
| break; |
| case 115: |
| { |
| alt72=2; |
| } |
| break; |
| case 116: |
| { |
| alt72=3; |
| } |
| break; |
| case 117: |
| { |
| alt72=4; |
| } |
| break; |
| case 118: |
| { |
| alt72=5; |
| } |
| break; |
| case 119: |
| { |
| alt72=6; |
| } |
| break; |
| case 120: |
| { |
| alt72=7; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 72, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt72) { |
| case 1 : |
| // InternalTableDSL.g:6056:3: kw= '+=' |
| { |
| kw=(Token)match(input,114,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:6062:3: kw= '-=' |
| { |
| kw=(Token)match(input,115,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getHyphenMinusEqualsSignKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalTableDSL.g:6068:3: kw= '*=' |
| { |
| kw=(Token)match(input,116,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getAsteriskEqualsSignKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalTableDSL.g:6074:3: kw= '/=' |
| { |
| kw=(Token)match(input,117,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getSolidusEqualsSignKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalTableDSL.g:6080:3: kw= '%=' |
| { |
| kw=(Token)match(input,118,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getPercentSignEqualsSignKeyword_4()); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalTableDSL.g:6086:3: (kw= '<' kw= '<' kw= '=' ) |
| { |
| // InternalTableDSL.g:6086:3: (kw= '<' kw= '<' kw= '=' ) |
| // InternalTableDSL.g:6087:4: kw= '<' kw= '<' kw= '=' |
| { |
| kw=(Token)match(input,119,FOLLOW_78); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_0()); |
| |
| } |
| kw=(Token)match(input,119,FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_1()); |
| |
| } |
| kw=(Token)match(input,92,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getEqualsSignKeyword_5_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 7 : |
| // InternalTableDSL.g:6104:3: (kw= '>' (kw= '>' )? kw= '>=' ) |
| { |
| // InternalTableDSL.g:6104:3: (kw= '>' (kw= '>' )? kw= '>=' ) |
| // InternalTableDSL.g:6105:4: kw= '>' (kw= '>' )? kw= '>=' |
| { |
| kw=(Token)match(input,120,FOLLOW_79); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_0()); |
| |
| } |
| // InternalTableDSL.g:6110:4: (kw= '>' )? |
| int alt71=2; |
| int LA71_0 = input.LA(1); |
| |
| if ( (LA71_0==120) ) { |
| alt71=1; |
| } |
| switch (alt71) { |
| case 1 : |
| // InternalTableDSL.g:6111:5: kw= '>' |
| { |
| kw=(Token)match(input,120,FOLLOW_80); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| kw=(Token)match(input,121,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" |
| // InternalTableDSL.g:6127:1: entryRuleXOrExpression returns [EObject current=null] : iv_ruleXOrExpression= ruleXOrExpression EOF ; |
| public final EObject entryRuleXOrExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXOrExpression = null; |
| |
| |
| try { |
| // InternalTableDSL.g:6127:54: (iv_ruleXOrExpression= ruleXOrExpression EOF ) |
| // InternalTableDSL.g:6128: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" |
| // InternalTableDSL.g:6134: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 { |
| // InternalTableDSL.g:6140:2: ( (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) ) |
| // InternalTableDSL.g:6141:2: (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) |
| { |
| // InternalTableDSL.g:6141:2: (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) |
| // InternalTableDSL.g:6142:3: this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOrExpressionAccess().getXAndExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_81); |
| this_XAndExpression_0=ruleXAndExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAndExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalTableDSL.g:6150:3: ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* |
| loop73: |
| do { |
| int alt73=2; |
| int LA73_0 = input.LA(1); |
| |
| if ( (LA73_0==122) ) { |
| int LA73_2 = input.LA(2); |
| |
| if ( (synpred8_InternalTableDSL()) ) { |
| alt73=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt73) { |
| case 1 : |
| // InternalTableDSL.g:6151:4: ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) |
| { |
| // InternalTableDSL.g:6151:4: ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) |
| // InternalTableDSL.g:6152:5: ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) |
| { |
| // InternalTableDSL.g:6162:5: ( () ( ( ruleOpOr ) ) ) |
| // InternalTableDSL.g:6163:6: () ( ( ruleOpOr ) ) |
| { |
| // InternalTableDSL.g:6163:6: () |
| // InternalTableDSL.g:6164:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXOrExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:6170:6: ( ( ruleOpOr ) ) |
| // InternalTableDSL.g:6171:7: ( ruleOpOr ) |
| { |
| // InternalTableDSL.g:6171:7: ( ruleOpOr ) |
| // InternalTableDSL.g:6172: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_72); |
| ruleOpOr(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:6188:4: ( (lv_rightOperand_3_0= ruleXAndExpression ) ) |
| // InternalTableDSL.g:6189:5: (lv_rightOperand_3_0= ruleXAndExpression ) |
| { |
| // InternalTableDSL.g:6189:5: (lv_rightOperand_3_0= ruleXAndExpression ) |
| // InternalTableDSL.g:6190:6: lv_rightOperand_3_0= ruleXAndExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOrExpressionAccess().getRightOperandXAndExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_81); |
| 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 loop73; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXOrExpression" |
| |
| |
| // $ANTLR start "entryRuleOpOr" |
| // InternalTableDSL.g:6212:1: entryRuleOpOr returns [String current=null] : iv_ruleOpOr= ruleOpOr EOF ; |
| public final String entryRuleOpOr() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpOr = null; |
| |
| |
| try { |
| // InternalTableDSL.g:6212:44: (iv_ruleOpOr= ruleOpOr EOF ) |
| // InternalTableDSL.g:6213: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" |
| // InternalTableDSL.g:6219:1: ruleOpOr returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '||' ; |
| public final AntlrDatatypeRuleToken ruleOpOr() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:6225:2: (kw= '||' ) |
| // InternalTableDSL.g:6226:2: kw= '||' |
| { |
| kw=(Token)match(input,122,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" |
| // InternalTableDSL.g:6234:1: entryRuleXAndExpression returns [EObject current=null] : iv_ruleXAndExpression= ruleXAndExpression EOF ; |
| public final EObject entryRuleXAndExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAndExpression = null; |
| |
| |
| try { |
| // InternalTableDSL.g:6234:55: (iv_ruleXAndExpression= ruleXAndExpression EOF ) |
| // InternalTableDSL.g:6235: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" |
| // InternalTableDSL.g:6241: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 { |
| // InternalTableDSL.g:6247:2: ( (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) ) |
| // InternalTableDSL.g:6248:2: (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) |
| { |
| // InternalTableDSL.g:6248:2: (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) |
| // InternalTableDSL.g:6249:3: this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAndExpressionAccess().getXEqualityExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_82); |
| this_XEqualityExpression_0=ruleXEqualityExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XEqualityExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalTableDSL.g:6257:3: ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* |
| loop74: |
| do { |
| int alt74=2; |
| int LA74_0 = input.LA(1); |
| |
| if ( (LA74_0==123) ) { |
| int LA74_2 = input.LA(2); |
| |
| if ( (synpred9_InternalTableDSL()) ) { |
| alt74=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt74) { |
| case 1 : |
| // InternalTableDSL.g:6258:4: ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) |
| { |
| // InternalTableDSL.g:6258:4: ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) |
| // InternalTableDSL.g:6259:5: ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) |
| { |
| // InternalTableDSL.g:6269:5: ( () ( ( ruleOpAnd ) ) ) |
| // InternalTableDSL.g:6270:6: () ( ( ruleOpAnd ) ) |
| { |
| // InternalTableDSL.g:6270:6: () |
| // InternalTableDSL.g:6271:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXAndExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:6277:6: ( ( ruleOpAnd ) ) |
| // InternalTableDSL.g:6278:7: ( ruleOpAnd ) |
| { |
| // InternalTableDSL.g:6278:7: ( ruleOpAnd ) |
| // InternalTableDSL.g:6279: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_72); |
| ruleOpAnd(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:6295:4: ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) |
| // InternalTableDSL.g:6296:5: (lv_rightOperand_3_0= ruleXEqualityExpression ) |
| { |
| // InternalTableDSL.g:6296:5: (lv_rightOperand_3_0= ruleXEqualityExpression ) |
| // InternalTableDSL.g:6297:6: lv_rightOperand_3_0= ruleXEqualityExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAndExpressionAccess().getRightOperandXEqualityExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_82); |
| 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 loop74; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAndExpression" |
| |
| |
| // $ANTLR start "entryRuleOpAnd" |
| // InternalTableDSL.g:6319:1: entryRuleOpAnd returns [String current=null] : iv_ruleOpAnd= ruleOpAnd EOF ; |
| public final String entryRuleOpAnd() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpAnd = null; |
| |
| |
| try { |
| // InternalTableDSL.g:6319:45: (iv_ruleOpAnd= ruleOpAnd EOF ) |
| // InternalTableDSL.g:6320: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" |
| // InternalTableDSL.g:6326:1: ruleOpAnd returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '&&' ; |
| public final AntlrDatatypeRuleToken ruleOpAnd() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:6332:2: (kw= '&&' ) |
| // InternalTableDSL.g:6333:2: kw= '&&' |
| { |
| kw=(Token)match(input,123,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" |
| // InternalTableDSL.g:6341:1: entryRuleXEqualityExpression returns [EObject current=null] : iv_ruleXEqualityExpression= ruleXEqualityExpression EOF ; |
| public final EObject entryRuleXEqualityExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXEqualityExpression = null; |
| |
| |
| try { |
| // InternalTableDSL.g:6341:60: (iv_ruleXEqualityExpression= ruleXEqualityExpression EOF ) |
| // InternalTableDSL.g:6342: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" |
| // InternalTableDSL.g:6348: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 { |
| // InternalTableDSL.g:6354:2: ( (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) ) |
| // InternalTableDSL.g:6355:2: (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) |
| { |
| // InternalTableDSL.g:6355:2: (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) |
| // InternalTableDSL.g:6356:3: this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getXRelationalExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_83); |
| this_XRelationalExpression_0=ruleXRelationalExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XRelationalExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalTableDSL.g:6364:3: ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* |
| loop75: |
| do { |
| int alt75=2; |
| switch ( input.LA(1) ) { |
| case 124: |
| { |
| int LA75_2 = input.LA(2); |
| |
| if ( (synpred10_InternalTableDSL()) ) { |
| alt75=1; |
| } |
| |
| |
| } |
| break; |
| case 125: |
| { |
| int LA75_3 = input.LA(2); |
| |
| if ( (synpred10_InternalTableDSL()) ) { |
| alt75=1; |
| } |
| |
| |
| } |
| break; |
| case 126: |
| { |
| int LA75_4 = input.LA(2); |
| |
| if ( (synpred10_InternalTableDSL()) ) { |
| alt75=1; |
| } |
| |
| |
| } |
| break; |
| case 127: |
| { |
| int LA75_5 = input.LA(2); |
| |
| if ( (synpred10_InternalTableDSL()) ) { |
| alt75=1; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt75) { |
| case 1 : |
| // InternalTableDSL.g:6365:4: ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) |
| { |
| // InternalTableDSL.g:6365:4: ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) |
| // InternalTableDSL.g:6366:5: ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) |
| { |
| // InternalTableDSL.g:6376:5: ( () ( ( ruleOpEquality ) ) ) |
| // InternalTableDSL.g:6377:6: () ( ( ruleOpEquality ) ) |
| { |
| // InternalTableDSL.g:6377:6: () |
| // InternalTableDSL.g:6378:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXEqualityExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:6384:6: ( ( ruleOpEquality ) ) |
| // InternalTableDSL.g:6385:7: ( ruleOpEquality ) |
| { |
| // InternalTableDSL.g:6385:7: ( ruleOpEquality ) |
| // InternalTableDSL.g:6386: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_72); |
| ruleOpEquality(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:6402:4: ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) |
| // InternalTableDSL.g:6403:5: (lv_rightOperand_3_0= ruleXRelationalExpression ) |
| { |
| // InternalTableDSL.g:6403:5: (lv_rightOperand_3_0= ruleXRelationalExpression ) |
| // InternalTableDSL.g:6404:6: lv_rightOperand_3_0= ruleXRelationalExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getRightOperandXRelationalExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_83); |
| 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 loop75; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXEqualityExpression" |
| |
| |
| // $ANTLR start "entryRuleOpEquality" |
| // InternalTableDSL.g:6426:1: entryRuleOpEquality returns [String current=null] : iv_ruleOpEquality= ruleOpEquality EOF ; |
| public final String entryRuleOpEquality() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpEquality = null; |
| |
| |
| try { |
| // InternalTableDSL.g:6426:50: (iv_ruleOpEquality= ruleOpEquality EOF ) |
| // InternalTableDSL.g:6427: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" |
| // InternalTableDSL.g:6433: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 { |
| // InternalTableDSL.g:6439:2: ( (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) ) |
| // InternalTableDSL.g:6440:2: (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) |
| { |
| // InternalTableDSL.g:6440:2: (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) |
| int alt76=4; |
| switch ( input.LA(1) ) { |
| case 124: |
| { |
| alt76=1; |
| } |
| break; |
| case 125: |
| { |
| alt76=2; |
| } |
| break; |
| case 126: |
| { |
| alt76=3; |
| } |
| break; |
| case 127: |
| { |
| alt76=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 76, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt76) { |
| case 1 : |
| // InternalTableDSL.g:6441:3: kw= '==' |
| { |
| kw=(Token)match(input,124,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:6447:3: kw= '!=' |
| { |
| kw=(Token)match(input,125,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalTableDSL.g:6453:3: kw= '===' |
| { |
| kw=(Token)match(input,126,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignEqualsSignKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalTableDSL.g:6459:3: kw= '!==' |
| { |
| kw=(Token)match(input,127,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" |
| // InternalTableDSL.g:6468:1: entryRuleXRelationalExpression returns [EObject current=null] : iv_ruleXRelationalExpression= ruleXRelationalExpression EOF ; |
| public final EObject entryRuleXRelationalExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXRelationalExpression = null; |
| |
| |
| try { |
| // InternalTableDSL.g:6468:62: (iv_ruleXRelationalExpression= ruleXRelationalExpression EOF ) |
| // InternalTableDSL.g:6469: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" |
| // InternalTableDSL.g:6475: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 { |
| // InternalTableDSL.g:6481:2: ( (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) ) |
| // InternalTableDSL.g:6482:2: (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) |
| { |
| // InternalTableDSL.g:6482:2: (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) |
| // InternalTableDSL.g:6483: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_84); |
| this_XOtherOperatorExpression_0=ruleXOtherOperatorExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XOtherOperatorExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalTableDSL.g:6491:3: ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* |
| loop77: |
| do { |
| int alt77=3; |
| switch ( input.LA(1) ) { |
| case 119: |
| { |
| int LA77_2 = input.LA(2); |
| |
| if ( (synpred12_InternalTableDSL()) ) { |
| alt77=2; |
| } |
| |
| |
| } |
| break; |
| case 120: |
| { |
| int LA77_3 = input.LA(2); |
| |
| if ( (synpred12_InternalTableDSL()) ) { |
| alt77=2; |
| } |
| |
| |
| } |
| break; |
| case 128: |
| { |
| int LA77_4 = input.LA(2); |
| |
| if ( (synpred11_InternalTableDSL()) ) { |
| alt77=1; |
| } |
| |
| |
| } |
| break; |
| case 121: |
| { |
| int LA77_5 = input.LA(2); |
| |
| if ( (synpred12_InternalTableDSL()) ) { |
| alt77=2; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt77) { |
| case 1 : |
| // InternalTableDSL.g:6492:4: ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalTableDSL.g:6492:4: ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) |
| // InternalTableDSL.g:6493:5: ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| { |
| // InternalTableDSL.g:6493:5: ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) |
| // InternalTableDSL.g:6494:6: ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) |
| { |
| // InternalTableDSL.g:6500:6: ( () otherlv_2= 'instanceof' ) |
| // InternalTableDSL.g:6501:7: () otherlv_2= 'instanceof' |
| { |
| // InternalTableDSL.g:6501:7: () |
| // InternalTableDSL.g:6502:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXRelationalExpressionAccess().getXInstanceOfExpressionExpressionAction_1_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_2=(Token)match(input,128,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXRelationalExpressionAccess().getInstanceofKeyword_1_0_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:6514:5: ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| // InternalTableDSL.g:6515:6: (lv_type_3_0= ruleJvmTypeReference ) |
| { |
| // InternalTableDSL.g:6515:6: (lv_type_3_0= ruleJvmTypeReference ) |
| // InternalTableDSL.g:6516:7: lv_type_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_84); |
| 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 : |
| // InternalTableDSL.g:6535:4: ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) |
| { |
| // InternalTableDSL.g:6535:4: ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) |
| // InternalTableDSL.g:6536:5: ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) |
| { |
| // InternalTableDSL.g:6536:5: ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) |
| // InternalTableDSL.g:6537:6: ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) |
| { |
| // InternalTableDSL.g:6547:6: ( () ( ( ruleOpCompare ) ) ) |
| // InternalTableDSL.g:6548:7: () ( ( ruleOpCompare ) ) |
| { |
| // InternalTableDSL.g:6548:7: () |
| // InternalTableDSL.g:6549:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXRelationalExpressionAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:6555:7: ( ( ruleOpCompare ) ) |
| // InternalTableDSL.g:6556:8: ( ruleOpCompare ) |
| { |
| // InternalTableDSL.g:6556:8: ( ruleOpCompare ) |
| // InternalTableDSL.g:6557: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_72); |
| ruleOpCompare(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:6573:5: ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) |
| // InternalTableDSL.g:6574:6: (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) |
| { |
| // InternalTableDSL.g:6574:6: (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) |
| // InternalTableDSL.g:6575:7: lv_rightOperand_6_0= ruleXOtherOperatorExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getRightOperandXOtherOperatorExpressionParserRuleCall_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_84); |
| 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 loop77; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXRelationalExpression" |
| |
| |
| // $ANTLR start "entryRuleOpCompare" |
| // InternalTableDSL.g:6598:1: entryRuleOpCompare returns [String current=null] : iv_ruleOpCompare= ruleOpCompare EOF ; |
| public final String entryRuleOpCompare() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpCompare = null; |
| |
| |
| try { |
| // InternalTableDSL.g:6598:49: (iv_ruleOpCompare= ruleOpCompare EOF ) |
| // InternalTableDSL.g:6599: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" |
| // InternalTableDSL.g:6605: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 { |
| // InternalTableDSL.g:6611:2: ( (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) ) |
| // InternalTableDSL.g:6612:2: (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) |
| { |
| // InternalTableDSL.g:6612:2: (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) |
| int alt78=4; |
| switch ( input.LA(1) ) { |
| case 121: |
| { |
| alt78=1; |
| } |
| break; |
| case 119: |
| { |
| int LA78_2 = input.LA(2); |
| |
| if ( (LA78_2==EOF||(LA78_2>=RULE_ID && LA78_2<=RULE_STRING)||(LA78_2>=RULE_INT && LA78_2<=RULE_DECIMAL)||LA78_2==16||LA78_2==93||(LA78_2>=101 && LA78_2<=105)||(LA78_2>=111 && LA78_2<=112)||LA78_2==119||LA78_2==138||LA78_2==144||LA78_2==146||(LA78_2>=150 && LA78_2<=152)||(LA78_2>=155 && LA78_2<=164)||LA78_2==166) ) { |
| alt78=4; |
| } |
| else if ( (LA78_2==92) ) { |
| alt78=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 78, 2, input); |
| |
| throw nvae; |
| } |
| } |
| break; |
| case 120: |
| { |
| alt78=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 78, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt78) { |
| case 1 : |
| // InternalTableDSL.g:6613:3: kw= '>=' |
| { |
| kw=(Token)match(input,121,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getGreaterThanSignEqualsSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:6619:3: (kw= '<' kw= '=' ) |
| { |
| // InternalTableDSL.g:6619:3: (kw= '<' kw= '=' ) |
| // InternalTableDSL.g:6620:4: kw= '<' kw= '=' |
| { |
| kw=(Token)match(input,119,FOLLOW_53); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getLessThanSignKeyword_1_0()); |
| |
| } |
| kw=(Token)match(input,92,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getEqualsSignKeyword_1_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalTableDSL.g:6632:3: kw= '>' |
| { |
| kw=(Token)match(input,120,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getGreaterThanSignKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalTableDSL.g:6638:3: kw= '<' |
| { |
| kw=(Token)match(input,119,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpCompareAccess().getLessThanSignKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpCompare" |
| |
| |
| // $ANTLR start "entryRuleXOtherOperatorExpression" |
| // InternalTableDSL.g:6647:1: entryRuleXOtherOperatorExpression returns [EObject current=null] : iv_ruleXOtherOperatorExpression= ruleXOtherOperatorExpression EOF ; |
| public final EObject entryRuleXOtherOperatorExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXOtherOperatorExpression = null; |
| |
| |
| try { |
| // InternalTableDSL.g:6647:65: (iv_ruleXOtherOperatorExpression= ruleXOtherOperatorExpression EOF ) |
| // InternalTableDSL.g:6648: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" |
| // InternalTableDSL.g:6654: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 { |
| // InternalTableDSL.g:6660:2: ( (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) ) |
| // InternalTableDSL.g:6661:2: (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) |
| { |
| // InternalTableDSL.g:6661:2: (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) |
| // InternalTableDSL.g:6662:3: this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getXAdditiveExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_86); |
| this_XAdditiveExpression_0=ruleXAdditiveExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XAdditiveExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalTableDSL.g:6670:3: ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* |
| loop79: |
| do { |
| int alt79=2; |
| alt79 = dfa79.predict(input); |
| switch (alt79) { |
| case 1 : |
| // InternalTableDSL.g:6671:4: ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) |
| { |
| // InternalTableDSL.g:6671:4: ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) |
| // InternalTableDSL.g:6672:5: ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) |
| { |
| // InternalTableDSL.g:6682:5: ( () ( ( ruleOpOther ) ) ) |
| // InternalTableDSL.g:6683:6: () ( ( ruleOpOther ) ) |
| { |
| // InternalTableDSL.g:6683:6: () |
| // InternalTableDSL.g:6684:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXOtherOperatorExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:6690:6: ( ( ruleOpOther ) ) |
| // InternalTableDSL.g:6691:7: ( ruleOpOther ) |
| { |
| // InternalTableDSL.g:6691:7: ( ruleOpOther ) |
| // InternalTableDSL.g:6692: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_72); |
| ruleOpOther(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:6708:4: ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) |
| // InternalTableDSL.g:6709:5: (lv_rightOperand_3_0= ruleXAdditiveExpression ) |
| { |
| // InternalTableDSL.g:6709:5: (lv_rightOperand_3_0= ruleXAdditiveExpression ) |
| // InternalTableDSL.g:6710:6: lv_rightOperand_3_0= ruleXAdditiveExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandXAdditiveExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_86); |
| 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 loop79; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXOtherOperatorExpression" |
| |
| |
| // $ANTLR start "entryRuleOpOther" |
| // InternalTableDSL.g:6732:1: entryRuleOpOther returns [String current=null] : iv_ruleOpOther= ruleOpOther EOF ; |
| public final String entryRuleOpOther() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpOther = null; |
| |
| |
| try { |
| // InternalTableDSL.g:6732:47: (iv_ruleOpOther= ruleOpOther EOF ) |
| // InternalTableDSL.g:6733: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" |
| // InternalTableDSL.g:6739: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 { |
| // InternalTableDSL.g:6745:2: ( (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) ) |
| // InternalTableDSL.g:6746:2: (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) |
| { |
| // InternalTableDSL.g:6746:2: (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) |
| int alt82=9; |
| alt82 = dfa82.predict(input); |
| switch (alt82) { |
| case 1 : |
| // InternalTableDSL.g:6747:3: kw= '->' |
| { |
| kw=(Token)match(input,129,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getHyphenMinusGreaterThanSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:6753:3: kw= '..<' |
| { |
| kw=(Token)match(input,130,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopLessThanSignKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalTableDSL.g:6759:3: (kw= '>' kw= '..' ) |
| { |
| // InternalTableDSL.g:6759:3: (kw= '>' kw= '..' ) |
| // InternalTableDSL.g:6760:4: kw= '>' kw= '..' |
| { |
| kw=(Token)match(input,120,FOLLOW_87); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_2_0()); |
| |
| } |
| kw=(Token)match(input,131,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_2_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalTableDSL.g:6772:3: kw= '..' |
| { |
| kw=(Token)match(input,131,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalTableDSL.g:6778:3: kw= '=>' |
| { |
| kw=(Token)match(input,132,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getEqualsSignGreaterThanSignKeyword_4()); |
| |
| } |
| |
| } |
| break; |
| case 6 : |
| // InternalTableDSL.g:6784:3: (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) |
| { |
| // InternalTableDSL.g:6784:3: (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) |
| // InternalTableDSL.g:6785:4: kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) |
| { |
| kw=(Token)match(input,120,FOLLOW_88); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_0()); |
| |
| } |
| // InternalTableDSL.g:6790:4: ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) |
| int alt80=2; |
| int LA80_0 = input.LA(1); |
| |
| if ( (LA80_0==120) ) { |
| int LA80_1 = input.LA(2); |
| |
| if ( (LA80_1==EOF||(LA80_1>=RULE_ID && LA80_1<=RULE_STRING)||(LA80_1>=RULE_INT && LA80_1<=RULE_DECIMAL)||LA80_1==16||LA80_1==93||(LA80_1>=101 && LA80_1<=105)||(LA80_1>=111 && LA80_1<=112)||LA80_1==119||LA80_1==138||LA80_1==144||LA80_1==146||(LA80_1>=150 && LA80_1<=152)||(LA80_1>=155 && LA80_1<=164)||LA80_1==166) ) { |
| alt80=2; |
| } |
| else if ( (LA80_1==120) && (synpred14_InternalTableDSL())) { |
| alt80=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 80, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 80, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt80) { |
| case 1 : |
| // InternalTableDSL.g:6791:5: ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) |
| { |
| // InternalTableDSL.g:6791:5: ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) |
| // InternalTableDSL.g:6792:6: ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) |
| { |
| // InternalTableDSL.g:6797:6: (kw= '>' kw= '>' ) |
| // InternalTableDSL.g:6798:7: kw= '>' kw= '>' |
| { |
| kw=(Token)match(input,120,FOLLOW_88); 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,120,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 : |
| // InternalTableDSL.g:6811:5: kw= '>' |
| { |
| kw=(Token)match(input,120,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 : |
| // InternalTableDSL.g:6819:3: (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) |
| { |
| // InternalTableDSL.g:6819:3: (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) |
| // InternalTableDSL.g:6820:4: kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) |
| { |
| kw=(Token)match(input,119,FOLLOW_89); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_0()); |
| |
| } |
| // InternalTableDSL.g:6825:4: ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) |
| int alt81=3; |
| int LA81_0 = input.LA(1); |
| |
| if ( (LA81_0==119) ) { |
| int LA81_1 = input.LA(2); |
| |
| if ( (synpred15_InternalTableDSL()) ) { |
| alt81=1; |
| } |
| else if ( (true) ) { |
| alt81=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 81, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else if ( (LA81_0==132) ) { |
| alt81=3; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 81, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt81) { |
| case 1 : |
| // InternalTableDSL.g:6826:5: ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) |
| { |
| // InternalTableDSL.g:6826:5: ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) |
| // InternalTableDSL.g:6827:6: ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) |
| { |
| // InternalTableDSL.g:6832:6: (kw= '<' kw= '<' ) |
| // InternalTableDSL.g:6833:7: kw= '<' kw= '<' |
| { |
| kw=(Token)match(input,119,FOLLOW_78); 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,119,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 : |
| // InternalTableDSL.g:6846:5: kw= '<' |
| { |
| kw=(Token)match(input,119,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 : |
| // InternalTableDSL.g:6852:5: kw= '=>' |
| { |
| kw=(Token)match(input,132,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 : |
| // InternalTableDSL.g:6860:3: kw= '<>' |
| { |
| kw=(Token)match(input,133,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignGreaterThanSignKeyword_7()); |
| |
| } |
| |
| } |
| break; |
| case 9 : |
| // InternalTableDSL.g:6866:3: kw= '?:' |
| { |
| kw=(Token)match(input,134,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" |
| // InternalTableDSL.g:6875:1: entryRuleXAdditiveExpression returns [EObject current=null] : iv_ruleXAdditiveExpression= ruleXAdditiveExpression EOF ; |
| public final EObject entryRuleXAdditiveExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXAdditiveExpression = null; |
| |
| |
| try { |
| // InternalTableDSL.g:6875:60: (iv_ruleXAdditiveExpression= ruleXAdditiveExpression EOF ) |
| // InternalTableDSL.g:6876: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" |
| // InternalTableDSL.g:6882: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 { |
| // InternalTableDSL.g:6888:2: ( (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) ) |
| // InternalTableDSL.g:6889:2: (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) |
| { |
| // InternalTableDSL.g:6889:2: (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) |
| // InternalTableDSL.g:6890:3: this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getXMultiplicativeExpressionParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_90); |
| this_XMultiplicativeExpression_0=ruleXMultiplicativeExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XMultiplicativeExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalTableDSL.g:6898:3: ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* |
| loop83: |
| do { |
| int alt83=2; |
| int LA83_0 = input.LA(1); |
| |
| if ( (LA83_0==101) ) { |
| int LA83_2 = input.LA(2); |
| |
| if ( (synpred16_InternalTableDSL()) ) { |
| alt83=1; |
| } |
| |
| |
| } |
| else if ( (LA83_0==102) ) { |
| int LA83_3 = input.LA(2); |
| |
| if ( (synpred16_InternalTableDSL()) ) { |
| alt83=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt83) { |
| case 1 : |
| // InternalTableDSL.g:6899:4: ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) |
| { |
| // InternalTableDSL.g:6899:4: ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) |
| // InternalTableDSL.g:6900:5: ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) |
| { |
| // InternalTableDSL.g:6910:5: ( () ( ( ruleOpAdd ) ) ) |
| // InternalTableDSL.g:6911:6: () ( ( ruleOpAdd ) ) |
| { |
| // InternalTableDSL.g:6911:6: () |
| // InternalTableDSL.g:6912:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXAdditiveExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:6918:6: ( ( ruleOpAdd ) ) |
| // InternalTableDSL.g:6919:7: ( ruleOpAdd ) |
| { |
| // InternalTableDSL.g:6919:7: ( ruleOpAdd ) |
| // InternalTableDSL.g:6920: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_72); |
| ruleOpAdd(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:6936:4: ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) |
| // InternalTableDSL.g:6937:5: (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) |
| { |
| // InternalTableDSL.g:6937:5: (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) |
| // InternalTableDSL.g:6938:6: lv_rightOperand_3_0= ruleXMultiplicativeExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getRightOperandXMultiplicativeExpressionParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_90); |
| 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 loop83; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXAdditiveExpression" |
| |
| |
| // $ANTLR start "entryRuleOpAdd" |
| // InternalTableDSL.g:6960:1: entryRuleOpAdd returns [String current=null] : iv_ruleOpAdd= ruleOpAdd EOF ; |
| public final String entryRuleOpAdd() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpAdd = null; |
| |
| |
| try { |
| // InternalTableDSL.g:6960:45: (iv_ruleOpAdd= ruleOpAdd EOF ) |
| // InternalTableDSL.g:6961: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" |
| // InternalTableDSL.g:6967:1: ruleOpAdd returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '+' | kw= '-' ) ; |
| public final AntlrDatatypeRuleToken ruleOpAdd() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:6973:2: ( (kw= '+' | kw= '-' ) ) |
| // InternalTableDSL.g:6974:2: (kw= '+' | kw= '-' ) |
| { |
| // InternalTableDSL.g:6974:2: (kw= '+' | kw= '-' ) |
| int alt84=2; |
| int LA84_0 = input.LA(1); |
| |
| if ( (LA84_0==101) ) { |
| alt84=1; |
| } |
| else if ( (LA84_0==102) ) { |
| alt84=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 84, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt84) { |
| case 1 : |
| // InternalTableDSL.g:6975:3: kw= '+' |
| { |
| kw=(Token)match(input,101,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpAddAccess().getPlusSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:6981:3: kw= '-' |
| { |
| kw=(Token)match(input,102,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" |
| // InternalTableDSL.g:6990:1: entryRuleXMultiplicativeExpression returns [EObject current=null] : iv_ruleXMultiplicativeExpression= ruleXMultiplicativeExpression EOF ; |
| public final EObject entryRuleXMultiplicativeExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXMultiplicativeExpression = null; |
| |
| |
| try { |
| // InternalTableDSL.g:6990:66: (iv_ruleXMultiplicativeExpression= ruleXMultiplicativeExpression EOF ) |
| // InternalTableDSL.g:6991: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" |
| // InternalTableDSL.g:6997: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 { |
| // InternalTableDSL.g:7003:2: ( (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) ) |
| // InternalTableDSL.g:7004:2: (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) |
| { |
| // InternalTableDSL.g:7004:2: (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) |
| // InternalTableDSL.g:7005:3: this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getXUnaryOperationParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_91); |
| this_XUnaryOperation_0=ruleXUnaryOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XUnaryOperation_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalTableDSL.g:7013:3: ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* |
| loop85: |
| do { |
| int alt85=2; |
| switch ( input.LA(1) ) { |
| case 106: |
| { |
| int LA85_2 = input.LA(2); |
| |
| if ( (synpred17_InternalTableDSL()) ) { |
| alt85=1; |
| } |
| |
| |
| } |
| break; |
| case 135: |
| { |
| int LA85_3 = input.LA(2); |
| |
| if ( (synpred17_InternalTableDSL()) ) { |
| alt85=1; |
| } |
| |
| |
| } |
| break; |
| case 136: |
| { |
| int LA85_4 = input.LA(2); |
| |
| if ( (synpred17_InternalTableDSL()) ) { |
| alt85=1; |
| } |
| |
| |
| } |
| break; |
| case 137: |
| { |
| int LA85_5 = input.LA(2); |
| |
| if ( (synpred17_InternalTableDSL()) ) { |
| alt85=1; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt85) { |
| case 1 : |
| // InternalTableDSL.g:7014:4: ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) |
| { |
| // InternalTableDSL.g:7014:4: ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) |
| // InternalTableDSL.g:7015:5: ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) |
| { |
| // InternalTableDSL.g:7025:5: ( () ( ( ruleOpMulti ) ) ) |
| // InternalTableDSL.g:7026:6: () ( ( ruleOpMulti ) ) |
| { |
| // InternalTableDSL.g:7026:6: () |
| // InternalTableDSL.g:7027:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXMultiplicativeExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:7033:6: ( ( ruleOpMulti ) ) |
| // InternalTableDSL.g:7034:7: ( ruleOpMulti ) |
| { |
| // InternalTableDSL.g:7034:7: ( ruleOpMulti ) |
| // InternalTableDSL.g:7035: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_72); |
| ruleOpMulti(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:7051:4: ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) |
| // InternalTableDSL.g:7052:5: (lv_rightOperand_3_0= ruleXUnaryOperation ) |
| { |
| // InternalTableDSL.g:7052:5: (lv_rightOperand_3_0= ruleXUnaryOperation ) |
| // InternalTableDSL.g:7053:6: lv_rightOperand_3_0= ruleXUnaryOperation |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_91); |
| 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 loop85; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXMultiplicativeExpression" |
| |
| |
| // $ANTLR start "entryRuleOpMulti" |
| // InternalTableDSL.g:7075:1: entryRuleOpMulti returns [String current=null] : iv_ruleOpMulti= ruleOpMulti EOF ; |
| public final String entryRuleOpMulti() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpMulti = null; |
| |
| |
| try { |
| // InternalTableDSL.g:7075:47: (iv_ruleOpMulti= ruleOpMulti EOF ) |
| // InternalTableDSL.g:7076: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" |
| // InternalTableDSL.g:7082: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 { |
| // InternalTableDSL.g:7088:2: ( (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) ) |
| // InternalTableDSL.g:7089:2: (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) |
| { |
| // InternalTableDSL.g:7089:2: (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) |
| int alt86=4; |
| switch ( input.LA(1) ) { |
| case 106: |
| { |
| alt86=1; |
| } |
| break; |
| case 135: |
| { |
| alt86=2; |
| } |
| break; |
| case 136: |
| { |
| alt86=3; |
| } |
| break; |
| case 137: |
| { |
| alt86=4; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 86, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt86) { |
| case 1 : |
| // InternalTableDSL.g:7090:3: kw= '*' |
| { |
| kw=(Token)match(input,106,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getAsteriskKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:7096:3: kw= '**' |
| { |
| kw=(Token)match(input,135,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getAsteriskAsteriskKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalTableDSL.g:7102:3: kw= '/' |
| { |
| kw=(Token)match(input,136,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getSolidusKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalTableDSL.g:7108:3: kw= '%' |
| { |
| kw=(Token)match(input,137,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpMultiAccess().getPercentSignKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpMulti" |
| |
| |
| // $ANTLR start "entryRuleXUnaryOperation" |
| // InternalTableDSL.g:7117:1: entryRuleXUnaryOperation returns [EObject current=null] : iv_ruleXUnaryOperation= ruleXUnaryOperation EOF ; |
| public final EObject entryRuleXUnaryOperation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXUnaryOperation = null; |
| |
| |
| try { |
| // InternalTableDSL.g:7117:56: (iv_ruleXUnaryOperation= ruleXUnaryOperation EOF ) |
| // InternalTableDSL.g:7118: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" |
| // InternalTableDSL.g:7124: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 { |
| // InternalTableDSL.g:7130:2: ( ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) ) |
| // InternalTableDSL.g:7131:2: ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) |
| { |
| // InternalTableDSL.g:7131:2: ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) |
| int alt87=2; |
| int LA87_0 = input.LA(1); |
| |
| if ( ((LA87_0>=101 && LA87_0<=102)||LA87_0==138) ) { |
| alt87=1; |
| } |
| else if ( ((LA87_0>=RULE_ID && LA87_0<=RULE_STRING)||(LA87_0>=RULE_INT && LA87_0<=RULE_DECIMAL)||LA87_0==16||LA87_0==93||(LA87_0>=103 && LA87_0<=105)||(LA87_0>=111 && LA87_0<=112)||LA87_0==119||LA87_0==144||LA87_0==146||(LA87_0>=150 && LA87_0<=152)||(LA87_0>=155 && LA87_0<=164)||LA87_0==166) ) { |
| alt87=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 87, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt87) { |
| case 1 : |
| // InternalTableDSL.g:7132:3: ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) |
| { |
| // InternalTableDSL.g:7132:3: ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) |
| // InternalTableDSL.g:7133:4: () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) |
| { |
| // InternalTableDSL.g:7133:4: () |
| // InternalTableDSL.g:7134:5: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXUnaryOperationAccess().getXUnaryOperationAction_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:7140:4: ( ( ruleOpUnary ) ) |
| // InternalTableDSL.g:7141:5: ( ruleOpUnary ) |
| { |
| // InternalTableDSL.g:7141:5: ( ruleOpUnary ) |
| // InternalTableDSL.g:7142: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_72); |
| ruleOpUnary(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:7156:4: ( (lv_operand_2_0= ruleXUnaryOperation ) ) |
| // InternalTableDSL.g:7157:5: (lv_operand_2_0= ruleXUnaryOperation ) |
| { |
| // InternalTableDSL.g:7157:5: (lv_operand_2_0= ruleXUnaryOperation ) |
| // InternalTableDSL.g:7158: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 : |
| // InternalTableDSL.g:7177: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" |
| // InternalTableDSL.g:7189:1: entryRuleOpUnary returns [String current=null] : iv_ruleOpUnary= ruleOpUnary EOF ; |
| public final String entryRuleOpUnary() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpUnary = null; |
| |
| |
| try { |
| // InternalTableDSL.g:7189:47: (iv_ruleOpUnary= ruleOpUnary EOF ) |
| // InternalTableDSL.g:7190: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" |
| // InternalTableDSL.g:7196: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 { |
| // InternalTableDSL.g:7202:2: ( (kw= '!' | kw= '-' | kw= '+' ) ) |
| // InternalTableDSL.g:7203:2: (kw= '!' | kw= '-' | kw= '+' ) |
| { |
| // InternalTableDSL.g:7203:2: (kw= '!' | kw= '-' | kw= '+' ) |
| int alt88=3; |
| switch ( input.LA(1) ) { |
| case 138: |
| { |
| alt88=1; |
| } |
| break; |
| case 102: |
| { |
| alt88=2; |
| } |
| break; |
| case 101: |
| { |
| alt88=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 88, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt88) { |
| case 1 : |
| // InternalTableDSL.g:7204:3: kw= '!' |
| { |
| kw=(Token)match(input,138,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpUnaryAccess().getExclamationMarkKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:7210:3: kw= '-' |
| { |
| kw=(Token)match(input,102,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpUnaryAccess().getHyphenMinusKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalTableDSL.g:7216:3: kw= '+' |
| { |
| kw=(Token)match(input,101,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" |
| // InternalTableDSL.g:7225:1: entryRuleXCastedExpression returns [EObject current=null] : iv_ruleXCastedExpression= ruleXCastedExpression EOF ; |
| public final EObject entryRuleXCastedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXCastedExpression = null; |
| |
| |
| try { |
| // InternalTableDSL.g:7225:58: (iv_ruleXCastedExpression= ruleXCastedExpression EOF ) |
| // InternalTableDSL.g:7226: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" |
| // InternalTableDSL.g:7232: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 { |
| // InternalTableDSL.g:7238:2: ( (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) ) |
| // InternalTableDSL.g:7239:2: (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) |
| { |
| // InternalTableDSL.g:7239:2: (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) |
| // InternalTableDSL.g:7240: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_92); |
| this_XPostfixOperation_0=ruleXPostfixOperation(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XPostfixOperation_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalTableDSL.g:7248:3: ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* |
| loop89: |
| do { |
| int alt89=2; |
| int LA89_0 = input.LA(1); |
| |
| if ( (LA89_0==20) ) { |
| int LA89_2 = input.LA(2); |
| |
| if ( (synpred18_InternalTableDSL()) ) { |
| alt89=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt89) { |
| case 1 : |
| // InternalTableDSL.g:7249:4: ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| { |
| // InternalTableDSL.g:7249:4: ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) |
| // InternalTableDSL.g:7250:5: ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) |
| { |
| // InternalTableDSL.g:7256:5: ( () otherlv_2= 'as' ) |
| // InternalTableDSL.g:7257:6: () otherlv_2= 'as' |
| { |
| // InternalTableDSL.g:7257:6: () |
| // InternalTableDSL.g:7258:7: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXCastedExpressionAccess().getXCastedExpressionTargetAction_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_2=(Token)match(input,20,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXCastedExpressionAccess().getAsKeyword_1_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:7270:4: ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| // InternalTableDSL.g:7271:5: (lv_type_3_0= ruleJvmTypeReference ) |
| { |
| // InternalTableDSL.g:7271:5: (lv_type_3_0= ruleJvmTypeReference ) |
| // InternalTableDSL.g:7272:6: lv_type_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCastedExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_92); |
| 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 loop89; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXCastedExpression" |
| |
| |
| // $ANTLR start "entryRuleXPostfixOperation" |
| // InternalTableDSL.g:7294:1: entryRuleXPostfixOperation returns [EObject current=null] : iv_ruleXPostfixOperation= ruleXPostfixOperation EOF ; |
| public final EObject entryRuleXPostfixOperation() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXPostfixOperation = null; |
| |
| |
| try { |
| // InternalTableDSL.g:7294:58: (iv_ruleXPostfixOperation= ruleXPostfixOperation EOF ) |
| // InternalTableDSL.g:7295: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" |
| // InternalTableDSL.g:7301: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 { |
| // InternalTableDSL.g:7307:2: ( (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) ) |
| // InternalTableDSL.g:7308:2: (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) |
| { |
| // InternalTableDSL.g:7308:2: (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) |
| // InternalTableDSL.g:7309:3: this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXPostfixOperationAccess().getXMemberFeatureCallParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_93); |
| this_XMemberFeatureCall_0=ruleXMemberFeatureCall(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XMemberFeatureCall_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalTableDSL.g:7317:3: ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? |
| int alt90=2; |
| int LA90_0 = input.LA(1); |
| |
| if ( (LA90_0==139) ) { |
| int LA90_1 = input.LA(2); |
| |
| if ( (synpred19_InternalTableDSL()) ) { |
| alt90=1; |
| } |
| } |
| else if ( (LA90_0==140) ) { |
| int LA90_2 = input.LA(2); |
| |
| if ( (synpred19_InternalTableDSL()) ) { |
| alt90=1; |
| } |
| } |
| switch (alt90) { |
| case 1 : |
| // InternalTableDSL.g:7318:4: ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) |
| { |
| // InternalTableDSL.g:7328:4: ( () ( ( ruleOpPostfix ) ) ) |
| // InternalTableDSL.g:7329:5: () ( ( ruleOpPostfix ) ) |
| { |
| // InternalTableDSL.g:7329:5: () |
| // InternalTableDSL.g:7330:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXPostfixOperationAccess().getXPostfixOperationOperandAction_1_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:7336:5: ( ( ruleOpPostfix ) ) |
| // InternalTableDSL.g:7337:6: ( ruleOpPostfix ) |
| { |
| // InternalTableDSL.g:7337:6: ( ruleOpPostfix ) |
| // InternalTableDSL.g:7338: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" |
| // InternalTableDSL.g:7358:1: entryRuleOpPostfix returns [String current=null] : iv_ruleOpPostfix= ruleOpPostfix EOF ; |
| public final String entryRuleOpPostfix() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleOpPostfix = null; |
| |
| |
| try { |
| // InternalTableDSL.g:7358:49: (iv_ruleOpPostfix= ruleOpPostfix EOF ) |
| // InternalTableDSL.g:7359: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" |
| // InternalTableDSL.g:7365:1: ruleOpPostfix returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '++' | kw= '--' ) ; |
| public final AntlrDatatypeRuleToken ruleOpPostfix() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:7371:2: ( (kw= '++' | kw= '--' ) ) |
| // InternalTableDSL.g:7372:2: (kw= '++' | kw= '--' ) |
| { |
| // InternalTableDSL.g:7372:2: (kw= '++' | kw= '--' ) |
| int alt91=2; |
| int LA91_0 = input.LA(1); |
| |
| if ( (LA91_0==139) ) { |
| alt91=1; |
| } |
| else if ( (LA91_0==140) ) { |
| alt91=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 91, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt91) { |
| case 1 : |
| // InternalTableDSL.g:7373:3: kw= '++' |
| { |
| kw=(Token)match(input,139,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpPostfixAccess().getPlusSignPlusSignKeyword_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:7379:3: kw= '--' |
| { |
| kw=(Token)match(input,140,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getOpPostfixAccess().getHyphenMinusHyphenMinusKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleOpPostfix" |
| |
| |
| // $ANTLR start "entryRuleXMemberFeatureCall" |
| // InternalTableDSL.g:7388:1: entryRuleXMemberFeatureCall returns [EObject current=null] : iv_ruleXMemberFeatureCall= ruleXMemberFeatureCall EOF ; |
| public final EObject entryRuleXMemberFeatureCall() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXMemberFeatureCall = null; |
| |
| |
| try { |
| // InternalTableDSL.g:7388:59: (iv_ruleXMemberFeatureCall= ruleXMemberFeatureCall EOF ) |
| // InternalTableDSL.g:7389: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" |
| // InternalTableDSL.g:7395: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 { |
| // InternalTableDSL.g:7401: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 ) )? ) )* ) ) |
| // InternalTableDSL.g:7402: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 ) )? ) )* ) |
| { |
| // InternalTableDSL.g:7402: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 ) )? ) )* ) |
| // InternalTableDSL.g:7403: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_94); |
| this_XPrimaryExpression_0=ruleXPrimaryExpression(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_XPrimaryExpression_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalTableDSL.g:7411: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 ) )? ) )* |
| loop100: |
| do { |
| int alt100=3; |
| switch ( input.LA(1) ) { |
| case 78: |
| { |
| int LA100_2 = input.LA(2); |
| |
| if ( (synpred20_InternalTableDSL()) ) { |
| alt100=1; |
| } |
| else if ( (synpred21_InternalTableDSL()) ) { |
| alt100=2; |
| } |
| |
| |
| } |
| break; |
| case 141: |
| { |
| int LA100_3 = input.LA(2); |
| |
| if ( (synpred20_InternalTableDSL()) ) { |
| alt100=1; |
| } |
| else if ( (synpred21_InternalTableDSL()) ) { |
| alt100=2; |
| } |
| |
| |
| } |
| break; |
| case 142: |
| { |
| int LA100_4 = input.LA(2); |
| |
| if ( (synpred21_InternalTableDSL()) ) { |
| alt100=2; |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| switch (alt100) { |
| case 1 : |
| // InternalTableDSL.g:7412:4: ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) |
| { |
| // InternalTableDSL.g:7412:4: ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) |
| // InternalTableDSL.g:7413:5: ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) |
| { |
| // InternalTableDSL.g:7413:5: ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) |
| // InternalTableDSL.g:7414:6: ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| { |
| // InternalTableDSL.g:7434:6: ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| // InternalTableDSL.g:7435:7: () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign |
| { |
| // InternalTableDSL.g:7435:7: () |
| // InternalTableDSL.g:7436:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXMemberFeatureCallAccess().getXAssignmentAssignableAction_1_0_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:7442:7: (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) |
| int alt92=2; |
| int LA92_0 = input.LA(1); |
| |
| if ( (LA92_0==78) ) { |
| alt92=1; |
| } |
| else if ( (LA92_0==141) ) { |
| alt92=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 92, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt92) { |
| case 1 : |
| // InternalTableDSL.g:7443:8: otherlv_2= '.' |
| { |
| otherlv_2=(Token)match(input,78,FOLLOW_95); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_0_0_0_1_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:7448:8: ( (lv_explicitStatic_3_0= '::' ) ) |
| { |
| // InternalTableDSL.g:7448:8: ( (lv_explicitStatic_3_0= '::' ) ) |
| // InternalTableDSL.g:7449:9: (lv_explicitStatic_3_0= '::' ) |
| { |
| // InternalTableDSL.g:7449:9: (lv_explicitStatic_3_0= '::' ) |
| // InternalTableDSL.g:7450:10: lv_explicitStatic_3_0= '::' |
| { |
| lv_explicitStatic_3_0=(Token)match(input,141,FOLLOW_95); 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; |
| |
| } |
| |
| // InternalTableDSL.g:7463:7: ( ( ruleFeatureCallID ) ) |
| // InternalTableDSL.g:7464:8: ( ruleFeatureCallID ) |
| { |
| // InternalTableDSL.g:7464:8: ( ruleFeatureCallID ) |
| // InternalTableDSL.g:7465: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_53); |
| 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_72); |
| ruleOpSingleAssign(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:7488:5: ( (lv_value_6_0= ruleXAssignment ) ) |
| // InternalTableDSL.g:7489:6: (lv_value_6_0= ruleXAssignment ) |
| { |
| // InternalTableDSL.g:7489:6: (lv_value_6_0= ruleXAssignment ) |
| // InternalTableDSL.g:7490:7: lv_value_6_0= ruleXAssignment |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getValueXAssignmentParserRuleCall_1_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_94); |
| 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 : |
| // InternalTableDSL.g:7509: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 ) )? ) |
| { |
| // InternalTableDSL.g:7509: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 ) )? ) |
| // InternalTableDSL.g:7510: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 ) )? |
| { |
| // InternalTableDSL.g:7510:5: ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) |
| // InternalTableDSL.g:7511:6: ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) |
| { |
| // InternalTableDSL.g:7531:6: ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) |
| // InternalTableDSL.g:7532:7: () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) |
| { |
| // InternalTableDSL.g:7532:7: () |
| // InternalTableDSL.g:7533:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getXMemberFeatureCallAccess().getXMemberFeatureCallMemberCallTargetAction_1_1_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:7539:7: (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) |
| int alt93=3; |
| switch ( input.LA(1) ) { |
| case 78: |
| { |
| alt93=1; |
| } |
| break; |
| case 142: |
| { |
| alt93=2; |
| } |
| break; |
| case 141: |
| { |
| alt93=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 93, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt93) { |
| case 1 : |
| // InternalTableDSL.g:7540:8: otherlv_8= '.' |
| { |
| otherlv_8=(Token)match(input,78,FOLLOW_96); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_1_0_0_1_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:7545:8: ( (lv_nullSafe_9_0= '?.' ) ) |
| { |
| // InternalTableDSL.g:7545:8: ( (lv_nullSafe_9_0= '?.' ) ) |
| // InternalTableDSL.g:7546:9: (lv_nullSafe_9_0= '?.' ) |
| { |
| // InternalTableDSL.g:7546:9: (lv_nullSafe_9_0= '?.' ) |
| // InternalTableDSL.g:7547:10: lv_nullSafe_9_0= '?.' |
| { |
| lv_nullSafe_9_0=(Token)match(input,142,FOLLOW_96); 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 : |
| // InternalTableDSL.g:7560:8: ( (lv_explicitStatic_10_0= '::' ) ) |
| { |
| // InternalTableDSL.g:7560:8: ( (lv_explicitStatic_10_0= '::' ) ) |
| // InternalTableDSL.g:7561:9: (lv_explicitStatic_10_0= '::' ) |
| { |
| // InternalTableDSL.g:7561:9: (lv_explicitStatic_10_0= '::' ) |
| // InternalTableDSL.g:7562:10: lv_explicitStatic_10_0= '::' |
| { |
| lv_explicitStatic_10_0=(Token)match(input,141,FOLLOW_96); 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; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:7577:5: (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? |
| int alt95=2; |
| int LA95_0 = input.LA(1); |
| |
| if ( (LA95_0==119) ) { |
| alt95=1; |
| } |
| switch (alt95) { |
| case 1 : |
| // InternalTableDSL.g:7578:6: otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' |
| { |
| otherlv_11=(Token)match(input,119,FOLLOW_97); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getXMemberFeatureCallAccess().getLessThanSignKeyword_1_1_1_0()); |
| |
| } |
| // InternalTableDSL.g:7582:6: ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) |
| // InternalTableDSL.g:7583:7: (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalTableDSL.g:7583:7: (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) |
| // InternalTableDSL.g:7584:8: lv_typeArguments_12_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_98); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:7601:6: (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* |
| loop94: |
| do { |
| int alt94=2; |
| int LA94_0 = input.LA(1); |
| |
| if ( (LA94_0==110) ) { |
| alt94=1; |
| } |
| |
| |
| switch (alt94) { |
| case 1 : |
| // InternalTableDSL.g:7602:7: otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_13=(Token)match(input,110,FOLLOW_97); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_1_2_0()); |
| |
| } |
| // InternalTableDSL.g:7606:7: ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) |
| // InternalTableDSL.g:7607:8: (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalTableDSL.g:7607:8: (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) |
| // InternalTableDSL.g:7608:9: lv_typeArguments_14_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_98); |
| 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 loop94; |
| } |
| } while (true); |
| |
| otherlv_15=(Token)match(input,120,FOLLOW_96); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_15, grammarAccess.getXMemberFeatureCallAccess().getGreaterThanSignKeyword_1_1_1_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalTableDSL.g:7631:5: ( ( ruleIdOrSuper ) ) |
| // InternalTableDSL.g:7632:6: ( ruleIdOrSuper ) |
| { |
| // InternalTableDSL.g:7632:6: ( ruleIdOrSuper ) |
| // InternalTableDSL.g:7633: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_99); |
| ruleIdOrSuper(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:7647: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 alt98=2; |
| alt98 = dfa98.predict(input); |
| switch (alt98) { |
| case 1 : |
| // InternalTableDSL.g:7648: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= ')' |
| { |
| // InternalTableDSL.g:7648:6: ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) |
| // InternalTableDSL.g:7649:7: ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) |
| { |
| // InternalTableDSL.g:7653:7: (lv_explicitOperationCall_17_0= '(' ) |
| // InternalTableDSL.g:7654:8: lv_explicitOperationCall_17_0= '(' |
| { |
| lv_explicitOperationCall_17_0=(Token)match(input,93,FOLLOW_100); 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, "("); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:7666:6: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? |
| int alt97=3; |
| alt97 = dfa97.predict(input); |
| switch (alt97) { |
| case 1 : |
| // InternalTableDSL.g:7667:7: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) |
| { |
| // InternalTableDSL.g:7667:7: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) |
| // InternalTableDSL.g:7668:8: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) |
| { |
| // InternalTableDSL.g:7693:8: (lv_memberCallArguments_18_0= ruleXShortClosure ) |
| // InternalTableDSL.g:7694:9: lv_memberCallArguments_18_0= ruleXShortClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXShortClosureParserRuleCall_1_1_3_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_55); |
| 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 : |
| // InternalTableDSL.g:7712:7: ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) |
| { |
| // InternalTableDSL.g:7712:7: ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) |
| // InternalTableDSL.g:7713:8: ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* |
| { |
| // InternalTableDSL.g:7713:8: ( (lv_memberCallArguments_19_0= ruleXExpression ) ) |
| // InternalTableDSL.g:7714:9: (lv_memberCallArguments_19_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:7714:9: (lv_memberCallArguments_19_0= ruleXExpression ) |
| // InternalTableDSL.g:7715:10: lv_memberCallArguments_19_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_71); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:7732:8: (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* |
| loop96: |
| do { |
| int alt96=2; |
| int LA96_0 = input.LA(1); |
| |
| if ( (LA96_0==110) ) { |
| alt96=1; |
| } |
| |
| |
| switch (alt96) { |
| case 1 : |
| // InternalTableDSL.g:7733:9: otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) |
| { |
| otherlv_20=(Token)match(input,110,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_20, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_3_1_1_1_0()); |
| |
| } |
| // InternalTableDSL.g:7737:9: ( (lv_memberCallArguments_21_0= ruleXExpression ) ) |
| // InternalTableDSL.g:7738:10: (lv_memberCallArguments_21_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:7738:10: (lv_memberCallArguments_21_0= ruleXExpression ) |
| // InternalTableDSL.g:7739:11: lv_memberCallArguments_21_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_71); |
| 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 loop96; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_22=(Token)match(input,94,FOLLOW_101); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_22, grammarAccess.getXMemberFeatureCallAccess().getRightParenthesisKeyword_1_1_3_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalTableDSL.g:7764:5: ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? |
| int alt99=2; |
| alt99 = dfa99.predict(input); |
| switch (alt99) { |
| case 1 : |
| // InternalTableDSL.g:7765:6: ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) |
| { |
| // InternalTableDSL.g:7771:6: (lv_memberCallArguments_23_0= ruleXClosure ) |
| // InternalTableDSL.g:7772:7: lv_memberCallArguments_23_0= ruleXClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXClosureParserRuleCall_1_1_4_0()); |
| |
| } |
| pushFollow(FOLLOW_94); |
| 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 loop100; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXMemberFeatureCall" |
| |
| |
| // $ANTLR start "entryRuleXPrimaryExpression" |
| // InternalTableDSL.g:7795:1: entryRuleXPrimaryExpression returns [EObject current=null] : iv_ruleXPrimaryExpression= ruleXPrimaryExpression EOF ; |
| public final EObject entryRuleXPrimaryExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXPrimaryExpression = null; |
| |
| |
| try { |
| // InternalTableDSL.g:7795:59: (iv_ruleXPrimaryExpression= ruleXPrimaryExpression EOF ) |
| // InternalTableDSL.g:7796: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" |
| // InternalTableDSL.g:7802: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 { |
| // InternalTableDSL.g:7808: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 ) ) |
| // InternalTableDSL.g:7809: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 ) |
| { |
| // InternalTableDSL.g:7809: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 alt101=15; |
| alt101 = dfa101.predict(input); |
| switch (alt101) { |
| case 1 : |
| // InternalTableDSL.g:7810: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 : |
| // InternalTableDSL.g:7819: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 : |
| // InternalTableDSL.g:7828: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 : |
| // InternalTableDSL.g:7837:3: ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) |
| { |
| // InternalTableDSL.g:7837:3: ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) |
| // InternalTableDSL.g:7838: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 : |
| // InternalTableDSL.g:7855: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 : |
| // InternalTableDSL.g:7864: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 : |
| // InternalTableDSL.g:7873: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 : |
| // InternalTableDSL.g:7882:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) |
| { |
| // InternalTableDSL.g:7882:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) |
| // InternalTableDSL.g:7883: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 : |
| // InternalTableDSL.g:7906: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 : |
| // InternalTableDSL.g:7915: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 : |
| // InternalTableDSL.g:7924: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 : |
| // InternalTableDSL.g:7933: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 : |
| // InternalTableDSL.g:7942: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 : |
| // InternalTableDSL.g:7951: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 : |
| // InternalTableDSL.g:7960: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" |
| // InternalTableDSL.g:7972:1: entryRuleXLiteral returns [EObject current=null] : iv_ruleXLiteral= ruleXLiteral EOF ; |
| public final EObject entryRuleXLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXLiteral = null; |
| |
| |
| try { |
| // InternalTableDSL.g:7972:49: (iv_ruleXLiteral= ruleXLiteral EOF ) |
| // InternalTableDSL.g:7973: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" |
| // InternalTableDSL.g:7979: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 { |
| // InternalTableDSL.g:7985: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 ) ) |
| // InternalTableDSL.g:7986: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 ) |
| { |
| // InternalTableDSL.g:7986: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 alt102=7; |
| int LA102_0 = input.LA(1); |
| |
| if ( (LA102_0==111) ) { |
| alt102=1; |
| } |
| else if ( (LA102_0==112) && (synpred27_InternalTableDSL())) { |
| alt102=2; |
| } |
| else if ( ((LA102_0>=158 && LA102_0<=159)) ) { |
| alt102=3; |
| } |
| else if ( ((LA102_0>=RULE_INT && LA102_0<=RULE_DECIMAL)) ) { |
| alt102=4; |
| } |
| else if ( (LA102_0==160) ) { |
| alt102=5; |
| } |
| else if ( (LA102_0==RULE_STRING) ) { |
| alt102=6; |
| } |
| else if ( (LA102_0==161) ) { |
| alt102=7; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 102, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt102) { |
| case 1 : |
| // InternalTableDSL.g:7987: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 : |
| // InternalTableDSL.g:7996:3: ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) |
| { |
| // InternalTableDSL.g:7996:3: ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) |
| // InternalTableDSL.g:7997: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 : |
| // InternalTableDSL.g:8013: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 : |
| // InternalTableDSL.g:8022: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 : |
| // InternalTableDSL.g:8031: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 : |
| // InternalTableDSL.g:8040: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 : |
| // InternalTableDSL.g:8049: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" |
| // InternalTableDSL.g:8061:1: entryRuleXCollectionLiteral returns [EObject current=null] : iv_ruleXCollectionLiteral= ruleXCollectionLiteral EOF ; |
| public final EObject entryRuleXCollectionLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXCollectionLiteral = null; |
| |
| |
| try { |
| // InternalTableDSL.g:8061:59: (iv_ruleXCollectionLiteral= ruleXCollectionLiteral EOF ) |
| // InternalTableDSL.g:8062: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" |
| // InternalTableDSL.g:8068: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 { |
| // InternalTableDSL.g:8074:2: ( (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) ) |
| // InternalTableDSL.g:8075:2: (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) |
| { |
| // InternalTableDSL.g:8075:2: (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) |
| int alt103=2; |
| int LA103_0 = input.LA(1); |
| |
| if ( (LA103_0==111) ) { |
| int LA103_1 = input.LA(2); |
| |
| if ( (LA103_1==112) ) { |
| alt103=2; |
| } |
| else if ( (LA103_1==16) ) { |
| alt103=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 103, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 103, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt103) { |
| case 1 : |
| // InternalTableDSL.g:8076: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 : |
| // InternalTableDSL.g:8085: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" |
| // InternalTableDSL.g:8097:1: entryRuleXSetLiteral returns [EObject current=null] : iv_ruleXSetLiteral= ruleXSetLiteral EOF ; |
| public final EObject entryRuleXSetLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXSetLiteral = null; |
| |
| |
| try { |
| // InternalTableDSL.g:8097:52: (iv_ruleXSetLiteral= ruleXSetLiteral EOF ) |
| // InternalTableDSL.g:8098: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" |
| // InternalTableDSL.g:8104: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 { |
| // InternalTableDSL.g:8110:2: ( ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) ) |
| // InternalTableDSL.g:8111:2: ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) |
| { |
| // InternalTableDSL.g:8111:2: ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) |
| // InternalTableDSL.g:8112:3: () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' |
| { |
| // InternalTableDSL.g:8112:3: () |
| // InternalTableDSL.g:8113:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXSetLiteralAccess().getXSetLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,111,FOLLOW_22); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXSetLiteralAccess().getNumberSignKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,16,FOLLOW_102); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXSetLiteralAccess().getLeftCurlyBracketKeyword_2()); |
| |
| } |
| // InternalTableDSL.g:8127:3: ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? |
| int alt105=2; |
| int LA105_0 = input.LA(1); |
| |
| if ( ((LA105_0>=RULE_ID && LA105_0<=RULE_STRING)||(LA105_0>=RULE_INT && LA105_0<=RULE_DECIMAL)||LA105_0==16||LA105_0==93||(LA105_0>=101 && LA105_0<=105)||(LA105_0>=111 && LA105_0<=112)||LA105_0==119||LA105_0==138||LA105_0==144||LA105_0==146||(LA105_0>=150 && LA105_0<=152)||(LA105_0>=155 && LA105_0<=164)||LA105_0==166) ) { |
| alt105=1; |
| } |
| switch (alt105) { |
| case 1 : |
| // InternalTableDSL.g:8128:4: ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| { |
| // InternalTableDSL.g:8128:4: ( (lv_elements_3_0= ruleXExpression ) ) |
| // InternalTableDSL.g:8129:5: (lv_elements_3_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:8129:5: (lv_elements_3_0= ruleXExpression ) |
| // InternalTableDSL.g:8130:6: lv_elements_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_103); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:8147:4: (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| loop104: |
| do { |
| int alt104=2; |
| int LA104_0 = input.LA(1); |
| |
| if ( (LA104_0==110) ) { |
| alt104=1; |
| } |
| |
| |
| switch (alt104) { |
| case 1 : |
| // InternalTableDSL.g:8148:5: otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) |
| { |
| otherlv_4=(Token)match(input,110,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXSetLiteralAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalTableDSL.g:8152:5: ( (lv_elements_5_0= ruleXExpression ) ) |
| // InternalTableDSL.g:8153:6: (lv_elements_5_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:8153:6: (lv_elements_5_0= ruleXExpression ) |
| // InternalTableDSL.g:8154:7: lv_elements_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_103); |
| 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 loop104; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,17,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" |
| // InternalTableDSL.g:8181:1: entryRuleXListLiteral returns [EObject current=null] : iv_ruleXListLiteral= ruleXListLiteral EOF ; |
| public final EObject entryRuleXListLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXListLiteral = null; |
| |
| |
| try { |
| // InternalTableDSL.g:8181:53: (iv_ruleXListLiteral= ruleXListLiteral EOF ) |
| // InternalTableDSL.g:8182: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" |
| // InternalTableDSL.g:8188: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 { |
| // InternalTableDSL.g:8194:2: ( ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) ) |
| // InternalTableDSL.g:8195:2: ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) |
| { |
| // InternalTableDSL.g:8195:2: ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) |
| // InternalTableDSL.g:8196:3: () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' |
| { |
| // InternalTableDSL.g:8196:3: () |
| // InternalTableDSL.g:8197:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXListLiteralAccess().getXListLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,111,FOLLOW_73); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXListLiteralAccess().getNumberSignKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,112,FOLLOW_74); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXListLiteralAccess().getLeftSquareBracketKeyword_2()); |
| |
| } |
| // InternalTableDSL.g:8211:3: ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? |
| int alt107=2; |
| int LA107_0 = input.LA(1); |
| |
| if ( ((LA107_0>=RULE_ID && LA107_0<=RULE_STRING)||(LA107_0>=RULE_INT && LA107_0<=RULE_DECIMAL)||LA107_0==16||LA107_0==93||(LA107_0>=101 && LA107_0<=105)||(LA107_0>=111 && LA107_0<=112)||LA107_0==119||LA107_0==138||LA107_0==144||LA107_0==146||(LA107_0>=150 && LA107_0<=152)||(LA107_0>=155 && LA107_0<=164)||LA107_0==166) ) { |
| alt107=1; |
| } |
| switch (alt107) { |
| case 1 : |
| // InternalTableDSL.g:8212:4: ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| { |
| // InternalTableDSL.g:8212:4: ( (lv_elements_3_0= ruleXExpression ) ) |
| // InternalTableDSL.g:8213:5: (lv_elements_3_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:8213:5: (lv_elements_3_0= ruleXExpression ) |
| // InternalTableDSL.g:8214:6: lv_elements_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_75); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:8231:4: (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* |
| loop106: |
| do { |
| int alt106=2; |
| int LA106_0 = input.LA(1); |
| |
| if ( (LA106_0==110) ) { |
| alt106=1; |
| } |
| |
| |
| switch (alt106) { |
| case 1 : |
| // InternalTableDSL.g:8232:5: otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) |
| { |
| otherlv_4=(Token)match(input,110,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXListLiteralAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalTableDSL.g:8236:5: ( (lv_elements_5_0= ruleXExpression ) ) |
| // InternalTableDSL.g:8237:6: (lv_elements_5_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:8237:6: (lv_elements_5_0= ruleXExpression ) |
| // InternalTableDSL.g:8238:7: lv_elements_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_75); |
| 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 loop106; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,113,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" |
| // InternalTableDSL.g:8265:1: entryRuleXClosure returns [EObject current=null] : iv_ruleXClosure= ruleXClosure EOF ; |
| public final EObject entryRuleXClosure() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXClosure = null; |
| |
| |
| try { |
| // InternalTableDSL.g:8265:49: (iv_ruleXClosure= ruleXClosure EOF ) |
| // InternalTableDSL.g:8266: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" |
| // InternalTableDSL.g:8272: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 { |
| // InternalTableDSL.g:8278: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= ']' ) ) |
| // InternalTableDSL.g:8279: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= ']' ) |
| { |
| // InternalTableDSL.g:8279: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= ']' ) |
| // InternalTableDSL.g:8280: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= ']' |
| { |
| // InternalTableDSL.g:8280:3: ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) |
| // InternalTableDSL.g:8281:4: ( ( () '[' ) )=> ( () otherlv_1= '[' ) |
| { |
| // InternalTableDSL.g:8287:4: ( () otherlv_1= '[' ) |
| // InternalTableDSL.g:8288:5: () otherlv_1= '[' |
| { |
| // InternalTableDSL.g:8288:5: () |
| // InternalTableDSL.g:8289:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXClosureAccess().getXClosureAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,112,FOLLOW_104); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXClosureAccess().getLeftSquareBracketKeyword_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:8301:3: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? |
| int alt110=2; |
| alt110 = dfa110.predict(input); |
| switch (alt110) { |
| case 1 : |
| // InternalTableDSL.g:8302:4: ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) |
| { |
| // InternalTableDSL.g:8325:4: ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) |
| // InternalTableDSL.g:8326:5: ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) |
| { |
| // InternalTableDSL.g:8326:5: ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? |
| int alt109=2; |
| int LA109_0 = input.LA(1); |
| |
| if ( (LA109_0==RULE_ID||LA109_0==93||LA109_0==132) ) { |
| alt109=1; |
| } |
| switch (alt109) { |
| case 1 : |
| // InternalTableDSL.g:8327:6: ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* |
| { |
| // InternalTableDSL.g:8327:6: ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) |
| // InternalTableDSL.g:8328:7: (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) |
| { |
| // InternalTableDSL.g:8328:7: (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) |
| // InternalTableDSL.g:8329:8: lv_declaredFormalParameters_2_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_105); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:8346:6: (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* |
| loop108: |
| do { |
| int alt108=2; |
| int LA108_0 = input.LA(1); |
| |
| if ( (LA108_0==110) ) { |
| alt108=1; |
| } |
| |
| |
| switch (alt108) { |
| case 1 : |
| // InternalTableDSL.g:8347:7: otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) |
| { |
| otherlv_3=(Token)match(input,110,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXClosureAccess().getCommaKeyword_1_0_0_1_0()); |
| |
| } |
| // InternalTableDSL.g:8351:7: ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) |
| // InternalTableDSL.g:8352:8: (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) |
| { |
| // InternalTableDSL.g:8352:8: (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) |
| // InternalTableDSL.g:8353:9: lv_declaredFormalParameters_4_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_105); |
| 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 loop108; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalTableDSL.g:8372:5: ( (lv_explicitSyntax_5_0= '|' ) ) |
| // InternalTableDSL.g:8373:6: (lv_explicitSyntax_5_0= '|' ) |
| { |
| // InternalTableDSL.g:8373:6: (lv_explicitSyntax_5_0= '|' ) |
| // InternalTableDSL.g:8374:7: lv_explicitSyntax_5_0= '|' |
| { |
| lv_explicitSyntax_5_0=(Token)match(input,143,FOLLOW_106); 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; |
| |
| } |
| |
| // InternalTableDSL.g:8388:3: ( (lv_expression_6_0= ruleXExpressionInClosure ) ) |
| // InternalTableDSL.g:8389:4: (lv_expression_6_0= ruleXExpressionInClosure ) |
| { |
| // InternalTableDSL.g:8389:4: (lv_expression_6_0= ruleXExpressionInClosure ) |
| // InternalTableDSL.g:8390:5: lv_expression_6_0= ruleXExpressionInClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXClosureAccess().getExpressionXExpressionInClosureParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_107); |
| 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,113,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" |
| // InternalTableDSL.g:8415:1: entryRuleXExpressionInClosure returns [EObject current=null] : iv_ruleXExpressionInClosure= ruleXExpressionInClosure EOF ; |
| public final EObject entryRuleXExpressionInClosure() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXExpressionInClosure = null; |
| |
| |
| try { |
| // InternalTableDSL.g:8415:61: (iv_ruleXExpressionInClosure= ruleXExpressionInClosure EOF ) |
| // InternalTableDSL.g:8416: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" |
| // InternalTableDSL.g:8422: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 { |
| // InternalTableDSL.g:8428:2: ( ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) ) |
| // InternalTableDSL.g:8429:2: ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) |
| { |
| // InternalTableDSL.g:8429:2: ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) |
| // InternalTableDSL.g:8430:3: () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* |
| { |
| // InternalTableDSL.g:8430:3: () |
| // InternalTableDSL.g:8431:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXExpressionInClosureAccess().getXBlockExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:8437:3: ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* |
| loop112: |
| do { |
| int alt112=2; |
| int LA112_0 = input.LA(1); |
| |
| if ( ((LA112_0>=RULE_ID && LA112_0<=RULE_STRING)||(LA112_0>=RULE_INT && LA112_0<=RULE_DECIMAL)||LA112_0==16||LA112_0==93||(LA112_0>=101 && LA112_0<=105)||(LA112_0>=111 && LA112_0<=112)||LA112_0==119||LA112_0==138||LA112_0==144||LA112_0==146||(LA112_0>=150 && LA112_0<=164)||LA112_0==166) ) { |
| alt112=1; |
| } |
| |
| |
| switch (alt112) { |
| case 1 : |
| // InternalTableDSL.g:8438:4: ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? |
| { |
| // InternalTableDSL.g:8438:4: ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalTableDSL.g:8439:5: (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalTableDSL.g:8439:5: (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) |
| // InternalTableDSL.g:8440:6: lv_expressions_1_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXExpressionInClosureAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_108); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:8457:4: (otherlv_2= ';' )? |
| int alt111=2; |
| int LA111_0 = input.LA(1); |
| |
| if ( (LA111_0==108) ) { |
| alt111=1; |
| } |
| switch (alt111) { |
| case 1 : |
| // InternalTableDSL.g:8458:5: otherlv_2= ';' |
| { |
| otherlv_2=(Token)match(input,108,FOLLOW_109); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXExpressionInClosureAccess().getSemicolonKeyword_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop112; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXExpressionInClosure" |
| |
| |
| // $ANTLR start "entryRuleXShortClosure" |
| // InternalTableDSL.g:8468:1: entryRuleXShortClosure returns [EObject current=null] : iv_ruleXShortClosure= ruleXShortClosure EOF ; |
| public final EObject entryRuleXShortClosure() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXShortClosure = null; |
| |
| |
| try { |
| // InternalTableDSL.g:8468:54: (iv_ruleXShortClosure= ruleXShortClosure EOF ) |
| // InternalTableDSL.g:8469: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" |
| // InternalTableDSL.g:8475: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 { |
| // InternalTableDSL.g:8481:2: ( ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) ) ) |
| // InternalTableDSL.g:8482:2: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) ) |
| { |
| // InternalTableDSL.g:8482:2: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) ) |
| // InternalTableDSL.g:8483:3: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) |
| { |
| // InternalTableDSL.g:8483:3: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) |
| // InternalTableDSL.g:8484:4: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) |
| { |
| // InternalTableDSL.g:8509:4: ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) |
| // InternalTableDSL.g:8510:5: () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) |
| { |
| // InternalTableDSL.g:8510:5: () |
| // InternalTableDSL.g:8511:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXShortClosureAccess().getXClosureAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:8517:5: ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? |
| int alt114=2; |
| int LA114_0 = input.LA(1); |
| |
| if ( (LA114_0==RULE_ID||LA114_0==93||LA114_0==132) ) { |
| alt114=1; |
| } |
| switch (alt114) { |
| case 1 : |
| // InternalTableDSL.g:8518:6: ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* |
| { |
| // InternalTableDSL.g:8518:6: ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) |
| // InternalTableDSL.g:8519:7: (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) |
| { |
| // InternalTableDSL.g:8519:7: (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) |
| // InternalTableDSL.g:8520:8: lv_declaredFormalParameters_1_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_105); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:8537:6: (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* |
| loop113: |
| do { |
| int alt113=2; |
| int LA113_0 = input.LA(1); |
| |
| if ( (LA113_0==110) ) { |
| alt113=1; |
| } |
| |
| |
| switch (alt113) { |
| case 1 : |
| // InternalTableDSL.g:8538:7: otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) |
| { |
| otherlv_2=(Token)match(input,110,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXShortClosureAccess().getCommaKeyword_0_0_1_1_0()); |
| |
| } |
| // InternalTableDSL.g:8542:7: ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) |
| // InternalTableDSL.g:8543:8: (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) |
| { |
| // InternalTableDSL.g:8543:8: (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) |
| // InternalTableDSL.g:8544:9: lv_declaredFormalParameters_3_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_105); |
| 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 loop113; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalTableDSL.g:8563:5: ( (lv_explicitSyntax_4_0= '|' ) ) |
| // InternalTableDSL.g:8564:6: (lv_explicitSyntax_4_0= '|' ) |
| { |
| // InternalTableDSL.g:8564:6: (lv_explicitSyntax_4_0= '|' ) |
| // InternalTableDSL.g:8565:7: lv_explicitSyntax_4_0= '|' |
| { |
| lv_explicitSyntax_4_0=(Token)match(input,143,FOLLOW_72); 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, "|"); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:8579:3: ( (lv_expression_5_0= ruleXExpression ) ) |
| // InternalTableDSL.g:8580:4: (lv_expression_5_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:8580:4: (lv_expression_5_0= ruleXExpression ) |
| // InternalTableDSL.g:8581: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" |
| // InternalTableDSL.g:8602:1: entryRuleXParenthesizedExpression returns [EObject current=null] : iv_ruleXParenthesizedExpression= ruleXParenthesizedExpression EOF ; |
| public final EObject entryRuleXParenthesizedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXParenthesizedExpression = null; |
| |
| |
| try { |
| // InternalTableDSL.g:8602:65: (iv_ruleXParenthesizedExpression= ruleXParenthesizedExpression EOF ) |
| // InternalTableDSL.g:8603: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" |
| // InternalTableDSL.g:8609: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 { |
| // InternalTableDSL.g:8615:2: ( (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) ) |
| // InternalTableDSL.g:8616:2: (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) |
| { |
| // InternalTableDSL.g:8616:2: (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) |
| // InternalTableDSL.g:8617:3: otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' |
| { |
| otherlv_0=(Token)match(input,93,FOLLOW_72); 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_55); |
| 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,94,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" |
| // InternalTableDSL.g:8637:1: entryRuleXIfExpression returns [EObject current=null] : iv_ruleXIfExpression= ruleXIfExpression EOF ; |
| public final EObject entryRuleXIfExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXIfExpression = null; |
| |
| |
| try { |
| // InternalTableDSL.g:8637:54: (iv_ruleXIfExpression= ruleXIfExpression EOF ) |
| // InternalTableDSL.g:8638: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" |
| // InternalTableDSL.g:8644: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 { |
| // InternalTableDSL.g:8650: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 ) ) )? ) ) |
| // InternalTableDSL.g:8651: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 ) ) )? ) |
| { |
| // InternalTableDSL.g:8651: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 ) ) )? ) |
| // InternalTableDSL.g:8652: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 ) ) )? |
| { |
| // InternalTableDSL.g:8652:3: () |
| // InternalTableDSL.g:8653:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXIfExpressionAccess().getXIfExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,144,FOLLOW_110); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXIfExpressionAccess().getIfKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,93,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXIfExpressionAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalTableDSL.g:8667:3: ( (lv_if_3_0= ruleXExpression ) ) |
| // InternalTableDSL.g:8668:4: (lv_if_3_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:8668:4: (lv_if_3_0= ruleXExpression ) |
| // InternalTableDSL.g:8669:5: lv_if_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXIfExpressionAccess().getIfXExpressionParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_55); |
| 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,94,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXIfExpressionAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| // InternalTableDSL.g:8690:3: ( (lv_then_5_0= ruleXExpression ) ) |
| // InternalTableDSL.g:8691:4: (lv_then_5_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:8691:4: (lv_then_5_0= ruleXExpression ) |
| // InternalTableDSL.g:8692:5: lv_then_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXIfExpressionAccess().getThenXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_111); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:8709:3: ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? |
| int alt115=2; |
| int LA115_0 = input.LA(1); |
| |
| if ( (LA115_0==145) ) { |
| int LA115_1 = input.LA(2); |
| |
| if ( (synpred31_InternalTableDSL()) ) { |
| alt115=1; |
| } |
| } |
| switch (alt115) { |
| case 1 : |
| // InternalTableDSL.g:8710:4: ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) |
| { |
| // InternalTableDSL.g:8710:4: ( ( 'else' )=>otherlv_6= 'else' ) |
| // InternalTableDSL.g:8711:5: ( 'else' )=>otherlv_6= 'else' |
| { |
| otherlv_6=(Token)match(input,145,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXIfExpressionAccess().getElseKeyword_6_0()); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:8717:4: ( (lv_else_7_0= ruleXExpression ) ) |
| // InternalTableDSL.g:8718:5: (lv_else_7_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:8718:5: (lv_else_7_0= ruleXExpression ) |
| // InternalTableDSL.g:8719: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" |
| // InternalTableDSL.g:8741:1: entryRuleXSwitchExpression returns [EObject current=null] : iv_ruleXSwitchExpression= ruleXSwitchExpression EOF ; |
| public final EObject entryRuleXSwitchExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXSwitchExpression = null; |
| |
| |
| try { |
| // InternalTableDSL.g:8741:58: (iv_ruleXSwitchExpression= ruleXSwitchExpression EOF ) |
| // InternalTableDSL.g:8742: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" |
| // InternalTableDSL.g:8748: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 { |
| // InternalTableDSL.g:8754: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= '}' ) ) |
| // InternalTableDSL.g:8755: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= '}' ) |
| { |
| // InternalTableDSL.g:8755: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= '}' ) |
| // InternalTableDSL.g:8756: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= '}' |
| { |
| // InternalTableDSL.g:8756:3: () |
| // InternalTableDSL.g:8757:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXSwitchExpressionAccess().getXSwitchExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,146,FOLLOW_112); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXSwitchExpressionAccess().getSwitchKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:8767: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 alt117=2; |
| alt117 = dfa117.predict(input); |
| switch (alt117) { |
| case 1 : |
| // InternalTableDSL.g:8768:4: ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| { |
| // InternalTableDSL.g:8768:4: ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| // InternalTableDSL.g:8769:5: ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' |
| { |
| // InternalTableDSL.g:8769:5: ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) |
| // InternalTableDSL.g:8770:6: ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| { |
| // InternalTableDSL.g:8780:6: (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| // InternalTableDSL.g:8781:7: otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' |
| { |
| otherlv_2=(Token)match(input,93,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXSwitchExpressionAccess().getLeftParenthesisKeyword_2_0_0_0_0()); |
| |
| } |
| // InternalTableDSL.g:8785:7: ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) |
| // InternalTableDSL.g:8786:8: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| { |
| // InternalTableDSL.g:8786:8: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| // InternalTableDSL.g:8787:9: lv_declaredParam_3_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_0_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_113); |
| lv_declaredParam_3_0=ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); |
| } |
| set( |
| current, |
| "declaredParam", |
| lv_declaredParam_3_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,147,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_0_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:8810:5: ( (lv_switch_5_0= ruleXExpression ) ) |
| // InternalTableDSL.g:8811:6: (lv_switch_5_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:8811:6: (lv_switch_5_0= ruleXExpression ) |
| // InternalTableDSL.g:8812:7: lv_switch_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_55); |
| 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,94,FOLLOW_22); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXSwitchExpressionAccess().getRightParenthesisKeyword_2_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:8835:4: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) |
| { |
| // InternalTableDSL.g:8835:4: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) |
| // InternalTableDSL.g:8836:5: ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) |
| { |
| // InternalTableDSL.g:8836:5: ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? |
| int alt116=2; |
| alt116 = dfa116.predict(input); |
| switch (alt116) { |
| case 1 : |
| // InternalTableDSL.g:8837:6: ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) |
| { |
| // InternalTableDSL.g:8846:6: ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) |
| // InternalTableDSL.g:8847:7: ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' |
| { |
| // InternalTableDSL.g:8847:7: ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) |
| // InternalTableDSL.g:8848:8: (lv_declaredParam_7_0= ruleJvmFormalParameter ) |
| { |
| // InternalTableDSL.g:8848:8: (lv_declaredParam_7_0= ruleJvmFormalParameter ) |
| // InternalTableDSL.g:8849:9: lv_declaredParam_7_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_1_0_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_113); |
| lv_declaredParam_7_0=ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); |
| } |
| set( |
| current, |
| "declaredParam", |
| lv_declaredParam_7_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_8=(Token)match(input,147,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_1_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalTableDSL.g:8872:5: ( (lv_switch_9_0= ruleXExpression ) ) |
| // InternalTableDSL.g:8873:6: (lv_switch_9_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:8873:6: (lv_switch_9_0= ruleXExpression ) |
| // InternalTableDSL.g:8874:7: lv_switch_9_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_22); |
| 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,16,FOLLOW_114); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getXSwitchExpressionAccess().getLeftCurlyBracketKeyword_3()); |
| |
| } |
| // InternalTableDSL.g:8897:3: ( (lv_cases_11_0= ruleXCasePart ) )* |
| loop118: |
| do { |
| int alt118=2; |
| int LA118_0 = input.LA(1); |
| |
| if ( (LA118_0==RULE_ID||LA118_0==93||LA118_0==110||LA118_0==132||LA118_0==147||LA118_0==149) ) { |
| alt118=1; |
| } |
| |
| |
| switch (alt118) { |
| case 1 : |
| // InternalTableDSL.g:8898:4: (lv_cases_11_0= ruleXCasePart ) |
| { |
| // InternalTableDSL.g:8898:4: (lv_cases_11_0= ruleXCasePart ) |
| // InternalTableDSL.g:8899:5: lv_cases_11_0= ruleXCasePart |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getCasesXCasePartParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_114); |
| 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 loop118; |
| } |
| } while (true); |
| |
| // InternalTableDSL.g:8916:3: (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? |
| int alt119=2; |
| int LA119_0 = input.LA(1); |
| |
| if ( (LA119_0==148) ) { |
| alt119=1; |
| } |
| switch (alt119) { |
| case 1 : |
| // InternalTableDSL.g:8917:4: otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) |
| { |
| otherlv_12=(Token)match(input,148,FOLLOW_113); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getXSwitchExpressionAccess().getDefaultKeyword_5_0()); |
| |
| } |
| otherlv_13=(Token)match(input,147,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_5_1()); |
| |
| } |
| // InternalTableDSL.g:8925:4: ( (lv_default_14_0= ruleXExpression ) ) |
| // InternalTableDSL.g:8926:5: (lv_default_14_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:8926:5: (lv_default_14_0= ruleXExpression ) |
| // InternalTableDSL.g:8927:6: lv_default_14_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDefaultXExpressionParserRuleCall_5_2_0()); |
| |
| } |
| pushFollow(FOLLOW_115); |
| 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,17,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" |
| // InternalTableDSL.g:8953:1: entryRuleXCasePart returns [EObject current=null] : iv_ruleXCasePart= ruleXCasePart EOF ; |
| public final EObject entryRuleXCasePart() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXCasePart = null; |
| |
| |
| try { |
| // InternalTableDSL.g:8953:50: (iv_ruleXCasePart= ruleXCasePart EOF ) |
| // InternalTableDSL.g:8954: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" |
| // InternalTableDSL.g:8960: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 { |
| // InternalTableDSL.g:8966: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= ',' ) ) ) ) ) |
| // InternalTableDSL.g:8967: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= ',' ) ) ) ) |
| { |
| // InternalTableDSL.g:8967: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= ',' ) ) ) ) |
| // InternalTableDSL.g:8968: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= ',' ) ) ) |
| { |
| // InternalTableDSL.g:8968:3: () |
| // InternalTableDSL.g:8969:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXCasePartAccess().getXCasePartAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:8975:3: ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? |
| int alt120=2; |
| int LA120_0 = input.LA(1); |
| |
| if ( (LA120_0==RULE_ID||LA120_0==93||LA120_0==132) ) { |
| alt120=1; |
| } |
| switch (alt120) { |
| case 1 : |
| // InternalTableDSL.g:8976:4: (lv_typeGuard_1_0= ruleJvmTypeReference ) |
| { |
| // InternalTableDSL.g:8976:4: (lv_typeGuard_1_0= ruleJvmTypeReference ) |
| // InternalTableDSL.g:8977:5: lv_typeGuard_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCasePartAccess().getTypeGuardJvmTypeReferenceParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_116); |
| 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; |
| |
| } |
| |
| // InternalTableDSL.g:8994:3: (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? |
| int alt121=2; |
| int LA121_0 = input.LA(1); |
| |
| if ( (LA121_0==149) ) { |
| alt121=1; |
| } |
| switch (alt121) { |
| case 1 : |
| // InternalTableDSL.g:8995:4: otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) |
| { |
| otherlv_2=(Token)match(input,149,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXCasePartAccess().getCaseKeyword_2_0()); |
| |
| } |
| // InternalTableDSL.g:8999:4: ( (lv_case_3_0= ruleXExpression ) ) |
| // InternalTableDSL.g:9000:5: (lv_case_3_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:9000:5: (lv_case_3_0= ruleXExpression ) |
| // InternalTableDSL.g:9001:6: lv_case_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCasePartAccess().getCaseXExpressionParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_117); |
| 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; |
| |
| } |
| |
| // InternalTableDSL.g:9019:3: ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) |
| int alt122=2; |
| int LA122_0 = input.LA(1); |
| |
| if ( (LA122_0==147) ) { |
| alt122=1; |
| } |
| else if ( (LA122_0==110) ) { |
| alt122=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 122, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt122) { |
| case 1 : |
| // InternalTableDSL.g:9020:4: (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) |
| { |
| // InternalTableDSL.g:9020:4: (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) |
| // InternalTableDSL.g:9021:5: otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) |
| { |
| otherlv_4=(Token)match(input,147,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXCasePartAccess().getColonKeyword_3_0_0()); |
| |
| } |
| // InternalTableDSL.g:9025:5: ( (lv_then_5_0= ruleXExpression ) ) |
| // InternalTableDSL.g:9026:6: (lv_then_5_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:9026:6: (lv_then_5_0= ruleXExpression ) |
| // InternalTableDSL.g:9027: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 : |
| // InternalTableDSL.g:9046:4: ( (lv_fallThrough_6_0= ',' ) ) |
| { |
| // InternalTableDSL.g:9046:4: ( (lv_fallThrough_6_0= ',' ) ) |
| // InternalTableDSL.g:9047:5: (lv_fallThrough_6_0= ',' ) |
| { |
| // InternalTableDSL.g:9047:5: (lv_fallThrough_6_0= ',' ) |
| // InternalTableDSL.g:9048:6: lv_fallThrough_6_0= ',' |
| { |
| lv_fallThrough_6_0=(Token)match(input,110,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" |
| // InternalTableDSL.g:9065:1: entryRuleXForLoopExpression returns [EObject current=null] : iv_ruleXForLoopExpression= ruleXForLoopExpression EOF ; |
| public final EObject entryRuleXForLoopExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXForLoopExpression = null; |
| |
| |
| try { |
| // InternalTableDSL.g:9065:59: (iv_ruleXForLoopExpression= ruleXForLoopExpression EOF ) |
| // InternalTableDSL.g:9066: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" |
| // InternalTableDSL.g:9072: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 { |
| // InternalTableDSL.g:9078: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 ) ) ) ) |
| // InternalTableDSL.g:9079: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 ) ) ) |
| { |
| // InternalTableDSL.g:9079: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 ) ) ) |
| // InternalTableDSL.g:9080: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 ) ) |
| { |
| // InternalTableDSL.g:9080:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) |
| // InternalTableDSL.g:9081:4: ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| { |
| // InternalTableDSL.g:9094:4: ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) |
| // InternalTableDSL.g:9095:5: () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' |
| { |
| // InternalTableDSL.g:9095:5: () |
| // InternalTableDSL.g:9096:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXForLoopExpressionAccess().getXForLoopExpressionAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,150,FOLLOW_110); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXForLoopExpressionAccess().getForKeyword_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,93,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXForLoopExpressionAccess().getLeftParenthesisKeyword_0_0_2()); |
| |
| } |
| // InternalTableDSL.g:9110:5: ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) |
| // InternalTableDSL.g:9111:6: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| { |
| // InternalTableDSL.g:9111:6: (lv_declaredParam_3_0= ruleJvmFormalParameter ) |
| // InternalTableDSL.g:9112:7: lv_declaredParam_3_0= ruleJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_0_0_3_0()); |
| |
| } |
| pushFollow(FOLLOW_113); |
| lv_declaredParam_3_0=ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| if (current==null) { |
| current = createModelElementForParent(grammarAccess.getXForLoopExpressionRule()); |
| } |
| set( |
| current, |
| "declaredParam", |
| lv_declaredParam_3_0, |
| "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| otherlv_4=(Token)match(input,147,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXForLoopExpressionAccess().getColonKeyword_0_0_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:9135:3: ( (lv_forExpression_5_0= ruleXExpression ) ) |
| // InternalTableDSL.g:9136:4: (lv_forExpression_5_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:9136:4: (lv_forExpression_5_0= ruleXExpression ) |
| // InternalTableDSL.g:9137:5: lv_forExpression_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getForExpressionXExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_55); |
| 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,94,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXForLoopExpressionAccess().getRightParenthesisKeyword_2()); |
| |
| } |
| // InternalTableDSL.g:9158:3: ( (lv_eachExpression_7_0= ruleXExpression ) ) |
| // InternalTableDSL.g:9159:4: (lv_eachExpression_7_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:9159:4: (lv_eachExpression_7_0= ruleXExpression ) |
| // InternalTableDSL.g:9160: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" |
| // InternalTableDSL.g:9181:1: entryRuleXBasicForLoopExpression returns [EObject current=null] : iv_ruleXBasicForLoopExpression= ruleXBasicForLoopExpression EOF ; |
| public final EObject entryRuleXBasicForLoopExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXBasicForLoopExpression = null; |
| |
| |
| try { |
| // InternalTableDSL.g:9181:64: (iv_ruleXBasicForLoopExpression= ruleXBasicForLoopExpression EOF ) |
| // InternalTableDSL.g:9182: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" |
| // InternalTableDSL.g:9188: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 { |
| // InternalTableDSL.g:9194: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 ) ) ) ) |
| // InternalTableDSL.g:9195: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 ) ) ) |
| { |
| // InternalTableDSL.g:9195: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 ) ) ) |
| // InternalTableDSL.g:9196: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 ) ) |
| { |
| // InternalTableDSL.g:9196:3: () |
| // InternalTableDSL.g:9197:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXBasicForLoopExpressionAccess().getXBasicForLoopExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,150,FOLLOW_110); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXBasicForLoopExpressionAccess().getForKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,93,FOLLOW_118); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXBasicForLoopExpressionAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalTableDSL.g:9211:3: ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? |
| int alt124=2; |
| int LA124_0 = input.LA(1); |
| |
| if ( ((LA124_0>=RULE_ID && LA124_0<=RULE_STRING)||(LA124_0>=RULE_INT && LA124_0<=RULE_DECIMAL)||LA124_0==16||LA124_0==93||(LA124_0>=101 && LA124_0<=105)||(LA124_0>=111 && LA124_0<=112)||LA124_0==119||LA124_0==138||LA124_0==144||LA124_0==146||(LA124_0>=150 && LA124_0<=164)||LA124_0==166) ) { |
| alt124=1; |
| } |
| switch (alt124) { |
| case 1 : |
| // InternalTableDSL.g:9212:4: ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* |
| { |
| // InternalTableDSL.g:9212:4: ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalTableDSL.g:9213:5: (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalTableDSL.g:9213:5: (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) |
| // InternalTableDSL.g:9214:6: lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_0_0()); |
| |
| } |
| pushFollow(FOLLOW_119); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:9231:4: (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* |
| loop123: |
| do { |
| int alt123=2; |
| int LA123_0 = input.LA(1); |
| |
| if ( (LA123_0==110) ) { |
| alt123=1; |
| } |
| |
| |
| switch (alt123) { |
| case 1 : |
| // InternalTableDSL.g:9232:5: otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) |
| { |
| otherlv_4=(Token)match(input,110,FOLLOW_120); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_3_1_0()); |
| |
| } |
| // InternalTableDSL.g:9236:5: ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalTableDSL.g:9237:6: (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalTableDSL.g:9237:6: (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) |
| // InternalTableDSL.g:9238:7: lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_119); |
| 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 loop123; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_6=(Token)match(input,108,FOLLOW_121); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_4()); |
| |
| } |
| // InternalTableDSL.g:9261:3: ( (lv_expression_7_0= ruleXExpression ) )? |
| int alt125=2; |
| int LA125_0 = input.LA(1); |
| |
| if ( ((LA125_0>=RULE_ID && LA125_0<=RULE_STRING)||(LA125_0>=RULE_INT && LA125_0<=RULE_DECIMAL)||LA125_0==16||LA125_0==93||(LA125_0>=101 && LA125_0<=105)||(LA125_0>=111 && LA125_0<=112)||LA125_0==119||LA125_0==138||LA125_0==144||LA125_0==146||(LA125_0>=150 && LA125_0<=152)||(LA125_0>=155 && LA125_0<=164)||LA125_0==166) ) { |
| alt125=1; |
| } |
| switch (alt125) { |
| case 1 : |
| // InternalTableDSL.g:9262:4: (lv_expression_7_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:9262:4: (lv_expression_7_0= ruleXExpression ) |
| // InternalTableDSL.g:9263:5: lv_expression_7_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getExpressionXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_122); |
| 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,108,FOLLOW_70); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_8, grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_6()); |
| |
| } |
| // InternalTableDSL.g:9284:3: ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? |
| int alt127=2; |
| int LA127_0 = input.LA(1); |
| |
| if ( ((LA127_0>=RULE_ID && LA127_0<=RULE_STRING)||(LA127_0>=RULE_INT && LA127_0<=RULE_DECIMAL)||LA127_0==16||LA127_0==93||(LA127_0>=101 && LA127_0<=105)||(LA127_0>=111 && LA127_0<=112)||LA127_0==119||LA127_0==138||LA127_0==144||LA127_0==146||(LA127_0>=150 && LA127_0<=152)||(LA127_0>=155 && LA127_0<=164)||LA127_0==166) ) { |
| alt127=1; |
| } |
| switch (alt127) { |
| case 1 : |
| // InternalTableDSL.g:9285:4: ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* |
| { |
| // InternalTableDSL.g:9285:4: ( (lv_updateExpressions_9_0= ruleXExpression ) ) |
| // InternalTableDSL.g:9286:5: (lv_updateExpressions_9_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:9286:5: (lv_updateExpressions_9_0= ruleXExpression ) |
| // InternalTableDSL.g:9287:6: lv_updateExpressions_9_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_0_0()); |
| |
| } |
| pushFollow(FOLLOW_71); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:9304:4: (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* |
| loop126: |
| do { |
| int alt126=2; |
| int LA126_0 = input.LA(1); |
| |
| if ( (LA126_0==110) ) { |
| alt126=1; |
| } |
| |
| |
| switch (alt126) { |
| case 1 : |
| // InternalTableDSL.g:9305:5: otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) |
| { |
| otherlv_10=(Token)match(input,110,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_7_1_0()); |
| |
| } |
| // InternalTableDSL.g:9309:5: ( (lv_updateExpressions_11_0= ruleXExpression ) ) |
| // InternalTableDSL.g:9310:6: (lv_updateExpressions_11_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:9310:6: (lv_updateExpressions_11_0= ruleXExpression ) |
| // InternalTableDSL.g:9311:7: lv_updateExpressions_11_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_71); |
| 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 loop126; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_12=(Token)match(input,94,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getXBasicForLoopExpressionAccess().getRightParenthesisKeyword_8()); |
| |
| } |
| // InternalTableDSL.g:9334:3: ( (lv_eachExpression_13_0= ruleXExpression ) ) |
| // InternalTableDSL.g:9335:4: (lv_eachExpression_13_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:9335:4: (lv_eachExpression_13_0= ruleXExpression ) |
| // InternalTableDSL.g:9336: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" |
| // InternalTableDSL.g:9357:1: entryRuleXWhileExpression returns [EObject current=null] : iv_ruleXWhileExpression= ruleXWhileExpression EOF ; |
| public final EObject entryRuleXWhileExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXWhileExpression = null; |
| |
| |
| try { |
| // InternalTableDSL.g:9357:57: (iv_ruleXWhileExpression= ruleXWhileExpression EOF ) |
| // InternalTableDSL.g:9358: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" |
| // InternalTableDSL.g:9364: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 { |
| // InternalTableDSL.g:9370:2: ( ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) ) |
| // InternalTableDSL.g:9371:2: ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) |
| { |
| // InternalTableDSL.g:9371:2: ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) |
| // InternalTableDSL.g:9372:3: () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) |
| { |
| // InternalTableDSL.g:9372:3: () |
| // InternalTableDSL.g:9373:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXWhileExpressionAccess().getXWhileExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,151,FOLLOW_110); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXWhileExpressionAccess().getWhileKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,93,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXWhileExpressionAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalTableDSL.g:9387:3: ( (lv_predicate_3_0= ruleXExpression ) ) |
| // InternalTableDSL.g:9388:4: (lv_predicate_3_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:9388:4: (lv_predicate_3_0= ruleXExpression ) |
| // InternalTableDSL.g:9389:5: lv_predicate_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXWhileExpressionAccess().getPredicateXExpressionParserRuleCall_3_0()); |
| |
| } |
| pushFollow(FOLLOW_55); |
| 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,94,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXWhileExpressionAccess().getRightParenthesisKeyword_4()); |
| |
| } |
| // InternalTableDSL.g:9410:3: ( (lv_body_5_0= ruleXExpression ) ) |
| // InternalTableDSL.g:9411:4: (lv_body_5_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:9411:4: (lv_body_5_0= ruleXExpression ) |
| // InternalTableDSL.g:9412: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" |
| // InternalTableDSL.g:9433:1: entryRuleXDoWhileExpression returns [EObject current=null] : iv_ruleXDoWhileExpression= ruleXDoWhileExpression EOF ; |
| public final EObject entryRuleXDoWhileExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXDoWhileExpression = null; |
| |
| |
| try { |
| // InternalTableDSL.g:9433:59: (iv_ruleXDoWhileExpression= ruleXDoWhileExpression EOF ) |
| // InternalTableDSL.g:9434: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" |
| // InternalTableDSL.g:9440: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 { |
| // InternalTableDSL.g:9446:2: ( ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) ) |
| // InternalTableDSL.g:9447:2: ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| { |
| // InternalTableDSL.g:9447:2: ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) |
| // InternalTableDSL.g:9448:3: () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' |
| { |
| // InternalTableDSL.g:9448:3: () |
| // InternalTableDSL.g:9449:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXDoWhileExpressionAccess().getXDoWhileExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,152,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXDoWhileExpressionAccess().getDoKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:9459:3: ( (lv_body_2_0= ruleXExpression ) ) |
| // InternalTableDSL.g:9460:4: (lv_body_2_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:9460:4: (lv_body_2_0= ruleXExpression ) |
| // InternalTableDSL.g:9461:5: lv_body_2_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXDoWhileExpressionAccess().getBodyXExpressionParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_123); |
| 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,151,FOLLOW_110); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXDoWhileExpressionAccess().getWhileKeyword_3()); |
| |
| } |
| otherlv_4=(Token)match(input,93,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXDoWhileExpressionAccess().getLeftParenthesisKeyword_4()); |
| |
| } |
| // InternalTableDSL.g:9486:3: ( (lv_predicate_5_0= ruleXExpression ) ) |
| // InternalTableDSL.g:9487:4: (lv_predicate_5_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:9487:4: (lv_predicate_5_0= ruleXExpression ) |
| // InternalTableDSL.g:9488:5: lv_predicate_5_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXDoWhileExpressionAccess().getPredicateXExpressionParserRuleCall_5_0()); |
| |
| } |
| pushFollow(FOLLOW_55); |
| 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,94,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" |
| // InternalTableDSL.g:9513:1: entryRuleXBlockExpression returns [EObject current=null] : iv_ruleXBlockExpression= ruleXBlockExpression EOF ; |
| public final EObject entryRuleXBlockExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXBlockExpression = null; |
| |
| |
| try { |
| // InternalTableDSL.g:9513:57: (iv_ruleXBlockExpression= ruleXBlockExpression EOF ) |
| // InternalTableDSL.g:9514: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" |
| // InternalTableDSL.g:9520: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 { |
| // InternalTableDSL.g:9526:2: ( ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) ) |
| // InternalTableDSL.g:9527:2: ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) |
| { |
| // InternalTableDSL.g:9527:2: ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) |
| // InternalTableDSL.g:9528:3: () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' |
| { |
| // InternalTableDSL.g:9528:3: () |
| // InternalTableDSL.g:9529:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXBlockExpressionAccess().getXBlockExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,16,FOLLOW_124); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXBlockExpressionAccess().getLeftCurlyBracketKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:9539:3: ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* |
| loop129: |
| do { |
| int alt129=2; |
| int LA129_0 = input.LA(1); |
| |
| if ( ((LA129_0>=RULE_ID && LA129_0<=RULE_STRING)||(LA129_0>=RULE_INT && LA129_0<=RULE_DECIMAL)||LA129_0==16||LA129_0==93||(LA129_0>=101 && LA129_0<=105)||(LA129_0>=111 && LA129_0<=112)||LA129_0==119||LA129_0==138||LA129_0==144||LA129_0==146||(LA129_0>=150 && LA129_0<=164)||LA129_0==166) ) { |
| alt129=1; |
| } |
| |
| |
| switch (alt129) { |
| case 1 : |
| // InternalTableDSL.g:9540:4: ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? |
| { |
| // InternalTableDSL.g:9540:4: ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) |
| // InternalTableDSL.g:9541:5: (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) |
| { |
| // InternalTableDSL.g:9541:5: (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) |
| // InternalTableDSL.g:9542:6: lv_expressions_2_0= ruleXExpressionOrVarDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXBlockExpressionAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_2_0_0()); |
| |
| } |
| pushFollow(FOLLOW_125); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:9559:4: (otherlv_3= ';' )? |
| int alt128=2; |
| int LA128_0 = input.LA(1); |
| |
| if ( (LA128_0==108) ) { |
| alt128=1; |
| } |
| switch (alt128) { |
| case 1 : |
| // InternalTableDSL.g:9560:5: otherlv_3= ';' |
| { |
| otherlv_3=(Token)match(input,108,FOLLOW_124); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXBlockExpressionAccess().getSemicolonKeyword_2_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop129; |
| } |
| } while (true); |
| |
| otherlv_4=(Token)match(input,17,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" |
| // InternalTableDSL.g:9574:1: entryRuleXExpressionOrVarDeclaration returns [EObject current=null] : iv_ruleXExpressionOrVarDeclaration= ruleXExpressionOrVarDeclaration EOF ; |
| public final EObject entryRuleXExpressionOrVarDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXExpressionOrVarDeclaration = null; |
| |
| |
| try { |
| // InternalTableDSL.g:9574:68: (iv_ruleXExpressionOrVarDeclaration= ruleXExpressionOrVarDeclaration EOF ) |
| // InternalTableDSL.g:9575: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" |
| // InternalTableDSL.g:9581: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 { |
| // InternalTableDSL.g:9587:2: ( (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) ) |
| // InternalTableDSL.g:9588:2: (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) |
| { |
| // InternalTableDSL.g:9588:2: (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) |
| int alt130=2; |
| int LA130_0 = input.LA(1); |
| |
| if ( ((LA130_0>=153 && LA130_0<=154)) ) { |
| alt130=1; |
| } |
| else if ( ((LA130_0>=RULE_ID && LA130_0<=RULE_STRING)||(LA130_0>=RULE_INT && LA130_0<=RULE_DECIMAL)||LA130_0==16||LA130_0==93||(LA130_0>=101 && LA130_0<=105)||(LA130_0>=111 && LA130_0<=112)||LA130_0==119||LA130_0==138||LA130_0==144||LA130_0==146||(LA130_0>=150 && LA130_0<=152)||(LA130_0>=155 && LA130_0<=164)||LA130_0==166) ) { |
| alt130=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 130, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt130) { |
| case 1 : |
| // InternalTableDSL.g:9589: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 : |
| // InternalTableDSL.g:9598: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" |
| // InternalTableDSL.g:9610:1: entryRuleXVariableDeclaration returns [EObject current=null] : iv_ruleXVariableDeclaration= ruleXVariableDeclaration EOF ; |
| public final EObject entryRuleXVariableDeclaration() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXVariableDeclaration = null; |
| |
| |
| try { |
| // InternalTableDSL.g:9610:61: (iv_ruleXVariableDeclaration= ruleXVariableDeclaration EOF ) |
| // InternalTableDSL.g:9611: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" |
| // InternalTableDSL.g:9617: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 { |
| // InternalTableDSL.g:9623: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 ) ) )? ) ) |
| // InternalTableDSL.g:9624: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 ) ) )? ) |
| { |
| // InternalTableDSL.g:9624: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 ) ) )? ) |
| // InternalTableDSL.g:9625: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 ) ) )? |
| { |
| // InternalTableDSL.g:9625:3: () |
| // InternalTableDSL.g:9626:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXVariableDeclarationAccess().getXVariableDeclarationAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:9632:3: ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) |
| int alt131=2; |
| int LA131_0 = input.LA(1); |
| |
| if ( (LA131_0==153) ) { |
| alt131=1; |
| } |
| else if ( (LA131_0==154) ) { |
| 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 : |
| // InternalTableDSL.g:9633:4: ( (lv_writeable_1_0= 'var' ) ) |
| { |
| // InternalTableDSL.g:9633:4: ( (lv_writeable_1_0= 'var' ) ) |
| // InternalTableDSL.g:9634:5: (lv_writeable_1_0= 'var' ) |
| { |
| // InternalTableDSL.g:9634:5: (lv_writeable_1_0= 'var' ) |
| // InternalTableDSL.g:9635:6: lv_writeable_1_0= 'var' |
| { |
| lv_writeable_1_0=(Token)match(input,153,FOLLOW_85); 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 : |
| // InternalTableDSL.g:9648:4: otherlv_2= 'val' |
| { |
| otherlv_2=(Token)match(input,154,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXVariableDeclarationAccess().getValKeyword_1_1()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalTableDSL.g:9653:3: ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) |
| int alt132=2; |
| int LA132_0 = input.LA(1); |
| |
| if ( (LA132_0==RULE_ID) ) { |
| int LA132_1 = input.LA(2); |
| |
| if ( (synpred35_InternalTableDSL()) ) { |
| alt132=1; |
| } |
| else if ( (true) ) { |
| alt132=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 132, 1, input); |
| |
| throw nvae; |
| } |
| } |
| else if ( (LA132_0==93) && (synpred35_InternalTableDSL())) { |
| alt132=1; |
| } |
| else if ( (LA132_0==132) && (synpred35_InternalTableDSL())) { |
| alt132=1; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 132, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt132) { |
| case 1 : |
| // InternalTableDSL.g:9654:4: ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) |
| { |
| // InternalTableDSL.g:9654:4: ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) |
| // InternalTableDSL.g:9655:5: ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) |
| { |
| // InternalTableDSL.g:9668:5: ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) |
| // InternalTableDSL.g:9669:6: ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) |
| { |
| // InternalTableDSL.g:9669:6: ( (lv_type_3_0= ruleJvmTypeReference ) ) |
| // InternalTableDSL.g:9670:7: (lv_type_3_0= ruleJvmTypeReference ) |
| { |
| // InternalTableDSL.g:9670:7: (lv_type_3_0= ruleJvmTypeReference ) |
| // InternalTableDSL.g:9671: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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:9688:6: ( (lv_name_4_0= ruleValidID ) ) |
| // InternalTableDSL.g:9689:7: (lv_name_4_0= ruleValidID ) |
| { |
| // InternalTableDSL.g:9689:7: (lv_name_4_0= ruleValidID ) |
| // InternalTableDSL.g:9690:8: lv_name_4_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_0_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_126); |
| 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 : |
| // InternalTableDSL.g:9710:4: ( (lv_name_5_0= ruleValidID ) ) |
| { |
| // InternalTableDSL.g:9710:4: ( (lv_name_5_0= ruleValidID ) ) |
| // InternalTableDSL.g:9711:5: (lv_name_5_0= ruleValidID ) |
| { |
| // InternalTableDSL.g:9711:5: (lv_name_5_0= ruleValidID ) |
| // InternalTableDSL.g:9712:6: lv_name_5_0= ruleValidID |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_126); |
| 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; |
| |
| } |
| |
| // InternalTableDSL.g:9730:3: (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? |
| int alt133=2; |
| int LA133_0 = input.LA(1); |
| |
| if ( (LA133_0==92) ) { |
| alt133=1; |
| } |
| switch (alt133) { |
| case 1 : |
| // InternalTableDSL.g:9731:4: otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) |
| { |
| otherlv_6=(Token)match(input,92,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXVariableDeclarationAccess().getEqualsSignKeyword_3_0()); |
| |
| } |
| // InternalTableDSL.g:9735:4: ( (lv_right_7_0= ruleXExpression ) ) |
| // InternalTableDSL.g:9736:5: (lv_right_7_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:9736:5: (lv_right_7_0= ruleXExpression ) |
| // InternalTableDSL.g:9737: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" |
| // InternalTableDSL.g:9759:1: entryRuleJvmFormalParameter returns [EObject current=null] : iv_ruleJvmFormalParameter= ruleJvmFormalParameter EOF ; |
| public final EObject entryRuleJvmFormalParameter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmFormalParameter = null; |
| |
| |
| try { |
| // InternalTableDSL.g:9759:59: (iv_ruleJvmFormalParameter= ruleJvmFormalParameter EOF ) |
| // InternalTableDSL.g:9760: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" |
| // InternalTableDSL.g:9766: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 { |
| // InternalTableDSL.g:9772:2: ( ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) ) |
| // InternalTableDSL.g:9773:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) |
| { |
| // InternalTableDSL.g:9773:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) |
| // InternalTableDSL.g:9774:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) |
| { |
| // InternalTableDSL.g:9774:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? |
| int alt134=2; |
| int LA134_0 = input.LA(1); |
| |
| if ( (LA134_0==RULE_ID) ) { |
| int LA134_1 = input.LA(2); |
| |
| if ( (LA134_1==RULE_ID||LA134_1==78||LA134_1==112||LA134_1==119) ) { |
| alt134=1; |
| } |
| } |
| else if ( (LA134_0==93||LA134_0==132) ) { |
| alt134=1; |
| } |
| switch (alt134) { |
| case 1 : |
| // InternalTableDSL.g:9775:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| { |
| // InternalTableDSL.g:9775:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| // InternalTableDSL.g:9776: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; |
| |
| } |
| |
| // InternalTableDSL.g:9793:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalTableDSL.g:9794:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalTableDSL.g:9794:4: (lv_name_1_0= ruleValidID ) |
| // InternalTableDSL.g:9795: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" |
| // InternalTableDSL.g:9816:1: entryRuleFullJvmFormalParameter returns [EObject current=null] : iv_ruleFullJvmFormalParameter= ruleFullJvmFormalParameter EOF ; |
| public final EObject entryRuleFullJvmFormalParameter() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleFullJvmFormalParameter = null; |
| |
| |
| try { |
| // InternalTableDSL.g:9816:63: (iv_ruleFullJvmFormalParameter= ruleFullJvmFormalParameter EOF ) |
| // InternalTableDSL.g:9817: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" |
| // InternalTableDSL.g:9823: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 { |
| // InternalTableDSL.g:9829:2: ( ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) ) |
| // InternalTableDSL.g:9830:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) |
| { |
| // InternalTableDSL.g:9830:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) |
| // InternalTableDSL.g:9831:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) |
| { |
| // InternalTableDSL.g:9831:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) |
| // InternalTableDSL.g:9832:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| { |
| // InternalTableDSL.g:9832:4: (lv_parameterType_0_0= ruleJvmTypeReference ) |
| // InternalTableDSL.g:9833: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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:9850:3: ( (lv_name_1_0= ruleValidID ) ) |
| // InternalTableDSL.g:9851:4: (lv_name_1_0= ruleValidID ) |
| { |
| // InternalTableDSL.g:9851:4: (lv_name_1_0= ruleValidID ) |
| // InternalTableDSL.g:9852: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" |
| // InternalTableDSL.g:9873:1: entryRuleXFeatureCall returns [EObject current=null] : iv_ruleXFeatureCall= ruleXFeatureCall EOF ; |
| public final EObject entryRuleXFeatureCall() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXFeatureCall = null; |
| |
| |
| try { |
| // InternalTableDSL.g:9873:53: (iv_ruleXFeatureCall= ruleXFeatureCall EOF ) |
| // InternalTableDSL.g:9874: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" |
| // InternalTableDSL.g:9880: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 { |
| // InternalTableDSL.g:9886: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 ) )? ) ) |
| // InternalTableDSL.g:9887: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 ) )? ) |
| { |
| // InternalTableDSL.g:9887: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 ) )? ) |
| // InternalTableDSL.g:9888: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 ) )? |
| { |
| // InternalTableDSL.g:9888:3: () |
| // InternalTableDSL.g:9889:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXFeatureCallAccess().getXFeatureCallAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:9895:3: (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? |
| int alt136=2; |
| int LA136_0 = input.LA(1); |
| |
| if ( (LA136_0==119) ) { |
| alt136=1; |
| } |
| switch (alt136) { |
| case 1 : |
| // InternalTableDSL.g:9896:4: otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' |
| { |
| otherlv_1=(Token)match(input,119,FOLLOW_97); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXFeatureCallAccess().getLessThanSignKeyword_1_0()); |
| |
| } |
| // InternalTableDSL.g:9900:4: ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) |
| // InternalTableDSL.g:9901:5: (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalTableDSL.g:9901:5: (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) |
| // InternalTableDSL.g:9902:6: lv_typeArguments_2_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_98); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:9919:4: (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* |
| loop135: |
| do { |
| int alt135=2; |
| int LA135_0 = input.LA(1); |
| |
| if ( (LA135_0==110) ) { |
| alt135=1; |
| } |
| |
| |
| switch (alt135) { |
| case 1 : |
| // InternalTableDSL.g:9920:5: otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_3=(Token)match(input,110,FOLLOW_97); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXFeatureCallAccess().getCommaKeyword_1_2_0()); |
| |
| } |
| // InternalTableDSL.g:9924:5: ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) |
| // InternalTableDSL.g:9925:6: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalTableDSL.g:9925:6: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| // InternalTableDSL.g:9926:7: lv_typeArguments_4_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_98); |
| 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 loop135; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,120,FOLLOW_96); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXFeatureCallAccess().getGreaterThanSignKeyword_1_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalTableDSL.g:9949:3: ( ( ruleIdOrSuper ) ) |
| // InternalTableDSL.g:9950:4: ( ruleIdOrSuper ) |
| { |
| // InternalTableDSL.g:9950:4: ( ruleIdOrSuper ) |
| // InternalTableDSL.g:9951: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_127); |
| ruleIdOrSuper(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:9965: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 alt139=2; |
| alt139 = dfa139.predict(input); |
| switch (alt139) { |
| case 1 : |
| // InternalTableDSL.g:9966: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= ')' |
| { |
| // InternalTableDSL.g:9966:4: ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) |
| // InternalTableDSL.g:9967:5: ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) |
| { |
| // InternalTableDSL.g:9971:5: (lv_explicitOperationCall_7_0= '(' ) |
| // InternalTableDSL.g:9972:6: lv_explicitOperationCall_7_0= '(' |
| { |
| lv_explicitOperationCall_7_0=(Token)match(input,93,FOLLOW_100); 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, "("); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:9984:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? |
| int alt138=3; |
| alt138 = dfa138.predict(input); |
| switch (alt138) { |
| case 1 : |
| // InternalTableDSL.g:9985:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) |
| { |
| // InternalTableDSL.g:9985:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) |
| // InternalTableDSL.g:9986:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) |
| { |
| // InternalTableDSL.g:10011:6: (lv_featureCallArguments_8_0= ruleXShortClosure ) |
| // InternalTableDSL.g:10012:7: lv_featureCallArguments_8_0= ruleXShortClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXShortClosureParserRuleCall_3_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_55); |
| 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 : |
| // InternalTableDSL.g:10030:5: ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) |
| { |
| // InternalTableDSL.g:10030:5: ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) |
| // InternalTableDSL.g:10031:6: ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* |
| { |
| // InternalTableDSL.g:10031:6: ( (lv_featureCallArguments_9_0= ruleXExpression ) ) |
| // InternalTableDSL.g:10032:7: (lv_featureCallArguments_9_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:10032:7: (lv_featureCallArguments_9_0= ruleXExpression ) |
| // InternalTableDSL.g:10033:8: lv_featureCallArguments_9_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_71); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:10050:6: (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* |
| loop137: |
| do { |
| int alt137=2; |
| int LA137_0 = input.LA(1); |
| |
| if ( (LA137_0==110) ) { |
| alt137=1; |
| } |
| |
| |
| switch (alt137) { |
| case 1 : |
| // InternalTableDSL.g:10051:7: otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) |
| { |
| otherlv_10=(Token)match(input,110,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_10, grammarAccess.getXFeatureCallAccess().getCommaKeyword_3_1_1_1_0()); |
| |
| } |
| // InternalTableDSL.g:10055:7: ( (lv_featureCallArguments_11_0= ruleXExpression ) ) |
| // InternalTableDSL.g:10056:8: (lv_featureCallArguments_11_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:10056:8: (lv_featureCallArguments_11_0= ruleXExpression ) |
| // InternalTableDSL.g:10057:9: lv_featureCallArguments_11_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_71); |
| 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 loop137; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_12=(Token)match(input,94,FOLLOW_128); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_12, grammarAccess.getXFeatureCallAccess().getRightParenthesisKeyword_3_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalTableDSL.g:10082:3: ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? |
| int alt140=2; |
| alt140 = dfa140.predict(input); |
| switch (alt140) { |
| case 1 : |
| // InternalTableDSL.g:10083:4: ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) |
| { |
| // InternalTableDSL.g:10089:4: (lv_featureCallArguments_13_0= ruleXClosure ) |
| // InternalTableDSL.g:10090: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" |
| // InternalTableDSL.g:10111:1: entryRuleFeatureCallID returns [String current=null] : iv_ruleFeatureCallID= ruleFeatureCallID EOF ; |
| public final String entryRuleFeatureCallID() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleFeatureCallID = null; |
| |
| |
| try { |
| // InternalTableDSL.g:10111:53: (iv_ruleFeatureCallID= ruleFeatureCallID EOF ) |
| // InternalTableDSL.g:10112: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" |
| // InternalTableDSL.g:10118: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 { |
| // InternalTableDSL.g:10124:2: ( (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) ) |
| // InternalTableDSL.g:10125:2: (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) |
| { |
| // InternalTableDSL.g:10125:2: (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) |
| int alt141=5; |
| switch ( input.LA(1) ) { |
| case RULE_ID: |
| { |
| alt141=1; |
| } |
| break; |
| case 155: |
| { |
| alt141=2; |
| } |
| break; |
| case 104: |
| { |
| alt141=3; |
| } |
| break; |
| case 103: |
| { |
| alt141=4; |
| } |
| break; |
| case 105: |
| { |
| alt141=5; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 141, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt141) { |
| case 1 : |
| // InternalTableDSL.g:10126: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 : |
| // InternalTableDSL.g:10137:3: kw= 'extends' |
| { |
| kw=(Token)match(input,155,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getExtendsKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| case 3 : |
| // InternalTableDSL.g:10143:3: kw= 'static' |
| { |
| kw=(Token)match(input,104,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getStaticKeyword_2()); |
| |
| } |
| |
| } |
| break; |
| case 4 : |
| // InternalTableDSL.g:10149:3: kw= 'import' |
| { |
| kw=(Token)match(input,103,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getImportKeyword_3()); |
| |
| } |
| |
| } |
| break; |
| case 5 : |
| // InternalTableDSL.g:10155:3: kw= 'extension' |
| { |
| kw=(Token)match(input,105,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" |
| // InternalTableDSL.g:10164:1: entryRuleIdOrSuper returns [String current=null] : iv_ruleIdOrSuper= ruleIdOrSuper EOF ; |
| public final String entryRuleIdOrSuper() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleIdOrSuper = null; |
| |
| |
| try { |
| // InternalTableDSL.g:10164:49: (iv_ruleIdOrSuper= ruleIdOrSuper EOF ) |
| // InternalTableDSL.g:10165: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" |
| // InternalTableDSL.g:10171: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 { |
| // InternalTableDSL.g:10177:2: ( (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) ) |
| // InternalTableDSL.g:10178:2: (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) |
| { |
| // InternalTableDSL.g:10178:2: (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) |
| int alt142=2; |
| int LA142_0 = input.LA(1); |
| |
| if ( (LA142_0==RULE_ID||(LA142_0>=103 && LA142_0<=105)||LA142_0==155) ) { |
| alt142=1; |
| } |
| else if ( (LA142_0==156) ) { |
| alt142=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 142, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt142) { |
| case 1 : |
| // InternalTableDSL.g:10179: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 : |
| // InternalTableDSL.g:10190:3: kw= 'super' |
| { |
| kw=(Token)match(input,156,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" |
| // InternalTableDSL.g:10199:1: entryRuleXConstructorCall returns [EObject current=null] : iv_ruleXConstructorCall= ruleXConstructorCall EOF ; |
| public final EObject entryRuleXConstructorCall() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXConstructorCall = null; |
| |
| |
| try { |
| // InternalTableDSL.g:10199:57: (iv_ruleXConstructorCall= ruleXConstructorCall EOF ) |
| // InternalTableDSL.g:10200: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" |
| // InternalTableDSL.g:10206: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 { |
| // InternalTableDSL.g:10212: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 ) )? ) ) |
| // InternalTableDSL.g:10213: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 ) )? ) |
| { |
| // InternalTableDSL.g:10213: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 ) )? ) |
| // InternalTableDSL.g:10214: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 ) )? |
| { |
| // InternalTableDSL.g:10214:3: () |
| // InternalTableDSL.g:10215:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXConstructorCallAccess().getXConstructorCallAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,157,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXConstructorCallAccess().getNewKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:10225:3: ( ( ruleQualifiedName ) ) |
| // InternalTableDSL.g:10226:4: ( ruleQualifiedName ) |
| { |
| // InternalTableDSL.g:10226:4: ( ruleQualifiedName ) |
| // InternalTableDSL.g:10227: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_129); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:10241:3: ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? |
| int alt144=2; |
| alt144 = dfa144.predict(input); |
| switch (alt144) { |
| case 1 : |
| // InternalTableDSL.g:10242:4: ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' |
| { |
| // InternalTableDSL.g:10242:4: ( ( '<' )=>otherlv_3= '<' ) |
| // InternalTableDSL.g:10243:5: ( '<' )=>otherlv_3= '<' |
| { |
| otherlv_3=(Token)match(input,119,FOLLOW_97); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXConstructorCallAccess().getLessThanSignKeyword_3_0()); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:10249:4: ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) |
| // InternalTableDSL.g:10250:5: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalTableDSL.g:10250:5: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) |
| // InternalTableDSL.g:10251:6: lv_typeArguments_4_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_1_0()); |
| |
| } |
| pushFollow(FOLLOW_98); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:10268:4: (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* |
| loop143: |
| do { |
| int alt143=2; |
| int LA143_0 = input.LA(1); |
| |
| if ( (LA143_0==110) ) { |
| alt143=1; |
| } |
| |
| |
| switch (alt143) { |
| case 1 : |
| // InternalTableDSL.g:10269:5: otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_5=(Token)match(input,110,FOLLOW_97); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXConstructorCallAccess().getCommaKeyword_3_2_0()); |
| |
| } |
| // InternalTableDSL.g:10273:5: ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) |
| // InternalTableDSL.g:10274:6: (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalTableDSL.g:10274:6: (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) |
| // InternalTableDSL.g:10275:7: lv_typeArguments_6_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_98); |
| 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 loop143; |
| } |
| } while (true); |
| |
| otherlv_7=(Token)match(input,120,FOLLOW_127); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getXConstructorCallAccess().getGreaterThanSignKeyword_3_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalTableDSL.g:10298: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 alt147=2; |
| alt147 = dfa147.predict(input); |
| switch (alt147) { |
| case 1 : |
| // InternalTableDSL.g:10299: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= ')' |
| { |
| // InternalTableDSL.g:10299:4: ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) |
| // InternalTableDSL.g:10300:5: ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) |
| { |
| // InternalTableDSL.g:10304:5: (lv_explicitConstructorCall_8_0= '(' ) |
| // InternalTableDSL.g:10305:6: lv_explicitConstructorCall_8_0= '(' |
| { |
| lv_explicitConstructorCall_8_0=(Token)match(input,93,FOLLOW_100); 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, "("); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:10317:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? |
| int alt146=3; |
| alt146 = dfa146.predict(input); |
| switch (alt146) { |
| case 1 : |
| // InternalTableDSL.g:10318:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) |
| { |
| // InternalTableDSL.g:10318:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) |
| // InternalTableDSL.g:10319:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) |
| { |
| // InternalTableDSL.g:10344:6: (lv_arguments_9_0= ruleXShortClosure ) |
| // InternalTableDSL.g:10345:7: lv_arguments_9_0= ruleXShortClosure |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXShortClosureParserRuleCall_4_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_55); |
| 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 : |
| // InternalTableDSL.g:10363:5: ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) |
| { |
| // InternalTableDSL.g:10363:5: ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) |
| // InternalTableDSL.g:10364:6: ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* |
| { |
| // InternalTableDSL.g:10364:6: ( (lv_arguments_10_0= ruleXExpression ) ) |
| // InternalTableDSL.g:10365:7: (lv_arguments_10_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:10365:7: (lv_arguments_10_0= ruleXExpression ) |
| // InternalTableDSL.g:10366:8: lv_arguments_10_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_71); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:10383:6: (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* |
| loop145: |
| do { |
| int alt145=2; |
| int LA145_0 = input.LA(1); |
| |
| if ( (LA145_0==110) ) { |
| alt145=1; |
| } |
| |
| |
| switch (alt145) { |
| case 1 : |
| // InternalTableDSL.g:10384:7: otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) |
| { |
| otherlv_11=(Token)match(input,110,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getXConstructorCallAccess().getCommaKeyword_4_1_1_1_0()); |
| |
| } |
| // InternalTableDSL.g:10388:7: ( (lv_arguments_12_0= ruleXExpression ) ) |
| // InternalTableDSL.g:10389:8: (lv_arguments_12_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:10389:8: (lv_arguments_12_0= ruleXExpression ) |
| // InternalTableDSL.g:10390:9: lv_arguments_12_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_71); |
| 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 loop145; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_13=(Token)match(input,94,FOLLOW_128); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getXConstructorCallAccess().getRightParenthesisKeyword_4_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| // InternalTableDSL.g:10415:3: ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? |
| int alt148=2; |
| alt148 = dfa148.predict(input); |
| switch (alt148) { |
| case 1 : |
| // InternalTableDSL.g:10416:4: ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) |
| { |
| // InternalTableDSL.g:10422:4: (lv_arguments_14_0= ruleXClosure ) |
| // InternalTableDSL.g:10423: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" |
| // InternalTableDSL.g:10444:1: entryRuleXBooleanLiteral returns [EObject current=null] : iv_ruleXBooleanLiteral= ruleXBooleanLiteral EOF ; |
| public final EObject entryRuleXBooleanLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXBooleanLiteral = null; |
| |
| |
| try { |
| // InternalTableDSL.g:10444:56: (iv_ruleXBooleanLiteral= ruleXBooleanLiteral EOF ) |
| // InternalTableDSL.g:10445: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" |
| // InternalTableDSL.g:10451: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 { |
| // InternalTableDSL.g:10457:2: ( ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) ) |
| // InternalTableDSL.g:10458:2: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) |
| { |
| // InternalTableDSL.g:10458:2: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) |
| // InternalTableDSL.g:10459:3: () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) |
| { |
| // InternalTableDSL.g:10459:3: () |
| // InternalTableDSL.g:10460:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXBooleanLiteralAccess().getXBooleanLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:10466:3: (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) |
| int alt149=2; |
| int LA149_0 = input.LA(1); |
| |
| if ( (LA149_0==158) ) { |
| alt149=1; |
| } |
| else if ( (LA149_0==159) ) { |
| alt149=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 149, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt149) { |
| case 1 : |
| // InternalTableDSL.g:10467:4: otherlv_1= 'false' |
| { |
| otherlv_1=(Token)match(input,158,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXBooleanLiteralAccess().getFalseKeyword_1_0()); |
| |
| } |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:10472:4: ( (lv_isTrue_2_0= 'true' ) ) |
| { |
| // InternalTableDSL.g:10472:4: ( (lv_isTrue_2_0= 'true' ) ) |
| // InternalTableDSL.g:10473:5: (lv_isTrue_2_0= 'true' ) |
| { |
| // InternalTableDSL.g:10473:5: (lv_isTrue_2_0= 'true' ) |
| // InternalTableDSL.g:10474:6: lv_isTrue_2_0= 'true' |
| { |
| lv_isTrue_2_0=(Token)match(input,159,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" |
| // InternalTableDSL.g:10491:1: entryRuleXNullLiteral returns [EObject current=null] : iv_ruleXNullLiteral= ruleXNullLiteral EOF ; |
| public final EObject entryRuleXNullLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXNullLiteral = null; |
| |
| |
| try { |
| // InternalTableDSL.g:10491:53: (iv_ruleXNullLiteral= ruleXNullLiteral EOF ) |
| // InternalTableDSL.g:10492: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" |
| // InternalTableDSL.g:10498:1: ruleXNullLiteral returns [EObject current=null] : ( () otherlv_1= 'null' ) ; |
| public final EObject ruleXNullLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| Token otherlv_1=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:10504:2: ( ( () otherlv_1= 'null' ) ) |
| // InternalTableDSL.g:10505:2: ( () otherlv_1= 'null' ) |
| { |
| // InternalTableDSL.g:10505:2: ( () otherlv_1= 'null' ) |
| // InternalTableDSL.g:10506:3: () otherlv_1= 'null' |
| { |
| // InternalTableDSL.g:10506:3: () |
| // InternalTableDSL.g:10507:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXNullLiteralAccess().getXNullLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,160,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" |
| // InternalTableDSL.g:10521:1: entryRuleXNumberLiteral returns [EObject current=null] : iv_ruleXNumberLiteral= ruleXNumberLiteral EOF ; |
| public final EObject entryRuleXNumberLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXNumberLiteral = null; |
| |
| |
| try { |
| // InternalTableDSL.g:10521:55: (iv_ruleXNumberLiteral= ruleXNumberLiteral EOF ) |
| // InternalTableDSL.g:10522: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" |
| // InternalTableDSL.g:10528: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 { |
| // InternalTableDSL.g:10534:2: ( ( () ( (lv_value_1_0= ruleNumber ) ) ) ) |
| // InternalTableDSL.g:10535:2: ( () ( (lv_value_1_0= ruleNumber ) ) ) |
| { |
| // InternalTableDSL.g:10535:2: ( () ( (lv_value_1_0= ruleNumber ) ) ) |
| // InternalTableDSL.g:10536:3: () ( (lv_value_1_0= ruleNumber ) ) |
| { |
| // InternalTableDSL.g:10536:3: () |
| // InternalTableDSL.g:10537:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXNumberLiteralAccess().getXNumberLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:10543:3: ( (lv_value_1_0= ruleNumber ) ) |
| // InternalTableDSL.g:10544:4: (lv_value_1_0= ruleNumber ) |
| { |
| // InternalTableDSL.g:10544:4: (lv_value_1_0= ruleNumber ) |
| // InternalTableDSL.g:10545: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" |
| // InternalTableDSL.g:10566:1: entryRuleXStringLiteral returns [EObject current=null] : iv_ruleXStringLiteral= ruleXStringLiteral EOF ; |
| public final EObject entryRuleXStringLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXStringLiteral = null; |
| |
| |
| try { |
| // InternalTableDSL.g:10566:55: (iv_ruleXStringLiteral= ruleXStringLiteral EOF ) |
| // InternalTableDSL.g:10567: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" |
| // InternalTableDSL.g:10573: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 { |
| // InternalTableDSL.g:10579:2: ( ( () ( (lv_value_1_0= RULE_STRING ) ) ) ) |
| // InternalTableDSL.g:10580:2: ( () ( (lv_value_1_0= RULE_STRING ) ) ) |
| { |
| // InternalTableDSL.g:10580:2: ( () ( (lv_value_1_0= RULE_STRING ) ) ) |
| // InternalTableDSL.g:10581:3: () ( (lv_value_1_0= RULE_STRING ) ) |
| { |
| // InternalTableDSL.g:10581:3: () |
| // InternalTableDSL.g:10582:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXStringLiteralAccess().getXStringLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:10588:3: ( (lv_value_1_0= RULE_STRING ) ) |
| // InternalTableDSL.g:10589:4: (lv_value_1_0= RULE_STRING ) |
| { |
| // InternalTableDSL.g:10589:4: (lv_value_1_0= RULE_STRING ) |
| // InternalTableDSL.g:10590: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" |
| // InternalTableDSL.g:10610:1: entryRuleXTypeLiteral returns [EObject current=null] : iv_ruleXTypeLiteral= ruleXTypeLiteral EOF ; |
| public final EObject entryRuleXTypeLiteral() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXTypeLiteral = null; |
| |
| |
| try { |
| // InternalTableDSL.g:10610:53: (iv_ruleXTypeLiteral= ruleXTypeLiteral EOF ) |
| // InternalTableDSL.g:10611: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" |
| // InternalTableDSL.g:10617: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 { |
| // InternalTableDSL.g:10623:2: ( ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) ) |
| // InternalTableDSL.g:10624:2: ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) |
| { |
| // InternalTableDSL.g:10624:2: ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) |
| // InternalTableDSL.g:10625:3: () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' |
| { |
| // InternalTableDSL.g:10625:3: () |
| // InternalTableDSL.g:10626:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXTypeLiteralAccess().getXTypeLiteralAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,161,FOLLOW_110); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXTypeLiteralAccess().getTypeofKeyword_1()); |
| |
| } |
| otherlv_2=(Token)match(input,93,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXTypeLiteralAccess().getLeftParenthesisKeyword_2()); |
| |
| } |
| // InternalTableDSL.g:10640:3: ( ( ruleQualifiedName ) ) |
| // InternalTableDSL.g:10641:4: ( ruleQualifiedName ) |
| { |
| // InternalTableDSL.g:10641:4: ( ruleQualifiedName ) |
| // InternalTableDSL.g:10642: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_130); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:10656:3: ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* |
| loop150: |
| do { |
| int alt150=2; |
| int LA150_0 = input.LA(1); |
| |
| if ( (LA150_0==112) ) { |
| alt150=1; |
| } |
| |
| |
| switch (alt150) { |
| case 1 : |
| // InternalTableDSL.g:10657:4: (lv_arrayDimensions_4_0= ruleArrayBrackets ) |
| { |
| // InternalTableDSL.g:10657:4: (lv_arrayDimensions_4_0= ruleArrayBrackets ) |
| // InternalTableDSL.g:10658:5: lv_arrayDimensions_4_0= ruleArrayBrackets |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTypeLiteralAccess().getArrayDimensionsArrayBracketsParserRuleCall_4_0()); |
| |
| } |
| pushFollow(FOLLOW_130); |
| 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 loop150; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,94,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" |
| // InternalTableDSL.g:10683:1: entryRuleXThrowExpression returns [EObject current=null] : iv_ruleXThrowExpression= ruleXThrowExpression EOF ; |
| public final EObject entryRuleXThrowExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXThrowExpression = null; |
| |
| |
| try { |
| // InternalTableDSL.g:10683:57: (iv_ruleXThrowExpression= ruleXThrowExpression EOF ) |
| // InternalTableDSL.g:10684: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" |
| // InternalTableDSL.g:10690: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 { |
| // InternalTableDSL.g:10696:2: ( ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) ) |
| // InternalTableDSL.g:10697:2: ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) |
| { |
| // InternalTableDSL.g:10697:2: ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) |
| // InternalTableDSL.g:10698:3: () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) |
| { |
| // InternalTableDSL.g:10698:3: () |
| // InternalTableDSL.g:10699:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXThrowExpressionAccess().getXThrowExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,162,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXThrowExpressionAccess().getThrowKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:10709:3: ( (lv_expression_2_0= ruleXExpression ) ) |
| // InternalTableDSL.g:10710:4: (lv_expression_2_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:10710:4: (lv_expression_2_0= ruleXExpression ) |
| // InternalTableDSL.g:10711: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" |
| // InternalTableDSL.g:10732:1: entryRuleXReturnExpression returns [EObject current=null] : iv_ruleXReturnExpression= ruleXReturnExpression EOF ; |
| public final EObject entryRuleXReturnExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXReturnExpression = null; |
| |
| |
| try { |
| // InternalTableDSL.g:10732:58: (iv_ruleXReturnExpression= ruleXReturnExpression EOF ) |
| // InternalTableDSL.g:10733: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" |
| // InternalTableDSL.g:10739: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 { |
| // InternalTableDSL.g:10745: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 ) )? ) ) |
| // InternalTableDSL.g:10746: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 ) )? ) |
| { |
| // InternalTableDSL.g:10746: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 ) )? ) |
| // InternalTableDSL.g:10747: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 ) )? |
| { |
| // InternalTableDSL.g:10747:3: () |
| // InternalTableDSL.g:10748:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXReturnExpressionAccess().getXReturnExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,163,FOLLOW_131); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXReturnExpressionAccess().getReturnKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:10758: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 alt151=2; |
| alt151 = dfa151.predict(input); |
| switch (alt151) { |
| case 1 : |
| // InternalTableDSL.g:10759: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 ) |
| { |
| // InternalTableDSL.g:10760:4: (lv_expression_2_0= ruleXExpression ) |
| // InternalTableDSL.g:10761: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" |
| // InternalTableDSL.g:10782:1: entryRuleXTryCatchFinallyExpression returns [EObject current=null] : iv_ruleXTryCatchFinallyExpression= ruleXTryCatchFinallyExpression EOF ; |
| public final EObject entryRuleXTryCatchFinallyExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXTryCatchFinallyExpression = null; |
| |
| |
| try { |
| // InternalTableDSL.g:10782:67: (iv_ruleXTryCatchFinallyExpression= ruleXTryCatchFinallyExpression EOF ) |
| // InternalTableDSL.g:10783: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" |
| // InternalTableDSL.g:10789: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 { |
| // InternalTableDSL.g:10795: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 ) ) ) ) ) ) |
| // InternalTableDSL.g:10796: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 ) ) ) ) ) |
| { |
| // InternalTableDSL.g:10796: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 ) ) ) ) ) |
| // InternalTableDSL.g:10797: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 ) ) ) ) |
| { |
| // InternalTableDSL.g:10797:3: () |
| // InternalTableDSL.g:10798:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,164,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:10808:3: ( (lv_expression_2_0= ruleXExpression ) ) |
| // InternalTableDSL.g:10809:4: (lv_expression_2_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:10809:4: (lv_expression_2_0= ruleXExpression ) |
| // InternalTableDSL.g:10810:5: lv_expression_2_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_132); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:10827: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 alt154=2; |
| int LA154_0 = input.LA(1); |
| |
| if ( (LA154_0==167) ) { |
| alt154=1; |
| } |
| else if ( (LA154_0==165) ) { |
| alt154=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 154, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt154) { |
| case 1 : |
| // InternalTableDSL.g:10828:4: ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) |
| { |
| // InternalTableDSL.g:10828:4: ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) |
| // InternalTableDSL.g:10829:5: ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? |
| { |
| // InternalTableDSL.g:10829:5: ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ |
| int cnt152=0; |
| loop152: |
| do { |
| int alt152=2; |
| int LA152_0 = input.LA(1); |
| |
| if ( (LA152_0==167) ) { |
| int LA152_2 = input.LA(2); |
| |
| if ( (synpred44_InternalTableDSL()) ) { |
| alt152=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt152) { |
| case 1 : |
| // InternalTableDSL.g:10830:6: ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) |
| { |
| // InternalTableDSL.g:10831:6: (lv_catchClauses_3_0= ruleXCatchClause ) |
| // InternalTableDSL.g:10832:7: lv_catchClauses_3_0= ruleXCatchClause |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesXCatchClauseParserRuleCall_3_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_133); |
| 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 ( cnt152 >= 1 ) break loop152; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(152, input); |
| throw eee; |
| } |
| cnt152++; |
| } while (true); |
| |
| // InternalTableDSL.g:10849:5: ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? |
| int alt153=2; |
| int LA153_0 = input.LA(1); |
| |
| if ( (LA153_0==165) ) { |
| int LA153_1 = input.LA(2); |
| |
| if ( (synpred45_InternalTableDSL()) ) { |
| alt153=1; |
| } |
| } |
| switch (alt153) { |
| case 1 : |
| // InternalTableDSL.g:10850:6: ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) |
| { |
| // InternalTableDSL.g:10850:6: ( ( 'finally' )=>otherlv_4= 'finally' ) |
| // InternalTableDSL.g:10851:7: ( 'finally' )=>otherlv_4= 'finally' |
| { |
| otherlv_4=(Token)match(input,165,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0()); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:10857:6: ( (lv_finallyExpression_5_0= ruleXExpression ) ) |
| // InternalTableDSL.g:10858:7: (lv_finallyExpression_5_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:10858:7: (lv_finallyExpression_5_0= ruleXExpression ) |
| // InternalTableDSL.g:10859: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 : |
| // InternalTableDSL.g:10879:4: (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) |
| { |
| // InternalTableDSL.g:10879:4: (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) |
| // InternalTableDSL.g:10880:5: otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) |
| { |
| otherlv_6=(Token)match(input,165,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_6, grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0()); |
| |
| } |
| // InternalTableDSL.g:10884:5: ( (lv_finallyExpression_7_0= ruleXExpression ) ) |
| // InternalTableDSL.g:10885:6: (lv_finallyExpression_7_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:10885:6: (lv_finallyExpression_7_0= ruleXExpression ) |
| // InternalTableDSL.g:10886: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" |
| // InternalTableDSL.g:10909:1: entryRuleXSynchronizedExpression returns [EObject current=null] : iv_ruleXSynchronizedExpression= ruleXSynchronizedExpression EOF ; |
| public final EObject entryRuleXSynchronizedExpression() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXSynchronizedExpression = null; |
| |
| |
| try { |
| // InternalTableDSL.g:10909:64: (iv_ruleXSynchronizedExpression= ruleXSynchronizedExpression EOF ) |
| // InternalTableDSL.g:10910: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" |
| // InternalTableDSL.g:10916: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 { |
| // InternalTableDSL.g:10922:2: ( ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) ) |
| // InternalTableDSL.g:10923:2: ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) |
| { |
| // InternalTableDSL.g:10923:2: ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) |
| // InternalTableDSL.g:10924:3: ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) |
| { |
| // InternalTableDSL.g:10924:3: ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) |
| // InternalTableDSL.g:10925:4: ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) |
| { |
| // InternalTableDSL.g:10932:4: ( () otherlv_1= 'synchronized' otherlv_2= '(' ) |
| // InternalTableDSL.g:10933:5: () otherlv_1= 'synchronized' otherlv_2= '(' |
| { |
| // InternalTableDSL.g:10933:5: () |
| // InternalTableDSL.g:10934:6: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getXSynchronizedExpressionAccess().getXSynchronizedExpressionAction_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,166,FOLLOW_110); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXSynchronizedExpressionAccess().getSynchronizedKeyword_0_0_1()); |
| |
| } |
| otherlv_2=(Token)match(input,93,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXSynchronizedExpressionAccess().getLeftParenthesisKeyword_0_0_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:10950:3: ( (lv_param_3_0= ruleXExpression ) ) |
| // InternalTableDSL.g:10951:4: (lv_param_3_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:10951:4: (lv_param_3_0= ruleXExpression ) |
| // InternalTableDSL.g:10952:5: lv_param_3_0= ruleXExpression |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXSynchronizedExpressionAccess().getParamXExpressionParserRuleCall_1_0()); |
| |
| } |
| pushFollow(FOLLOW_55); |
| 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,94,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXSynchronizedExpressionAccess().getRightParenthesisKeyword_2()); |
| |
| } |
| // InternalTableDSL.g:10973:3: ( (lv_expression_5_0= ruleXExpression ) ) |
| // InternalTableDSL.g:10974:4: (lv_expression_5_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:10974:4: (lv_expression_5_0= ruleXExpression ) |
| // InternalTableDSL.g:10975: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" |
| // InternalTableDSL.g:10996:1: entryRuleXCatchClause returns [EObject current=null] : iv_ruleXCatchClause= ruleXCatchClause EOF ; |
| public final EObject entryRuleXCatchClause() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXCatchClause = null; |
| |
| |
| try { |
| // InternalTableDSL.g:10996:53: (iv_ruleXCatchClause= ruleXCatchClause EOF ) |
| // InternalTableDSL.g:10997: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" |
| // InternalTableDSL.g:11003: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 { |
| // InternalTableDSL.g:11009:2: ( ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) ) |
| // InternalTableDSL.g:11010:2: ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) |
| { |
| // InternalTableDSL.g:11010:2: ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) |
| // InternalTableDSL.g:11011:3: ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) |
| { |
| // InternalTableDSL.g:11011:3: ( ( 'catch' )=>otherlv_0= 'catch' ) |
| // InternalTableDSL.g:11012:4: ( 'catch' )=>otherlv_0= 'catch' |
| { |
| otherlv_0=(Token)match(input,167,FOLLOW_110); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getXCatchClauseAccess().getCatchKeyword_0()); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,93,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getXCatchClauseAccess().getLeftParenthesisKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:11022:3: ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) |
| // InternalTableDSL.g:11023:4: (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) |
| { |
| // InternalTableDSL.g:11023:4: (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) |
| // InternalTableDSL.g:11024:5: lv_declaredParam_2_0= ruleFullJvmFormalParameter |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXCatchClauseAccess().getDeclaredParamFullJvmFormalParameterParserRuleCall_2_0()); |
| |
| } |
| pushFollow(FOLLOW_55); |
| 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,94,FOLLOW_72); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getXCatchClauseAccess().getRightParenthesisKeyword_3()); |
| |
| } |
| // InternalTableDSL.g:11045:3: ( (lv_expression_4_0= ruleXExpression ) ) |
| // InternalTableDSL.g:11046:4: (lv_expression_4_0= ruleXExpression ) |
| { |
| // InternalTableDSL.g:11046:4: (lv_expression_4_0= ruleXExpression ) |
| // InternalTableDSL.g:11047: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" |
| // InternalTableDSL.g:11068:1: entryRuleQualifiedName returns [String current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ; |
| public final String entryRuleQualifiedName() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleQualifiedName = null; |
| |
| |
| try { |
| // InternalTableDSL.g:11068:53: (iv_ruleQualifiedName= ruleQualifiedName EOF ) |
| // InternalTableDSL.g:11069: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" |
| // InternalTableDSL.g:11075: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 { |
| // InternalTableDSL.g:11081:2: ( (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) ) |
| // InternalTableDSL.g:11082:2: (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) |
| { |
| // InternalTableDSL.g:11082:2: (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) |
| // InternalTableDSL.g:11083:3: this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_44); |
| 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(); |
| |
| } |
| // InternalTableDSL.g:11093:3: ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* |
| loop155: |
| do { |
| int alt155=2; |
| int LA155_0 = input.LA(1); |
| |
| if ( (LA155_0==78) ) { |
| int LA155_2 = input.LA(2); |
| |
| if ( (LA155_2==RULE_ID) ) { |
| int LA155_3 = input.LA(3); |
| |
| if ( (synpred48_InternalTableDSL()) ) { |
| alt155=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| switch (alt155) { |
| case 1 : |
| // InternalTableDSL.g:11094:4: ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID |
| { |
| // InternalTableDSL.g:11094:4: ( ( '.' )=>kw= '.' ) |
| // InternalTableDSL.g:11095:5: ( '.' )=>kw= '.' |
| { |
| kw=(Token)match(input,78,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_44); |
| 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 loop155; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleQualifiedName" |
| |
| |
| // $ANTLR start "entryRuleNumber" |
| // InternalTableDSL.g:11117: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 { |
| // InternalTableDSL.g:11119:2: (iv_ruleNumber= ruleNumber EOF ) |
| // InternalTableDSL.g:11120: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" |
| // InternalTableDSL.g:11129: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 { |
| // InternalTableDSL.g:11136: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 ) )? ) ) ) |
| // InternalTableDSL.g:11137: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 ) )? ) ) |
| { |
| // InternalTableDSL.g:11137: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 alt159=2; |
| int LA159_0 = input.LA(1); |
| |
| if ( (LA159_0==RULE_HEX) ) { |
| alt159=1; |
| } |
| else if ( (LA159_0==RULE_INT||LA159_0==RULE_DECIMAL) ) { |
| alt159=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 159, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt159) { |
| case 1 : |
| // InternalTableDSL.g:11138: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 : |
| // InternalTableDSL.g:11146:3: ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) |
| { |
| // InternalTableDSL.g:11146:3: ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) |
| // InternalTableDSL.g:11147:4: (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? |
| { |
| // InternalTableDSL.g:11147:4: (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) |
| int alt156=2; |
| int LA156_0 = input.LA(1); |
| |
| if ( (LA156_0==RULE_INT) ) { |
| alt156=1; |
| } |
| else if ( (LA156_0==RULE_DECIMAL) ) { |
| alt156=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 156, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt156) { |
| case 1 : |
| // InternalTableDSL.g:11148:5: this_INT_1= RULE_INT |
| { |
| this_INT_1=(Token)match(input,RULE_INT,FOLLOW_44); 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 : |
| // InternalTableDSL.g:11156:5: this_DECIMAL_2= RULE_DECIMAL |
| { |
| this_DECIMAL_2=(Token)match(input,RULE_DECIMAL,FOLLOW_44); 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; |
| |
| } |
| |
| // InternalTableDSL.g:11164:4: (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? |
| int alt158=2; |
| int LA158_0 = input.LA(1); |
| |
| if ( (LA158_0==78) ) { |
| int LA158_1 = input.LA(2); |
| |
| if ( (LA158_1==RULE_INT||LA158_1==RULE_DECIMAL) ) { |
| alt158=1; |
| } |
| } |
| switch (alt158) { |
| case 1 : |
| // InternalTableDSL.g:11165:5: kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) |
| { |
| kw=(Token)match(input,78,FOLLOW_134); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getNumberAccess().getFullStopKeyword_1_1_0()); |
| |
| } |
| // InternalTableDSL.g:11170:5: (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) |
| int alt157=2; |
| int LA157_0 = input.LA(1); |
| |
| if ( (LA157_0==RULE_INT) ) { |
| alt157=1; |
| } |
| else if ( (LA157_0==RULE_DECIMAL) ) { |
| alt157=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 157, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt157) { |
| case 1 : |
| // InternalTableDSL.g:11171: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 : |
| // InternalTableDSL.g:11179: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" |
| // InternalTableDSL.g:11196:1: entryRuleJvmTypeReference returns [EObject current=null] : iv_ruleJvmTypeReference= ruleJvmTypeReference EOF ; |
| public final EObject entryRuleJvmTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmTypeReference = null; |
| |
| |
| try { |
| // InternalTableDSL.g:11196:57: (iv_ruleJvmTypeReference= ruleJvmTypeReference EOF ) |
| // InternalTableDSL.g:11197: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" |
| // InternalTableDSL.g:11203: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 { |
| // InternalTableDSL.g:11209:2: ( ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) ) |
| // InternalTableDSL.g:11210:2: ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) |
| { |
| // InternalTableDSL.g:11210:2: ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) |
| int alt161=2; |
| int LA161_0 = input.LA(1); |
| |
| if ( (LA161_0==RULE_ID) ) { |
| alt161=1; |
| } |
| else if ( (LA161_0==93||LA161_0==132) ) { |
| alt161=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 161, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt161) { |
| case 1 : |
| // InternalTableDSL.g:11211:3: (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) |
| { |
| // InternalTableDSL.g:11211:3: (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) |
| // InternalTableDSL.g:11212:4: this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getJvmParameterizedTypeReferenceParserRuleCall_0_0()); |
| |
| } |
| pushFollow(FOLLOW_128); |
| this_JvmParameterizedTypeReference_0=ruleJvmParameterizedTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = this_JvmParameterizedTypeReference_0; |
| afterParserOrEnumRuleCall(); |
| |
| } |
| // InternalTableDSL.g:11220:4: ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* |
| loop160: |
| do { |
| int alt160=2; |
| int LA160_0 = input.LA(1); |
| |
| if ( (LA160_0==112) ) { |
| int LA160_2 = input.LA(2); |
| |
| if ( (LA160_2==113) ) { |
| int LA160_3 = input.LA(3); |
| |
| if ( (synpred49_InternalTableDSL()) ) { |
| alt160=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| switch (alt160) { |
| case 1 : |
| // InternalTableDSL.g:11221:5: ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) |
| { |
| // InternalTableDSL.g:11227:5: ( () ruleArrayBrackets ) |
| // InternalTableDSL.g:11228:6: () ruleArrayBrackets |
| { |
| // InternalTableDSL.g:11228:6: () |
| // InternalTableDSL.g:11229: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_128); |
| ruleArrayBrackets(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop160; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:11246: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" |
| // InternalTableDSL.g:11258:1: entryRuleArrayBrackets returns [String current=null] : iv_ruleArrayBrackets= ruleArrayBrackets EOF ; |
| public final String entryRuleArrayBrackets() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleArrayBrackets = null; |
| |
| |
| try { |
| // InternalTableDSL.g:11258:53: (iv_ruleArrayBrackets= ruleArrayBrackets EOF ) |
| // InternalTableDSL.g:11259: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" |
| // InternalTableDSL.g:11265:1: ruleArrayBrackets returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '[' kw= ']' ) ; |
| public final AntlrDatatypeRuleToken ruleArrayBrackets() throws RecognitionException { |
| AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
| |
| Token kw=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:11271:2: ( (kw= '[' kw= ']' ) ) |
| // InternalTableDSL.g:11272:2: (kw= '[' kw= ']' ) |
| { |
| // InternalTableDSL.g:11272:2: (kw= '[' kw= ']' ) |
| // InternalTableDSL.g:11273:3: kw= '[' kw= ']' |
| { |
| kw=(Token)match(input,112,FOLLOW_107); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getArrayBracketsAccess().getLeftSquareBracketKeyword_0()); |
| |
| } |
| kw=(Token)match(input,113,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" |
| // InternalTableDSL.g:11287:1: entryRuleXFunctionTypeRef returns [EObject current=null] : iv_ruleXFunctionTypeRef= ruleXFunctionTypeRef EOF ; |
| public final EObject entryRuleXFunctionTypeRef() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXFunctionTypeRef = null; |
| |
| |
| try { |
| // InternalTableDSL.g:11287:57: (iv_ruleXFunctionTypeRef= ruleXFunctionTypeRef EOF ) |
| // InternalTableDSL.g:11288: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" |
| // InternalTableDSL.g:11294: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 { |
| // InternalTableDSL.g:11300:2: ( ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) ) |
| // InternalTableDSL.g:11301:2: ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalTableDSL.g:11301:2: ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) |
| // InternalTableDSL.g:11302:3: (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) |
| { |
| // InternalTableDSL.g:11302:3: (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? |
| int alt164=2; |
| int LA164_0 = input.LA(1); |
| |
| if ( (LA164_0==93) ) { |
| alt164=1; |
| } |
| switch (alt164) { |
| case 1 : |
| // InternalTableDSL.g:11303:4: otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' |
| { |
| otherlv_0=(Token)match(input,93,FOLLOW_135); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getXFunctionTypeRefAccess().getLeftParenthesisKeyword_0_0()); |
| |
| } |
| // InternalTableDSL.g:11307:4: ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? |
| int alt163=2; |
| int LA163_0 = input.LA(1); |
| |
| if ( (LA163_0==RULE_ID||LA163_0==93||LA163_0==132) ) { |
| alt163=1; |
| } |
| switch (alt163) { |
| case 1 : |
| // InternalTableDSL.g:11308:5: ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* |
| { |
| // InternalTableDSL.g:11308:5: ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) |
| // InternalTableDSL.g:11309:6: (lv_paramTypes_1_0= ruleJvmTypeReference ) |
| { |
| // InternalTableDSL.g:11309:6: (lv_paramTypes_1_0= ruleJvmTypeReference ) |
| // InternalTableDSL.g:11310:7: lv_paramTypes_1_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_71); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:11327:5: (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* |
| loop162: |
| do { |
| int alt162=2; |
| int LA162_0 = input.LA(1); |
| |
| if ( (LA162_0==110) ) { |
| alt162=1; |
| } |
| |
| |
| switch (alt162) { |
| case 1 : |
| // InternalTableDSL.g:11328:6: otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_2=(Token)match(input,110,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_2, grammarAccess.getXFunctionTypeRefAccess().getCommaKeyword_0_1_1_0()); |
| |
| } |
| // InternalTableDSL.g:11332:6: ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) |
| // InternalTableDSL.g:11333:7: (lv_paramTypes_3_0= ruleJvmTypeReference ) |
| { |
| // InternalTableDSL.g:11333:7: (lv_paramTypes_3_0= ruleJvmTypeReference ) |
| // InternalTableDSL.g:11334:8: lv_paramTypes_3_0= ruleJvmTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_71); |
| 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 loop162; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_4=(Token)match(input,94,FOLLOW_136); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_4, grammarAccess.getXFunctionTypeRefAccess().getRightParenthesisKeyword_0_2()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| otherlv_5=(Token)match(input,132,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getXFunctionTypeRefAccess().getEqualsSignGreaterThanSignKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:11362:3: ( (lv_returnType_6_0= ruleJvmTypeReference ) ) |
| // InternalTableDSL.g:11363:4: (lv_returnType_6_0= ruleJvmTypeReference ) |
| { |
| // InternalTableDSL.g:11363:4: (lv_returnType_6_0= ruleJvmTypeReference ) |
| // InternalTableDSL.g:11364: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" |
| // InternalTableDSL.g:11385:1: entryRuleJvmParameterizedTypeReference returns [EObject current=null] : iv_ruleJvmParameterizedTypeReference= ruleJvmParameterizedTypeReference EOF ; |
| public final EObject entryRuleJvmParameterizedTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmParameterizedTypeReference = null; |
| |
| |
| try { |
| // InternalTableDSL.g:11385:70: (iv_ruleJvmParameterizedTypeReference= ruleJvmParameterizedTypeReference EOF ) |
| // InternalTableDSL.g:11386: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" |
| // InternalTableDSL.g:11392: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 { |
| // InternalTableDSL.g:11398: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= '>' )? )* )? ) ) |
| // InternalTableDSL.g:11399: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= '>' )? )* )? ) |
| { |
| // InternalTableDSL.g:11399: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= '>' )? )* )? ) |
| // InternalTableDSL.g:11400: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= '>' )? )* )? |
| { |
| // InternalTableDSL.g:11400:3: ( ( ruleQualifiedName ) ) |
| // InternalTableDSL.g:11401:4: ( ruleQualifiedName ) |
| { |
| // InternalTableDSL.g:11401:4: ( ruleQualifiedName ) |
| // InternalTableDSL.g:11402: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_137); |
| ruleQualifiedName(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:11416: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 alt169=2; |
| alt169 = dfa169.predict(input); |
| switch (alt169) { |
| case 1 : |
| // InternalTableDSL.g:11417: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= '>' )? )* |
| { |
| // InternalTableDSL.g:11417:4: ( ( '<' )=>otherlv_1= '<' ) |
| // InternalTableDSL.g:11418:5: ( '<' )=>otherlv_1= '<' |
| { |
| otherlv_1=(Token)match(input,119,FOLLOW_97); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_0()); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:11424:4: ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) |
| // InternalTableDSL.g:11425:5: (lv_arguments_2_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalTableDSL.g:11425:5: (lv_arguments_2_0= ruleJvmArgumentTypeReference ) |
| // InternalTableDSL.g:11426:6: lv_arguments_2_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_98); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:11443:4: (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* |
| loop165: |
| do { |
| int alt165=2; |
| int LA165_0 = input.LA(1); |
| |
| if ( (LA165_0==110) ) { |
| alt165=1; |
| } |
| |
| |
| switch (alt165) { |
| case 1 : |
| // InternalTableDSL.g:11444:5: otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_3=(Token)match(input,110,FOLLOW_97); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_3, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_2_0()); |
| |
| } |
| // InternalTableDSL.g:11448:5: ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) |
| // InternalTableDSL.g:11449:6: (lv_arguments_4_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalTableDSL.g:11449:6: (lv_arguments_4_0= ruleJvmArgumentTypeReference ) |
| // InternalTableDSL.g:11450:7: lv_arguments_4_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_98); |
| 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 loop165; |
| } |
| } while (true); |
| |
| otherlv_5=(Token)match(input,120,FOLLOW_44); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_5, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_3()); |
| |
| } |
| // InternalTableDSL.g:11472:4: ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* |
| loop168: |
| do { |
| int alt168=2; |
| int LA168_0 = input.LA(1); |
| |
| if ( (LA168_0==78) ) { |
| int LA168_2 = input.LA(2); |
| |
| if ( (LA168_2==RULE_ID) ) { |
| int LA168_3 = input.LA(3); |
| |
| if ( (synpred51_InternalTableDSL()) ) { |
| alt168=1; |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| switch (alt168) { |
| case 1 : |
| // InternalTableDSL.g:11473:5: ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? |
| { |
| // InternalTableDSL.g:11473:5: ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) |
| // InternalTableDSL.g:11474:6: ( ( () '.' ) )=> ( () otherlv_7= '.' ) |
| { |
| // InternalTableDSL.g:11480:6: ( () otherlv_7= '.' ) |
| // InternalTableDSL.g:11481:7: () otherlv_7= '.' |
| { |
| // InternalTableDSL.g:11481:7: () |
| // InternalTableDSL.g:11482:8: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElementAndSet( |
| grammarAccess.getJvmParameterizedTypeReferenceAccess().getJvmInnerTypeReferenceOuterAction_1_4_0_0_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_7=(Token)match(input,78,FOLLOW_4); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_7, grammarAccess.getJvmParameterizedTypeReferenceAccess().getFullStopKeyword_1_4_0_0_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:11494:5: ( ( ruleValidID ) ) |
| // InternalTableDSL.g:11495:6: ( ruleValidID ) |
| { |
| // InternalTableDSL.g:11495:6: ( ruleValidID ) |
| // InternalTableDSL.g:11496: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_138); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| afterParserOrEnumRuleCall(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:11510:5: ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? |
| int alt167=2; |
| alt167 = dfa167.predict(input); |
| switch (alt167) { |
| case 1 : |
| // InternalTableDSL.g:11511:6: ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' |
| { |
| // InternalTableDSL.g:11511:6: ( ( '<' )=>otherlv_9= '<' ) |
| // InternalTableDSL.g:11512:7: ( '<' )=>otherlv_9= '<' |
| { |
| otherlv_9=(Token)match(input,119,FOLLOW_97); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_9, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_4_2_0()); |
| |
| } |
| |
| } |
| |
| // InternalTableDSL.g:11518:6: ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) |
| // InternalTableDSL.g:11519:7: (lv_arguments_10_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalTableDSL.g:11519:7: (lv_arguments_10_0= ruleJvmArgumentTypeReference ) |
| // InternalTableDSL.g:11520:8: lv_arguments_10_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_98); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:11537:6: (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* |
| loop166: |
| do { |
| int alt166=2; |
| int LA166_0 = input.LA(1); |
| |
| if ( (LA166_0==110) ) { |
| alt166=1; |
| } |
| |
| |
| switch (alt166) { |
| case 1 : |
| // InternalTableDSL.g:11538:7: otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) |
| { |
| otherlv_11=(Token)match(input,110,FOLLOW_97); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_11, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_4_2_2_0()); |
| |
| } |
| // InternalTableDSL.g:11542:7: ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) |
| // InternalTableDSL.g:11543:8: (lv_arguments_12_0= ruleJvmArgumentTypeReference ) |
| { |
| // InternalTableDSL.g:11543:8: (lv_arguments_12_0= ruleJvmArgumentTypeReference ) |
| // InternalTableDSL.g:11544:9: lv_arguments_12_0= ruleJvmArgumentTypeReference |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_2_1_0()); |
| |
| } |
| pushFollow(FOLLOW_98); |
| 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 loop166; |
| } |
| } while (true); |
| |
| otherlv_13=(Token)match(input,120,FOLLOW_44); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_13, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_4_2_3()); |
| |
| } |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop168; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmParameterizedTypeReference" |
| |
| |
| // $ANTLR start "entryRuleJvmArgumentTypeReference" |
| // InternalTableDSL.g:11573:1: entryRuleJvmArgumentTypeReference returns [EObject current=null] : iv_ruleJvmArgumentTypeReference= ruleJvmArgumentTypeReference EOF ; |
| public final EObject entryRuleJvmArgumentTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmArgumentTypeReference = null; |
| |
| |
| try { |
| // InternalTableDSL.g:11573:65: (iv_ruleJvmArgumentTypeReference= ruleJvmArgumentTypeReference EOF ) |
| // InternalTableDSL.g:11574: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" |
| // InternalTableDSL.g:11580: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 { |
| // InternalTableDSL.g:11586:2: ( (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) ) |
| // InternalTableDSL.g:11587:2: (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) |
| { |
| // InternalTableDSL.g:11587:2: (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) |
| int alt170=2; |
| int LA170_0 = input.LA(1); |
| |
| if ( (LA170_0==RULE_ID||LA170_0==93||LA170_0==132) ) { |
| alt170=1; |
| } |
| else if ( (LA170_0==168) ) { |
| alt170=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 170, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt170) { |
| case 1 : |
| // InternalTableDSL.g:11588: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 : |
| // InternalTableDSL.g:11597: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" |
| // InternalTableDSL.g:11609:1: entryRuleJvmWildcardTypeReference returns [EObject current=null] : iv_ruleJvmWildcardTypeReference= ruleJvmWildcardTypeReference EOF ; |
| public final EObject entryRuleJvmWildcardTypeReference() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmWildcardTypeReference = null; |
| |
| |
| try { |
| // InternalTableDSL.g:11609:65: (iv_ruleJvmWildcardTypeReference= ruleJvmWildcardTypeReference EOF ) |
| // InternalTableDSL.g:11610: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" |
| // InternalTableDSL.g:11616: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 { |
| // InternalTableDSL.g:11622:2: ( ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) ) |
| // InternalTableDSL.g:11623:2: ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) |
| { |
| // InternalTableDSL.g:11623:2: ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) |
| // InternalTableDSL.g:11624:3: () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? |
| { |
| // InternalTableDSL.g:11624:3: () |
| // InternalTableDSL.g:11625:4: |
| { |
| if ( state.backtracking==0 ) { |
| |
| current = forceCreateModelElement( |
| grammarAccess.getJvmWildcardTypeReferenceAccess().getJvmWildcardTypeReferenceAction_0(), |
| current); |
| |
| } |
| |
| } |
| |
| otherlv_1=(Token)match(input,168,FOLLOW_139); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_1, grammarAccess.getJvmWildcardTypeReferenceAccess().getQuestionMarkKeyword_1()); |
| |
| } |
| // InternalTableDSL.g:11635:3: ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? |
| int alt173=3; |
| int LA173_0 = input.LA(1); |
| |
| if ( (LA173_0==155) ) { |
| alt173=1; |
| } |
| else if ( (LA173_0==156) ) { |
| alt173=2; |
| } |
| switch (alt173) { |
| case 1 : |
| // InternalTableDSL.g:11636:4: ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) |
| { |
| // InternalTableDSL.g:11636:4: ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) |
| // InternalTableDSL.g:11637:5: ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* |
| { |
| // InternalTableDSL.g:11637:5: ( (lv_constraints_2_0= ruleJvmUpperBound ) ) |
| // InternalTableDSL.g:11638:6: (lv_constraints_2_0= ruleJvmUpperBound ) |
| { |
| // InternalTableDSL.g:11638:6: (lv_constraints_2_0= ruleJvmUpperBound ) |
| // InternalTableDSL.g:11639:7: lv_constraints_2_0= ruleJvmUpperBound |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundParserRuleCall_2_0_0_0()); |
| |
| } |
| pushFollow(FOLLOW_140); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:11656:5: ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* |
| loop171: |
| do { |
| int alt171=2; |
| int LA171_0 = input.LA(1); |
| |
| if ( (LA171_0==169) ) { |
| alt171=1; |
| } |
| |
| |
| switch (alt171) { |
| case 1 : |
| // InternalTableDSL.g:11657:6: (lv_constraints_3_0= ruleJvmUpperBoundAnded ) |
| { |
| // InternalTableDSL.g:11657:6: (lv_constraints_3_0= ruleJvmUpperBoundAnded ) |
| // InternalTableDSL.g:11658:7: lv_constraints_3_0= ruleJvmUpperBoundAnded |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundAndedParserRuleCall_2_0_1_0()); |
| |
| } |
| pushFollow(FOLLOW_140); |
| 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 loop171; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:11677:4: ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) |
| { |
| // InternalTableDSL.g:11677:4: ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) |
| // InternalTableDSL.g:11678:5: ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* |
| { |
| // InternalTableDSL.g:11678:5: ( (lv_constraints_4_0= ruleJvmLowerBound ) ) |
| // InternalTableDSL.g:11679:6: (lv_constraints_4_0= ruleJvmLowerBound ) |
| { |
| // InternalTableDSL.g:11679:6: (lv_constraints_4_0= ruleJvmLowerBound ) |
| // InternalTableDSL.g:11680:7: lv_constraints_4_0= ruleJvmLowerBound |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundParserRuleCall_2_1_0_0()); |
| |
| } |
| pushFollow(FOLLOW_140); |
| 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(); |
| |
| } |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:11697:5: ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* |
| loop172: |
| do { |
| int alt172=2; |
| int LA172_0 = input.LA(1); |
| |
| if ( (LA172_0==169) ) { |
| alt172=1; |
| } |
| |
| |
| switch (alt172) { |
| case 1 : |
| // InternalTableDSL.g:11698:6: (lv_constraints_5_0= ruleJvmLowerBoundAnded ) |
| { |
| // InternalTableDSL.g:11698:6: (lv_constraints_5_0= ruleJvmLowerBoundAnded ) |
| // InternalTableDSL.g:11699:7: lv_constraints_5_0= ruleJvmLowerBoundAnded |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundAndedParserRuleCall_2_1_1_0()); |
| |
| } |
| pushFollow(FOLLOW_140); |
| 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 loop172; |
| } |
| } while (true); |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleJvmWildcardTypeReference" |
| |
| |
| // $ANTLR start "entryRuleJvmUpperBound" |
| // InternalTableDSL.g:11722:1: entryRuleJvmUpperBound returns [EObject current=null] : iv_ruleJvmUpperBound= ruleJvmUpperBound EOF ; |
| public final EObject entryRuleJvmUpperBound() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmUpperBound = null; |
| |
| |
| try { |
| // InternalTableDSL.g:11722:54: (iv_ruleJvmUpperBound= ruleJvmUpperBound EOF ) |
| // InternalTableDSL.g:11723: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" |
| // InternalTableDSL.g:11729: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 { |
| // InternalTableDSL.g:11735:2: ( (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalTableDSL.g:11736:2: (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalTableDSL.g:11736:2: (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalTableDSL.g:11737:3: otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,155,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAccess().getExtendsKeyword_0()); |
| |
| } |
| // InternalTableDSL.g:11741:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalTableDSL.g:11742:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalTableDSL.g:11742:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalTableDSL.g:11743: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" |
| // InternalTableDSL.g:11764:1: entryRuleJvmUpperBoundAnded returns [EObject current=null] : iv_ruleJvmUpperBoundAnded= ruleJvmUpperBoundAnded EOF ; |
| public final EObject entryRuleJvmUpperBoundAnded() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmUpperBoundAnded = null; |
| |
| |
| try { |
| // InternalTableDSL.g:11764:59: (iv_ruleJvmUpperBoundAnded= ruleJvmUpperBoundAnded EOF ) |
| // InternalTableDSL.g:11765: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" |
| // InternalTableDSL.g:11771: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 { |
| // InternalTableDSL.g:11777:2: ( (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalTableDSL.g:11778:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalTableDSL.g:11778:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalTableDSL.g:11779:3: otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,169,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAndedAccess().getAmpersandKeyword_0()); |
| |
| } |
| // InternalTableDSL.g:11783:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalTableDSL.g:11784:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalTableDSL.g:11784:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalTableDSL.g:11785: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" |
| // InternalTableDSL.g:11806:1: entryRuleJvmLowerBound returns [EObject current=null] : iv_ruleJvmLowerBound= ruleJvmLowerBound EOF ; |
| public final EObject entryRuleJvmLowerBound() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmLowerBound = null; |
| |
| |
| try { |
| // InternalTableDSL.g:11806:54: (iv_ruleJvmLowerBound= ruleJvmLowerBound EOF ) |
| // InternalTableDSL.g:11807: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" |
| // InternalTableDSL.g:11813: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 { |
| // InternalTableDSL.g:11819:2: ( (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalTableDSL.g:11820:2: (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalTableDSL.g:11820:2: (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalTableDSL.g:11821:3: otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,156,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAccess().getSuperKeyword_0()); |
| |
| } |
| // InternalTableDSL.g:11825:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalTableDSL.g:11826:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalTableDSL.g:11826:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalTableDSL.g:11827: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" |
| // InternalTableDSL.g:11848:1: entryRuleJvmLowerBoundAnded returns [EObject current=null] : iv_ruleJvmLowerBoundAnded= ruleJvmLowerBoundAnded EOF ; |
| public final EObject entryRuleJvmLowerBoundAnded() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleJvmLowerBoundAnded = null; |
| |
| |
| try { |
| // InternalTableDSL.g:11848:59: (iv_ruleJvmLowerBoundAnded= ruleJvmLowerBoundAnded EOF ) |
| // InternalTableDSL.g:11849: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" |
| // InternalTableDSL.g:11855: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 { |
| // InternalTableDSL.g:11861:2: ( (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) |
| // InternalTableDSL.g:11862:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| { |
| // InternalTableDSL.g:11862:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) |
| // InternalTableDSL.g:11863:3: otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| { |
| otherlv_0=(Token)match(input,169,FOLLOW_85); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAndedAccess().getAmpersandKeyword_0()); |
| |
| } |
| // InternalTableDSL.g:11867:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) |
| // InternalTableDSL.g:11868:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| { |
| // InternalTableDSL.g:11868:4: (lv_typeReference_1_0= ruleJvmTypeReference ) |
| // InternalTableDSL.g:11869: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" |
| // InternalTableDSL.g:11890:1: entryRuleQualifiedNameWithWildcard returns [String current=null] : iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ; |
| public final String entryRuleQualifiedNameWithWildcard() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleQualifiedNameWithWildcard = null; |
| |
| |
| try { |
| // InternalTableDSL.g:11890:65: (iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ) |
| // InternalTableDSL.g:11891: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" |
| // InternalTableDSL.g:11897: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 { |
| // InternalTableDSL.g:11903:2: ( (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) ) |
| // InternalTableDSL.g:11904:2: (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) |
| { |
| // InternalTableDSL.g:11904:2: (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) |
| // InternalTableDSL.g:11905:3: this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_141); |
| 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,78,FOLLOW_142); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1()); |
| |
| } |
| kw=(Token)match(input,106,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" |
| // InternalTableDSL.g:11929:1: entryRuleValidID returns [String current=null] : iv_ruleValidID= ruleValidID EOF ; |
| public final String entryRuleValidID() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleValidID = null; |
| |
| |
| try { |
| // InternalTableDSL.g:11929:47: (iv_ruleValidID= ruleValidID EOF ) |
| // InternalTableDSL.g:11930: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" |
| // InternalTableDSL.g:11936: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 { |
| // InternalTableDSL.g:11942:2: (this_ID_0= RULE_ID ) |
| // InternalTableDSL.g:11943: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" |
| // InternalTableDSL.g:11953:1: entryRuleXImportSection returns [EObject current=null] : iv_ruleXImportSection= ruleXImportSection EOF ; |
| public final EObject entryRuleXImportSection() throws RecognitionException { |
| EObject current = null; |
| |
| EObject iv_ruleXImportSection = null; |
| |
| |
| try { |
| // InternalTableDSL.g:11953:55: (iv_ruleXImportSection= ruleXImportSection EOF ) |
| // InternalTableDSL.g:11954: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" |
| // InternalTableDSL.g:11960: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 { |
| // InternalTableDSL.g:11966:2: ( ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ ) |
| // InternalTableDSL.g:11967:2: ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ |
| { |
| // InternalTableDSL.g:11967:2: ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ |
| int cnt174=0; |
| loop174: |
| do { |
| int alt174=2; |
| int LA174_0 = input.LA(1); |
| |
| if ( (LA174_0==103) ) { |
| alt174=1; |
| } |
| |
| |
| switch (alt174) { |
| case 1 : |
| // InternalTableDSL.g:11968:3: (lv_importDeclarations_0_0= ruleXImportDeclaration ) |
| { |
| // InternalTableDSL.g:11968:3: (lv_importDeclarations_0_0= ruleXImportDeclaration ) |
| // InternalTableDSL.g:11969:4: lv_importDeclarations_0_0= ruleXImportDeclaration |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getXImportSectionAccess().getImportDeclarationsXImportDeclarationParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_143); |
| 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 ( cnt174 >= 1 ) break loop174; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(174, input); |
| throw eee; |
| } |
| cnt174++; |
| } while (true); |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleXImportSection" |
| |
| |
| // $ANTLR start "entryRuleQualifiedNameInStaticImport" |
| // InternalTableDSL.g:11989:1: entryRuleQualifiedNameInStaticImport returns [String current=null] : iv_ruleQualifiedNameInStaticImport= ruleQualifiedNameInStaticImport EOF ; |
| public final String entryRuleQualifiedNameInStaticImport() throws RecognitionException { |
| String current = null; |
| |
| AntlrDatatypeRuleToken iv_ruleQualifiedNameInStaticImport = null; |
| |
| |
| try { |
| // InternalTableDSL.g:11989:67: (iv_ruleQualifiedNameInStaticImport= ruleQualifiedNameInStaticImport EOF ) |
| // InternalTableDSL.g:11990: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" |
| // InternalTableDSL.g:11996: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 { |
| // InternalTableDSL.g:12002:2: ( (this_ValidID_0= ruleValidID kw= '.' )+ ) |
| // InternalTableDSL.g:12003:2: (this_ValidID_0= ruleValidID kw= '.' )+ |
| { |
| // InternalTableDSL.g:12003:2: (this_ValidID_0= ruleValidID kw= '.' )+ |
| int cnt175=0; |
| loop175: |
| do { |
| int alt175=2; |
| int LA175_0 = input.LA(1); |
| |
| if ( (LA175_0==RULE_ID) ) { |
| int LA175_2 = input.LA(2); |
| |
| if ( (LA175_2==78) ) { |
| alt175=1; |
| } |
| |
| |
| } |
| |
| |
| switch (alt175) { |
| case 1 : |
| // InternalTableDSL.g:12004:3: this_ValidID_0= ruleValidID kw= '.' |
| { |
| if ( state.backtracking==0 ) { |
| |
| newCompositeNode(grammarAccess.getQualifiedNameInStaticImportAccess().getValidIDParserRuleCall_0()); |
| |
| } |
| pushFollow(FOLLOW_141); |
| 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,78,FOLLOW_144); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current.merge(kw); |
| newLeafNode(kw, grammarAccess.getQualifiedNameInStaticImportAccess().getFullStopKeyword_1()); |
| |
| } |
| |
| } |
| break; |
| |
| default : |
| if ( cnt175 >= 1 ) break loop175; |
| if (state.backtracking>0) {state.failed=true; return current;} |
| EarlyExitException eee = |
| new EarlyExitException(175, input); |
| throw eee; |
| } |
| cnt175++; |
| } while (true); |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleQualifiedNameInStaticImport" |
| |
| |
| // $ANTLR start "ruleStyleCompare" |
| // InternalTableDSL.g:12023:1: ruleStyleCompare returns [Enumerator current=null] : ( (enumLiteral_0= 'equal' ) | (enumLiteral_1= 'greater equal' ) | (enumLiteral_2= 'greater than' ) | (enumLiteral_3= 'lower equal' ) | (enumLiteral_4= 'lower than' ) | (enumLiteral_5= 'not equal' ) ) ; |
| public final Enumerator ruleStyleCompare() throws RecognitionException { |
| Enumerator current = null; |
| |
| Token enumLiteral_0=null; |
| Token enumLiteral_1=null; |
| Token enumLiteral_2=null; |
| Token enumLiteral_3=null; |
| Token enumLiteral_4=null; |
| Token enumLiteral_5=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:12029:2: ( ( (enumLiteral_0= 'equal' ) | (enumLiteral_1= 'greater equal' ) | (enumLiteral_2= 'greater than' ) | (enumLiteral_3= 'lower equal' ) | (enumLiteral_4= 'lower than' ) | (enumLiteral_5= 'not equal' ) ) ) |
| // InternalTableDSL.g:12030:2: ( (enumLiteral_0= 'equal' ) | (enumLiteral_1= 'greater equal' ) | (enumLiteral_2= 'greater than' ) | (enumLiteral_3= 'lower equal' ) | (enumLiteral_4= 'lower than' ) | (enumLiteral_5= 'not equal' ) ) |
| { |
| // InternalTableDSL.g:12030:2: ( (enumLiteral_0= 'equal' ) | (enumLiteral_1= 'greater equal' ) | (enumLiteral_2= 'greater than' ) | (enumLiteral_3= 'lower equal' ) | (enumLiteral_4= 'lower than' ) | (enumLiteral_5= 'not equal' ) ) |
| int alt176=6; |
| switch ( input.LA(1) ) { |
| case 170: |
| { |
| alt176=1; |
| } |
| break; |
| case 171: |
| { |
| alt176=2; |
| } |
| break; |
| case 172: |
| { |
| alt176=3; |
| } |
| break; |
| case 173: |
| { |
| alt176=4; |
| } |
| break; |
| case 174: |
| { |
| alt176=5; |
| } |
| break; |
| case 175: |
| { |
| alt176=6; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 176, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt176) { |
| case 1 : |
| // InternalTableDSL.g:12031:3: (enumLiteral_0= 'equal' ) |
| { |
| // InternalTableDSL.g:12031:3: (enumLiteral_0= 'equal' ) |
| // InternalTableDSL.g:12032:4: enumLiteral_0= 'equal' |
| { |
| enumLiteral_0=(Token)match(input,170,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getStyleCompareAccess().getEqualEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getStyleCompareAccess().getEqualEnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:12039:3: (enumLiteral_1= 'greater equal' ) |
| { |
| // InternalTableDSL.g:12039:3: (enumLiteral_1= 'greater equal' ) |
| // InternalTableDSL.g:12040:4: enumLiteral_1= 'greater equal' |
| { |
| enumLiteral_1=(Token)match(input,171,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getStyleCompareAccess().getGreaterEqualEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getStyleCompareAccess().getGreaterEqualEnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalTableDSL.g:12047:3: (enumLiteral_2= 'greater than' ) |
| { |
| // InternalTableDSL.g:12047:3: (enumLiteral_2= 'greater than' ) |
| // InternalTableDSL.g:12048:4: enumLiteral_2= 'greater than' |
| { |
| enumLiteral_2=(Token)match(input,172,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getStyleCompareAccess().getGreaterThanEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getStyleCompareAccess().getGreaterThanEnumLiteralDeclaration_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalTableDSL.g:12055:3: (enumLiteral_3= 'lower equal' ) |
| { |
| // InternalTableDSL.g:12055:3: (enumLiteral_3= 'lower equal' ) |
| // InternalTableDSL.g:12056:4: enumLiteral_3= 'lower equal' |
| { |
| enumLiteral_3=(Token)match(input,173,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getStyleCompareAccess().getLowerEqualEnumLiteralDeclaration_3().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_3, grammarAccess.getStyleCompareAccess().getLowerEqualEnumLiteralDeclaration_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalTableDSL.g:12063:3: (enumLiteral_4= 'lower than' ) |
| { |
| // InternalTableDSL.g:12063:3: (enumLiteral_4= 'lower than' ) |
| // InternalTableDSL.g:12064:4: enumLiteral_4= 'lower than' |
| { |
| enumLiteral_4=(Token)match(input,174,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getStyleCompareAccess().getLowerThanEnumLiteralDeclaration_4().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_4, grammarAccess.getStyleCompareAccess().getLowerThanEnumLiteralDeclaration_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 6 : |
| // InternalTableDSL.g:12071:3: (enumLiteral_5= 'not equal' ) |
| { |
| // InternalTableDSL.g:12071:3: (enumLiteral_5= 'not equal' ) |
| // InternalTableDSL.g:12072:4: enumLiteral_5= 'not equal' |
| { |
| enumLiteral_5=(Token)match(input,175,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getStyleCompareAccess().getNotEqualEnumLiteralDeclaration_5().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_5, grammarAccess.getStyleCompareAccess().getNotEqualEnumLiteralDeclaration_5()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleStyleCompare" |
| |
| |
| // $ANTLR start "ruleTrendIconEnum" |
| // InternalTableDSL.g:12082:1: ruleTrendIconEnum returns [Enumerator current=null] : ( (enumLiteral_0= 'rising' ) | (enumLiteral_1= 'bad-rising' ) | (enumLiteral_2= 'sloping' ) | (enumLiteral_3= 'good-sloping' ) | (enumLiteral_4= 'stagnating' ) ) ; |
| public final Enumerator ruleTrendIconEnum() throws RecognitionException { |
| Enumerator current = null; |
| |
| Token enumLiteral_0=null; |
| Token enumLiteral_1=null; |
| Token enumLiteral_2=null; |
| Token enumLiteral_3=null; |
| Token enumLiteral_4=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:12088:2: ( ( (enumLiteral_0= 'rising' ) | (enumLiteral_1= 'bad-rising' ) | (enumLiteral_2= 'sloping' ) | (enumLiteral_3= 'good-sloping' ) | (enumLiteral_4= 'stagnating' ) ) ) |
| // InternalTableDSL.g:12089:2: ( (enumLiteral_0= 'rising' ) | (enumLiteral_1= 'bad-rising' ) | (enumLiteral_2= 'sloping' ) | (enumLiteral_3= 'good-sloping' ) | (enumLiteral_4= 'stagnating' ) ) |
| { |
| // InternalTableDSL.g:12089:2: ( (enumLiteral_0= 'rising' ) | (enumLiteral_1= 'bad-rising' ) | (enumLiteral_2= 'sloping' ) | (enumLiteral_3= 'good-sloping' ) | (enumLiteral_4= 'stagnating' ) ) |
| int alt177=5; |
| switch ( input.LA(1) ) { |
| case 176: |
| { |
| alt177=1; |
| } |
| break; |
| case 177: |
| { |
| alt177=2; |
| } |
| break; |
| case 178: |
| { |
| alt177=3; |
| } |
| break; |
| case 179: |
| { |
| alt177=4; |
| } |
| break; |
| case 180: |
| { |
| alt177=5; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 177, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt177) { |
| case 1 : |
| // InternalTableDSL.g:12090:3: (enumLiteral_0= 'rising' ) |
| { |
| // InternalTableDSL.g:12090:3: (enumLiteral_0= 'rising' ) |
| // InternalTableDSL.g:12091:4: enumLiteral_0= 'rising' |
| { |
| enumLiteral_0=(Token)match(input,176,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getTrendIconEnumAccess().getRISINGEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getTrendIconEnumAccess().getRISINGEnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:12098:3: (enumLiteral_1= 'bad-rising' ) |
| { |
| // InternalTableDSL.g:12098:3: (enumLiteral_1= 'bad-rising' ) |
| // InternalTableDSL.g:12099:4: enumLiteral_1= 'bad-rising' |
| { |
| enumLiteral_1=(Token)match(input,177,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getTrendIconEnumAccess().getBADRISINGEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getTrendIconEnumAccess().getBADRISINGEnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalTableDSL.g:12106:3: (enumLiteral_2= 'sloping' ) |
| { |
| // InternalTableDSL.g:12106:3: (enumLiteral_2= 'sloping' ) |
| // InternalTableDSL.g:12107:4: enumLiteral_2= 'sloping' |
| { |
| enumLiteral_2=(Token)match(input,178,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getTrendIconEnumAccess().getSLOPINGEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getTrendIconEnumAccess().getSLOPINGEnumLiteralDeclaration_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalTableDSL.g:12114:3: (enumLiteral_3= 'good-sloping' ) |
| { |
| // InternalTableDSL.g:12114:3: (enumLiteral_3= 'good-sloping' ) |
| // InternalTableDSL.g:12115:4: enumLiteral_3= 'good-sloping' |
| { |
| enumLiteral_3=(Token)match(input,179,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getTrendIconEnumAccess().getGOODSLOPINGEnumLiteralDeclaration_3().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_3, grammarAccess.getTrendIconEnumAccess().getGOODSLOPINGEnumLiteralDeclaration_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalTableDSL.g:12122:3: (enumLiteral_4= 'stagnating' ) |
| { |
| // InternalTableDSL.g:12122:3: (enumLiteral_4= 'stagnating' ) |
| // InternalTableDSL.g:12123:4: enumLiteral_4= 'stagnating' |
| { |
| enumLiteral_4=(Token)match(input,180,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getTrendIconEnumAccess().getSTAGNATINGEnumLiteralDeclaration_4().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_4, grammarAccess.getTrendIconEnumAccess().getSTAGNATINGEnumLiteralDeclaration_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleTrendIconEnum" |
| |
| |
| // $ANTLR start "ruleRowHeaderMode" |
| // InternalTableDSL.g:12133:1: ruleRowHeaderMode returns [Enumerator current=null] : ( (enumLiteral_0= 'hidden' ) | (enumLiteral_1= 'explicit' ) | (enumLiteral_2= 'indexed' ) ) ; |
| public final Enumerator ruleRowHeaderMode() throws RecognitionException { |
| Enumerator current = null; |
| |
| Token enumLiteral_0=null; |
| Token enumLiteral_1=null; |
| Token enumLiteral_2=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:12139:2: ( ( (enumLiteral_0= 'hidden' ) | (enumLiteral_1= 'explicit' ) | (enumLiteral_2= 'indexed' ) ) ) |
| // InternalTableDSL.g:12140:2: ( (enumLiteral_0= 'hidden' ) | (enumLiteral_1= 'explicit' ) | (enumLiteral_2= 'indexed' ) ) |
| { |
| // InternalTableDSL.g:12140:2: ( (enumLiteral_0= 'hidden' ) | (enumLiteral_1= 'explicit' ) | (enumLiteral_2= 'indexed' ) ) |
| int alt178=3; |
| switch ( input.LA(1) ) { |
| case 181: |
| { |
| alt178=1; |
| } |
| break; |
| case 182: |
| { |
| alt178=2; |
| } |
| break; |
| case 183: |
| { |
| alt178=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 178, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt178) { |
| case 1 : |
| // InternalTableDSL.g:12141:3: (enumLiteral_0= 'hidden' ) |
| { |
| // InternalTableDSL.g:12141:3: (enumLiteral_0= 'hidden' ) |
| // InternalTableDSL.g:12142:4: enumLiteral_0= 'hidden' |
| { |
| enumLiteral_0=(Token)match(input,181,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getRowHeaderModeAccess().getHIDDENEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getRowHeaderModeAccess().getHIDDENEnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:12149:3: (enumLiteral_1= 'explicit' ) |
| { |
| // InternalTableDSL.g:12149:3: (enumLiteral_1= 'explicit' ) |
| // InternalTableDSL.g:12150:4: enumLiteral_1= 'explicit' |
| { |
| enumLiteral_1=(Token)match(input,182,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getRowHeaderModeAccess().getEXPLICIT_DEFAULTS_IDEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getRowHeaderModeAccess().getEXPLICIT_DEFAULTS_IDEnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalTableDSL.g:12157:3: (enumLiteral_2= 'indexed' ) |
| { |
| // InternalTableDSL.g:12157:3: (enumLiteral_2= 'indexed' ) |
| // InternalTableDSL.g:12158:4: enumLiteral_2= 'indexed' |
| { |
| enumLiteral_2=(Token)match(input,183,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getRowHeaderModeAccess().getINDEXEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getRowHeaderModeAccess().getINDEXEnumLiteralDeclaration_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleRowHeaderMode" |
| |
| |
| // $ANTLR start "ruleAxisEnum" |
| // InternalTableDSL.g:12168:1: ruleAxisEnum returns [Enumerator current=null] : ( (enumLiteral_0= 'default' ) | (enumLiteral_1= 'columns' ) | (enumLiteral_2= 'rows' ) | (enumLiteral_3= 'pages' ) | (enumLiteral_4= 'sections' ) | (enumLiteral_5= 'chapters' ) ) ; |
| public final Enumerator ruleAxisEnum() throws RecognitionException { |
| Enumerator current = null; |
| |
| Token enumLiteral_0=null; |
| Token enumLiteral_1=null; |
| Token enumLiteral_2=null; |
| Token enumLiteral_3=null; |
| Token enumLiteral_4=null; |
| Token enumLiteral_5=null; |
| |
| |
| enterRule(); |
| |
| try { |
| // InternalTableDSL.g:12174:2: ( ( (enumLiteral_0= 'default' ) | (enumLiteral_1= 'columns' ) | (enumLiteral_2= 'rows' ) | (enumLiteral_3= 'pages' ) | (enumLiteral_4= 'sections' ) | (enumLiteral_5= 'chapters' ) ) ) |
| // InternalTableDSL.g:12175:2: ( (enumLiteral_0= 'default' ) | (enumLiteral_1= 'columns' ) | (enumLiteral_2= 'rows' ) | (enumLiteral_3= 'pages' ) | (enumLiteral_4= 'sections' ) | (enumLiteral_5= 'chapters' ) ) |
| { |
| // InternalTableDSL.g:12175:2: ( (enumLiteral_0= 'default' ) | (enumLiteral_1= 'columns' ) | (enumLiteral_2= 'rows' ) | (enumLiteral_3= 'pages' ) | (enumLiteral_4= 'sections' ) | (enumLiteral_5= 'chapters' ) ) |
| int alt179=6; |
| switch ( input.LA(1) ) { |
| case 148: |
| { |
| alt179=1; |
| } |
| break; |
| case 184: |
| { |
| alt179=2; |
| } |
| break; |
| case 185: |
| { |
| alt179=3; |
| } |
| break; |
| case 186: |
| { |
| alt179=4; |
| } |
| break; |
| case 187: |
| { |
| alt179=5; |
| } |
| break; |
| case 188: |
| { |
| alt179=6; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return current;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 179, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt179) { |
| case 1 : |
| // InternalTableDSL.g:12176:3: (enumLiteral_0= 'default' ) |
| { |
| // InternalTableDSL.g:12176:3: (enumLiteral_0= 'default' ) |
| // InternalTableDSL.g:12177:4: enumLiteral_0= 'default' |
| { |
| enumLiteral_0=(Token)match(input,148,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getAxisEnumAccess().getDEFAULTEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_0, grammarAccess.getAxisEnumAccess().getDEFAULTEnumLiteralDeclaration_0()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:12184:3: (enumLiteral_1= 'columns' ) |
| { |
| // InternalTableDSL.g:12184:3: (enumLiteral_1= 'columns' ) |
| // InternalTableDSL.g:12185:4: enumLiteral_1= 'columns' |
| { |
| enumLiteral_1=(Token)match(input,184,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getAxisEnumAccess().getCOLUMNSEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_1, grammarAccess.getAxisEnumAccess().getCOLUMNSEnumLiteralDeclaration_1()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalTableDSL.g:12192:3: (enumLiteral_2= 'rows' ) |
| { |
| // InternalTableDSL.g:12192:3: (enumLiteral_2= 'rows' ) |
| // InternalTableDSL.g:12193:4: enumLiteral_2= 'rows' |
| { |
| enumLiteral_2=(Token)match(input,185,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getAxisEnumAccess().getROWSEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_2, grammarAccess.getAxisEnumAccess().getROWSEnumLiteralDeclaration_2()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 4 : |
| // InternalTableDSL.g:12200:3: (enumLiteral_3= 'pages' ) |
| { |
| // InternalTableDSL.g:12200:3: (enumLiteral_3= 'pages' ) |
| // InternalTableDSL.g:12201:4: enumLiteral_3= 'pages' |
| { |
| enumLiteral_3=(Token)match(input,186,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getAxisEnumAccess().getPAGESEnumLiteralDeclaration_3().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_3, grammarAccess.getAxisEnumAccess().getPAGESEnumLiteralDeclaration_3()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 5 : |
| // InternalTableDSL.g:12208:3: (enumLiteral_4= 'sections' ) |
| { |
| // InternalTableDSL.g:12208:3: (enumLiteral_4= 'sections' ) |
| // InternalTableDSL.g:12209:4: enumLiteral_4= 'sections' |
| { |
| enumLiteral_4=(Token)match(input,187,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getAxisEnumAccess().getSECTIONSEnumLiteralDeclaration_4().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_4, grammarAccess.getAxisEnumAccess().getSECTIONSEnumLiteralDeclaration_4()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| case 6 : |
| // InternalTableDSL.g:12216:3: (enumLiteral_5= 'chapters' ) |
| { |
| // InternalTableDSL.g:12216:3: (enumLiteral_5= 'chapters' ) |
| // InternalTableDSL.g:12217:4: enumLiteral_5= 'chapters' |
| { |
| enumLiteral_5=(Token)match(input,188,FOLLOW_2); if (state.failed) return current; |
| if ( state.backtracking==0 ) { |
| |
| current = grammarAccess.getAxisEnumAccess().getCHAPTERSEnumLiteralDeclaration_5().getEnumLiteral().getInstance(); |
| newLeafNode(enumLiteral_5, grammarAccess.getAxisEnumAccess().getCHAPTERSEnumLiteralDeclaration_5()); |
| |
| } |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| if ( state.backtracking==0 ) { |
| |
| leaveRule(); |
| |
| } |
| } |
| |
| catch (RecognitionException re) { |
| recover(input,re); |
| appendSkippedTokens(); |
| } |
| finally { |
| } |
| return current; |
| } |
| // $ANTLR end "ruleAxisEnum" |
| |
| // $ANTLR start synpred1_InternalTableDSL |
| public final void synpred1_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:5399:5: ( '(' ) |
| // InternalTableDSL.g:5399:6: '(' |
| { |
| match(input,93,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred1_InternalTableDSL |
| |
| // $ANTLR start synpred2_InternalTableDSL |
| public final void synpred2_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:5408:7: ( ( ( ( ruleValidID ) ) '=' ) ) |
| // InternalTableDSL.g:5408:8: ( ( ( ruleValidID ) ) '=' ) |
| { |
| // InternalTableDSL.g:5408:8: ( ( ( ruleValidID ) ) '=' ) |
| // InternalTableDSL.g:5409:8: ( ( ruleValidID ) ) '=' |
| { |
| // InternalTableDSL.g:5409:8: ( ( ruleValidID ) ) |
| // InternalTableDSL.g:5410:9: ( ruleValidID ) |
| { |
| // InternalTableDSL.g:5410:9: ( ruleValidID ) |
| // InternalTableDSL.g:5411:10: ruleValidID |
| { |
| pushFollow(FOLLOW_53); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,92,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred2_InternalTableDSL |
| |
| // $ANTLR start synpred5_InternalTableDSL |
| public final void synpred5_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:5588:5: ( ( () '#' '[' ) ) |
| // InternalTableDSL.g:5588:6: ( () '#' '[' ) |
| { |
| // InternalTableDSL.g:5588:6: ( () '#' '[' ) |
| // InternalTableDSL.g:5589:6: () '#' '[' |
| { |
| // InternalTableDSL.g:5589:6: () |
| // InternalTableDSL.g:5590:6: |
| { |
| } |
| |
| match(input,111,FOLLOW_73); if (state.failed) return ; |
| match(input,112,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred5_InternalTableDSL |
| |
| // $ANTLR start synpred6_InternalTableDSL |
| public final void synpred6_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:5730:5: ( ( () '#' '[' ) ) |
| // InternalTableDSL.g:5730:6: ( () '#' '[' ) |
| { |
| // InternalTableDSL.g:5730:6: ( () '#' '[' ) |
| // InternalTableDSL.g:5731:6: () '#' '[' |
| { |
| // InternalTableDSL.g:5731:6: () |
| // InternalTableDSL.g:5732:6: |
| { |
| } |
| |
| match(input,111,FOLLOW_73); if (state.failed) return ; |
| match(input,112,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred6_InternalTableDSL |
| |
| // $ANTLR start synpred7_InternalTableDSL |
| public final void synpred7_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:5958:6: ( ( () ( ( ruleOpMultiAssign ) ) ) ) |
| // InternalTableDSL.g:5958:7: ( () ( ( ruleOpMultiAssign ) ) ) |
| { |
| // InternalTableDSL.g:5958:7: ( () ( ( ruleOpMultiAssign ) ) ) |
| // InternalTableDSL.g:5959:7: () ( ( ruleOpMultiAssign ) ) |
| { |
| // InternalTableDSL.g:5959:7: () |
| // InternalTableDSL.g:5960:7: |
| { |
| } |
| |
| // InternalTableDSL.g:5961:7: ( ( ruleOpMultiAssign ) ) |
| // InternalTableDSL.g:5962:8: ( ruleOpMultiAssign ) |
| { |
| // InternalTableDSL.g:5962:8: ( ruleOpMultiAssign ) |
| // InternalTableDSL.g:5963:9: ruleOpMultiAssign |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpMultiAssign(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred7_InternalTableDSL |
| |
| // $ANTLR start synpred8_InternalTableDSL |
| public final void synpred8_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:6152:5: ( ( () ( ( ruleOpOr ) ) ) ) |
| // InternalTableDSL.g:6152:6: ( () ( ( ruleOpOr ) ) ) |
| { |
| // InternalTableDSL.g:6152:6: ( () ( ( ruleOpOr ) ) ) |
| // InternalTableDSL.g:6153:6: () ( ( ruleOpOr ) ) |
| { |
| // InternalTableDSL.g:6153:6: () |
| // InternalTableDSL.g:6154:6: |
| { |
| } |
| |
| // InternalTableDSL.g:6155:6: ( ( ruleOpOr ) ) |
| // InternalTableDSL.g:6156:7: ( ruleOpOr ) |
| { |
| // InternalTableDSL.g:6156:7: ( ruleOpOr ) |
| // InternalTableDSL.g:6157:8: ruleOpOr |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpOr(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred8_InternalTableDSL |
| |
| // $ANTLR start synpred9_InternalTableDSL |
| public final void synpred9_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:6259:5: ( ( () ( ( ruleOpAnd ) ) ) ) |
| // InternalTableDSL.g:6259:6: ( () ( ( ruleOpAnd ) ) ) |
| { |
| // InternalTableDSL.g:6259:6: ( () ( ( ruleOpAnd ) ) ) |
| // InternalTableDSL.g:6260:6: () ( ( ruleOpAnd ) ) |
| { |
| // InternalTableDSL.g:6260:6: () |
| // InternalTableDSL.g:6261:6: |
| { |
| } |
| |
| // InternalTableDSL.g:6262:6: ( ( ruleOpAnd ) ) |
| // InternalTableDSL.g:6263:7: ( ruleOpAnd ) |
| { |
| // InternalTableDSL.g:6263:7: ( ruleOpAnd ) |
| // InternalTableDSL.g:6264:8: ruleOpAnd |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpAnd(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred9_InternalTableDSL |
| |
| // $ANTLR start synpred10_InternalTableDSL |
| public final void synpred10_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:6366:5: ( ( () ( ( ruleOpEquality ) ) ) ) |
| // InternalTableDSL.g:6366:6: ( () ( ( ruleOpEquality ) ) ) |
| { |
| // InternalTableDSL.g:6366:6: ( () ( ( ruleOpEquality ) ) ) |
| // InternalTableDSL.g:6367:6: () ( ( ruleOpEquality ) ) |
| { |
| // InternalTableDSL.g:6367:6: () |
| // InternalTableDSL.g:6368:6: |
| { |
| } |
| |
| // InternalTableDSL.g:6369:6: ( ( ruleOpEquality ) ) |
| // InternalTableDSL.g:6370:7: ( ruleOpEquality ) |
| { |
| // InternalTableDSL.g:6370:7: ( ruleOpEquality ) |
| // InternalTableDSL.g:6371:8: ruleOpEquality |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpEquality(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred10_InternalTableDSL |
| |
| // $ANTLR start synpred11_InternalTableDSL |
| public final void synpred11_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:6494:6: ( ( () 'instanceof' ) ) |
| // InternalTableDSL.g:6494:7: ( () 'instanceof' ) |
| { |
| // InternalTableDSL.g:6494:7: ( () 'instanceof' ) |
| // InternalTableDSL.g:6495:7: () 'instanceof' |
| { |
| // InternalTableDSL.g:6495:7: () |
| // InternalTableDSL.g:6496:7: |
| { |
| } |
| |
| match(input,128,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred11_InternalTableDSL |
| |
| // $ANTLR start synpred12_InternalTableDSL |
| public final void synpred12_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:6537:6: ( ( () ( ( ruleOpCompare ) ) ) ) |
| // InternalTableDSL.g:6537:7: ( () ( ( ruleOpCompare ) ) ) |
| { |
| // InternalTableDSL.g:6537:7: ( () ( ( ruleOpCompare ) ) ) |
| // InternalTableDSL.g:6538:7: () ( ( ruleOpCompare ) ) |
| { |
| // InternalTableDSL.g:6538:7: () |
| // InternalTableDSL.g:6539:7: |
| { |
| } |
| |
| // InternalTableDSL.g:6540:7: ( ( ruleOpCompare ) ) |
| // InternalTableDSL.g:6541:8: ( ruleOpCompare ) |
| { |
| // InternalTableDSL.g:6541:8: ( ruleOpCompare ) |
| // InternalTableDSL.g:6542:9: ruleOpCompare |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpCompare(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred12_InternalTableDSL |
| |
| // $ANTLR start synpred13_InternalTableDSL |
| public final void synpred13_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:6672:5: ( ( () ( ( ruleOpOther ) ) ) ) |
| // InternalTableDSL.g:6672:6: ( () ( ( ruleOpOther ) ) ) |
| { |
| // InternalTableDSL.g:6672:6: ( () ( ( ruleOpOther ) ) ) |
| // InternalTableDSL.g:6673:6: () ( ( ruleOpOther ) ) |
| { |
| // InternalTableDSL.g:6673:6: () |
| // InternalTableDSL.g:6674:6: |
| { |
| } |
| |
| // InternalTableDSL.g:6675:6: ( ( ruleOpOther ) ) |
| // InternalTableDSL.g:6676:7: ( ruleOpOther ) |
| { |
| // InternalTableDSL.g:6676:7: ( ruleOpOther ) |
| // InternalTableDSL.g:6677:8: ruleOpOther |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpOther(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred13_InternalTableDSL |
| |
| // $ANTLR start synpred14_InternalTableDSL |
| public final void synpred14_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:6792:6: ( ( '>' '>' ) ) |
| // InternalTableDSL.g:6792:7: ( '>' '>' ) |
| { |
| // InternalTableDSL.g:6792:7: ( '>' '>' ) |
| // InternalTableDSL.g:6793:7: '>' '>' |
| { |
| match(input,120,FOLLOW_88); if (state.failed) return ; |
| match(input,120,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred14_InternalTableDSL |
| |
| // $ANTLR start synpred15_InternalTableDSL |
| public final void synpred15_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:6827:6: ( ( '<' '<' ) ) |
| // InternalTableDSL.g:6827:7: ( '<' '<' ) |
| { |
| // InternalTableDSL.g:6827:7: ( '<' '<' ) |
| // InternalTableDSL.g:6828:7: '<' '<' |
| { |
| match(input,119,FOLLOW_78); if (state.failed) return ; |
| match(input,119,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred15_InternalTableDSL |
| |
| // $ANTLR start synpred16_InternalTableDSL |
| public final void synpred16_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:6900:5: ( ( () ( ( ruleOpAdd ) ) ) ) |
| // InternalTableDSL.g:6900:6: ( () ( ( ruleOpAdd ) ) ) |
| { |
| // InternalTableDSL.g:6900:6: ( () ( ( ruleOpAdd ) ) ) |
| // InternalTableDSL.g:6901:6: () ( ( ruleOpAdd ) ) |
| { |
| // InternalTableDSL.g:6901:6: () |
| // InternalTableDSL.g:6902:6: |
| { |
| } |
| |
| // InternalTableDSL.g:6903:6: ( ( ruleOpAdd ) ) |
| // InternalTableDSL.g:6904:7: ( ruleOpAdd ) |
| { |
| // InternalTableDSL.g:6904:7: ( ruleOpAdd ) |
| // InternalTableDSL.g:6905:8: ruleOpAdd |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpAdd(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred16_InternalTableDSL |
| |
| // $ANTLR start synpred17_InternalTableDSL |
| public final void synpred17_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:7015:5: ( ( () ( ( ruleOpMulti ) ) ) ) |
| // InternalTableDSL.g:7015:6: ( () ( ( ruleOpMulti ) ) ) |
| { |
| // InternalTableDSL.g:7015:6: ( () ( ( ruleOpMulti ) ) ) |
| // InternalTableDSL.g:7016:6: () ( ( ruleOpMulti ) ) |
| { |
| // InternalTableDSL.g:7016:6: () |
| // InternalTableDSL.g:7017:6: |
| { |
| } |
| |
| // InternalTableDSL.g:7018:6: ( ( ruleOpMulti ) ) |
| // InternalTableDSL.g:7019:7: ( ruleOpMulti ) |
| { |
| // InternalTableDSL.g:7019:7: ( ruleOpMulti ) |
| // InternalTableDSL.g:7020:8: ruleOpMulti |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpMulti(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred17_InternalTableDSL |
| |
| // $ANTLR start synpred18_InternalTableDSL |
| public final void synpred18_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:7250:5: ( ( () 'as' ) ) |
| // InternalTableDSL.g:7250:6: ( () 'as' ) |
| { |
| // InternalTableDSL.g:7250:6: ( () 'as' ) |
| // InternalTableDSL.g:7251:6: () 'as' |
| { |
| // InternalTableDSL.g:7251:6: () |
| // InternalTableDSL.g:7252:6: |
| { |
| } |
| |
| match(input,20,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred18_InternalTableDSL |
| |
| // $ANTLR start synpred19_InternalTableDSL |
| public final void synpred19_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:7318:4: ( ( () ( ( ruleOpPostfix ) ) ) ) |
| // InternalTableDSL.g:7318:5: ( () ( ( ruleOpPostfix ) ) ) |
| { |
| // InternalTableDSL.g:7318:5: ( () ( ( ruleOpPostfix ) ) ) |
| // InternalTableDSL.g:7319:5: () ( ( ruleOpPostfix ) ) |
| { |
| // InternalTableDSL.g:7319:5: () |
| // InternalTableDSL.g:7320:5: |
| { |
| } |
| |
| // InternalTableDSL.g:7321:5: ( ( ruleOpPostfix ) ) |
| // InternalTableDSL.g:7322:6: ( ruleOpPostfix ) |
| { |
| // InternalTableDSL.g:7322:6: ( ruleOpPostfix ) |
| // InternalTableDSL.g:7323:7: ruleOpPostfix |
| { |
| pushFollow(FOLLOW_2); |
| ruleOpPostfix(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred19_InternalTableDSL |
| |
| // $ANTLR start synpred20_InternalTableDSL |
| public final void synpred20_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:7414:6: ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) |
| // InternalTableDSL.g:7414:7: ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| { |
| // InternalTableDSL.g:7414:7: ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) |
| // InternalTableDSL.g:7415:7: () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign |
| { |
| // InternalTableDSL.g:7415:7: () |
| // InternalTableDSL.g:7416:7: |
| { |
| } |
| |
| // InternalTableDSL.g:7417:7: ( '.' | ( ( '::' ) ) ) |
| int alt180=2; |
| int LA180_0 = input.LA(1); |
| |
| if ( (LA180_0==78) ) { |
| alt180=1; |
| } |
| else if ( (LA180_0==141) ) { |
| alt180=2; |
| } |
| else { |
| if (state.backtracking>0) {state.failed=true; return ;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 180, 0, input); |
| |
| throw nvae; |
| } |
| switch (alt180) { |
| case 1 : |
| // InternalTableDSL.g:7418:8: '.' |
| { |
| match(input,78,FOLLOW_95); if (state.failed) return ; |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:7420:8: ( ( '::' ) ) |
| { |
| // InternalTableDSL.g:7420:8: ( ( '::' ) ) |
| // InternalTableDSL.g:7421:9: ( '::' ) |
| { |
| // InternalTableDSL.g:7421:9: ( '::' ) |
| // InternalTableDSL.g:7422:10: '::' |
| { |
| match(input,141,FOLLOW_95); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalTableDSL.g:7426:7: ( ( ruleFeatureCallID ) ) |
| // InternalTableDSL.g:7427:8: ( ruleFeatureCallID ) |
| { |
| // InternalTableDSL.g:7427:8: ( ruleFeatureCallID ) |
| // InternalTableDSL.g:7428:9: ruleFeatureCallID |
| { |
| pushFollow(FOLLOW_53); |
| ruleFeatureCallID(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| pushFollow(FOLLOW_2); |
| ruleOpSingleAssign(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred20_InternalTableDSL |
| |
| // $ANTLR start synpred21_InternalTableDSL |
| public final void synpred21_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:7511:6: ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) ) |
| // InternalTableDSL.g:7511:7: ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) |
| { |
| // InternalTableDSL.g:7511:7: ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) |
| // InternalTableDSL.g:7512:7: () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) |
| { |
| // InternalTableDSL.g:7512:7: () |
| // InternalTableDSL.g:7513:7: |
| { |
| } |
| |
| // InternalTableDSL.g:7514:7: ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) |
| int alt181=3; |
| switch ( input.LA(1) ) { |
| case 78: |
| { |
| alt181=1; |
| } |
| break; |
| case 142: |
| { |
| alt181=2; |
| } |
| break; |
| case 141: |
| { |
| alt181=3; |
| } |
| break; |
| default: |
| if (state.backtracking>0) {state.failed=true; return ;} |
| NoViableAltException nvae = |
| new NoViableAltException("", 181, 0, input); |
| |
| throw nvae; |
| } |
| |
| switch (alt181) { |
| case 1 : |
| // InternalTableDSL.g:7515:8: '.' |
| { |
| match(input,78,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| break; |
| case 2 : |
| // InternalTableDSL.g:7517:8: ( ( '?.' ) ) |
| { |
| // InternalTableDSL.g:7517:8: ( ( '?.' ) ) |
| // InternalTableDSL.g:7518:9: ( '?.' ) |
| { |
| // InternalTableDSL.g:7518:9: ( '?.' ) |
| // InternalTableDSL.g:7519:10: '?.' |
| { |
| match(input,142,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| case 3 : |
| // InternalTableDSL.g:7523:8: ( ( '::' ) ) |
| { |
| // InternalTableDSL.g:7523:8: ( ( '::' ) ) |
| // InternalTableDSL.g:7524:9: ( '::' ) |
| { |
| // InternalTableDSL.g:7524:9: ( '::' ) |
| // InternalTableDSL.g:7525:10: '::' |
| { |
| match(input,141,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred21_InternalTableDSL |
| |
| // $ANTLR start synpred22_InternalTableDSL |
| public final void synpred22_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:7649:7: ( ( '(' ) ) |
| // InternalTableDSL.g:7649:8: ( '(' ) |
| { |
| // InternalTableDSL.g:7649:8: ( '(' ) |
| // InternalTableDSL.g:7650:8: '(' |
| { |
| match(input,93,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred22_InternalTableDSL |
| |
| // $ANTLR start synpred23_InternalTableDSL |
| public final void synpred23_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:7668:8: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalTableDSL.g:7668:9: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalTableDSL.g:7668:9: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalTableDSL.g:7669:9: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalTableDSL.g:7669:9: () |
| // InternalTableDSL.g:7670:9: |
| { |
| } |
| |
| // InternalTableDSL.g:7671:9: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt183=2; |
| int LA183_0 = input.LA(1); |
| |
| if ( (LA183_0==RULE_ID||LA183_0==93||LA183_0==132) ) { |
| alt183=1; |
| } |
| switch (alt183) { |
| case 1 : |
| // InternalTableDSL.g:7672:10: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalTableDSL.g:7672:10: ( ( ruleJvmFormalParameter ) ) |
| // InternalTableDSL.g:7673:11: ( ruleJvmFormalParameter ) |
| { |
| // InternalTableDSL.g:7673:11: ( ruleJvmFormalParameter ) |
| // InternalTableDSL.g:7674:12: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_105); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:7677:10: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop182: |
| do { |
| int alt182=2; |
| int LA182_0 = input.LA(1); |
| |
| if ( (LA182_0==110) ) { |
| alt182=1; |
| } |
| |
| |
| switch (alt182) { |
| case 1 : |
| // InternalTableDSL.g:7678:11: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,110,FOLLOW_85); if (state.failed) return ; |
| // InternalTableDSL.g:7679:11: ( ( ruleJvmFormalParameter ) ) |
| // InternalTableDSL.g:7680:12: ( ruleJvmFormalParameter ) |
| { |
| // InternalTableDSL.g:7680:12: ( ruleJvmFormalParameter ) |
| // InternalTableDSL.g:7681:13: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_105); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop182; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalTableDSL.g:7686:9: ( ( '|' ) ) |
| // InternalTableDSL.g:7687:10: ( '|' ) |
| { |
| // InternalTableDSL.g:7687:10: ( '|' ) |
| // InternalTableDSL.g:7688:11: '|' |
| { |
| match(input,143,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred23_InternalTableDSL |
| |
| // $ANTLR start synpred24_InternalTableDSL |
| public final void synpred24_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:7765:6: ( ( () '[' ) ) |
| // InternalTableDSL.g:7765:7: ( () '[' ) |
| { |
| // InternalTableDSL.g:7765:7: ( () '[' ) |
| // InternalTableDSL.g:7766:7: () '[' |
| { |
| // InternalTableDSL.g:7766:7: () |
| // InternalTableDSL.g:7767:7: |
| { |
| } |
| |
| match(input,112,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred24_InternalTableDSL |
| |
| // $ANTLR start synpred25_InternalTableDSL |
| public final void synpred25_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:7838:4: ( ( () 'synchronized' '(' ) ) |
| // InternalTableDSL.g:7838:5: ( () 'synchronized' '(' ) |
| { |
| // InternalTableDSL.g:7838:5: ( () 'synchronized' '(' ) |
| // InternalTableDSL.g:7839:5: () 'synchronized' '(' |
| { |
| // InternalTableDSL.g:7839:5: () |
| // InternalTableDSL.g:7840:5: |
| { |
| } |
| |
| match(input,166,FOLLOW_110); if (state.failed) return ; |
| match(input,93,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred25_InternalTableDSL |
| |
| // $ANTLR start synpred26_InternalTableDSL |
| public final void synpred26_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:7883:4: ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) ) |
| // InternalTableDSL.g:7883:5: ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| { |
| // InternalTableDSL.g:7883:5: ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| // InternalTableDSL.g:7884:5: () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' |
| { |
| // InternalTableDSL.g:7884:5: () |
| // InternalTableDSL.g:7885:5: |
| { |
| } |
| |
| match(input,150,FOLLOW_110); if (state.failed) return ; |
| match(input,93,FOLLOW_85); if (state.failed) return ; |
| // InternalTableDSL.g:7888:5: ( ( ruleJvmFormalParameter ) ) |
| // InternalTableDSL.g:7889:6: ( ruleJvmFormalParameter ) |
| { |
| // InternalTableDSL.g:7889:6: ( ruleJvmFormalParameter ) |
| // InternalTableDSL.g:7890:7: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_113); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,147,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred26_InternalTableDSL |
| |
| // $ANTLR start synpred27_InternalTableDSL |
| public final void synpred27_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:7997:4: ( ( () '[' ) ) |
| // InternalTableDSL.g:7997:5: ( () '[' ) |
| { |
| // InternalTableDSL.g:7997:5: ( () '[' ) |
| // InternalTableDSL.g:7998:5: () '[' |
| { |
| // InternalTableDSL.g:7998:5: () |
| // InternalTableDSL.g:7999:5: |
| { |
| } |
| |
| match(input,112,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred27_InternalTableDSL |
| |
| // $ANTLR start synpred29_InternalTableDSL |
| public final void synpred29_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:8302:4: ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalTableDSL.g:8302:5: ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalTableDSL.g:8302:5: ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalTableDSL.g:8303:5: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalTableDSL.g:8303:5: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt185=2; |
| int LA185_0 = input.LA(1); |
| |
| if ( (LA185_0==RULE_ID||LA185_0==93||LA185_0==132) ) { |
| alt185=1; |
| } |
| switch (alt185) { |
| case 1 : |
| // InternalTableDSL.g:8304:6: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalTableDSL.g:8304:6: ( ( ruleJvmFormalParameter ) ) |
| // InternalTableDSL.g:8305:7: ( ruleJvmFormalParameter ) |
| { |
| // InternalTableDSL.g:8305:7: ( ruleJvmFormalParameter ) |
| // InternalTableDSL.g:8306:8: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_105); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:8309:6: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop184: |
| do { |
| int alt184=2; |
| int LA184_0 = input.LA(1); |
| |
| if ( (LA184_0==110) ) { |
| alt184=1; |
| } |
| |
| |
| switch (alt184) { |
| case 1 : |
| // InternalTableDSL.g:8310:7: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,110,FOLLOW_85); if (state.failed) return ; |
| // InternalTableDSL.g:8311:7: ( ( ruleJvmFormalParameter ) ) |
| // InternalTableDSL.g:8312:8: ( ruleJvmFormalParameter ) |
| { |
| // InternalTableDSL.g:8312:8: ( ruleJvmFormalParameter ) |
| // InternalTableDSL.g:8313:9: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_105); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop184; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalTableDSL.g:8318:5: ( ( '|' ) ) |
| // InternalTableDSL.g:8319:6: ( '|' ) |
| { |
| // InternalTableDSL.g:8319:6: ( '|' ) |
| // InternalTableDSL.g:8320:7: '|' |
| { |
| match(input,143,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred29_InternalTableDSL |
| |
| // $ANTLR start synpred31_InternalTableDSL |
| public final void synpred31_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:8711:5: ( 'else' ) |
| // InternalTableDSL.g:8711:6: 'else' |
| { |
| match(input,145,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred31_InternalTableDSL |
| |
| // $ANTLR start synpred32_InternalTableDSL |
| public final void synpred32_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:8770:6: ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) ) |
| // InternalTableDSL.g:8770:7: ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| { |
| // InternalTableDSL.g:8770:7: ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) |
| // InternalTableDSL.g:8771:7: '(' ( ( ruleJvmFormalParameter ) ) ':' |
| { |
| match(input,93,FOLLOW_85); if (state.failed) return ; |
| // InternalTableDSL.g:8772:7: ( ( ruleJvmFormalParameter ) ) |
| // InternalTableDSL.g:8773:8: ( ruleJvmFormalParameter ) |
| { |
| // InternalTableDSL.g:8773:8: ( ruleJvmFormalParameter ) |
| // InternalTableDSL.g:8774:9: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_113); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,147,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred32_InternalTableDSL |
| |
| // $ANTLR start synpred33_InternalTableDSL |
| public final void synpred33_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:8837:6: ( ( ( ( ruleJvmFormalParameter ) ) ':' ) ) |
| // InternalTableDSL.g:8837:7: ( ( ( ruleJvmFormalParameter ) ) ':' ) |
| { |
| // InternalTableDSL.g:8837:7: ( ( ( ruleJvmFormalParameter ) ) ':' ) |
| // InternalTableDSL.g:8838:7: ( ( ruleJvmFormalParameter ) ) ':' |
| { |
| // InternalTableDSL.g:8838:7: ( ( ruleJvmFormalParameter ) ) |
| // InternalTableDSL.g:8839:8: ( ruleJvmFormalParameter ) |
| { |
| // InternalTableDSL.g:8839:8: ( ruleJvmFormalParameter ) |
| // InternalTableDSL.g:8840:9: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_113); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| match(input,147,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred33_InternalTableDSL |
| |
| // $ANTLR start synpred35_InternalTableDSL |
| public final void synpred35_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:9655:5: ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) ) |
| // InternalTableDSL.g:9655:6: ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) |
| { |
| // InternalTableDSL.g:9655:6: ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) |
| // InternalTableDSL.g:9656:6: ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) |
| { |
| // InternalTableDSL.g:9656:6: ( ( ruleJvmTypeReference ) ) |
| // InternalTableDSL.g:9657:7: ( ruleJvmTypeReference ) |
| { |
| // InternalTableDSL.g:9657:7: ( ruleJvmTypeReference ) |
| // InternalTableDSL.g:9658:8: ruleJvmTypeReference |
| { |
| pushFollow(FOLLOW_4); |
| ruleJvmTypeReference(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:9661:6: ( ( ruleValidID ) ) |
| // InternalTableDSL.g:9662:7: ( ruleValidID ) |
| { |
| // InternalTableDSL.g:9662:7: ( ruleValidID ) |
| // InternalTableDSL.g:9663:8: ruleValidID |
| { |
| pushFollow(FOLLOW_2); |
| ruleValidID(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred35_InternalTableDSL |
| |
| // $ANTLR start synpred36_InternalTableDSL |
| public final void synpred36_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:9967:5: ( ( '(' ) ) |
| // InternalTableDSL.g:9967:6: ( '(' ) |
| { |
| // InternalTableDSL.g:9967:6: ( '(' ) |
| // InternalTableDSL.g:9968:6: '(' |
| { |
| match(input,93,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred36_InternalTableDSL |
| |
| // $ANTLR start synpred37_InternalTableDSL |
| public final void synpred37_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:9986:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalTableDSL.g:9986:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalTableDSL.g:9986:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalTableDSL.g:9987:7: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalTableDSL.g:9987:7: () |
| // InternalTableDSL.g:9988:7: |
| { |
| } |
| |
| // InternalTableDSL.g:9989:7: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt189=2; |
| int LA189_0 = input.LA(1); |
| |
| if ( (LA189_0==RULE_ID||LA189_0==93||LA189_0==132) ) { |
| alt189=1; |
| } |
| switch (alt189) { |
| case 1 : |
| // InternalTableDSL.g:9990:8: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalTableDSL.g:9990:8: ( ( ruleJvmFormalParameter ) ) |
| // InternalTableDSL.g:9991:9: ( ruleJvmFormalParameter ) |
| { |
| // InternalTableDSL.g:9991:9: ( ruleJvmFormalParameter ) |
| // InternalTableDSL.g:9992:10: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_105); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:9995:8: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop188: |
| do { |
| int alt188=2; |
| int LA188_0 = input.LA(1); |
| |
| if ( (LA188_0==110) ) { |
| alt188=1; |
| } |
| |
| |
| switch (alt188) { |
| case 1 : |
| // InternalTableDSL.g:9996:9: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,110,FOLLOW_85); if (state.failed) return ; |
| // InternalTableDSL.g:9997:9: ( ( ruleJvmFormalParameter ) ) |
| // InternalTableDSL.g:9998:10: ( ruleJvmFormalParameter ) |
| { |
| // InternalTableDSL.g:9998:10: ( ruleJvmFormalParameter ) |
| // InternalTableDSL.g:9999:11: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_105); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop188; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalTableDSL.g:10004:7: ( ( '|' ) ) |
| // InternalTableDSL.g:10005:8: ( '|' ) |
| { |
| // InternalTableDSL.g:10005:8: ( '|' ) |
| // InternalTableDSL.g:10006:9: '|' |
| { |
| match(input,143,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred37_InternalTableDSL |
| |
| // $ANTLR start synpred38_InternalTableDSL |
| public final void synpred38_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:10083:4: ( ( () '[' ) ) |
| // InternalTableDSL.g:10083:5: ( () '[' ) |
| { |
| // InternalTableDSL.g:10083:5: ( () '[' ) |
| // InternalTableDSL.g:10084:5: () '[' |
| { |
| // InternalTableDSL.g:10084:5: () |
| // InternalTableDSL.g:10085:5: |
| { |
| } |
| |
| match(input,112,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred38_InternalTableDSL |
| |
| // $ANTLR start synpred39_InternalTableDSL |
| public final void synpred39_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:10243:5: ( '<' ) |
| // InternalTableDSL.g:10243:6: '<' |
| { |
| match(input,119,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred39_InternalTableDSL |
| |
| // $ANTLR start synpred40_InternalTableDSL |
| public final void synpred40_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:10300:5: ( ( '(' ) ) |
| // InternalTableDSL.g:10300:6: ( '(' ) |
| { |
| // InternalTableDSL.g:10300:6: ( '(' ) |
| // InternalTableDSL.g:10301:6: '(' |
| { |
| match(input,93,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred40_InternalTableDSL |
| |
| // $ANTLR start synpred41_InternalTableDSL |
| public final void synpred41_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:10319:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) |
| // InternalTableDSL.g:10319:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| { |
| // InternalTableDSL.g:10319:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) |
| // InternalTableDSL.g:10320:7: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) |
| { |
| // InternalTableDSL.g:10320:7: () |
| // InternalTableDSL.g:10321:7: |
| { |
| } |
| |
| // InternalTableDSL.g:10322:7: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? |
| int alt191=2; |
| int LA191_0 = input.LA(1); |
| |
| if ( (LA191_0==RULE_ID||LA191_0==93||LA191_0==132) ) { |
| alt191=1; |
| } |
| switch (alt191) { |
| case 1 : |
| // InternalTableDSL.g:10323:8: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| { |
| // InternalTableDSL.g:10323:8: ( ( ruleJvmFormalParameter ) ) |
| // InternalTableDSL.g:10324:9: ( ruleJvmFormalParameter ) |
| { |
| // InternalTableDSL.g:10324:9: ( ruleJvmFormalParameter ) |
| // InternalTableDSL.g:10325:10: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_105); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| // InternalTableDSL.g:10328:8: ( ',' ( ( ruleJvmFormalParameter ) ) )* |
| loop190: |
| do { |
| int alt190=2; |
| int LA190_0 = input.LA(1); |
| |
| if ( (LA190_0==110) ) { |
| alt190=1; |
| } |
| |
| |
| switch (alt190) { |
| case 1 : |
| // InternalTableDSL.g:10329:9: ',' ( ( ruleJvmFormalParameter ) ) |
| { |
| match(input,110,FOLLOW_85); if (state.failed) return ; |
| // InternalTableDSL.g:10330:9: ( ( ruleJvmFormalParameter ) ) |
| // InternalTableDSL.g:10331:10: ( ruleJvmFormalParameter ) |
| { |
| // InternalTableDSL.g:10331:10: ( ruleJvmFormalParameter ) |
| // InternalTableDSL.g:10332:11: ruleJvmFormalParameter |
| { |
| pushFollow(FOLLOW_105); |
| ruleJvmFormalParameter(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| break; |
| |
| default : |
| break loop190; |
| } |
| } while (true); |
| |
| |
| } |
| break; |
| |
| } |
| |
| // InternalTableDSL.g:10337:7: ( ( '|' ) ) |
| // InternalTableDSL.g:10338:8: ( '|' ) |
| { |
| // InternalTableDSL.g:10338:8: ( '|' ) |
| // InternalTableDSL.g:10339:9: '|' |
| { |
| match(input,143,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred41_InternalTableDSL |
| |
| // $ANTLR start synpred42_InternalTableDSL |
| public final void synpred42_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:10416:4: ( ( () '[' ) ) |
| // InternalTableDSL.g:10416:5: ( () '[' ) |
| { |
| // InternalTableDSL.g:10416:5: ( () '[' ) |
| // InternalTableDSL.g:10417:5: () '[' |
| { |
| // InternalTableDSL.g:10417:5: () |
| // InternalTableDSL.g:10418:5: |
| { |
| } |
| |
| match(input,112,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred42_InternalTableDSL |
| |
| // $ANTLR start synpred43_InternalTableDSL |
| public final void synpred43_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:10759: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 ) |
| // InternalTableDSL.g: |
| { |
| if ( (input.LA(1)>=RULE_ID && input.LA(1)<=RULE_STRING)||(input.LA(1)>=RULE_INT && input.LA(1)<=RULE_DECIMAL)||input.LA(1)==16||input.LA(1)==93||(input.LA(1)>=101 && input.LA(1)<=105)||(input.LA(1)>=111 && input.LA(1)<=112)||input.LA(1)==119||input.LA(1)==138||input.LA(1)==144||input.LA(1)==146||(input.LA(1)>=150 && input.LA(1)<=152)||(input.LA(1)>=155 && input.LA(1)<=164)||input.LA(1)==166 ) { |
| 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_InternalTableDSL |
| |
| // $ANTLR start synpred44_InternalTableDSL |
| public final void synpred44_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:10830:6: ( 'catch' ) |
| // InternalTableDSL.g:10830:7: 'catch' |
| { |
| match(input,167,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred44_InternalTableDSL |
| |
| // $ANTLR start synpred45_InternalTableDSL |
| public final void synpred45_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:10851:7: ( 'finally' ) |
| // InternalTableDSL.g:10851:8: 'finally' |
| { |
| match(input,165,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred45_InternalTableDSL |
| |
| // $ANTLR start synpred48_InternalTableDSL |
| public final void synpred48_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:11095:5: ( '.' ) |
| // InternalTableDSL.g:11095:6: '.' |
| { |
| match(input,78,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred48_InternalTableDSL |
| |
| // $ANTLR start synpred49_InternalTableDSL |
| public final void synpred49_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:11221:5: ( ( () ruleArrayBrackets ) ) |
| // InternalTableDSL.g:11221:6: ( () ruleArrayBrackets ) |
| { |
| // InternalTableDSL.g:11221:6: ( () ruleArrayBrackets ) |
| // InternalTableDSL.g:11222:6: () ruleArrayBrackets |
| { |
| // InternalTableDSL.g:11222:6: () |
| // InternalTableDSL.g:11223:6: |
| { |
| } |
| |
| pushFollow(FOLLOW_2); |
| ruleArrayBrackets(); |
| |
| state._fsp--; |
| if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred49_InternalTableDSL |
| |
| // $ANTLR start synpred50_InternalTableDSL |
| public final void synpred50_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:11418:5: ( '<' ) |
| // InternalTableDSL.g:11418:6: '<' |
| { |
| match(input,119,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred50_InternalTableDSL |
| |
| // $ANTLR start synpred51_InternalTableDSL |
| public final void synpred51_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:11474:6: ( ( () '.' ) ) |
| // InternalTableDSL.g:11474:7: ( () '.' ) |
| { |
| // InternalTableDSL.g:11474:7: ( () '.' ) |
| // InternalTableDSL.g:11475:7: () '.' |
| { |
| // InternalTableDSL.g:11475:7: () |
| // InternalTableDSL.g:11476:7: |
| { |
| } |
| |
| match(input,78,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| |
| |
| } |
| } |
| // $ANTLR end synpred51_InternalTableDSL |
| |
| // $ANTLR start synpred52_InternalTableDSL |
| public final void synpred52_InternalTableDSL_fragment() throws RecognitionException { |
| // InternalTableDSL.g:11512:7: ( '<' ) |
| // InternalTableDSL.g:11512:8: '<' |
| { |
| match(input,119,FOLLOW_2); if (state.failed) return ; |
| |
| } |
| } |
| // $ANTLR end synpred52_InternalTableDSL |
| |
| // Delegated rules |
| |
| public final boolean synpred48_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred48_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred18_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred13_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred43_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred14_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred27_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred8_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred19_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred49_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred51_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred2_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred21_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred36_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred9_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred12_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred15_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred42_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred33_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred1_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred37_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred5_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred20_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred50_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred11_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred29_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred24_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred41_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred16_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred38_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred40_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred45_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred25_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred32_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred6_InternalTableDSL_fragment(); // can never throw exception |
| } catch (RecognitionException re) { |
| System.err.println("impossible: "+re); |
| } |
| boolean success = !state.failed; |
| input.rewind(start); |
| state.backtracking--; |
| state.failed=false; |
| return success; |
| } |
| public final boolean synpred17_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred17_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred23_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred31_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred10_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred44_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred7_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred26_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred52_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred39_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred22_InternalTableDSL_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_InternalTableDSL() { |
| state.backtracking++; |
| int start = input.mark(); |
| try { |
| synpred35_InternalTableDSL_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 DFA55 dfa55 = new DFA55(this); |
| protected DFA58 dfa58 = new DFA58(this); |
| protected DFA64 dfa64 = new DFA64(this); |
| protected DFA67 dfa67 = new DFA67(this); |
| protected DFA69 dfa69 = new DFA69(this); |
| protected DFA79 dfa79 = new DFA79(this); |
| protected DFA82 dfa82 = new DFA82(this); |
| protected DFA98 dfa98 = new DFA98(this); |
| protected DFA97 dfa97 = new DFA97(this); |
| protected DFA99 dfa99 = new DFA99(this); |
| protected DFA101 dfa101 = new DFA101(this); |
| protected DFA110 dfa110 = new DFA110(this); |
| protected DFA117 dfa117 = new DFA117(this); |
| protected DFA116 dfa116 = new DFA116(this); |
| protected DFA139 dfa139 = new DFA139(this); |
| protected DFA138 dfa138 = new DFA138(this); |
| protected DFA140 dfa140 = new DFA140(this); |
| protected DFA144 dfa144 = new DFA144(this); |
| protected DFA147 dfa147 = new DFA147(this); |
| protected DFA146 dfa146 = new DFA146(this); |
| protected DFA148 dfa148 = new DFA148(this); |
| protected DFA151 dfa151 = new DFA151(this); |
| protected DFA169 dfa169 = new DFA169(this); |
| protected DFA167 dfa167 = new DFA167(this); |
| static final String dfa_1s = "\10\uffff"; |
| static final String dfa_2s = "\2\uffff\1\5\4\uffff\1\5"; |
| static final String dfa_3s = "\1\4\1\uffff\1\17\1\uffff\1\4\2\uffff\1\17"; |
| static final String dfa_4s = "\1\153\1\uffff\1\154\1\uffff\1\152\2\uffff\1\154"; |
| 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\143\uffff\1\1\2\uffff\1\3", |
| "", |
| "\1\5\76\uffff\1\4\30\uffff\1\5\4\uffff\1\5", |
| "", |
| "\1\7\145\uffff\1\6", |
| "", |
| "", |
| "\1\5\76\uffff\1\4\30\uffff\1\5\4\uffff\1\5" |
| }; |
| |
| static final short[] dfa_1 = DFA.unpackEncodedString(dfa_1s); |
| static final short[] dfa_2 = DFA.unpackEncodedString(dfa_2s); |
| static final char[] dfa_3 = DFA.unpackEncodedStringToUnsignedChars(dfa_3s); |
| static final char[] dfa_4 = DFA.unpackEncodedStringToUnsignedChars(dfa_4s); |
| static final short[] dfa_5 = DFA.unpackEncodedString(dfa_5s); |
| static final short[] dfa_6 = DFA.unpackEncodedString(dfa_6s); |
| static final short[][] dfa_7 = unpackEncodedStringArray(dfa_7s); |
| |
| class DFA55 extends DFA { |
| |
| public DFA55(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 55; |
| 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 "5188: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\u00a6\1\0\42\uffff"; |
| static final String dfa_11s = "\2\uffff\1\2\37\uffff\1\3\1\1"; |
| static final String dfa_12s = "\1\uffff\1\0\42\uffff}>"; |
| static final String[] dfa_13s = { |
| "\1\1\1\2\1\uffff\3\2\6\uffff\1\2\114\uffff\1\2\1\42\6\uffff\5\2\3\uffff\1\2\1\uffff\2\2\6\uffff\1\2\22\uffff\1\2\5\uffff\1\2\1\uffff\1\2\3\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 DFA58 extends DFA { |
| |
| public DFA58(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 58; |
| 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 "5405: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 LA58_1 = input.LA(1); |
| |
| |
| int index58_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred2_InternalTableDSL()) ) {s = 35;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index58_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 58, _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\u00a6\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 = { |
| "\2\2\1\uffff\3\2\6\uffff\1\2\114\uffff\1\2\7\uffff\5\2\3\uffff\1\2\1\uffff\1\1\1\2\6\uffff\1\2\22\uffff\1\2\5\uffff\1\2\1\uffff\1\2\3\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 DFA64 extends DFA { |
| |
| public DFA64(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 64; |
| this.eot = dfa_14; |
| this.eof = dfa_14; |
| this.min = dfa_15; |
| this.max = dfa_16; |
| this.accept = dfa_17; |
| this.special = dfa_18; |
| this.transition = dfa_19; |
| } |
| public String getDescription() { |
| return "5585: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 LA64_1 = input.LA(1); |
| |
| |
| int index64_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred5_InternalTableDSL()) ) {s = 34;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index64_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 64, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA67 extends DFA { |
| |
| public DFA67(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 67; |
| 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 "5727: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 LA67_1 = input.LA(1); |
| |
| |
| int index67_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred6_InternalTableDSL()) ) {s = 34;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index67_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 67, _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\u00a7\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 = { |
| "\2\10\1\uffff\3\10\6\uffff\2\10\2\uffff\1\10\71\uffff\1\10\16\uffff\2\10\6\uffff\6\10\1\uffff\1\10\1\uffff\4\10\1\1\1\2\1\3\1\4\1\5\1\6\1\7\26\10\1\uffff\30\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 DFA69 extends DFA { |
| |
| public DFA69(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 69; |
| 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 "5956: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 LA69_1 = input.LA(1); |
| |
| |
| int index69_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalTableDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index69_1); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA69_2 = input.LA(1); |
| |
| |
| int index69_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalTableDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index69_2); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA69_3 = input.LA(1); |
| |
| |
| int index69_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalTableDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index69_3); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA69_4 = input.LA(1); |
| |
| |
| int index69_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalTableDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index69_4); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA69_5 = input.LA(1); |
| |
| |
| int index69_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalTableDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index69_5); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA69_7 = input.LA(1); |
| |
| |
| int index69_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalTableDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index69_7); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA69_6 = input.LA(1); |
| |
| |
| int index69_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred7_InternalTableDSL()) ) {s = 9;} |
| |
| else if ( (true) ) {s = 8;} |
| |
| |
| input.seek(index69_6); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 69, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_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\u00a7\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\7\1\2\1\4\1\5\1\6\1\3\1\0\1\1\1\uffff}>"; |
| static final String[] dfa_33s = { |
| "\2\1\1\uffff\3\1\6\uffff\2\1\2\uffff\1\1\71\uffff\1\1\16\uffff\2\1\6\uffff\6\1\1\uffff\1\1\1\uffff\11\1\1\2\1\3\10\1\1\4\1\5\1\6\1\7\1\10\1\11\10\1\1\uffff\30\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 DFA79 extends DFA { |
| |
| public DFA79(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 79; |
| 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 6670: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 LA79_8 = input.LA(1); |
| |
| |
| int index79_8 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalTableDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index79_8); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA79_9 = input.LA(1); |
| |
| |
| int index79_9 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalTableDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index79_9); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA79_3 = input.LA(1); |
| |
| |
| int index79_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalTableDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index79_3); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA79_7 = input.LA(1); |
| |
| |
| int index79_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalTableDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index79_7); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA79_4 = input.LA(1); |
| |
| |
| int index79_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalTableDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index79_4); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA79_5 = input.LA(1); |
| |
| |
| int index79_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalTableDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index79_5); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA79_6 = input.LA(1); |
| |
| |
| int index79_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalTableDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index79_6); |
| if ( s>=0 ) return s; |
| break; |
| case 7 : |
| int LA79_2 = input.LA(1); |
| |
| |
| int index79_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred13_InternalTableDSL()) ) {s = 10;} |
| |
| else if ( (true) ) {s = 1;} |
| |
| |
| input.seek(index79_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 79, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_34s = "\1\167\2\uffff\1\170\7\uffff"; |
| static final String dfa_35s = "\1\u0086\2\uffff\1\u0083\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 DFA82 extends DFA { |
| |
| public DFA82(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 82; |
| 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 "6746: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\u00a7\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 = { |
| "\2\2\1\uffff\3\2\6\uffff\2\2\2\uffff\1\2\71\uffff\1\2\16\uffff\1\1\1\2\6\uffff\6\2\1\uffff\1\2\1\uffff\41\2\1\uffff\30\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 DFA98 extends DFA { |
| |
| public DFA98(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 98; |
| 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 "7647: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 LA98_1 = input.LA(1); |
| |
| |
| int index98_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred22_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index98_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 98, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_46s = "\1\4\2\0\41\uffff"; |
| static final String dfa_47s = "\1\u00a6\2\0\41\uffff"; |
| static final String dfa_48s = "\3\uffff\2\1\1\2\35\uffff\1\3"; |
| static final String dfa_49s = "\1\0\1\1\1\2\41\uffff}>"; |
| static final String[] dfa_50s = { |
| "\1\1\1\5\1\uffff\3\5\6\uffff\1\5\114\uffff\1\2\1\43\6\uffff\5\5\5\uffff\2\5\6\uffff\1\5\14\uffff\1\3\5\uffff\1\5\4\uffff\1\4\1\5\1\uffff\1\5\3\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 DFA97 extends DFA { |
| |
| public DFA97(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 97; |
| 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 "7666: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 LA97_0 = input.LA(1); |
| |
| |
| int index97_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA97_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA97_0==93) ) {s = 2;} |
| |
| else if ( (LA97_0==132) && (synpred23_InternalTableDSL())) {s = 3;} |
| |
| else if ( (LA97_0==143) && (synpred23_InternalTableDSL())) {s = 4;} |
| |
| else if ( (LA97_0==RULE_STRING||(LA97_0>=RULE_INT && LA97_0<=RULE_DECIMAL)||LA97_0==16||(LA97_0>=101 && LA97_0<=105)||(LA97_0>=111 && LA97_0<=112)||LA97_0==119||LA97_0==138||LA97_0==144||LA97_0==146||(LA97_0>=150 && LA97_0<=152)||(LA97_0>=155 && LA97_0<=164)||LA97_0==166) ) {s = 5;} |
| |
| else if ( (LA97_0==94) ) {s = 35;} |
| |
| |
| input.seek(index97_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA97_1 = input.LA(1); |
| |
| |
| int index97_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred23_InternalTableDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index97_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA97_2 = input.LA(1); |
| |
| |
| int index97_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred23_InternalTableDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index97_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 97, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String[] dfa_51s = { |
| "\2\2\1\uffff\3\2\6\uffff\2\2\2\uffff\1\2\71\uffff\1\2\16\uffff\2\2\6\uffff\6\2\1\uffff\1\2\1\uffff\2\2\1\1\36\2\1\uffff\30\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final short[][] dfa_51 = unpackEncodedStringArray(dfa_51s); |
| |
| 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_51; |
| } |
| public String getDescription() { |
| return "7764: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 LA99_1 = input.LA(1); |
| |
| |
| int index99_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred24_InternalTableDSL()) ) {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; |
| } |
| } |
| 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\u00a6\26\uffff\1\0\10\uffff"; |
| static final String dfa_55s = "\1\uffff\1\1\1\2\1\3\1\4\1\5\6\uffff\1\6\11\uffff\1\7\1\uffff\1\12\1\13\1\14\1\15\1\16\1\17\1\10\1\11"; |
| static final String dfa_56s = "\1\0\26\uffff\1\1\10\uffff}>"; |
| static final String[] dfa_57s = { |
| "\1\5\1\14\1\uffff\3\14\6\uffff\1\2\114\uffff\1\35\11\uffff\3\5\5\uffff\2\14\6\uffff\1\5\30\uffff\1\26\1\uffff\1\3\3\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 DFA101 extends DFA { |
| |
| public DFA101(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 101; |
| 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 "7809: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 LA101_0 = input.LA(1); |
| |
| |
| int index101_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA101_0==157) ) {s = 1;} |
| |
| else if ( (LA101_0==16) ) {s = 2;} |
| |
| else if ( (LA101_0==146) ) {s = 3;} |
| |
| else if ( (LA101_0==166) && (synpred25_InternalTableDSL())) {s = 4;} |
| |
| else if ( (LA101_0==RULE_ID||(LA101_0>=103 && LA101_0<=105)||LA101_0==119||(LA101_0>=155 && LA101_0<=156)) ) {s = 5;} |
| |
| else if ( (LA101_0==RULE_STRING||(LA101_0>=RULE_INT && LA101_0<=RULE_DECIMAL)||(LA101_0>=111 && LA101_0<=112)||(LA101_0>=158 && LA101_0<=161)) ) {s = 12;} |
| |
| else if ( (LA101_0==144) ) {s = 22;} |
| |
| else if ( (LA101_0==150) ) {s = 23;} |
| |
| else if ( (LA101_0==151) ) {s = 24;} |
| |
| else if ( (LA101_0==152) ) {s = 25;} |
| |
| else if ( (LA101_0==162) ) {s = 26;} |
| |
| else if ( (LA101_0==163) ) {s = 27;} |
| |
| else if ( (LA101_0==164) ) {s = 28;} |
| |
| else if ( (LA101_0==93) ) {s = 29;} |
| |
| |
| input.seek(index101_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA101_23 = input.LA(1); |
| |
| |
| int index101_23 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred26_InternalTableDSL()) ) {s = 30;} |
| |
| else if ( (true) ) {s = 31;} |
| |
| |
| input.seek(index101_23); |
| 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; |
| } |
| } |
| static final String dfa_58s = "\46\uffff"; |
| static final String dfa_59s = "\1\4\2\0\43\uffff"; |
| static final String dfa_60s = "\1\u00a6\2\0\43\uffff"; |
| static final String dfa_61s = "\3\uffff\2\1\1\2\40\uffff"; |
| static final String dfa_62s = "\1\0\1\1\1\2\43\uffff}>"; |
| static final String[] dfa_63s = { |
| "\1\1\1\5\1\uffff\3\5\6\uffff\1\5\114\uffff\1\2\7\uffff\5\5\5\uffff\3\5\5\uffff\1\5\14\uffff\1\3\5\uffff\1\5\4\uffff\1\4\1\5\1\uffff\1\5\3\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 DFA110 extends DFA { |
| |
| public DFA110(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 110; |
| 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 "8301: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 LA110_0 = input.LA(1); |
| |
| |
| int index110_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA110_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA110_0==93) ) {s = 2;} |
| |
| else if ( (LA110_0==132) && (synpred29_InternalTableDSL())) {s = 3;} |
| |
| else if ( (LA110_0==143) && (synpred29_InternalTableDSL())) {s = 4;} |
| |
| else if ( (LA110_0==RULE_STRING||(LA110_0>=RULE_INT && LA110_0<=RULE_DECIMAL)||LA110_0==16||(LA110_0>=101 && LA110_0<=105)||(LA110_0>=111 && LA110_0<=113)||LA110_0==119||LA110_0==138||LA110_0==144||LA110_0==146||(LA110_0>=150 && LA110_0<=164)||LA110_0==166) ) {s = 5;} |
| |
| |
| input.seek(index110_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA110_1 = input.LA(1); |
| |
| |
| int index110_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred29_InternalTableDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index110_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA110_2 = input.LA(1); |
| |
| |
| int index110_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred29_InternalTableDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index110_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 110, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String[] dfa_64s = { |
| "\2\2\1\uffff\3\2\6\uffff\1\2\114\uffff\1\1\7\uffff\5\2\5\uffff\2\2\6\uffff\1\2\14\uffff\1\2\5\uffff\1\2\5\uffff\1\2\1\uffff\1\2\3\uffff\3\2\2\uffff\12\2\1\uffff\1\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final short[][] dfa_64 = unpackEncodedStringArray(dfa_64s); |
| |
| class DFA117 extends DFA { |
| |
| public DFA117(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 117; |
| 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 "8767: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 LA117_1 = input.LA(1); |
| |
| |
| int index117_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred32_InternalTableDSL()) ) {s = 34;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index117_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 117, _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\u00a6\2\0\37\uffff"; |
| static final String dfa_68s = "\3\uffff\1\1\1\2\35\uffff"; |
| static final String dfa_69s = "\1\0\1\1\1\2\37\uffff}>"; |
| static final String[] dfa_70s = { |
| "\1\1\1\4\1\uffff\3\4\6\uffff\1\4\114\uffff\1\2\7\uffff\5\4\5\uffff\2\4\6\uffff\1\4\14\uffff\1\3\5\uffff\1\4\5\uffff\1\4\1\uffff\1\4\3\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 DFA116 extends DFA { |
| |
| public DFA116(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 116; |
| 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 "8836: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 LA116_0 = input.LA(1); |
| |
| |
| int index116_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA116_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA116_0==93) ) {s = 2;} |
| |
| else if ( (LA116_0==132) && (synpred33_InternalTableDSL())) {s = 3;} |
| |
| else if ( (LA116_0==RULE_STRING||(LA116_0>=RULE_INT && LA116_0<=RULE_DECIMAL)||LA116_0==16||(LA116_0>=101 && LA116_0<=105)||(LA116_0>=111 && LA116_0<=112)||LA116_0==119||LA116_0==138||LA116_0==144||LA116_0==146||(LA116_0>=150 && LA116_0<=152)||(LA116_0>=155 && LA116_0<=164)||LA116_0==166) ) {s = 4;} |
| |
| |
| input.seek(index116_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA116_1 = input.LA(1); |
| |
| |
| int index116_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred33_InternalTableDSL()) ) {s = 3;} |
| |
| else if ( (true) ) {s = 4;} |
| |
| |
| input.seek(index116_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA116_2 = input.LA(1); |
| |
| |
| int index116_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred33_InternalTableDSL()) ) {s = 3;} |
| |
| else if ( (true) ) {s = 4;} |
| |
| |
| input.seek(index116_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 116, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA139 extends DFA { |
| |
| public DFA139(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 139; |
| 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 "9965: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 LA139_1 = input.LA(1); |
| |
| |
| int index139_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred36_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index139_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 139, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA138 extends DFA { |
| |
| public DFA138(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 138; |
| 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 "9984: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 LA138_0 = input.LA(1); |
| |
| |
| int index138_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA138_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA138_0==93) ) {s = 2;} |
| |
| else if ( (LA138_0==132) && (synpred37_InternalTableDSL())) {s = 3;} |
| |
| else if ( (LA138_0==143) && (synpred37_InternalTableDSL())) {s = 4;} |
| |
| else if ( (LA138_0==RULE_STRING||(LA138_0>=RULE_INT && LA138_0<=RULE_DECIMAL)||LA138_0==16||(LA138_0>=101 && LA138_0<=105)||(LA138_0>=111 && LA138_0<=112)||LA138_0==119||LA138_0==138||LA138_0==144||LA138_0==146||(LA138_0>=150 && LA138_0<=152)||(LA138_0>=155 && LA138_0<=164)||LA138_0==166) ) {s = 5;} |
| |
| else if ( (LA138_0==94) ) {s = 35;} |
| |
| |
| input.seek(index138_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA138_1 = input.LA(1); |
| |
| |
| int index138_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred37_InternalTableDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index138_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA138_2 = input.LA(1); |
| |
| |
| int index138_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred37_InternalTableDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index138_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 138, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA140 extends DFA { |
| |
| public DFA140(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 140; |
| 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 "10082: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 LA140_1 = input.LA(1); |
| |
| |
| int index140_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred38_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index140_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 140, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String[] dfa_71s = { |
| "\2\2\1\uffff\3\2\6\uffff\2\2\2\uffff\1\2\71\uffff\1\2\16\uffff\2\2\6\uffff\6\2\1\uffff\1\2\1\uffff\11\2\1\1\27\2\1\uffff\30\2", |
| "\1\uffff", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "", |
| "" |
| }; |
| static final short[][] dfa_71 = unpackEncodedStringArray(dfa_71s); |
| |
| class DFA144 extends DFA { |
| |
| public DFA144(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 144; |
| this.eot = dfa_39; |
| this.eof = dfa_40; |
| this.min = dfa_41; |
| this.max = dfa_42; |
| this.accept = dfa_43; |
| this.special = dfa_44; |
| this.transition = dfa_71; |
| } |
| public String getDescription() { |
| return "10241: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 LA144_1 = input.LA(1); |
| |
| |
| int index144_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred39_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index144_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 144, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA147 extends DFA { |
| |
| public DFA147(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 147; |
| 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 "10298: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 LA147_1 = input.LA(1); |
| |
| |
| int index147_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred40_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index147_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 147, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA146 extends DFA { |
| |
| public DFA146(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 146; |
| 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 "10317: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 LA146_0 = input.LA(1); |
| |
| |
| int index146_0 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (LA146_0==RULE_ID) ) {s = 1;} |
| |
| else if ( (LA146_0==93) ) {s = 2;} |
| |
| else if ( (LA146_0==132) && (synpred41_InternalTableDSL())) {s = 3;} |
| |
| else if ( (LA146_0==143) && (synpred41_InternalTableDSL())) {s = 4;} |
| |
| else if ( (LA146_0==RULE_STRING||(LA146_0>=RULE_INT && LA146_0<=RULE_DECIMAL)||LA146_0==16||(LA146_0>=101 && LA146_0<=105)||(LA146_0>=111 && LA146_0<=112)||LA146_0==119||LA146_0==138||LA146_0==144||LA146_0==146||(LA146_0>=150 && LA146_0<=152)||(LA146_0>=155 && LA146_0<=164)||LA146_0==166) ) {s = 5;} |
| |
| else if ( (LA146_0==94) ) {s = 35;} |
| |
| |
| input.seek(index146_0); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA146_1 = input.LA(1); |
| |
| |
| int index146_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred41_InternalTableDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index146_1); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA146_2 = input.LA(1); |
| |
| |
| int index146_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred41_InternalTableDSL()) ) {s = 4;} |
| |
| else if ( (true) ) {s = 5;} |
| |
| |
| input.seek(index146_2); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 146, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA148 extends DFA { |
| |
| public DFA148(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 148; |
| 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 "10415: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 LA148_1 = input.LA(1); |
| |
| |
| int index148_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred42_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index148_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 148, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_72s = "\1\41\115\uffff"; |
| static final String dfa_73s = "\1\4\40\0\55\uffff"; |
| static final String dfa_74s = "\1\u00a7\40\0\55\uffff"; |
| static final String dfa_75s = "\41\uffff\1\2\53\uffff\1\1"; |
| static final String dfa_76s = "\1\uffff\1\0\1\1\1\2\1\3\1\4\1\5\1\6\1\7\1\10\1\11\1\12\1\13\1\14\1\15\1\16\1\17\1\20\1\21\1\22\1\23\1\24\1\25\1\26\1\27\1\30\1\31\1\32\1\33\1\34\1\35\1\36\1\37\55\uffff}>"; |
| static final String[] dfa_77s = { |
| "\1\1\1\27\1\uffff\1\24\1\23\1\25\6\uffff\1\12\1\41\2\uffff\1\41\71\uffff\1\41\16\uffff\1\40\1\41\6\uffff\1\10\1\7\1\4\1\3\1\5\1\41\1\uffff\1\41\1\uffff\1\41\1\17\1\20\6\41\1\15\22\41\1\6\4\41\1\uffff\1\31\1\41\1\13\3\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 DFA151 extends DFA { |
| |
| public DFA151(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 151; |
| 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 "10758: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 LA151_1 = input.LA(1); |
| |
| |
| int index151_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_1); |
| if ( s>=0 ) return s; |
| break; |
| case 1 : |
| int LA151_2 = input.LA(1); |
| |
| |
| int index151_2 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_2); |
| if ( s>=0 ) return s; |
| break; |
| case 2 : |
| int LA151_3 = input.LA(1); |
| |
| |
| int index151_3 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_3); |
| if ( s>=0 ) return s; |
| break; |
| case 3 : |
| int LA151_4 = input.LA(1); |
| |
| |
| int index151_4 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_4); |
| if ( s>=0 ) return s; |
| break; |
| case 4 : |
| int LA151_5 = input.LA(1); |
| |
| |
| int index151_5 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_5); |
| if ( s>=0 ) return s; |
| break; |
| case 5 : |
| int LA151_6 = input.LA(1); |
| |
| |
| int index151_6 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_6); |
| if ( s>=0 ) return s; |
| break; |
| case 6 : |
| int LA151_7 = input.LA(1); |
| |
| |
| int index151_7 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_7); |
| if ( s>=0 ) return s; |
| break; |
| case 7 : |
| int LA151_8 = input.LA(1); |
| |
| |
| int index151_8 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_8); |
| if ( s>=0 ) return s; |
| break; |
| case 8 : |
| int LA151_9 = input.LA(1); |
| |
| |
| int index151_9 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_9); |
| if ( s>=0 ) return s; |
| break; |
| case 9 : |
| int LA151_10 = input.LA(1); |
| |
| |
| int index151_10 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_10); |
| if ( s>=0 ) return s; |
| break; |
| case 10 : |
| int LA151_11 = input.LA(1); |
| |
| |
| int index151_11 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_11); |
| if ( s>=0 ) return s; |
| break; |
| case 11 : |
| int LA151_12 = input.LA(1); |
| |
| |
| int index151_12 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_12); |
| if ( s>=0 ) return s; |
| break; |
| case 12 : |
| int LA151_13 = input.LA(1); |
| |
| |
| int index151_13 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_13); |
| if ( s>=0 ) return s; |
| break; |
| case 13 : |
| int LA151_14 = input.LA(1); |
| |
| |
| int index151_14 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_14); |
| if ( s>=0 ) return s; |
| break; |
| case 14 : |
| int LA151_15 = input.LA(1); |
| |
| |
| int index151_15 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_15); |
| if ( s>=0 ) return s; |
| break; |
| case 15 : |
| int LA151_16 = input.LA(1); |
| |
| |
| int index151_16 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_16); |
| if ( s>=0 ) return s; |
| break; |
| case 16 : |
| int LA151_17 = input.LA(1); |
| |
| |
| int index151_17 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_17); |
| if ( s>=0 ) return s; |
| break; |
| case 17 : |
| int LA151_18 = input.LA(1); |
| |
| |
| int index151_18 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_18); |
| if ( s>=0 ) return s; |
| break; |
| case 18 : |
| int LA151_19 = input.LA(1); |
| |
| |
| int index151_19 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_19); |
| if ( s>=0 ) return s; |
| break; |
| case 19 : |
| int LA151_20 = input.LA(1); |
| |
| |
| int index151_20 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_20); |
| if ( s>=0 ) return s; |
| break; |
| case 20 : |
| int LA151_21 = input.LA(1); |
| |
| |
| int index151_21 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_21); |
| if ( s>=0 ) return s; |
| break; |
| case 21 : |
| int LA151_22 = input.LA(1); |
| |
| |
| int index151_22 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_22); |
| if ( s>=0 ) return s; |
| break; |
| case 22 : |
| int LA151_23 = input.LA(1); |
| |
| |
| int index151_23 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_23); |
| if ( s>=0 ) return s; |
| break; |
| case 23 : |
| int LA151_24 = input.LA(1); |
| |
| |
| int index151_24 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_24); |
| if ( s>=0 ) return s; |
| break; |
| case 24 : |
| int LA151_25 = input.LA(1); |
| |
| |
| int index151_25 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_25); |
| if ( s>=0 ) return s; |
| break; |
| case 25 : |
| int LA151_26 = input.LA(1); |
| |
| |
| int index151_26 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_26); |
| if ( s>=0 ) return s; |
| break; |
| case 26 : |
| int LA151_27 = input.LA(1); |
| |
| |
| int index151_27 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_27); |
| if ( s>=0 ) return s; |
| break; |
| case 27 : |
| int LA151_28 = input.LA(1); |
| |
| |
| int index151_28 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_28); |
| if ( s>=0 ) return s; |
| break; |
| case 28 : |
| int LA151_29 = input.LA(1); |
| |
| |
| int index151_29 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_29); |
| if ( s>=0 ) return s; |
| break; |
| case 29 : |
| int LA151_30 = input.LA(1); |
| |
| |
| int index151_30 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_30); |
| if ( s>=0 ) return s; |
| break; |
| case 30 : |
| int LA151_31 = input.LA(1); |
| |
| |
| int index151_31 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_31); |
| if ( s>=0 ) return s; |
| break; |
| case 31 : |
| int LA151_32 = input.LA(1); |
| |
| |
| int index151_32 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred43_InternalTableDSL()) ) {s = 77;} |
| |
| else if ( (true) ) {s = 33;} |
| |
| |
| input.seek(index151_32); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 151, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| static final String dfa_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\u00a9\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 = { |
| "\2\2\1\uffff\3\2\6\uffff\2\2\2\uffff\1\2\71\uffff\1\2\16\uffff\2\2\6\uffff\6\2\1\uffff\1\2\1\uffff\11\2\1\1\27\2\1\uffff\30\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 DFA169 extends DFA { |
| |
| public DFA169(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 169; |
| 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 "11416: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 LA169_1 = input.LA(1); |
| |
| |
| int index169_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred50_InternalTableDSL()) ) {s = 78;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index169_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 169, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| class DFA167 extends DFA { |
| |
| public DFA167(BaseRecognizer recognizer) { |
| this.recognizer = recognizer; |
| this.decisionNumber = 167; |
| 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 "11510: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 LA167_1 = input.LA(1); |
| |
| |
| int index167_1 = input.index(); |
| input.rewind(); |
| s = -1; |
| if ( (synpred52_InternalTableDSL()) ) {s = 78;} |
| |
| else if ( (true) ) {s = 2;} |
| |
| |
| input.seek(index167_1); |
| if ( s>=0 ) return s; |
| break; |
| } |
| if (state.backtracking>0) {state.failed=true; return -1;} |
| NoViableAltException nvae = |
| new NoViableAltException(getDescription(), 167, _s, input); |
| error(nvae); |
| throw nvae; |
| } |
| } |
| |
| |
| 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[]{0x0000000000008002L}); |
| public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x0000000000000010L}); |
| public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000000010002L}); |
| public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000000060000L}); |
| public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000180000L}); |
| public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000000020L}); |
| public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x0000000000100000L}); |
| public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000100240000L,0x0000000000000080L}); |
| public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000000C00000L}); |
| public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x000000007F000002L}); |
| public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x00E0000000000000L}); |
| public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000000000380L}); |
| public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x4000000000000000L}); |
| public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x00000000FF000002L}); |
| public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x00FF800000000000L}); |
| public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000400000002L}); |
| public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x000046F000000002L}); |
| public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x0000080000000000L}); |
| public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000010000010000L}); |
| public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0000000000010000L}); |
| public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0700000000020000L}); |
| public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000028000000002L}); |
| public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x3C00000000020000L}); |
| public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000310000000002L}); |
| public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0000000000000380L,0x0000004000000000L}); |
| public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0000002000000000L,0x0000000000000078L}); |
| public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0000000000000080L,0x0000004000000000L}); |
| public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x8000000000020000L}); |
| public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x1F00000000100000L}); |
| public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x0000000200000002L,0x0000000000000007L}); |
| public static final BitSet FOLLOW_33 = new BitSet(new long[]{0x0000000800020000L}); |
| public static final BitSet FOLLOW_34 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000004L}); |
| public static final BitSet FOLLOW_35 = new BitSet(new long[]{0x00FF800000020000L}); |
| public static final BitSet FOLLOW_36 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x001F000000000000L}); |
| public static final BitSet FOLLOW_37 = new BitSet(new long[]{0x000000007C000002L,0x0000000000000300L}); |
| public static final BitSet FOLLOW_38 = new BitSet(new long[]{0x000000007C000002L}); |
| public static final BitSet FOLLOW_39 = new BitSet(new long[]{0x0000000000000000L,0x0000000000002000L}); |
| public static final BitSet FOLLOW_40 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000800L}); |
| public static final BitSet FOLLOW_41 = new BitSet(new long[]{0x0000000000000000L,0x0000000000001000L}); |
| public static final BitSet FOLLOW_42 = new BitSet(new long[]{0x0000000000000000L,0x0000000D096E8000L}); |
| public static final BitSet FOLLOW_43 = new BitSet(new long[]{0x0000000000020000L,0x0000000000000C00L}); |
| public static final BitSet FOLLOW_44 = new BitSet(new long[]{0x0000000000000002L,0x0000000000004000L}); |
| public static final BitSet FOLLOW_45 = new BitSet(new long[]{0x0000000000000000L,0x0000000000010000L}); |
| public static final BitSet FOLLOW_46 = new BitSet(new long[]{0x0000000000000000L,0x0000000000100000L}); |
| public static final BitSet FOLLOW_47 = new BitSet(new long[]{0x0000000000000000L,0x0000000000800000L}); |
| public static final BitSet FOLLOW_48 = new BitSet(new long[]{0x0000000000000080L,0x0000006000000000L}); |
| public static final BitSet FOLLOW_49 = new BitSet(new long[]{0x0000000000000000L,0x0000000002000000L}); |
| public static final BitSet FOLLOW_50 = new BitSet(new long[]{0x0000000000000000L,0x0000000004000000L}); |
| public static final BitSet FOLLOW_51 = new BitSet(new long[]{0x0000000800000020L}); |
| public static final BitSet FOLLOW_52 = new BitSet(new long[]{0x0000000800000000L}); |
| public static final BitSet FOLLOW_53 = new BitSet(new long[]{0x0000000000000000L,0x0000000010000000L}); |
| public static final BitSet FOLLOW_54 = new BitSet(new long[]{0x0000000000000000L,0x00000000A0000000L}); |
| public static final BitSet FOLLOW_55 = new BitSet(new long[]{0x0000000000000000L,0x0000000040000000L}); |
| public static final BitSet FOLLOW_56 = new BitSet(new long[]{0x0000000000000000L,0x0000000080000000L}); |
| public static final BitSet FOLLOW_57 = new BitSet(new long[]{0x0000000000000000L,0x0000000220000000L}); |
| public static final BitSet FOLLOW_58 = new BitSet(new long[]{0x0000000000000000L,0x0000000200000000L}); |
| public static final BitSet FOLLOW_59 = new BitSet(new long[]{0x0000000000010000L,0x0000000000010000L}); |
| public static final BitSet FOLLOW_60 = new BitSet(new long[]{0x3000000000020000L}); |
| public static final BitSet FOLLOW_61 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000FC0000000000L}); |
| public static final BitSet FOLLOW_62 = new BitSet(new long[]{0x0000000000000000L,0x0000001000000000L}); |
| public static final BitSet FOLLOW_63 = new BitSet(new long[]{0x0000000000000040L}); |
| public static final BitSet FOLLOW_64 = new BitSet(new long[]{0x0000000000000080L}); |
| public static final BitSet FOLLOW_65 = new BitSet(new long[]{0x0000000000000010L,0x0000090000000000L}); |
| public static final BitSet FOLLOW_66 = new BitSet(new long[]{0x0000000000000010L,0x0000020000000000L}); |
| public static final BitSet FOLLOW_67 = new BitSet(new long[]{0x0000000000000010L,0x0000040000000000L}); |
| public static final BitSet FOLLOW_68 = new BitSet(new long[]{0x0000000000000002L,0x0000100000000000L}); |
| public static final BitSet FOLLOW_69 = new BitSet(new long[]{0x0000000000000002L,0x0000000020000000L}); |
| public static final BitSet FOLLOW_70 = new BitSet(new long[]{0x00000000000103B0L,0x0081A3E060000000L,0x0000005FF9C50400L}); |
| public static final BitSet FOLLOW_71 = new BitSet(new long[]{0x0000000000000000L,0x0000400040000000L}); |
| public static final BitSet FOLLOW_72 = new BitSet(new long[]{0x00000000000103B0L,0x0081A3E020000000L,0x0000005FF9C50400L}); |
| public static final BitSet FOLLOW_73 = new BitSet(new long[]{0x0000000000000000L,0x0001000000000000L}); |
| public static final BitSet FOLLOW_74 = new BitSet(new long[]{0x00000000000103B0L,0x0083A3E020000000L,0x0000005FF9C50400L}); |
| public static final BitSet FOLLOW_75 = new BitSet(new long[]{0x0000000000000000L,0x0002400000000000L}); |
| public static final BitSet FOLLOW_76 = new BitSet(new long[]{0x0000000000000002L,0x0000400000000000L}); |
| public static final BitSet FOLLOW_77 = new BitSet(new long[]{0x0000000000000002L,0x01FC000000000000L}); |
| public static final BitSet FOLLOW_78 = new BitSet(new long[]{0x0000000000000000L,0x0080000000000000L}); |
| public static final BitSet FOLLOW_79 = new BitSet(new long[]{0x0000000000000000L,0x0300000000000000L}); |
| public static final BitSet FOLLOW_80 = new BitSet(new long[]{0x0000000000000000L,0x0200000000000000L}); |
| public static final BitSet FOLLOW_81 = new BitSet(new long[]{0x0000000000000002L,0x0400000000000000L}); |
| public static final BitSet FOLLOW_82 = new BitSet(new long[]{0x0000000000000002L,0x0800000000000000L}); |
| public static final BitSet FOLLOW_83 = new BitSet(new long[]{0x0000000000000002L,0xF000000000000000L}); |
| public static final BitSet FOLLOW_84 = new BitSet(new long[]{0x0000000000000002L,0x0380000000000000L,0x0000000000000001L}); |
| public static final BitSet FOLLOW_85 = new BitSet(new long[]{0x0000000000000010L,0x0000000020000000L,0x0000000000000010L}); |
| public static final BitSet FOLLOW_86 = new BitSet(new long[]{0x0000000000000002L,0x0180000000000000L,0x000000000000007EL}); |
| public static final BitSet FOLLOW_87 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000008L}); |
| public static final BitSet FOLLOW_88 = new BitSet(new long[]{0x0000000000000000L,0x0100000000000000L}); |
| public static final BitSet FOLLOW_89 = new BitSet(new long[]{0x0000000000000000L,0x0080000000000000L,0x0000000000000010L}); |
| public static final BitSet FOLLOW_90 = new BitSet(new long[]{0x0000000000000002L,0x0000006000000000L}); |
| public static final BitSet FOLLOW_91 = new BitSet(new long[]{0x0000000000000002L,0x0000040000000000L,0x0000000000000380L}); |
| public static final BitSet FOLLOW_92 = new BitSet(new long[]{0x0000000000100002L}); |
| public static final BitSet FOLLOW_93 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000001800L}); |
| public static final BitSet FOLLOW_94 = new BitSet(new long[]{0x0000000000000002L,0x0000000000004000L,0x0000000000006000L}); |
| public static final BitSet FOLLOW_95 = new BitSet(new long[]{0x0000000000000010L,0x0000038000000000L,0x0000000008000000L}); |
| public static final BitSet FOLLOW_96 = new BitSet(new long[]{0x0000000000000010L,0x0080038000000000L,0x0000000018000000L}); |
| public static final BitSet FOLLOW_97 = new BitSet(new long[]{0x0000000000000010L,0x0000000020000000L,0x0000010000000010L}); |
| public static final BitSet FOLLOW_98 = new BitSet(new long[]{0x0000000000000000L,0x0100400000000000L}); |
| public static final BitSet FOLLOW_99 = new BitSet(new long[]{0x0000000000000002L,0x0001000020004000L,0x0000000000006000L}); |
| public static final BitSet FOLLOW_100 = new BitSet(new long[]{0x00000000000103B0L,0x0081A3E060000000L,0x0000005FF9C58410L}); |
| public static final BitSet FOLLOW_101 = new BitSet(new long[]{0x0000000000000002L,0x0001000000004000L,0x0000000000006000L}); |
| public static final BitSet FOLLOW_102 = new BitSet(new long[]{0x00000000000303B0L,0x0081A3E020000000L,0x0000005FF9C50400L}); |
| public static final BitSet FOLLOW_103 = new BitSet(new long[]{0x0000000000020000L,0x0000400000000000L}); |
| public static final BitSet FOLLOW_104 = new BitSet(new long[]{0x00000000000103B0L,0x0083A3E020000000L,0x0000005FFFC58410L}); |
| public static final BitSet FOLLOW_105 = new BitSet(new long[]{0x0000000000000000L,0x0000400000000000L,0x0000000000008000L}); |
| public static final BitSet FOLLOW_106 = new BitSet(new long[]{0x00000000000103B0L,0x0083A3E020000000L,0x0000005FFFC50400L}); |
| public static final BitSet FOLLOW_107 = new BitSet(new long[]{0x0000000000000000L,0x0002000000000000L}); |
| public static final BitSet FOLLOW_108 = new BitSet(new long[]{0x00000000000103B2L,0x0081B3E020000000L,0x0000005FFFC50400L}); |
| public static final BitSet FOLLOW_109 = new BitSet(new long[]{0x00000000000103B2L,0x0081A3E020000000L,0x0000005FFFC50400L}); |
| public static final BitSet FOLLOW_110 = new BitSet(new long[]{0x0000000000000000L,0x0000000020000000L}); |
| public static final BitSet FOLLOW_111 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000000020000L}); |
| public static final BitSet FOLLOW_112 = new BitSet(new long[]{0x00000000000103B0L,0x0081A3E020000000L,0x0000005FF9C50410L}); |
| public static final BitSet FOLLOW_113 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000080000L}); |
| public static final BitSet FOLLOW_114 = new BitSet(new long[]{0x0000000000020010L,0x0000400020000000L,0x0000000000380010L}); |
| public static final BitSet FOLLOW_115 = new BitSet(new long[]{0x0000000000020000L}); |
| public static final BitSet FOLLOW_116 = new BitSet(new long[]{0x0000000000000000L,0x0000400000000000L,0x0000000000280000L}); |
| public static final BitSet FOLLOW_117 = new BitSet(new long[]{0x0000000000000000L,0x0000400000000000L,0x0000000000080000L}); |
| public static final BitSet FOLLOW_118 = new BitSet(new long[]{0x00000000000103B0L,0x0081B3E020000000L,0x0000005FFFC50400L}); |
| public static final BitSet FOLLOW_119 = new BitSet(new long[]{0x0000000000000000L,0x0000500000000000L}); |
| public static final BitSet FOLLOW_120 = new BitSet(new long[]{0x00000000000103B0L,0x0081A3E020000000L,0x0000005FFFC50400L}); |
| public static final BitSet FOLLOW_121 = new BitSet(new long[]{0x00000000000103B0L,0x0081B3E020000000L,0x0000005FF9C50400L}); |
| public static final BitSet FOLLOW_122 = new BitSet(new long[]{0x0000000000000000L,0x0000100000000000L}); |
| public static final BitSet FOLLOW_123 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000800000L}); |
| public static final BitSet FOLLOW_124 = new BitSet(new long[]{0x00000000000303B0L,0x0081A3E020000000L,0x0000005FFFC50400L}); |
| public static final BitSet FOLLOW_125 = new BitSet(new long[]{0x00000000000303B0L,0x0081B3E020000000L,0x0000005FFFC50400L}); |
| public static final BitSet FOLLOW_126 = new BitSet(new long[]{0x0000000000000002L,0x0000000010000000L}); |
| public static final BitSet FOLLOW_127 = new BitSet(new long[]{0x0000000000000002L,0x0001000020000000L}); |
| public static final BitSet FOLLOW_128 = new BitSet(new long[]{0x0000000000000002L,0x0001000000000000L}); |
| public static final BitSet FOLLOW_129 = new BitSet(new long[]{0x0000000000000002L,0x0081000020000000L}); |
| public static final BitSet FOLLOW_130 = new BitSet(new long[]{0x0000000000000000L,0x0001000040000000L}); |
| public static final BitSet FOLLOW_131 = new BitSet(new long[]{0x00000000000103B2L,0x0081A3E020000000L,0x0000005FF9C50400L}); |
| public static final BitSet FOLLOW_132 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x000000A000000000L}); |
| public static final BitSet FOLLOW_133 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x000000A000000000L}); |
| public static final BitSet FOLLOW_134 = new BitSet(new long[]{0x0000000000000280L}); |
| public static final BitSet FOLLOW_135 = new BitSet(new long[]{0x0000000000000010L,0x0000000060000000L,0x0000000000000010L}); |
| public static final BitSet FOLLOW_136 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000000L,0x0000000000000010L}); |
| public static final BitSet FOLLOW_137 = new BitSet(new long[]{0x0000000000000002L,0x0080000000000000L}); |
| public static final BitSet FOLLOW_138 = new BitSet(new long[]{0x0000000000000002L,0x0080000000004000L}); |
| public static final BitSet FOLLOW_139 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000000018000000L}); |
| public static final BitSet FOLLOW_140 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000000L,0x0000020000000000L}); |
| public static final BitSet FOLLOW_141 = new BitSet(new long[]{0x0000000000000000L,0x0000000000004000L}); |
| public static final BitSet FOLLOW_142 = new BitSet(new long[]{0x0000000000000000L,0x0000040000000000L}); |
| public static final BitSet FOLLOW_143 = new BitSet(new long[]{0x0000000000000002L,0x0000008000000000L}); |
| public static final BitSet FOLLOW_144 = new BitSet(new long[]{0x0000000000000012L}); |
| |
| } |