diff options
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java')
-rw-r--r-- | Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java | 2321 |
1 files changed, 1688 insertions, 633 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java index 29c15563..4727763e 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java | |||
@@ -21,19 +21,21 @@ import java.util.ArrayList; | |||
21 | @SuppressWarnings("all") | 21 | @SuppressWarnings("all") |
22 | public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | 22 | public class InternalCftLanguageParser extends AbstractInternalAntlrParser { |
23 | public static final String[] tokenNames = new String[] { | 23 | public static final String[] tokenNames = new String[] { |
24 | "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_ID", "RULE_DOULBE", "RULE_INT", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'package'", "';'", "'import'", "'cft'", "'{'", "'in'", "'out'", "'}'", "'[]'", "'lambda'", "'='", "'and'", "'or'", "'transformation'", "'toplevel'", "'mapping'", "'('", "','", "')'", "'lookup'", "'as'", "'+='", "':='", "'.'", "'=>'", "'*'" | 24 | "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_INT", "RULE_OF_INT", "RULE_ID", "RULE_T_DOUBLE", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'package'", "';'", "'import'", "'cft'", "'{'", "'in'", "'out'", "'}'", "'[]'", "'p'", "'='", "'lambda'", "'and'", "'or'", "'of'", "'transformation'", "'toplevel'", "'mapping'", "'('", "','", "')'", "'lookup'", "'as'", "'+='", "':='", "'.'", "'=>'", "'*'" |
25 | }; | 25 | }; |
26 | public static final int RULE_STRING=7; | 26 | public static final int RULE_STRING=8; |
27 | public static final int RULE_SL_COMMENT=9; | 27 | public static final int RULE_SL_COMMENT=10; |
28 | public static final int T__19=19; | 28 | public static final int T__19=19; |
29 | public static final int T__15=15; | 29 | public static final int T__15=15; |
30 | public static final int T__37=37; | 30 | public static final int T__37=37; |
31 | public static final int T__16=16; | 31 | public static final int T__16=16; |
32 | public static final int T__38=38; | ||
32 | public static final int T__17=17; | 33 | public static final int T__17=17; |
34 | public static final int T__39=39; | ||
33 | public static final int T__18=18; | 35 | public static final int T__18=18; |
34 | public static final int T__33=33; | 36 | public static final int T__33=33; |
35 | public static final int T__12=12; | ||
36 | public static final int T__34=34; | 37 | public static final int T__34=34; |
38 | public static final int RULE_T_DOUBLE=7; | ||
37 | public static final int T__13=13; | 39 | public static final int T__13=13; |
38 | public static final int T__35=35; | 40 | public static final int T__35=35; |
39 | public static final int T__14=14; | 41 | public static final int T__14=14; |
@@ -42,20 +44,21 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
42 | public static final int T__30=30; | 44 | public static final int T__30=30; |
43 | public static final int T__31=31; | 45 | public static final int T__31=31; |
44 | public static final int T__32=32; | 46 | public static final int T__32=32; |
45 | public static final int RULE_ID=4; | 47 | public static final int RULE_OF_INT=5; |
46 | public static final int RULE_WS=10; | 48 | public static final int RULE_ID=6; |
47 | public static final int RULE_DOULBE=5; | 49 | public static final int RULE_WS=11; |
48 | public static final int RULE_ANY_OTHER=11; | 50 | public static final int RULE_ANY_OTHER=12; |
49 | public static final int T__26=26; | 51 | public static final int T__26=26; |
50 | public static final int T__27=27; | 52 | public static final int T__27=27; |
51 | public static final int T__28=28; | 53 | public static final int T__28=28; |
52 | public static final int RULE_INT=6; | 54 | public static final int RULE_INT=4; |
53 | public static final int T__29=29; | 55 | public static final int T__29=29; |
54 | public static final int T__22=22; | 56 | public static final int T__22=22; |
55 | public static final int RULE_ML_COMMENT=8; | 57 | public static final int RULE_ML_COMMENT=9; |
56 | public static final int T__23=23; | 58 | public static final int T__23=23; |
57 | public static final int T__24=24; | 59 | public static final int T__24=24; |
58 | public static final int T__25=25; | 60 | public static final int T__25=25; |
61 | public static final int T__40=40; | ||
59 | public static final int T__20=20; | 62 | public static final int T__20=20; |
60 | public static final int T__21=21; | 63 | public static final int T__21=21; |
61 | 64 | ||
@@ -160,7 +163,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
160 | // InternalCftLanguage.g:78:2: (otherlv_0= 'package' ( (lv_packageName_1_0= ruleQualifiedName ) ) (otherlv_2= ';' )? ( (lv_imports_3_0= ruleImportDeclaration ) )* ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* ) | 163 | // InternalCftLanguage.g:78:2: (otherlv_0= 'package' ( (lv_packageName_1_0= ruleQualifiedName ) ) (otherlv_2= ';' )? ( (lv_imports_3_0= ruleImportDeclaration ) )* ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* ) |
161 | // InternalCftLanguage.g:79:3: otherlv_0= 'package' ( (lv_packageName_1_0= ruleQualifiedName ) ) (otherlv_2= ';' )? ( (lv_imports_3_0= ruleImportDeclaration ) )* ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* | 164 | // InternalCftLanguage.g:79:3: otherlv_0= 'package' ( (lv_packageName_1_0= ruleQualifiedName ) ) (otherlv_2= ';' )? ( (lv_imports_3_0= ruleImportDeclaration ) )* ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* |
162 | { | 165 | { |
163 | otherlv_0=(Token)match(input,12,FOLLOW_3); | 166 | otherlv_0=(Token)match(input,13,FOLLOW_3); |
164 | 167 | ||
165 | newLeafNode(otherlv_0, grammarAccess.getCftModelAccess().getPackageKeyword_0()); | 168 | newLeafNode(otherlv_0, grammarAccess.getCftModelAccess().getPackageKeyword_0()); |
166 | 169 | ||
@@ -199,14 +202,14 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
199 | int alt1=2; | 202 | int alt1=2; |
200 | int LA1_0 = input.LA(1); | 203 | int LA1_0 = input.LA(1); |
201 | 204 | ||
202 | if ( (LA1_0==13) ) { | 205 | if ( (LA1_0==14) ) { |
203 | alt1=1; | 206 | alt1=1; |
204 | } | 207 | } |
205 | switch (alt1) { | 208 | switch (alt1) { |
206 | case 1 : | 209 | case 1 : |
207 | // InternalCftLanguage.g:103:4: otherlv_2= ';' | 210 | // InternalCftLanguage.g:103:4: otherlv_2= ';' |
208 | { | 211 | { |
209 | otherlv_2=(Token)match(input,13,FOLLOW_5); | 212 | otherlv_2=(Token)match(input,14,FOLLOW_5); |
210 | 213 | ||
211 | newLeafNode(otherlv_2, grammarAccess.getCftModelAccess().getSemicolonKeyword_2()); | 214 | newLeafNode(otherlv_2, grammarAccess.getCftModelAccess().getSemicolonKeyword_2()); |
212 | 215 | ||
@@ -222,7 +225,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
222 | int alt2=2; | 225 | int alt2=2; |
223 | int LA2_0 = input.LA(1); | 226 | int LA2_0 = input.LA(1); |
224 | 227 | ||
225 | if ( (LA2_0==14) ) { | 228 | if ( (LA2_0==15) ) { |
226 | alt2=1; | 229 | alt2=1; |
227 | } | 230 | } |
228 | 231 | ||
@@ -271,10 +274,10 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
271 | int alt3=3; | 274 | int alt3=3; |
272 | int LA3_0 = input.LA(1); | 275 | int LA3_0 = input.LA(1); |
273 | 276 | ||
274 | if ( (LA3_0==15) ) { | 277 | if ( (LA3_0==16) ) { |
275 | alt3=1; | 278 | alt3=1; |
276 | } | 279 | } |
277 | else if ( (LA3_0==25) ) { | 280 | else if ( (LA3_0==28) ) { |
278 | alt3=2; | 281 | alt3=2; |
279 | } | 282 | } |
280 | 283 | ||
@@ -438,7 +441,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
438 | // InternalCftLanguage.g:186:2: (otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? ) | 441 | // InternalCftLanguage.g:186:2: (otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? ) |
439 | // InternalCftLanguage.g:187:3: otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? | 442 | // InternalCftLanguage.g:187:3: otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? |
440 | { | 443 | { |
441 | otherlv_0=(Token)match(input,14,FOLLOW_3); | 444 | otherlv_0=(Token)match(input,15,FOLLOW_3); |
442 | 445 | ||
443 | newLeafNode(otherlv_0, grammarAccess.getImportDeclarationAccess().getImportKeyword_0()); | 446 | newLeafNode(otherlv_0, grammarAccess.getImportDeclarationAccess().getImportKeyword_0()); |
444 | 447 | ||
@@ -477,14 +480,14 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
477 | int alt4=2; | 480 | int alt4=2; |
478 | int LA4_0 = input.LA(1); | 481 | int LA4_0 = input.LA(1); |
479 | 482 | ||
480 | if ( (LA4_0==13) ) { | 483 | if ( (LA4_0==14) ) { |
481 | alt4=1; | 484 | alt4=1; |
482 | } | 485 | } |
483 | switch (alt4) { | 486 | switch (alt4) { |
484 | case 1 : | 487 | case 1 : |
485 | // InternalCftLanguage.g:211:4: otherlv_2= ';' | 488 | // InternalCftLanguage.g:211:4: otherlv_2= ';' |
486 | { | 489 | { |
487 | otherlv_2=(Token)match(input,13,FOLLOW_2); | 490 | otherlv_2=(Token)match(input,14,FOLLOW_2); |
488 | 491 | ||
489 | newLeafNode(otherlv_2, grammarAccess.getImportDeclarationAccess().getSemicolonKeyword_2()); | 492 | newLeafNode(otherlv_2, grammarAccess.getImportDeclarationAccess().getSemicolonKeyword_2()); |
490 | 493 | ||
@@ -553,20 +556,20 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
553 | 556 | ||
554 | 557 | ||
555 | // $ANTLR start "ruleComponentDefinition" | 558 | // $ANTLR start "ruleComponentDefinition" |
556 | // InternalCftLanguage.g:227:1: ruleComponentDefinition returns [EObject current=null] : (otherlv_0= 'cft' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) ; | 559 | // InternalCftLanguage.g:227:1: ruleComponentDefinition returns [EObject current=null] : (otherlv_0= 'cft' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) ; |
557 | public final EObject ruleComponentDefinition() throws RecognitionException { | 560 | public final EObject ruleComponentDefinition() throws RecognitionException { |
558 | EObject current = null; | 561 | EObject current = null; |
559 | 562 | ||
560 | Token otherlv_0=null; | 563 | Token otherlv_0=null; |
561 | Token lv_name_1_0=null; | ||
562 | Token otherlv_2=null; | 564 | Token otherlv_2=null; |
563 | Token otherlv_4=null; | 565 | Token otherlv_4=null; |
564 | Token otherlv_6=null; | 566 | Token otherlv_6=null; |
565 | Token otherlv_7=null; | 567 | Token otherlv_7=null; |
566 | Token otherlv_8=null; | ||
567 | Token otherlv_9=null; | 568 | Token otherlv_9=null; |
568 | Token otherlv_11=null; | 569 | Token otherlv_11=null; |
569 | Token otherlv_12=null; | 570 | Token otherlv_12=null; |
571 | AntlrDatatypeRuleToken lv_name_1_0 = null; | ||
572 | |||
570 | EObject lv_inputEvents_5_0 = null; | 573 | EObject lv_inputEvents_5_0 = null; |
571 | 574 | ||
572 | EObject lv_eventDefinitions_10_0 = null; | 575 | EObject lv_eventDefinitions_10_0 = null; |
@@ -576,35 +579,40 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
576 | enterRule(); | 579 | enterRule(); |
577 | 580 | ||
578 | try { | 581 | try { |
579 | // InternalCftLanguage.g:233:2: ( (otherlv_0= 'cft' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) ) | 582 | // InternalCftLanguage.g:233:2: ( (otherlv_0= 'cft' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) ) |
580 | // InternalCftLanguage.g:234:2: (otherlv_0= 'cft' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) | 583 | // InternalCftLanguage.g:234:2: (otherlv_0= 'cft' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) |
581 | { | 584 | { |
582 | // InternalCftLanguage.g:234:2: (otherlv_0= 'cft' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) | 585 | // InternalCftLanguage.g:234:2: (otherlv_0= 'cft' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) |
583 | // InternalCftLanguage.g:235:3: otherlv_0= 'cft' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' | 586 | // InternalCftLanguage.g:235:3: otherlv_0= 'cft' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' |
584 | { | 587 | { |
585 | otherlv_0=(Token)match(input,15,FOLLOW_3); | 588 | otherlv_0=(Token)match(input,16,FOLLOW_3); |
586 | 589 | ||
587 | newLeafNode(otherlv_0, grammarAccess.getComponentDefinitionAccess().getCftKeyword_0()); | 590 | newLeafNode(otherlv_0, grammarAccess.getComponentDefinitionAccess().getCftKeyword_0()); |
588 | 591 | ||
589 | // InternalCftLanguage.g:239:3: ( (lv_name_1_0= RULE_ID ) ) | 592 | // InternalCftLanguage.g:239:3: ( (lv_name_1_0= ruleValidId ) ) |
590 | // InternalCftLanguage.g:240:4: (lv_name_1_0= RULE_ID ) | 593 | // InternalCftLanguage.g:240:4: (lv_name_1_0= ruleValidId ) |
591 | { | 594 | { |
592 | // InternalCftLanguage.g:240:4: (lv_name_1_0= RULE_ID ) | 595 | // InternalCftLanguage.g:240:4: (lv_name_1_0= ruleValidId ) |
593 | // InternalCftLanguage.g:241:5: lv_name_1_0= RULE_ID | 596 | // InternalCftLanguage.g:241:5: lv_name_1_0= ruleValidId |
594 | { | 597 | { |
595 | lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_8); | ||
596 | 598 | ||
597 | newLeafNode(lv_name_1_0, grammarAccess.getComponentDefinitionAccess().getNameIDTerminalRuleCall_1_0()); | 599 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getNameValidIdParserRuleCall_1_0()); |
598 | 600 | ||
601 | pushFollow(FOLLOW_8); | ||
602 | lv_name_1_0=ruleValidId(); | ||
603 | |||
604 | state._fsp--; | ||
605 | |||
599 | 606 | ||
600 | if (current==null) { | 607 | if (current==null) { |
601 | current = createModelElement(grammarAccess.getComponentDefinitionRule()); | 608 | current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); |
602 | } | 609 | } |
603 | setWithLastConsumed( | 610 | set( |
604 | current, | 611 | current, |
605 | "name", | 612 | "name", |
606 | lv_name_1_0, | 613 | lv_name_1_0, |
607 | "org.eclipse.xtext.common.Terminals.ID"); | 614 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
615 | afterParserOrEnumRuleCall(); | ||
608 | 616 | ||
609 | 617 | ||
610 | } | 618 | } |
@@ -612,82 +620,82 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
612 | 620 | ||
613 | } | 621 | } |
614 | 622 | ||
615 | otherlv_2=(Token)match(input,16,FOLLOW_9); | 623 | otherlv_2=(Token)match(input,17,FOLLOW_9); |
616 | 624 | ||
617 | newLeafNode(otherlv_2, grammarAccess.getComponentDefinitionAccess().getLeftCurlyBracketKeyword_2()); | 625 | newLeafNode(otherlv_2, grammarAccess.getComponentDefinitionAccess().getLeftCurlyBracketKeyword_2()); |
618 | 626 | ||
619 | // InternalCftLanguage.g:261:3: ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) | 627 | // InternalCftLanguage.g:262:3: ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) |
620 | // InternalCftLanguage.g:262:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) | 628 | // InternalCftLanguage.g:263:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) |
621 | { | 629 | { |
622 | // InternalCftLanguage.g:262:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) | 630 | // InternalCftLanguage.g:263:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) |
623 | // InternalCftLanguage.g:263:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) | 631 | // InternalCftLanguage.g:264:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) |
624 | { | 632 | { |
625 | 633 | ||
626 | getUnorderedGroupHelper().enter(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | 634 | getUnorderedGroupHelper().enter(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); |
627 | 635 | ||
628 | // InternalCftLanguage.g:266:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) | 636 | // InternalCftLanguage.g:267:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) |
629 | // InternalCftLanguage.g:267:6: ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* | 637 | // InternalCftLanguage.g:268:6: ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* |
630 | { | 638 | { |
631 | // InternalCftLanguage.g:267:6: ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* | 639 | // InternalCftLanguage.g:268:6: ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* |
632 | loop7: | 640 | loop7: |
633 | do { | 641 | do { |
634 | int alt7=3; | 642 | int alt7=3; |
635 | int LA7_0 = input.LA(1); | 643 | int LA7_0 = input.LA(1); |
636 | 644 | ||
637 | if ( LA7_0 == 17 && getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0) ) { | 645 | if ( LA7_0 == 18 && getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0) ) { |
638 | alt7=1; | 646 | alt7=1; |
639 | } | 647 | } |
640 | else if ( LA7_0 == 18 && getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1) ) { | 648 | else if ( LA7_0 == 19 && getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1) ) { |
641 | alt7=2; | 649 | alt7=2; |
642 | } | 650 | } |
643 | 651 | ||
644 | 652 | ||
645 | switch (alt7) { | 653 | switch (alt7) { |
646 | case 1 : | 654 | case 1 : |
647 | // InternalCftLanguage.g:268:4: ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | 655 | // InternalCftLanguage.g:269:4: ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) |
648 | { | 656 | { |
649 | // InternalCftLanguage.g:268:4: ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | 657 | // InternalCftLanguage.g:269:4: ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) |
650 | // InternalCftLanguage.g:269:5: {...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) | 658 | // InternalCftLanguage.g:270:5: {...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) |
651 | { | 659 | { |
652 | if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0) ) { | 660 | if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0) ) { |
653 | throw new FailedPredicateException(input, "ruleComponentDefinition", "getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0)"); | 661 | throw new FailedPredicateException(input, "ruleComponentDefinition", "getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0)"); |
654 | } | 662 | } |
655 | // InternalCftLanguage.g:269:116: ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) | 663 | // InternalCftLanguage.g:270:116: ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) |
656 | // InternalCftLanguage.g:270:6: ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) | 664 | // InternalCftLanguage.g:271:6: ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) |
657 | { | 665 | { |
658 | 666 | ||
659 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0); | 667 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0); |
660 | 668 | ||
661 | // InternalCftLanguage.g:273:9: ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) | 669 | // InternalCftLanguage.g:274:9: ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) |
662 | // InternalCftLanguage.g:273:10: {...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) | 670 | // InternalCftLanguage.g:274:10: {...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) |
663 | { | 671 | { |
664 | if ( !((true)) ) { | 672 | if ( !((true)) ) { |
665 | throw new FailedPredicateException(input, "ruleComponentDefinition", "true"); | 673 | throw new FailedPredicateException(input, "ruleComponentDefinition", "true"); |
666 | } | 674 | } |
667 | // InternalCftLanguage.g:273:19: (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) | 675 | // InternalCftLanguage.g:274:19: (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) |
668 | // InternalCftLanguage.g:273:20: otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' | 676 | // InternalCftLanguage.g:274:20: otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' |
669 | { | 677 | { |
670 | otherlv_4=(Token)match(input,17,FOLLOW_10); | 678 | otherlv_4=(Token)match(input,18,FOLLOW_10); |
671 | 679 | ||
672 | newLeafNode(otherlv_4, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()); | 680 | newLeafNode(otherlv_4, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()); |
673 | 681 | ||
674 | // InternalCftLanguage.g:277:9: ( (lv_inputEvents_5_0= ruleInputEvent ) )* | 682 | // InternalCftLanguage.g:278:9: ( (lv_inputEvents_5_0= ruleInputEvent ) )* |
675 | loop5: | 683 | loop5: |
676 | do { | 684 | do { |
677 | int alt5=2; | 685 | int alt5=2; |
678 | int LA5_0 = input.LA(1); | 686 | int LA5_0 = input.LA(1); |
679 | 687 | ||
680 | if ( (LA5_0==RULE_ID) ) { | 688 | if ( ((LA5_0>=RULE_OF_INT && LA5_0<=RULE_ID)) ) { |
681 | alt5=1; | 689 | alt5=1; |
682 | } | 690 | } |
683 | 691 | ||
684 | 692 | ||
685 | switch (alt5) { | 693 | switch (alt5) { |
686 | case 1 : | 694 | case 1 : |
687 | // InternalCftLanguage.g:278:10: (lv_inputEvents_5_0= ruleInputEvent ) | 695 | // InternalCftLanguage.g:279:10: (lv_inputEvents_5_0= ruleInputEvent ) |
688 | { | 696 | { |
689 | // InternalCftLanguage.g:278:10: (lv_inputEvents_5_0= ruleInputEvent ) | 697 | // InternalCftLanguage.g:279:10: (lv_inputEvents_5_0= ruleInputEvent ) |
690 | // InternalCftLanguage.g:279:11: lv_inputEvents_5_0= ruleInputEvent | 698 | // InternalCftLanguage.g:280:11: lv_inputEvents_5_0= ruleInputEvent |
691 | { | 699 | { |
692 | 700 | ||
693 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getInputEventsInputEventParserRuleCall_3_0_1_0()); | 701 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getInputEventsInputEventParserRuleCall_3_0_1_0()); |
@@ -720,7 +728,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
720 | } | 728 | } |
721 | } while (true); | 729 | } while (true); |
722 | 730 | ||
723 | otherlv_6=(Token)match(input,13,FOLLOW_9); | 731 | otherlv_6=(Token)match(input,14,FOLLOW_9); |
724 | 732 | ||
725 | newLeafNode(otherlv_6, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()); | 733 | newLeafNode(otherlv_6, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()); |
726 | 734 | ||
@@ -743,59 +751,66 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
743 | } | 751 | } |
744 | break; | 752 | break; |
745 | case 2 : | 753 | case 2 : |
746 | // InternalCftLanguage.g:306:4: ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) | 754 | // InternalCftLanguage.g:307:4: ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) |
747 | { | 755 | { |
748 | // InternalCftLanguage.g:306:4: ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) | 756 | // InternalCftLanguage.g:307:4: ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) |
749 | // InternalCftLanguage.g:307:5: {...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) | 757 | // InternalCftLanguage.g:308:5: {...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) |
750 | { | 758 | { |
751 | if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1) ) { | 759 | if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1) ) { |
752 | throw new FailedPredicateException(input, "ruleComponentDefinition", "getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1)"); | 760 | throw new FailedPredicateException(input, "ruleComponentDefinition", "getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1)"); |
753 | } | 761 | } |
754 | // InternalCftLanguage.g:307:116: ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) | 762 | // InternalCftLanguage.g:308:116: ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) |
755 | // InternalCftLanguage.g:308:6: ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) | 763 | // InternalCftLanguage.g:309:6: ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) |
756 | { | 764 | { |
757 | 765 | ||
758 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1); | 766 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1); |
759 | 767 | ||
760 | // InternalCftLanguage.g:311:9: ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) | 768 | // InternalCftLanguage.g:312:9: ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) |
761 | // InternalCftLanguage.g:311:10: {...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) | 769 | // InternalCftLanguage.g:312:10: {...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) |
762 | { | 770 | { |
763 | if ( !((true)) ) { | 771 | if ( !((true)) ) { |
764 | throw new FailedPredicateException(input, "ruleComponentDefinition", "true"); | 772 | throw new FailedPredicateException(input, "ruleComponentDefinition", "true"); |
765 | } | 773 | } |
766 | // InternalCftLanguage.g:311:19: (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) | 774 | // InternalCftLanguage.g:312:19: (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) |
767 | // InternalCftLanguage.g:311:20: otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' | 775 | // InternalCftLanguage.g:312:20: otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' |
768 | { | 776 | { |
769 | otherlv_7=(Token)match(input,18,FOLLOW_10); | 777 | otherlv_7=(Token)match(input,19,FOLLOW_10); |
770 | 778 | ||
771 | newLeafNode(otherlv_7, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()); | 779 | newLeafNode(otherlv_7, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()); |
772 | 780 | ||
773 | // InternalCftLanguage.g:315:9: ( (otherlv_8= RULE_ID ) )* | 781 | // InternalCftLanguage.g:316:9: ( ( ruleValidId ) )* |
774 | loop6: | 782 | loop6: |
775 | do { | 783 | do { |
776 | int alt6=2; | 784 | int alt6=2; |
777 | int LA6_0 = input.LA(1); | 785 | int LA6_0 = input.LA(1); |
778 | 786 | ||
779 | if ( (LA6_0==RULE_ID) ) { | 787 | if ( ((LA6_0>=RULE_OF_INT && LA6_0<=RULE_ID)) ) { |
780 | alt6=1; | 788 | alt6=1; |
781 | } | 789 | } |
782 | 790 | ||
783 | 791 | ||
784 | switch (alt6) { | 792 | switch (alt6) { |
785 | case 1 : | 793 | case 1 : |
786 | // InternalCftLanguage.g:316:10: (otherlv_8= RULE_ID ) | 794 | // InternalCftLanguage.g:317:10: ( ruleValidId ) |
787 | { | 795 | { |
788 | // InternalCftLanguage.g:316:10: (otherlv_8= RULE_ID ) | 796 | // InternalCftLanguage.g:317:10: ( ruleValidId ) |
789 | // InternalCftLanguage.g:317:11: otherlv_8= RULE_ID | 797 | // InternalCftLanguage.g:318:11: ruleValidId |
790 | { | 798 | { |
791 | 799 | ||
792 | if (current==null) { | 800 | if (current==null) { |
793 | current = createModelElement(grammarAccess.getComponentDefinitionRule()); | 801 | current = createModelElement(grammarAccess.getComponentDefinitionRule()); |
794 | } | 802 | } |
795 | 803 | ||
796 | otherlv_8=(Token)match(input,RULE_ID,FOLLOW_10); | ||
797 | 804 | ||
798 | newLeafNode(otherlv_8, grammarAccess.getComponentDefinitionAccess().getOutputEventsEventDeclarationCrossReference_3_1_1_0()); | 805 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getOutputEventsEventDeclarationCrossReference_3_1_1_0()); |
806 | |||
807 | pushFollow(FOLLOW_10); | ||
808 | ruleValidId(); | ||
809 | |||
810 | state._fsp--; | ||
811 | |||
812 | |||
813 | afterParserOrEnumRuleCall(); | ||
799 | 814 | ||
800 | 815 | ||
801 | } | 816 | } |
@@ -809,7 +824,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
809 | } | 824 | } |
810 | } while (true); | 825 | } while (true); |
811 | 826 | ||
812 | otherlv_9=(Token)match(input,13,FOLLOW_9); | 827 | otherlv_9=(Token)match(input,14,FOLLOW_9); |
813 | 828 | ||
814 | newLeafNode(otherlv_9, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()); | 829 | newLeafNode(otherlv_9, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()); |
815 | 830 | ||
@@ -849,26 +864,26 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
849 | 864 | ||
850 | } | 865 | } |
851 | 866 | ||
852 | // InternalCftLanguage.g:345:3: ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* | 867 | // InternalCftLanguage.g:349:3: ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* |
853 | loop8: | 868 | loop8: |
854 | do { | 869 | do { |
855 | int alt8=2; | 870 | int alt8=2; |
856 | int LA8_0 = input.LA(1); | 871 | int LA8_0 = input.LA(1); |
857 | 872 | ||
858 | if ( (LA8_0==RULE_ID) ) { | 873 | if ( ((LA8_0>=RULE_OF_INT && LA8_0<=RULE_ID)) ) { |
859 | alt8=1; | 874 | alt8=1; |
860 | } | 875 | } |
861 | 876 | ||
862 | 877 | ||
863 | switch (alt8) { | 878 | switch (alt8) { |
864 | case 1 : | 879 | case 1 : |
865 | // InternalCftLanguage.g:346:4: ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' | 880 | // InternalCftLanguage.g:350:4: ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' |
866 | { | 881 | { |
867 | // InternalCftLanguage.g:346:4: ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) | 882 | // InternalCftLanguage.g:350:4: ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) |
868 | // InternalCftLanguage.g:347:5: (lv_eventDefinitions_10_0= ruleEventDefinition ) | 883 | // InternalCftLanguage.g:351:5: (lv_eventDefinitions_10_0= ruleEventDefinition ) |
869 | { | 884 | { |
870 | // InternalCftLanguage.g:347:5: (lv_eventDefinitions_10_0= ruleEventDefinition ) | 885 | // InternalCftLanguage.g:351:5: (lv_eventDefinitions_10_0= ruleEventDefinition ) |
871 | // InternalCftLanguage.g:348:6: lv_eventDefinitions_10_0= ruleEventDefinition | 886 | // InternalCftLanguage.g:352:6: lv_eventDefinitions_10_0= ruleEventDefinition |
872 | { | 887 | { |
873 | 888 | ||
874 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getEventDefinitionsEventDefinitionParserRuleCall_4_0_0()); | 889 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getEventDefinitionsEventDefinitionParserRuleCall_4_0_0()); |
@@ -895,7 +910,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
895 | 910 | ||
896 | } | 911 | } |
897 | 912 | ||
898 | otherlv_11=(Token)match(input,13,FOLLOW_12); | 913 | otherlv_11=(Token)match(input,14,FOLLOW_12); |
899 | 914 | ||
900 | newLeafNode(otherlv_11, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_4_1()); | 915 | newLeafNode(otherlv_11, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_4_1()); |
901 | 916 | ||
@@ -908,7 +923,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
908 | } | 923 | } |
909 | } while (true); | 924 | } while (true); |
910 | 925 | ||
911 | otherlv_12=(Token)match(input,19,FOLLOW_2); | 926 | otherlv_12=(Token)match(input,20,FOLLOW_2); |
912 | 927 | ||
913 | newLeafNode(otherlv_12, grammarAccess.getComponentDefinitionAccess().getRightCurlyBracketKeyword_5()); | 928 | newLeafNode(otherlv_12, grammarAccess.getComponentDefinitionAccess().getRightCurlyBracketKeyword_5()); |
914 | 929 | ||
@@ -935,7 +950,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
935 | 950 | ||
936 | 951 | ||
937 | // $ANTLR start "entryRuleInputEvent" | 952 | // $ANTLR start "entryRuleInputEvent" |
938 | // InternalCftLanguage.g:378:1: entryRuleInputEvent returns [EObject current=null] : iv_ruleInputEvent= ruleInputEvent EOF ; | 953 | // InternalCftLanguage.g:382:1: entryRuleInputEvent returns [EObject current=null] : iv_ruleInputEvent= ruleInputEvent EOF ; |
939 | public final EObject entryRuleInputEvent() throws RecognitionException { | 954 | public final EObject entryRuleInputEvent() throws RecognitionException { |
940 | EObject current = null; | 955 | EObject current = null; |
941 | 956 | ||
@@ -943,8 +958,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
943 | 958 | ||
944 | 959 | ||
945 | try { | 960 | try { |
946 | // InternalCftLanguage.g:378:51: (iv_ruleInputEvent= ruleInputEvent EOF ) | 961 | // InternalCftLanguage.g:382:51: (iv_ruleInputEvent= ruleInputEvent EOF ) |
947 | // InternalCftLanguage.g:379:2: iv_ruleInputEvent= ruleInputEvent EOF | 962 | // InternalCftLanguage.g:383:2: iv_ruleInputEvent= ruleInputEvent EOF |
948 | { | 963 | { |
949 | newCompositeNode(grammarAccess.getInputEventRule()); | 964 | newCompositeNode(grammarAccess.getInputEventRule()); |
950 | pushFollow(FOLLOW_1); | 965 | pushFollow(FOLLOW_1); |
@@ -971,42 +986,48 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
971 | 986 | ||
972 | 987 | ||
973 | // $ANTLR start "ruleInputEvent" | 988 | // $ANTLR start "ruleInputEvent" |
974 | // InternalCftLanguage.g:385:1: ruleInputEvent returns [EObject current=null] : ( ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? ) ; | 989 | // InternalCftLanguage.g:389:1: ruleInputEvent returns [EObject current=null] : ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_multiple_1_0= '[]' ) )? ) ; |
975 | public final EObject ruleInputEvent() throws RecognitionException { | 990 | public final EObject ruleInputEvent() throws RecognitionException { |
976 | EObject current = null; | 991 | EObject current = null; |
977 | 992 | ||
978 | Token lv_name_0_0=null; | ||
979 | Token lv_multiple_1_0=null; | 993 | Token lv_multiple_1_0=null; |
994 | AntlrDatatypeRuleToken lv_name_0_0 = null; | ||
995 | |||
980 | 996 | ||
981 | 997 | ||
982 | enterRule(); | 998 | enterRule(); |
983 | 999 | ||
984 | try { | 1000 | try { |
985 | // InternalCftLanguage.g:391:2: ( ( ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? ) ) | 1001 | // InternalCftLanguage.g:395:2: ( ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_multiple_1_0= '[]' ) )? ) ) |
986 | // InternalCftLanguage.g:392:2: ( ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? ) | 1002 | // InternalCftLanguage.g:396:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_multiple_1_0= '[]' ) )? ) |
987 | { | 1003 | { |
988 | // InternalCftLanguage.g:392:2: ( ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? ) | 1004 | // InternalCftLanguage.g:396:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_multiple_1_0= '[]' ) )? ) |
989 | // InternalCftLanguage.g:393:3: ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? | 1005 | // InternalCftLanguage.g:397:3: ( (lv_name_0_0= ruleValidId ) ) ( (lv_multiple_1_0= '[]' ) )? |
990 | { | 1006 | { |
991 | // InternalCftLanguage.g:393:3: ( (lv_name_0_0= RULE_ID ) ) | 1007 | // InternalCftLanguage.g:397:3: ( (lv_name_0_0= ruleValidId ) ) |
992 | // InternalCftLanguage.g:394:4: (lv_name_0_0= RULE_ID ) | 1008 | // InternalCftLanguage.g:398:4: (lv_name_0_0= ruleValidId ) |
993 | { | 1009 | { |
994 | // InternalCftLanguage.g:394:4: (lv_name_0_0= RULE_ID ) | 1010 | // InternalCftLanguage.g:398:4: (lv_name_0_0= ruleValidId ) |
995 | // InternalCftLanguage.g:395:5: lv_name_0_0= RULE_ID | 1011 | // InternalCftLanguage.g:399:5: lv_name_0_0= ruleValidId |
996 | { | 1012 | { |
997 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_13); | ||
998 | 1013 | ||
999 | newLeafNode(lv_name_0_0, grammarAccess.getInputEventAccess().getNameIDTerminalRuleCall_0_0()); | 1014 | newCompositeNode(grammarAccess.getInputEventAccess().getNameValidIdParserRuleCall_0_0()); |
1000 | 1015 | ||
1016 | pushFollow(FOLLOW_13); | ||
1017 | lv_name_0_0=ruleValidId(); | ||
1018 | |||
1019 | state._fsp--; | ||
1020 | |||
1001 | 1021 | ||
1002 | if (current==null) { | 1022 | if (current==null) { |
1003 | current = createModelElement(grammarAccess.getInputEventRule()); | 1023 | current = createModelElementForParent(grammarAccess.getInputEventRule()); |
1004 | } | 1024 | } |
1005 | setWithLastConsumed( | 1025 | set( |
1006 | current, | 1026 | current, |
1007 | "name", | 1027 | "name", |
1008 | lv_name_0_0, | 1028 | lv_name_0_0, |
1009 | "org.eclipse.xtext.common.Terminals.ID"); | 1029 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
1030 | afterParserOrEnumRuleCall(); | ||
1010 | 1031 | ||
1011 | 1032 | ||
1012 | } | 1033 | } |
@@ -1014,21 +1035,21 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1014 | 1035 | ||
1015 | } | 1036 | } |
1016 | 1037 | ||
1017 | // InternalCftLanguage.g:411:3: ( (lv_multiple_1_0= '[]' ) )? | 1038 | // InternalCftLanguage.g:416:3: ( (lv_multiple_1_0= '[]' ) )? |
1018 | int alt9=2; | 1039 | int alt9=2; |
1019 | int LA9_0 = input.LA(1); | 1040 | int LA9_0 = input.LA(1); |
1020 | 1041 | ||
1021 | if ( (LA9_0==20) ) { | 1042 | if ( (LA9_0==21) ) { |
1022 | alt9=1; | 1043 | alt9=1; |
1023 | } | 1044 | } |
1024 | switch (alt9) { | 1045 | switch (alt9) { |
1025 | case 1 : | 1046 | case 1 : |
1026 | // InternalCftLanguage.g:412:4: (lv_multiple_1_0= '[]' ) | 1047 | // InternalCftLanguage.g:417:4: (lv_multiple_1_0= '[]' ) |
1027 | { | 1048 | { |
1028 | // InternalCftLanguage.g:412:4: (lv_multiple_1_0= '[]' ) | 1049 | // InternalCftLanguage.g:417:4: (lv_multiple_1_0= '[]' ) |
1029 | // InternalCftLanguage.g:413:5: lv_multiple_1_0= '[]' | 1050 | // InternalCftLanguage.g:418:5: lv_multiple_1_0= '[]' |
1030 | { | 1051 | { |
1031 | lv_multiple_1_0=(Token)match(input,20,FOLLOW_2); | 1052 | lv_multiple_1_0=(Token)match(input,21,FOLLOW_2); |
1032 | 1053 | ||
1033 | newLeafNode(lv_multiple_1_0, grammarAccess.getInputEventAccess().getMultipleLeftSquareBracketRightSquareBracketKeyword_1_0()); | 1054 | newLeafNode(lv_multiple_1_0, grammarAccess.getInputEventAccess().getMultipleLeftSquareBracketRightSquareBracketKeyword_1_0()); |
1034 | 1055 | ||
@@ -1070,7 +1091,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1070 | 1091 | ||
1071 | 1092 | ||
1072 | // $ANTLR start "entryRuleEventDefinition" | 1093 | // $ANTLR start "entryRuleEventDefinition" |
1073 | // InternalCftLanguage.g:429:1: entryRuleEventDefinition returns [EObject current=null] : iv_ruleEventDefinition= ruleEventDefinition EOF ; | 1094 | // InternalCftLanguage.g:434:1: entryRuleEventDefinition returns [EObject current=null] : iv_ruleEventDefinition= ruleEventDefinition EOF ; |
1074 | public final EObject entryRuleEventDefinition() throws RecognitionException { | 1095 | public final EObject entryRuleEventDefinition() throws RecognitionException { |
1075 | EObject current = null; | 1096 | EObject current = null; |
1076 | 1097 | ||
@@ -1078,8 +1099,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1078 | 1099 | ||
1079 | 1100 | ||
1080 | try { | 1101 | try { |
1081 | // InternalCftLanguage.g:429:56: (iv_ruleEventDefinition= ruleEventDefinition EOF ) | 1102 | // InternalCftLanguage.g:434:56: (iv_ruleEventDefinition= ruleEventDefinition EOF ) |
1082 | // InternalCftLanguage.g:430:2: iv_ruleEventDefinition= ruleEventDefinition EOF | 1103 | // InternalCftLanguage.g:435:2: iv_ruleEventDefinition= ruleEventDefinition EOF |
1083 | { | 1104 | { |
1084 | newCompositeNode(grammarAccess.getEventDefinitionRule()); | 1105 | newCompositeNode(grammarAccess.getEventDefinitionRule()); |
1085 | pushFollow(FOLLOW_1); | 1106 | pushFollow(FOLLOW_1); |
@@ -1106,7 +1127,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1106 | 1127 | ||
1107 | 1128 | ||
1108 | // $ANTLR start "ruleEventDefinition" | 1129 | // $ANTLR start "ruleEventDefinition" |
1109 | // InternalCftLanguage.g:436:1: ruleEventDefinition returns [EObject current=null] : (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) ; | 1130 | // InternalCftLanguage.g:441:1: ruleEventDefinition returns [EObject current=null] : (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) ; |
1110 | public final EObject ruleEventDefinition() throws RecognitionException { | 1131 | public final EObject ruleEventDefinition() throws RecognitionException { |
1111 | EObject current = null; | 1132 | EObject current = null; |
1112 | 1133 | ||
@@ -1119,20 +1140,20 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1119 | enterRule(); | 1140 | enterRule(); |
1120 | 1141 | ||
1121 | try { | 1142 | try { |
1122 | // InternalCftLanguage.g:442:2: ( (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) ) | 1143 | // InternalCftLanguage.g:447:2: ( (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) ) |
1123 | // InternalCftLanguage.g:443:2: (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) | 1144 | // InternalCftLanguage.g:448:2: (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) |
1124 | { | 1145 | { |
1125 | // InternalCftLanguage.g:443:2: (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) | 1146 | // InternalCftLanguage.g:448:2: (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) |
1126 | int alt10=2; | 1147 | int alt10=2; |
1127 | int LA10_0 = input.LA(1); | 1148 | int LA10_0 = input.LA(1); |
1128 | 1149 | ||
1129 | if ( (LA10_0==RULE_ID) ) { | 1150 | if ( (LA10_0==RULE_ID) ) { |
1130 | int LA10_1 = input.LA(2); | 1151 | int LA10_1 = input.LA(2); |
1131 | 1152 | ||
1132 | if ( ((LA10_1>=23 && LA10_1<=24)) ) { | 1153 | if ( (LA10_1==RULE_INT||(LA10_1>=25 && LA10_1<=26)) ) { |
1133 | alt10=2; | 1154 | alt10=2; |
1134 | } | 1155 | } |
1135 | else if ( (LA10_1==21) ) { | 1156 | else if ( (LA10_1==22||LA10_1==24) ) { |
1136 | alt10=1; | 1157 | alt10=1; |
1137 | } | 1158 | } |
1138 | else { | 1159 | else { |
@@ -1142,6 +1163,22 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1142 | throw nvae; | 1163 | throw nvae; |
1143 | } | 1164 | } |
1144 | } | 1165 | } |
1166 | else if ( (LA10_0==RULE_OF_INT) ) { | ||
1167 | int LA10_2 = input.LA(2); | ||
1168 | |||
1169 | if ( (LA10_2==22||LA10_2==24) ) { | ||
1170 | alt10=1; | ||
1171 | } | ||
1172 | else if ( (LA10_2==RULE_INT||(LA10_2>=25 && LA10_2<=26)) ) { | ||
1173 | alt10=2; | ||
1174 | } | ||
1175 | else { | ||
1176 | NoViableAltException nvae = | ||
1177 | new NoViableAltException("", 10, 2, input); | ||
1178 | |||
1179 | throw nvae; | ||
1180 | } | ||
1181 | } | ||
1145 | else { | 1182 | else { |
1146 | NoViableAltException nvae = | 1183 | NoViableAltException nvae = |
1147 | new NoViableAltException("", 10, 0, input); | 1184 | new NoViableAltException("", 10, 0, input); |
@@ -1150,7 +1187,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1150 | } | 1187 | } |
1151 | switch (alt10) { | 1188 | switch (alt10) { |
1152 | case 1 : | 1189 | case 1 : |
1153 | // InternalCftLanguage.g:444:3: this_BasicEventDefinition_0= ruleBasicEventDefinition | 1190 | // InternalCftLanguage.g:449:3: this_BasicEventDefinition_0= ruleBasicEventDefinition |
1154 | { | 1191 | { |
1155 | 1192 | ||
1156 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getBasicEventDefinitionParserRuleCall_0()); | 1193 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getBasicEventDefinitionParserRuleCall_0()); |
@@ -1168,7 +1205,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1168 | } | 1205 | } |
1169 | break; | 1206 | break; |
1170 | case 2 : | 1207 | case 2 : |
1171 | // InternalCftLanguage.g:453:3: this_GateDefinition_1= ruleGateDefinition | 1208 | // InternalCftLanguage.g:458:3: this_GateDefinition_1= ruleGateDefinition |
1172 | { | 1209 | { |
1173 | 1210 | ||
1174 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getGateDefinitionParserRuleCall_1()); | 1211 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getGateDefinitionParserRuleCall_1()); |
@@ -1208,7 +1245,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1208 | 1245 | ||
1209 | 1246 | ||
1210 | // $ANTLR start "entryRuleBasicEventDefinition" | 1247 | // $ANTLR start "entryRuleBasicEventDefinition" |
1211 | // InternalCftLanguage.g:465:1: entryRuleBasicEventDefinition returns [EObject current=null] : iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF ; | 1248 | // InternalCftLanguage.g:470:1: entryRuleBasicEventDefinition returns [EObject current=null] : iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF ; |
1212 | public final EObject entryRuleBasicEventDefinition() throws RecognitionException { | 1249 | public final EObject entryRuleBasicEventDefinition() throws RecognitionException { |
1213 | EObject current = null; | 1250 | EObject current = null; |
1214 | 1251 | ||
@@ -1216,8 +1253,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1216 | 1253 | ||
1217 | 1254 | ||
1218 | try { | 1255 | try { |
1219 | // InternalCftLanguage.g:465:61: (iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF ) | 1256 | // InternalCftLanguage.g:470:61: (iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF ) |
1220 | // InternalCftLanguage.g:466:2: iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF | 1257 | // InternalCftLanguage.g:471:2: iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF |
1221 | { | 1258 | { |
1222 | newCompositeNode(grammarAccess.getBasicEventDefinitionRule()); | 1259 | newCompositeNode(grammarAccess.getBasicEventDefinitionRule()); |
1223 | pushFollow(FOLLOW_1); | 1260 | pushFollow(FOLLOW_1); |
@@ -1244,44 +1281,325 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1244 | 1281 | ||
1245 | 1282 | ||
1246 | // $ANTLR start "ruleBasicEventDefinition" | 1283 | // $ANTLR start "ruleBasicEventDefinition" |
1247 | // InternalCftLanguage.g:472:1: ruleBasicEventDefinition returns [EObject current=null] : ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) ) ; | 1284 | // InternalCftLanguage.g:477:1: ruleBasicEventDefinition returns [EObject current=null] : ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_distribution_1_0= ruleDistribution ) ) ) ; |
1248 | public final EObject ruleBasicEventDefinition() throws RecognitionException { | 1285 | public final EObject ruleBasicEventDefinition() throws RecognitionException { |
1249 | EObject current = null; | 1286 | EObject current = null; |
1250 | 1287 | ||
1251 | Token lv_name_0_0=null; | 1288 | AntlrDatatypeRuleToken lv_name_0_0 = null; |
1252 | Token otherlv_1=null; | 1289 | |
1253 | Token otherlv_2=null; | 1290 | EObject lv_distribution_1_0 = null; |
1254 | Token lv_rate_3_0=null; | 1291 | |
1255 | 1292 | ||
1256 | 1293 | ||
1257 | enterRule(); | 1294 | enterRule(); |
1258 | 1295 | ||
1259 | try { | 1296 | try { |
1260 | // InternalCftLanguage.g:478:2: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) ) ) | 1297 | // InternalCftLanguage.g:483:2: ( ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_distribution_1_0= ruleDistribution ) ) ) ) |
1261 | // InternalCftLanguage.g:479:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) ) | 1298 | // InternalCftLanguage.g:484:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_distribution_1_0= ruleDistribution ) ) ) |
1262 | { | 1299 | { |
1263 | // InternalCftLanguage.g:479:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) ) | 1300 | // InternalCftLanguage.g:484:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_distribution_1_0= ruleDistribution ) ) ) |
1264 | // InternalCftLanguage.g:480:3: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) | 1301 | // InternalCftLanguage.g:485:3: ( (lv_name_0_0= ruleValidId ) ) ( (lv_distribution_1_0= ruleDistribution ) ) |
1265 | { | 1302 | { |
1266 | // InternalCftLanguage.g:480:3: ( (lv_name_0_0= RULE_ID ) ) | 1303 | // InternalCftLanguage.g:485:3: ( (lv_name_0_0= ruleValidId ) ) |
1267 | // InternalCftLanguage.g:481:4: (lv_name_0_0= RULE_ID ) | 1304 | // InternalCftLanguage.g:486:4: (lv_name_0_0= ruleValidId ) |
1268 | { | 1305 | { |
1269 | // InternalCftLanguage.g:481:4: (lv_name_0_0= RULE_ID ) | 1306 | // InternalCftLanguage.g:486:4: (lv_name_0_0= ruleValidId ) |
1270 | // InternalCftLanguage.g:482:5: lv_name_0_0= RULE_ID | 1307 | // InternalCftLanguage.g:487:5: lv_name_0_0= ruleValidId |
1271 | { | 1308 | { |
1272 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_14); | ||
1273 | 1309 | ||
1274 | newLeafNode(lv_name_0_0, grammarAccess.getBasicEventDefinitionAccess().getNameIDTerminalRuleCall_0_0()); | 1310 | newCompositeNode(grammarAccess.getBasicEventDefinitionAccess().getNameValidIdParserRuleCall_0_0()); |
1275 | 1311 | ||
1312 | pushFollow(FOLLOW_14); | ||
1313 | lv_name_0_0=ruleValidId(); | ||
1314 | |||
1315 | state._fsp--; | ||
1316 | |||
1276 | 1317 | ||
1277 | if (current==null) { | 1318 | if (current==null) { |
1278 | current = createModelElement(grammarAccess.getBasicEventDefinitionRule()); | 1319 | current = createModelElementForParent(grammarAccess.getBasicEventDefinitionRule()); |
1279 | } | 1320 | } |
1280 | setWithLastConsumed( | 1321 | set( |
1281 | current, | 1322 | current, |
1282 | "name", | 1323 | "name", |
1283 | lv_name_0_0, | 1324 | lv_name_0_0, |
1284 | "org.eclipse.xtext.common.Terminals.ID"); | 1325 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
1326 | afterParserOrEnumRuleCall(); | ||
1327 | |||
1328 | |||
1329 | } | ||
1330 | |||
1331 | |||
1332 | } | ||
1333 | |||
1334 | // InternalCftLanguage.g:504:3: ( (lv_distribution_1_0= ruleDistribution ) ) | ||
1335 | // InternalCftLanguage.g:505:4: (lv_distribution_1_0= ruleDistribution ) | ||
1336 | { | ||
1337 | // InternalCftLanguage.g:505:4: (lv_distribution_1_0= ruleDistribution ) | ||
1338 | // InternalCftLanguage.g:506:5: lv_distribution_1_0= ruleDistribution | ||
1339 | { | ||
1340 | |||
1341 | newCompositeNode(grammarAccess.getBasicEventDefinitionAccess().getDistributionDistributionParserRuleCall_1_0()); | ||
1342 | |||
1343 | pushFollow(FOLLOW_2); | ||
1344 | lv_distribution_1_0=ruleDistribution(); | ||
1345 | |||
1346 | state._fsp--; | ||
1347 | |||
1348 | |||
1349 | if (current==null) { | ||
1350 | current = createModelElementForParent(grammarAccess.getBasicEventDefinitionRule()); | ||
1351 | } | ||
1352 | set( | ||
1353 | current, | ||
1354 | "distribution", | ||
1355 | lv_distribution_1_0, | ||
1356 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Distribution"); | ||
1357 | afterParserOrEnumRuleCall(); | ||
1358 | |||
1359 | |||
1360 | } | ||
1361 | |||
1362 | |||
1363 | } | ||
1364 | |||
1365 | |||
1366 | } | ||
1367 | |||
1368 | |||
1369 | } | ||
1370 | |||
1371 | |||
1372 | leaveRule(); | ||
1373 | |||
1374 | } | ||
1375 | |||
1376 | catch (RecognitionException re) { | ||
1377 | recover(input,re); | ||
1378 | appendSkippedTokens(); | ||
1379 | } | ||
1380 | finally { | ||
1381 | } | ||
1382 | return current; | ||
1383 | } | ||
1384 | // $ANTLR end "ruleBasicEventDefinition" | ||
1385 | |||
1386 | |||
1387 | // $ANTLR start "entryRuleDistribution" | ||
1388 | // InternalCftLanguage.g:527:1: entryRuleDistribution returns [EObject current=null] : iv_ruleDistribution= ruleDistribution EOF ; | ||
1389 | public final EObject entryRuleDistribution() throws RecognitionException { | ||
1390 | EObject current = null; | ||
1391 | |||
1392 | EObject iv_ruleDistribution = null; | ||
1393 | |||
1394 | |||
1395 | try { | ||
1396 | // InternalCftLanguage.g:527:53: (iv_ruleDistribution= ruleDistribution EOF ) | ||
1397 | // InternalCftLanguage.g:528:2: iv_ruleDistribution= ruleDistribution EOF | ||
1398 | { | ||
1399 | newCompositeNode(grammarAccess.getDistributionRule()); | ||
1400 | pushFollow(FOLLOW_1); | ||
1401 | iv_ruleDistribution=ruleDistribution(); | ||
1402 | |||
1403 | state._fsp--; | ||
1404 | |||
1405 | current =iv_ruleDistribution; | ||
1406 | match(input,EOF,FOLLOW_2); | ||
1407 | |||
1408 | } | ||
1409 | |||
1410 | } | ||
1411 | |||
1412 | catch (RecognitionException re) { | ||
1413 | recover(input,re); | ||
1414 | appendSkippedTokens(); | ||
1415 | } | ||
1416 | finally { | ||
1417 | } | ||
1418 | return current; | ||
1419 | } | ||
1420 | // $ANTLR end "entryRuleDistribution" | ||
1421 | |||
1422 | |||
1423 | // $ANTLR start "ruleDistribution" | ||
1424 | // InternalCftLanguage.g:534:1: ruleDistribution returns [EObject current=null] : (this_ConstantDistribution_0= ruleConstantDistribution | this_ExponentialDistribution_1= ruleExponentialDistribution ) ; | ||
1425 | public final EObject ruleDistribution() throws RecognitionException { | ||
1426 | EObject current = null; | ||
1427 | |||
1428 | EObject this_ConstantDistribution_0 = null; | ||
1429 | |||
1430 | EObject this_ExponentialDistribution_1 = null; | ||
1431 | |||
1432 | |||
1433 | |||
1434 | enterRule(); | ||
1435 | |||
1436 | try { | ||
1437 | // InternalCftLanguage.g:540:2: ( (this_ConstantDistribution_0= ruleConstantDistribution | this_ExponentialDistribution_1= ruleExponentialDistribution ) ) | ||
1438 | // InternalCftLanguage.g:541:2: (this_ConstantDistribution_0= ruleConstantDistribution | this_ExponentialDistribution_1= ruleExponentialDistribution ) | ||
1439 | { | ||
1440 | // InternalCftLanguage.g:541:2: (this_ConstantDistribution_0= ruleConstantDistribution | this_ExponentialDistribution_1= ruleExponentialDistribution ) | ||
1441 | int alt11=2; | ||
1442 | int LA11_0 = input.LA(1); | ||
1443 | |||
1444 | if ( (LA11_0==22) ) { | ||
1445 | alt11=1; | ||
1446 | } | ||
1447 | else if ( (LA11_0==24) ) { | ||
1448 | alt11=2; | ||
1449 | } | ||
1450 | else { | ||
1451 | NoViableAltException nvae = | ||
1452 | new NoViableAltException("", 11, 0, input); | ||
1453 | |||
1454 | throw nvae; | ||
1455 | } | ||
1456 | switch (alt11) { | ||
1457 | case 1 : | ||
1458 | // InternalCftLanguage.g:542:3: this_ConstantDistribution_0= ruleConstantDistribution | ||
1459 | { | ||
1460 | |||
1461 | newCompositeNode(grammarAccess.getDistributionAccess().getConstantDistributionParserRuleCall_0()); | ||
1462 | |||
1463 | pushFollow(FOLLOW_2); | ||
1464 | this_ConstantDistribution_0=ruleConstantDistribution(); | ||
1465 | |||
1466 | state._fsp--; | ||
1467 | |||
1468 | |||
1469 | current = this_ConstantDistribution_0; | ||
1470 | afterParserOrEnumRuleCall(); | ||
1471 | |||
1472 | |||
1473 | } | ||
1474 | break; | ||
1475 | case 2 : | ||
1476 | // InternalCftLanguage.g:551:3: this_ExponentialDistribution_1= ruleExponentialDistribution | ||
1477 | { | ||
1478 | |||
1479 | newCompositeNode(grammarAccess.getDistributionAccess().getExponentialDistributionParserRuleCall_1()); | ||
1480 | |||
1481 | pushFollow(FOLLOW_2); | ||
1482 | this_ExponentialDistribution_1=ruleExponentialDistribution(); | ||
1483 | |||
1484 | state._fsp--; | ||
1485 | |||
1486 | |||
1487 | current = this_ExponentialDistribution_1; | ||
1488 | afterParserOrEnumRuleCall(); | ||
1489 | |||
1490 | |||
1491 | } | ||
1492 | break; | ||
1493 | |||
1494 | } | ||
1495 | |||
1496 | |||
1497 | } | ||
1498 | |||
1499 | |||
1500 | leaveRule(); | ||
1501 | |||
1502 | } | ||
1503 | |||
1504 | catch (RecognitionException re) { | ||
1505 | recover(input,re); | ||
1506 | appendSkippedTokens(); | ||
1507 | } | ||
1508 | finally { | ||
1509 | } | ||
1510 | return current; | ||
1511 | } | ||
1512 | // $ANTLR end "ruleDistribution" | ||
1513 | |||
1514 | |||
1515 | // $ANTLR start "entryRuleConstantDistribution" | ||
1516 | // InternalCftLanguage.g:563:1: entryRuleConstantDistribution returns [EObject current=null] : iv_ruleConstantDistribution= ruleConstantDistribution EOF ; | ||
1517 | public final EObject entryRuleConstantDistribution() throws RecognitionException { | ||
1518 | EObject current = null; | ||
1519 | |||
1520 | EObject iv_ruleConstantDistribution = null; | ||
1521 | |||
1522 | |||
1523 | try { | ||
1524 | // InternalCftLanguage.g:563:61: (iv_ruleConstantDistribution= ruleConstantDistribution EOF ) | ||
1525 | // InternalCftLanguage.g:564:2: iv_ruleConstantDistribution= ruleConstantDistribution EOF | ||
1526 | { | ||
1527 | newCompositeNode(grammarAccess.getConstantDistributionRule()); | ||
1528 | pushFollow(FOLLOW_1); | ||
1529 | iv_ruleConstantDistribution=ruleConstantDistribution(); | ||
1530 | |||
1531 | state._fsp--; | ||
1532 | |||
1533 | current =iv_ruleConstantDistribution; | ||
1534 | match(input,EOF,FOLLOW_2); | ||
1535 | |||
1536 | } | ||
1537 | |||
1538 | } | ||
1539 | |||
1540 | catch (RecognitionException re) { | ||
1541 | recover(input,re); | ||
1542 | appendSkippedTokens(); | ||
1543 | } | ||
1544 | finally { | ||
1545 | } | ||
1546 | return current; | ||
1547 | } | ||
1548 | // $ANTLR end "entryRuleConstantDistribution" | ||
1549 | |||
1550 | |||
1551 | // $ANTLR start "ruleConstantDistribution" | ||
1552 | // InternalCftLanguage.g:570:1: ruleConstantDistribution returns [EObject current=null] : (otherlv_0= 'p' otherlv_1= '=' ( (lv_p_2_0= ruleDouble ) ) ) ; | ||
1553 | public final EObject ruleConstantDistribution() throws RecognitionException { | ||
1554 | EObject current = null; | ||
1555 | |||
1556 | Token otherlv_0=null; | ||
1557 | Token otherlv_1=null; | ||
1558 | AntlrDatatypeRuleToken lv_p_2_0 = null; | ||
1559 | |||
1560 | |||
1561 | |||
1562 | enterRule(); | ||
1563 | |||
1564 | try { | ||
1565 | // InternalCftLanguage.g:576:2: ( (otherlv_0= 'p' otherlv_1= '=' ( (lv_p_2_0= ruleDouble ) ) ) ) | ||
1566 | // InternalCftLanguage.g:577:2: (otherlv_0= 'p' otherlv_1= '=' ( (lv_p_2_0= ruleDouble ) ) ) | ||
1567 | { | ||
1568 | // InternalCftLanguage.g:577:2: (otherlv_0= 'p' otherlv_1= '=' ( (lv_p_2_0= ruleDouble ) ) ) | ||
1569 | // InternalCftLanguage.g:578:3: otherlv_0= 'p' otherlv_1= '=' ( (lv_p_2_0= ruleDouble ) ) | ||
1570 | { | ||
1571 | otherlv_0=(Token)match(input,22,FOLLOW_15); | ||
1572 | |||
1573 | newLeafNode(otherlv_0, grammarAccess.getConstantDistributionAccess().getPKeyword_0()); | ||
1574 | |||
1575 | otherlv_1=(Token)match(input,23,FOLLOW_16); | ||
1576 | |||
1577 | newLeafNode(otherlv_1, grammarAccess.getConstantDistributionAccess().getEqualsSignKeyword_1()); | ||
1578 | |||
1579 | // InternalCftLanguage.g:586:3: ( (lv_p_2_0= ruleDouble ) ) | ||
1580 | // InternalCftLanguage.g:587:4: (lv_p_2_0= ruleDouble ) | ||
1581 | { | ||
1582 | // InternalCftLanguage.g:587:4: (lv_p_2_0= ruleDouble ) | ||
1583 | // InternalCftLanguage.g:588:5: lv_p_2_0= ruleDouble | ||
1584 | { | ||
1585 | |||
1586 | newCompositeNode(grammarAccess.getConstantDistributionAccess().getPDoubleParserRuleCall_2_0()); | ||
1587 | |||
1588 | pushFollow(FOLLOW_2); | ||
1589 | lv_p_2_0=ruleDouble(); | ||
1590 | |||
1591 | state._fsp--; | ||
1592 | |||
1593 | |||
1594 | if (current==null) { | ||
1595 | current = createModelElementForParent(grammarAccess.getConstantDistributionRule()); | ||
1596 | } | ||
1597 | set( | ||
1598 | current, | ||
1599 | "p", | ||
1600 | lv_p_2_0, | ||
1601 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Double"); | ||
1602 | afterParserOrEnumRuleCall(); | ||
1285 | 1603 | ||
1286 | 1604 | ||
1287 | } | 1605 | } |
@@ -1289,33 +1607,116 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1289 | 1607 | ||
1290 | } | 1608 | } |
1291 | 1609 | ||
1292 | otherlv_1=(Token)match(input,21,FOLLOW_15); | ||
1293 | 1610 | ||
1294 | newLeafNode(otherlv_1, grammarAccess.getBasicEventDefinitionAccess().getLambdaKeyword_1()); | 1611 | } |
1612 | |||
1613 | |||
1614 | } | ||
1615 | |||
1616 | |||
1617 | leaveRule(); | ||
1618 | |||
1619 | } | ||
1620 | |||
1621 | catch (RecognitionException re) { | ||
1622 | recover(input,re); | ||
1623 | appendSkippedTokens(); | ||
1624 | } | ||
1625 | finally { | ||
1626 | } | ||
1627 | return current; | ||
1628 | } | ||
1629 | // $ANTLR end "ruleConstantDistribution" | ||
1630 | |||
1631 | |||
1632 | // $ANTLR start "entryRuleExponentialDistribution" | ||
1633 | // InternalCftLanguage.g:609:1: entryRuleExponentialDistribution returns [EObject current=null] : iv_ruleExponentialDistribution= ruleExponentialDistribution EOF ; | ||
1634 | public final EObject entryRuleExponentialDistribution() throws RecognitionException { | ||
1635 | EObject current = null; | ||
1636 | |||
1637 | EObject iv_ruleExponentialDistribution = null; | ||
1638 | |||
1639 | |||
1640 | try { | ||
1641 | // InternalCftLanguage.g:609:64: (iv_ruleExponentialDistribution= ruleExponentialDistribution EOF ) | ||
1642 | // InternalCftLanguage.g:610:2: iv_ruleExponentialDistribution= ruleExponentialDistribution EOF | ||
1643 | { | ||
1644 | newCompositeNode(grammarAccess.getExponentialDistributionRule()); | ||
1645 | pushFollow(FOLLOW_1); | ||
1646 | iv_ruleExponentialDistribution=ruleExponentialDistribution(); | ||
1647 | |||
1648 | state._fsp--; | ||
1649 | |||
1650 | current =iv_ruleExponentialDistribution; | ||
1651 | match(input,EOF,FOLLOW_2); | ||
1652 | |||
1653 | } | ||
1654 | |||
1655 | } | ||
1656 | |||
1657 | catch (RecognitionException re) { | ||
1658 | recover(input,re); | ||
1659 | appendSkippedTokens(); | ||
1660 | } | ||
1661 | finally { | ||
1662 | } | ||
1663 | return current; | ||
1664 | } | ||
1665 | // $ANTLR end "entryRuleExponentialDistribution" | ||
1666 | |||
1667 | |||
1668 | // $ANTLR start "ruleExponentialDistribution" | ||
1669 | // InternalCftLanguage.g:616:1: ruleExponentialDistribution returns [EObject current=null] : (otherlv_0= 'lambda' otherlv_1= '=' ( (lv_lambda_2_0= ruleDouble ) ) ) ; | ||
1670 | public final EObject ruleExponentialDistribution() throws RecognitionException { | ||
1671 | EObject current = null; | ||
1672 | |||
1673 | Token otherlv_0=null; | ||
1674 | Token otherlv_1=null; | ||
1675 | AntlrDatatypeRuleToken lv_lambda_2_0 = null; | ||
1676 | |||
1677 | |||
1678 | |||
1679 | enterRule(); | ||
1680 | |||
1681 | try { | ||
1682 | // InternalCftLanguage.g:622:2: ( (otherlv_0= 'lambda' otherlv_1= '=' ( (lv_lambda_2_0= ruleDouble ) ) ) ) | ||
1683 | // InternalCftLanguage.g:623:2: (otherlv_0= 'lambda' otherlv_1= '=' ( (lv_lambda_2_0= ruleDouble ) ) ) | ||
1684 | { | ||
1685 | // InternalCftLanguage.g:623:2: (otherlv_0= 'lambda' otherlv_1= '=' ( (lv_lambda_2_0= ruleDouble ) ) ) | ||
1686 | // InternalCftLanguage.g:624:3: otherlv_0= 'lambda' otherlv_1= '=' ( (lv_lambda_2_0= ruleDouble ) ) | ||
1687 | { | ||
1688 | otherlv_0=(Token)match(input,24,FOLLOW_15); | ||
1689 | |||
1690 | newLeafNode(otherlv_0, grammarAccess.getExponentialDistributionAccess().getLambdaKeyword_0()); | ||
1295 | 1691 | ||
1296 | otherlv_2=(Token)match(input,22,FOLLOW_16); | 1692 | otherlv_1=(Token)match(input,23,FOLLOW_16); |
1297 | 1693 | ||
1298 | newLeafNode(otherlv_2, grammarAccess.getBasicEventDefinitionAccess().getEqualsSignKeyword_2()); | 1694 | newLeafNode(otherlv_1, grammarAccess.getExponentialDistributionAccess().getEqualsSignKeyword_1()); |
1299 | 1695 | ||
1300 | // InternalCftLanguage.g:506:3: ( (lv_rate_3_0= RULE_DOULBE ) ) | 1696 | // InternalCftLanguage.g:632:3: ( (lv_lambda_2_0= ruleDouble ) ) |
1301 | // InternalCftLanguage.g:507:4: (lv_rate_3_0= RULE_DOULBE ) | 1697 | // InternalCftLanguage.g:633:4: (lv_lambda_2_0= ruleDouble ) |
1302 | { | 1698 | { |
1303 | // InternalCftLanguage.g:507:4: (lv_rate_3_0= RULE_DOULBE ) | 1699 | // InternalCftLanguage.g:633:4: (lv_lambda_2_0= ruleDouble ) |
1304 | // InternalCftLanguage.g:508:5: lv_rate_3_0= RULE_DOULBE | 1700 | // InternalCftLanguage.g:634:5: lv_lambda_2_0= ruleDouble |
1305 | { | 1701 | { |
1306 | lv_rate_3_0=(Token)match(input,RULE_DOULBE,FOLLOW_2); | ||
1307 | 1702 | ||
1308 | newLeafNode(lv_rate_3_0, grammarAccess.getBasicEventDefinitionAccess().getRateDOULBETerminalRuleCall_3_0()); | 1703 | newCompositeNode(grammarAccess.getExponentialDistributionAccess().getLambdaDoubleParserRuleCall_2_0()); |
1309 | 1704 | ||
1705 | pushFollow(FOLLOW_2); | ||
1706 | lv_lambda_2_0=ruleDouble(); | ||
1707 | |||
1708 | state._fsp--; | ||
1709 | |||
1310 | 1710 | ||
1311 | if (current==null) { | 1711 | if (current==null) { |
1312 | current = createModelElement(grammarAccess.getBasicEventDefinitionRule()); | 1712 | current = createModelElementForParent(grammarAccess.getExponentialDistributionRule()); |
1313 | } | 1713 | } |
1314 | setWithLastConsumed( | 1714 | set( |
1315 | current, | 1715 | current, |
1316 | "rate", | 1716 | "lambda", |
1317 | lv_rate_3_0, | 1717 | lv_lambda_2_0, |
1318 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.DOULBE"); | 1718 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Double"); |
1719 | afterParserOrEnumRuleCall(); | ||
1319 | 1720 | ||
1320 | 1721 | ||
1321 | } | 1722 | } |
@@ -1342,11 +1743,11 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1342 | } | 1743 | } |
1343 | return current; | 1744 | return current; |
1344 | } | 1745 | } |
1345 | // $ANTLR end "ruleBasicEventDefinition" | 1746 | // $ANTLR end "ruleExponentialDistribution" |
1346 | 1747 | ||
1347 | 1748 | ||
1348 | // $ANTLR start "entryRuleGateDefinition" | 1749 | // $ANTLR start "entryRuleGateDefinition" |
1349 | // InternalCftLanguage.g:528:1: entryRuleGateDefinition returns [EObject current=null] : iv_ruleGateDefinition= ruleGateDefinition EOF ; | 1750 | // InternalCftLanguage.g:655:1: entryRuleGateDefinition returns [EObject current=null] : iv_ruleGateDefinition= ruleGateDefinition EOF ; |
1350 | public final EObject entryRuleGateDefinition() throws RecognitionException { | 1751 | public final EObject entryRuleGateDefinition() throws RecognitionException { |
1351 | EObject current = null; | 1752 | EObject current = null; |
1352 | 1753 | ||
@@ -1354,8 +1755,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1354 | 1755 | ||
1355 | 1756 | ||
1356 | try { | 1757 | try { |
1357 | // InternalCftLanguage.g:528:55: (iv_ruleGateDefinition= ruleGateDefinition EOF ) | 1758 | // InternalCftLanguage.g:655:55: (iv_ruleGateDefinition= ruleGateDefinition EOF ) |
1358 | // InternalCftLanguage.g:529:2: iv_ruleGateDefinition= ruleGateDefinition EOF | 1759 | // InternalCftLanguage.g:656:2: iv_ruleGateDefinition= ruleGateDefinition EOF |
1359 | { | 1760 | { |
1360 | newCompositeNode(grammarAccess.getGateDefinitionRule()); | 1761 | newCompositeNode(grammarAccess.getGateDefinitionRule()); |
1361 | pushFollow(FOLLOW_1); | 1762 | pushFollow(FOLLOW_1); |
@@ -1382,80 +1783,134 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1382 | 1783 | ||
1383 | 1784 | ||
1384 | // $ANTLR start "ruleGateDefinition" | 1785 | // $ANTLR start "ruleGateDefinition" |
1385 | // InternalCftLanguage.g:535:1: ruleGateDefinition returns [EObject current=null] : (this_AndGate_0= ruleAndGate | this_OrGate_1= ruleOrGate ) ; | 1786 | // InternalCftLanguage.g:662:1: ruleGateDefinition returns [EObject current=null] : (this_AndGateDefinition_0= ruleAndGateDefinition | this_OrGateDefinition_1= ruleOrGateDefinition | this_KOfMGateDefinition_2= ruleKOfMGateDefinition ) ; |
1386 | public final EObject ruleGateDefinition() throws RecognitionException { | 1787 | public final EObject ruleGateDefinition() throws RecognitionException { |
1387 | EObject current = null; | 1788 | EObject current = null; |
1388 | 1789 | ||
1389 | EObject this_AndGate_0 = null; | 1790 | EObject this_AndGateDefinition_0 = null; |
1390 | 1791 | ||
1391 | EObject this_OrGate_1 = null; | 1792 | EObject this_OrGateDefinition_1 = null; |
1793 | |||
1794 | EObject this_KOfMGateDefinition_2 = null; | ||
1392 | 1795 | ||
1393 | 1796 | ||
1394 | 1797 | ||
1395 | enterRule(); | 1798 | enterRule(); |
1396 | 1799 | ||
1397 | try { | 1800 | try { |
1398 | // InternalCftLanguage.g:541:2: ( (this_AndGate_0= ruleAndGate | this_OrGate_1= ruleOrGate ) ) | 1801 | // InternalCftLanguage.g:668:2: ( (this_AndGateDefinition_0= ruleAndGateDefinition | this_OrGateDefinition_1= ruleOrGateDefinition | this_KOfMGateDefinition_2= ruleKOfMGateDefinition ) ) |
1399 | // InternalCftLanguage.g:542:2: (this_AndGate_0= ruleAndGate | this_OrGate_1= ruleOrGate ) | 1802 | // InternalCftLanguage.g:669:2: (this_AndGateDefinition_0= ruleAndGateDefinition | this_OrGateDefinition_1= ruleOrGateDefinition | this_KOfMGateDefinition_2= ruleKOfMGateDefinition ) |
1400 | { | 1803 | { |
1401 | // InternalCftLanguage.g:542:2: (this_AndGate_0= ruleAndGate | this_OrGate_1= ruleOrGate ) | 1804 | // InternalCftLanguage.g:669:2: (this_AndGateDefinition_0= ruleAndGateDefinition | this_OrGateDefinition_1= ruleOrGateDefinition | this_KOfMGateDefinition_2= ruleKOfMGateDefinition ) |
1402 | int alt11=2; | 1805 | int alt12=3; |
1403 | int LA11_0 = input.LA(1); | 1806 | int LA12_0 = input.LA(1); |
1404 | 1807 | ||
1405 | if ( (LA11_0==RULE_ID) ) { | 1808 | if ( (LA12_0==RULE_ID) ) { |
1406 | int LA11_1 = input.LA(2); | 1809 | switch ( input.LA(2) ) { |
1810 | case RULE_INT: | ||
1811 | { | ||
1812 | alt12=3; | ||
1813 | } | ||
1814 | break; | ||
1815 | case 26: | ||
1816 | { | ||
1817 | alt12=2; | ||
1818 | } | ||
1819 | break; | ||
1820 | case 25: | ||
1821 | { | ||
1822 | alt12=1; | ||
1823 | } | ||
1824 | break; | ||
1825 | default: | ||
1826 | NoViableAltException nvae = | ||
1827 | new NoViableAltException("", 12, 1, input); | ||
1407 | 1828 | ||
1408 | if ( (LA11_1==24) ) { | 1829 | throw nvae; |
1409 | alt11=2; | ||
1410 | } | ||
1411 | else if ( (LA11_1==23) ) { | ||
1412 | alt11=1; | ||
1413 | } | 1830 | } |
1414 | else { | 1831 | |
1832 | } | ||
1833 | else if ( (LA12_0==RULE_OF_INT) ) { | ||
1834 | switch ( input.LA(2) ) { | ||
1835 | case RULE_INT: | ||
1836 | { | ||
1837 | alt12=3; | ||
1838 | } | ||
1839 | break; | ||
1840 | case 26: | ||
1841 | { | ||
1842 | alt12=2; | ||
1843 | } | ||
1844 | break; | ||
1845 | case 25: | ||
1846 | { | ||
1847 | alt12=1; | ||
1848 | } | ||
1849 | break; | ||
1850 | default: | ||
1415 | NoViableAltException nvae = | 1851 | NoViableAltException nvae = |
1416 | new NoViableAltException("", 11, 1, input); | 1852 | new NoViableAltException("", 12, 2, input); |
1417 | 1853 | ||
1418 | throw nvae; | 1854 | throw nvae; |
1419 | } | 1855 | } |
1856 | |||
1420 | } | 1857 | } |
1421 | else { | 1858 | else { |
1422 | NoViableAltException nvae = | 1859 | NoViableAltException nvae = |
1423 | new NoViableAltException("", 11, 0, input); | 1860 | new NoViableAltException("", 12, 0, input); |
1424 | 1861 | ||
1425 | throw nvae; | 1862 | throw nvae; |
1426 | } | 1863 | } |
1427 | switch (alt11) { | 1864 | switch (alt12) { |
1428 | case 1 : | 1865 | case 1 : |
1429 | // InternalCftLanguage.g:543:3: this_AndGate_0= ruleAndGate | 1866 | // InternalCftLanguage.g:670:3: this_AndGateDefinition_0= ruleAndGateDefinition |
1430 | { | 1867 | { |
1431 | 1868 | ||
1432 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getAndGateParserRuleCall_0()); | 1869 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getAndGateDefinitionParserRuleCall_0()); |
1433 | 1870 | ||
1434 | pushFollow(FOLLOW_2); | 1871 | pushFollow(FOLLOW_2); |
1435 | this_AndGate_0=ruleAndGate(); | 1872 | this_AndGateDefinition_0=ruleAndGateDefinition(); |
1436 | 1873 | ||
1437 | state._fsp--; | 1874 | state._fsp--; |
1438 | 1875 | ||
1439 | 1876 | ||
1440 | current = this_AndGate_0; | 1877 | current = this_AndGateDefinition_0; |
1441 | afterParserOrEnumRuleCall(); | 1878 | afterParserOrEnumRuleCall(); |
1442 | 1879 | ||
1443 | 1880 | ||
1444 | } | 1881 | } |
1445 | break; | 1882 | break; |
1446 | case 2 : | 1883 | case 2 : |
1447 | // InternalCftLanguage.g:552:3: this_OrGate_1= ruleOrGate | 1884 | // InternalCftLanguage.g:679:3: this_OrGateDefinition_1= ruleOrGateDefinition |
1448 | { | 1885 | { |
1449 | 1886 | ||
1450 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getOrGateParserRuleCall_1()); | 1887 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getOrGateDefinitionParserRuleCall_1()); |
1451 | 1888 | ||
1452 | pushFollow(FOLLOW_2); | 1889 | pushFollow(FOLLOW_2); |
1453 | this_OrGate_1=ruleOrGate(); | 1890 | this_OrGateDefinition_1=ruleOrGateDefinition(); |
1454 | 1891 | ||
1455 | state._fsp--; | 1892 | state._fsp--; |
1456 | 1893 | ||
1457 | 1894 | ||
1458 | current = this_OrGate_1; | 1895 | current = this_OrGateDefinition_1; |
1896 | afterParserOrEnumRuleCall(); | ||
1897 | |||
1898 | |||
1899 | } | ||
1900 | break; | ||
1901 | case 3 : | ||
1902 | // InternalCftLanguage.g:688:3: this_KOfMGateDefinition_2= ruleKOfMGateDefinition | ||
1903 | { | ||
1904 | |||
1905 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getKOfMGateDefinitionParserRuleCall_2()); | ||
1906 | |||
1907 | pushFollow(FOLLOW_2); | ||
1908 | this_KOfMGateDefinition_2=ruleKOfMGateDefinition(); | ||
1909 | |||
1910 | state._fsp--; | ||
1911 | |||
1912 | |||
1913 | current = this_KOfMGateDefinition_2; | ||
1459 | afterParserOrEnumRuleCall(); | 1914 | afterParserOrEnumRuleCall(); |
1460 | 1915 | ||
1461 | 1916 | ||
@@ -1483,25 +1938,25 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1483 | // $ANTLR end "ruleGateDefinition" | 1938 | // $ANTLR end "ruleGateDefinition" |
1484 | 1939 | ||
1485 | 1940 | ||
1486 | // $ANTLR start "entryRuleAndGate" | 1941 | // $ANTLR start "entryRuleAndGateDefinition" |
1487 | // InternalCftLanguage.g:564:1: entryRuleAndGate returns [EObject current=null] : iv_ruleAndGate= ruleAndGate EOF ; | 1942 | // InternalCftLanguage.g:700:1: entryRuleAndGateDefinition returns [EObject current=null] : iv_ruleAndGateDefinition= ruleAndGateDefinition EOF ; |
1488 | public final EObject entryRuleAndGate() throws RecognitionException { | 1943 | public final EObject entryRuleAndGateDefinition() throws RecognitionException { |
1489 | EObject current = null; | 1944 | EObject current = null; |
1490 | 1945 | ||
1491 | EObject iv_ruleAndGate = null; | 1946 | EObject iv_ruleAndGateDefinition = null; |
1492 | 1947 | ||
1493 | 1948 | ||
1494 | try { | 1949 | try { |
1495 | // InternalCftLanguage.g:564:48: (iv_ruleAndGate= ruleAndGate EOF ) | 1950 | // InternalCftLanguage.g:700:58: (iv_ruleAndGateDefinition= ruleAndGateDefinition EOF ) |
1496 | // InternalCftLanguage.g:565:2: iv_ruleAndGate= ruleAndGate EOF | 1951 | // InternalCftLanguage.g:701:2: iv_ruleAndGateDefinition= ruleAndGateDefinition EOF |
1497 | { | 1952 | { |
1498 | newCompositeNode(grammarAccess.getAndGateRule()); | 1953 | newCompositeNode(grammarAccess.getAndGateDefinitionRule()); |
1499 | pushFollow(FOLLOW_1); | 1954 | pushFollow(FOLLOW_1); |
1500 | iv_ruleAndGate=ruleAndGate(); | 1955 | iv_ruleAndGateDefinition=ruleAndGateDefinition(); |
1501 | 1956 | ||
1502 | state._fsp--; | 1957 | state._fsp--; |
1503 | 1958 | ||
1504 | current =iv_ruleAndGate; | 1959 | current =iv_ruleAndGateDefinition; |
1505 | match(input,EOF,FOLLOW_2); | 1960 | match(input,EOF,FOLLOW_2); |
1506 | 1961 | ||
1507 | } | 1962 | } |
@@ -1516,47 +1971,52 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1516 | } | 1971 | } |
1517 | return current; | 1972 | return current; |
1518 | } | 1973 | } |
1519 | // $ANTLR end "entryRuleAndGate" | 1974 | // $ANTLR end "entryRuleAndGateDefinition" |
1520 | 1975 | ||
1521 | 1976 | ||
1522 | // $ANTLR start "ruleAndGate" | 1977 | // $ANTLR start "ruleAndGateDefinition" |
1523 | // InternalCftLanguage.g:571:1: ruleAndGate returns [EObject current=null] : ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* ) ; | 1978 | // InternalCftLanguage.g:707:1: ruleAndGateDefinition returns [EObject current=null] : ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'and' ( ( ruleValidId ) )* ) ; |
1524 | public final EObject ruleAndGate() throws RecognitionException { | 1979 | public final EObject ruleAndGateDefinition() throws RecognitionException { |
1525 | EObject current = null; | 1980 | EObject current = null; |
1526 | 1981 | ||
1527 | Token lv_name_0_0=null; | ||
1528 | Token otherlv_1=null; | 1982 | Token otherlv_1=null; |
1529 | Token otherlv_2=null; | 1983 | AntlrDatatypeRuleToken lv_name_0_0 = null; |
1984 | |||
1530 | 1985 | ||
1531 | 1986 | ||
1532 | enterRule(); | 1987 | enterRule(); |
1533 | 1988 | ||
1534 | try { | 1989 | try { |
1535 | // InternalCftLanguage.g:577:2: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* ) ) | 1990 | // InternalCftLanguage.g:713:2: ( ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'and' ( ( ruleValidId ) )* ) ) |
1536 | // InternalCftLanguage.g:578:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* ) | 1991 | // InternalCftLanguage.g:714:2: ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'and' ( ( ruleValidId ) )* ) |
1537 | { | 1992 | { |
1538 | // InternalCftLanguage.g:578:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* ) | 1993 | // InternalCftLanguage.g:714:2: ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'and' ( ( ruleValidId ) )* ) |
1539 | // InternalCftLanguage.g:579:3: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* | 1994 | // InternalCftLanguage.g:715:3: ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'and' ( ( ruleValidId ) )* |
1540 | { | 1995 | { |
1541 | // InternalCftLanguage.g:579:3: ( (lv_name_0_0= RULE_ID ) ) | 1996 | // InternalCftLanguage.g:715:3: ( (lv_name_0_0= ruleValidId ) ) |
1542 | // InternalCftLanguage.g:580:4: (lv_name_0_0= RULE_ID ) | 1997 | // InternalCftLanguage.g:716:4: (lv_name_0_0= ruleValidId ) |
1543 | { | 1998 | { |
1544 | // InternalCftLanguage.g:580:4: (lv_name_0_0= RULE_ID ) | 1999 | // InternalCftLanguage.g:716:4: (lv_name_0_0= ruleValidId ) |
1545 | // InternalCftLanguage.g:581:5: lv_name_0_0= RULE_ID | 2000 | // InternalCftLanguage.g:717:5: lv_name_0_0= ruleValidId |
1546 | { | 2001 | { |
1547 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_17); | ||
1548 | 2002 | ||
1549 | newLeafNode(lv_name_0_0, grammarAccess.getAndGateAccess().getNameIDTerminalRuleCall_0_0()); | 2003 | newCompositeNode(grammarAccess.getAndGateDefinitionAccess().getNameValidIdParserRuleCall_0_0()); |
1550 | 2004 | ||
2005 | pushFollow(FOLLOW_17); | ||
2006 | lv_name_0_0=ruleValidId(); | ||
2007 | |||
2008 | state._fsp--; | ||
2009 | |||
1551 | 2010 | ||
1552 | if (current==null) { | 2011 | if (current==null) { |
1553 | current = createModelElement(grammarAccess.getAndGateRule()); | 2012 | current = createModelElementForParent(grammarAccess.getAndGateDefinitionRule()); |
1554 | } | 2013 | } |
1555 | setWithLastConsumed( | 2014 | set( |
1556 | current, | 2015 | current, |
1557 | "name", | 2016 | "name", |
1558 | lv_name_0_0, | 2017 | lv_name_0_0, |
1559 | "org.eclipse.xtext.common.Terminals.ID"); | 2018 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
2019 | afterParserOrEnumRuleCall(); | ||
1560 | 2020 | ||
1561 | 2021 | ||
1562 | } | 2022 | } |
@@ -1564,36 +2024,43 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1564 | 2024 | ||
1565 | } | 2025 | } |
1566 | 2026 | ||
1567 | otherlv_1=(Token)match(input,23,FOLLOW_18); | 2027 | otherlv_1=(Token)match(input,25,FOLLOW_18); |
1568 | 2028 | ||
1569 | newLeafNode(otherlv_1, grammarAccess.getAndGateAccess().getAndKeyword_1()); | 2029 | newLeafNode(otherlv_1, grammarAccess.getAndGateDefinitionAccess().getAndKeyword_1()); |
1570 | 2030 | ||
1571 | // InternalCftLanguage.g:601:3: ( (otherlv_2= RULE_ID ) )* | 2031 | // InternalCftLanguage.g:738:3: ( ( ruleValidId ) )* |
1572 | loop12: | 2032 | loop13: |
1573 | do { | 2033 | do { |
1574 | int alt12=2; | 2034 | int alt13=2; |
1575 | int LA12_0 = input.LA(1); | 2035 | int LA13_0 = input.LA(1); |
1576 | 2036 | ||
1577 | if ( (LA12_0==RULE_ID) ) { | 2037 | if ( ((LA13_0>=RULE_OF_INT && LA13_0<=RULE_ID)) ) { |
1578 | alt12=1; | 2038 | alt13=1; |
1579 | } | 2039 | } |
1580 | 2040 | ||
1581 | 2041 | ||
1582 | switch (alt12) { | 2042 | switch (alt13) { |
1583 | case 1 : | 2043 | case 1 : |
1584 | // InternalCftLanguage.g:602:4: (otherlv_2= RULE_ID ) | 2044 | // InternalCftLanguage.g:739:4: ( ruleValidId ) |
1585 | { | 2045 | { |
1586 | // InternalCftLanguage.g:602:4: (otherlv_2= RULE_ID ) | 2046 | // InternalCftLanguage.g:739:4: ( ruleValidId ) |
1587 | // InternalCftLanguage.g:603:5: otherlv_2= RULE_ID | 2047 | // InternalCftLanguage.g:740:5: ruleValidId |
1588 | { | 2048 | { |
1589 | 2049 | ||
1590 | if (current==null) { | 2050 | if (current==null) { |
1591 | current = createModelElement(grammarAccess.getAndGateRule()); | 2051 | current = createModelElement(grammarAccess.getAndGateDefinitionRule()); |
1592 | } | 2052 | } |
1593 | 2053 | ||
1594 | otherlv_2=(Token)match(input,RULE_ID,FOLLOW_18); | ||
1595 | 2054 | ||
1596 | newLeafNode(otherlv_2, grammarAccess.getAndGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); | 2055 | newCompositeNode(grammarAccess.getAndGateDefinitionAccess().getInputEventsEventDeclarationCrossReference_2_0()); |
2056 | |||
2057 | pushFollow(FOLLOW_18); | ||
2058 | ruleValidId(); | ||
2059 | |||
2060 | state._fsp--; | ||
2061 | |||
2062 | |||
2063 | afterParserOrEnumRuleCall(); | ||
1597 | 2064 | ||
1598 | 2065 | ||
1599 | } | 2066 | } |
@@ -1603,7 +2070,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1603 | break; | 2070 | break; |
1604 | 2071 | ||
1605 | default : | 2072 | default : |
1606 | break loop12; | 2073 | break loop13; |
1607 | } | 2074 | } |
1608 | } while (true); | 2075 | } while (true); |
1609 | 2076 | ||
@@ -1626,28 +2093,28 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1626 | } | 2093 | } |
1627 | return current; | 2094 | return current; |
1628 | } | 2095 | } |
1629 | // $ANTLR end "ruleAndGate" | 2096 | // $ANTLR end "ruleAndGateDefinition" |
1630 | 2097 | ||
1631 | 2098 | ||
1632 | // $ANTLR start "entryRuleOrGate" | 2099 | // $ANTLR start "entryRuleOrGateDefinition" |
1633 | // InternalCftLanguage.g:618:1: entryRuleOrGate returns [EObject current=null] : iv_ruleOrGate= ruleOrGate EOF ; | 2100 | // InternalCftLanguage.g:758:1: entryRuleOrGateDefinition returns [EObject current=null] : iv_ruleOrGateDefinition= ruleOrGateDefinition EOF ; |
1634 | public final EObject entryRuleOrGate() throws RecognitionException { | 2101 | public final EObject entryRuleOrGateDefinition() throws RecognitionException { |
1635 | EObject current = null; | 2102 | EObject current = null; |
1636 | 2103 | ||
1637 | EObject iv_ruleOrGate = null; | 2104 | EObject iv_ruleOrGateDefinition = null; |
1638 | 2105 | ||
1639 | 2106 | ||
1640 | try { | 2107 | try { |
1641 | // InternalCftLanguage.g:618:47: (iv_ruleOrGate= ruleOrGate EOF ) | 2108 | // InternalCftLanguage.g:758:57: (iv_ruleOrGateDefinition= ruleOrGateDefinition EOF ) |
1642 | // InternalCftLanguage.g:619:2: iv_ruleOrGate= ruleOrGate EOF | 2109 | // InternalCftLanguage.g:759:2: iv_ruleOrGateDefinition= ruleOrGateDefinition EOF |
1643 | { | 2110 | { |
1644 | newCompositeNode(grammarAccess.getOrGateRule()); | 2111 | newCompositeNode(grammarAccess.getOrGateDefinitionRule()); |
1645 | pushFollow(FOLLOW_1); | 2112 | pushFollow(FOLLOW_1); |
1646 | iv_ruleOrGate=ruleOrGate(); | 2113 | iv_ruleOrGateDefinition=ruleOrGateDefinition(); |
1647 | 2114 | ||
1648 | state._fsp--; | 2115 | state._fsp--; |
1649 | 2116 | ||
1650 | current =iv_ruleOrGate; | 2117 | current =iv_ruleOrGateDefinition; |
1651 | match(input,EOF,FOLLOW_2); | 2118 | match(input,EOF,FOLLOW_2); |
1652 | 2119 | ||
1653 | } | 2120 | } |
@@ -1662,47 +2129,52 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1662 | } | 2129 | } |
1663 | return current; | 2130 | return current; |
1664 | } | 2131 | } |
1665 | // $ANTLR end "entryRuleOrGate" | 2132 | // $ANTLR end "entryRuleOrGateDefinition" |
1666 | 2133 | ||
1667 | 2134 | ||
1668 | // $ANTLR start "ruleOrGate" | 2135 | // $ANTLR start "ruleOrGateDefinition" |
1669 | // InternalCftLanguage.g:625:1: ruleOrGate returns [EObject current=null] : ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* ) ; | 2136 | // InternalCftLanguage.g:765:1: ruleOrGateDefinition returns [EObject current=null] : ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'or' ( ( ruleValidId ) )* ) ; |
1670 | public final EObject ruleOrGate() throws RecognitionException { | 2137 | public final EObject ruleOrGateDefinition() throws RecognitionException { |
1671 | EObject current = null; | 2138 | EObject current = null; |
1672 | 2139 | ||
1673 | Token lv_name_0_0=null; | ||
1674 | Token otherlv_1=null; | 2140 | Token otherlv_1=null; |
1675 | Token otherlv_2=null; | 2141 | AntlrDatatypeRuleToken lv_name_0_0 = null; |
2142 | |||
1676 | 2143 | ||
1677 | 2144 | ||
1678 | enterRule(); | 2145 | enterRule(); |
1679 | 2146 | ||
1680 | try { | 2147 | try { |
1681 | // InternalCftLanguage.g:631:2: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* ) ) | 2148 | // InternalCftLanguage.g:771:2: ( ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'or' ( ( ruleValidId ) )* ) ) |
1682 | // InternalCftLanguage.g:632:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* ) | 2149 | // InternalCftLanguage.g:772:2: ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'or' ( ( ruleValidId ) )* ) |
1683 | { | 2150 | { |
1684 | // InternalCftLanguage.g:632:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* ) | 2151 | // InternalCftLanguage.g:772:2: ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'or' ( ( ruleValidId ) )* ) |
1685 | // InternalCftLanguage.g:633:3: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* | 2152 | // InternalCftLanguage.g:773:3: ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'or' ( ( ruleValidId ) )* |
1686 | { | 2153 | { |
1687 | // InternalCftLanguage.g:633:3: ( (lv_name_0_0= RULE_ID ) ) | 2154 | // InternalCftLanguage.g:773:3: ( (lv_name_0_0= ruleValidId ) ) |
1688 | // InternalCftLanguage.g:634:4: (lv_name_0_0= RULE_ID ) | 2155 | // InternalCftLanguage.g:774:4: (lv_name_0_0= ruleValidId ) |
1689 | { | 2156 | { |
1690 | // InternalCftLanguage.g:634:4: (lv_name_0_0= RULE_ID ) | 2157 | // InternalCftLanguage.g:774:4: (lv_name_0_0= ruleValidId ) |
1691 | // InternalCftLanguage.g:635:5: lv_name_0_0= RULE_ID | 2158 | // InternalCftLanguage.g:775:5: lv_name_0_0= ruleValidId |
1692 | { | 2159 | { |
1693 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_19); | ||
1694 | 2160 | ||
1695 | newLeafNode(lv_name_0_0, grammarAccess.getOrGateAccess().getNameIDTerminalRuleCall_0_0()); | 2161 | newCompositeNode(grammarAccess.getOrGateDefinitionAccess().getNameValidIdParserRuleCall_0_0()); |
1696 | 2162 | ||
2163 | pushFollow(FOLLOW_19); | ||
2164 | lv_name_0_0=ruleValidId(); | ||
2165 | |||
2166 | state._fsp--; | ||
2167 | |||
1697 | 2168 | ||
1698 | if (current==null) { | 2169 | if (current==null) { |
1699 | current = createModelElement(grammarAccess.getOrGateRule()); | 2170 | current = createModelElementForParent(grammarAccess.getOrGateDefinitionRule()); |
1700 | } | 2171 | } |
1701 | setWithLastConsumed( | 2172 | set( |
1702 | current, | 2173 | current, |
1703 | "name", | 2174 | "name", |
1704 | lv_name_0_0, | 2175 | lv_name_0_0, |
1705 | "org.eclipse.xtext.common.Terminals.ID"); | 2176 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
2177 | afterParserOrEnumRuleCall(); | ||
1706 | 2178 | ||
1707 | 2179 | ||
1708 | } | 2180 | } |
@@ -1710,36 +2182,43 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1710 | 2182 | ||
1711 | } | 2183 | } |
1712 | 2184 | ||
1713 | otherlv_1=(Token)match(input,24,FOLLOW_18); | 2185 | otherlv_1=(Token)match(input,26,FOLLOW_18); |
1714 | 2186 | ||
1715 | newLeafNode(otherlv_1, grammarAccess.getOrGateAccess().getOrKeyword_1()); | 2187 | newLeafNode(otherlv_1, grammarAccess.getOrGateDefinitionAccess().getOrKeyword_1()); |
1716 | 2188 | ||
1717 | // InternalCftLanguage.g:655:3: ( (otherlv_2= RULE_ID ) )* | 2189 | // InternalCftLanguage.g:796:3: ( ( ruleValidId ) )* |
1718 | loop13: | 2190 | loop14: |
1719 | do { | 2191 | do { |
1720 | int alt13=2; | 2192 | int alt14=2; |
1721 | int LA13_0 = input.LA(1); | 2193 | int LA14_0 = input.LA(1); |
1722 | 2194 | ||
1723 | if ( (LA13_0==RULE_ID) ) { | 2195 | if ( ((LA14_0>=RULE_OF_INT && LA14_0<=RULE_ID)) ) { |
1724 | alt13=1; | 2196 | alt14=1; |
1725 | } | 2197 | } |
1726 | 2198 | ||
1727 | 2199 | ||
1728 | switch (alt13) { | 2200 | switch (alt14) { |
1729 | case 1 : | 2201 | case 1 : |
1730 | // InternalCftLanguage.g:656:4: (otherlv_2= RULE_ID ) | 2202 | // InternalCftLanguage.g:797:4: ( ruleValidId ) |
1731 | { | 2203 | { |
1732 | // InternalCftLanguage.g:656:4: (otherlv_2= RULE_ID ) | 2204 | // InternalCftLanguage.g:797:4: ( ruleValidId ) |
1733 | // InternalCftLanguage.g:657:5: otherlv_2= RULE_ID | 2205 | // InternalCftLanguage.g:798:5: ruleValidId |
1734 | { | 2206 | { |
1735 | 2207 | ||
1736 | if (current==null) { | 2208 | if (current==null) { |
1737 | current = createModelElement(grammarAccess.getOrGateRule()); | 2209 | current = createModelElement(grammarAccess.getOrGateDefinitionRule()); |
1738 | } | 2210 | } |
1739 | 2211 | ||
1740 | otherlv_2=(Token)match(input,RULE_ID,FOLLOW_18); | ||
1741 | 2212 | ||
1742 | newLeafNode(otherlv_2, grammarAccess.getOrGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); | 2213 | newCompositeNode(grammarAccess.getOrGateDefinitionAccess().getInputEventsEventDeclarationCrossReference_2_0()); |
2214 | |||
2215 | pushFollow(FOLLOW_18); | ||
2216 | ruleValidId(); | ||
2217 | |||
2218 | state._fsp--; | ||
2219 | |||
2220 | |||
2221 | afterParserOrEnumRuleCall(); | ||
1743 | 2222 | ||
1744 | 2223 | ||
1745 | } | 2224 | } |
@@ -1749,7 +2228,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1749 | break; | 2228 | break; |
1750 | 2229 | ||
1751 | default : | 2230 | default : |
1752 | break loop13; | 2231 | break loop14; |
1753 | } | 2232 | } |
1754 | } while (true); | 2233 | } while (true); |
1755 | 2234 | ||
@@ -1772,11 +2251,288 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1772 | } | 2251 | } |
1773 | return current; | 2252 | return current; |
1774 | } | 2253 | } |
1775 | // $ANTLR end "ruleOrGate" | 2254 | // $ANTLR end "ruleOrGateDefinition" |
2255 | |||
2256 | |||
2257 | // $ANTLR start "entryRuleKOfMGateDefinition" | ||
2258 | // InternalCftLanguage.g:816:1: entryRuleKOfMGateDefinition returns [EObject current=null] : iv_ruleKOfMGateDefinition= ruleKOfMGateDefinition EOF ; | ||
2259 | public final EObject entryRuleKOfMGateDefinition() throws RecognitionException { | ||
2260 | EObject current = null; | ||
2261 | |||
2262 | EObject iv_ruleKOfMGateDefinition = null; | ||
2263 | |||
2264 | |||
2265 | try { | ||
2266 | // InternalCftLanguage.g:816:59: (iv_ruleKOfMGateDefinition= ruleKOfMGateDefinition EOF ) | ||
2267 | // InternalCftLanguage.g:817:2: iv_ruleKOfMGateDefinition= ruleKOfMGateDefinition EOF | ||
2268 | { | ||
2269 | newCompositeNode(grammarAccess.getKOfMGateDefinitionRule()); | ||
2270 | pushFollow(FOLLOW_1); | ||
2271 | iv_ruleKOfMGateDefinition=ruleKOfMGateDefinition(); | ||
2272 | |||
2273 | state._fsp--; | ||
2274 | |||
2275 | current =iv_ruleKOfMGateDefinition; | ||
2276 | match(input,EOF,FOLLOW_2); | ||
2277 | |||
2278 | } | ||
2279 | |||
2280 | } | ||
2281 | |||
2282 | catch (RecognitionException re) { | ||
2283 | recover(input,re); | ||
2284 | appendSkippedTokens(); | ||
2285 | } | ||
2286 | finally { | ||
2287 | } | ||
2288 | return current; | ||
2289 | } | ||
2290 | // $ANTLR end "entryRuleKOfMGateDefinition" | ||
2291 | |||
2292 | |||
2293 | // $ANTLR start "ruleKOfMGateDefinition" | ||
2294 | // InternalCftLanguage.g:823:1: ruleKOfMGateDefinition returns [EObject current=null] : ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_k_1_0= RULE_INT ) ) ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) ( ( ruleValidId ) )* ) ; | ||
2295 | public final EObject ruleKOfMGateDefinition() throws RecognitionException { | ||
2296 | EObject current = null; | ||
2297 | |||
2298 | Token lv_k_1_0=null; | ||
2299 | Token otherlv_2=null; | ||
2300 | Token lv_m_3_0=null; | ||
2301 | Token lv_m_4_0=null; | ||
2302 | AntlrDatatypeRuleToken lv_name_0_0 = null; | ||
2303 | |||
2304 | |||
2305 | |||
2306 | enterRule(); | ||
2307 | |||
2308 | try { | ||
2309 | // InternalCftLanguage.g:829:2: ( ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_k_1_0= RULE_INT ) ) ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) ( ( ruleValidId ) )* ) ) | ||
2310 | // InternalCftLanguage.g:830:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_k_1_0= RULE_INT ) ) ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) ( ( ruleValidId ) )* ) | ||
2311 | { | ||
2312 | // InternalCftLanguage.g:830:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_k_1_0= RULE_INT ) ) ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) ( ( ruleValidId ) )* ) | ||
2313 | // InternalCftLanguage.g:831:3: ( (lv_name_0_0= ruleValidId ) ) ( (lv_k_1_0= RULE_INT ) ) ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) ( ( ruleValidId ) )* | ||
2314 | { | ||
2315 | // InternalCftLanguage.g:831:3: ( (lv_name_0_0= ruleValidId ) ) | ||
2316 | // InternalCftLanguage.g:832:4: (lv_name_0_0= ruleValidId ) | ||
2317 | { | ||
2318 | // InternalCftLanguage.g:832:4: (lv_name_0_0= ruleValidId ) | ||
2319 | // InternalCftLanguage.g:833:5: lv_name_0_0= ruleValidId | ||
2320 | { | ||
2321 | |||
2322 | newCompositeNode(grammarAccess.getKOfMGateDefinitionAccess().getNameValidIdParserRuleCall_0_0()); | ||
2323 | |||
2324 | pushFollow(FOLLOW_20); | ||
2325 | lv_name_0_0=ruleValidId(); | ||
2326 | |||
2327 | state._fsp--; | ||
2328 | |||
2329 | |||
2330 | if (current==null) { | ||
2331 | current = createModelElementForParent(grammarAccess.getKOfMGateDefinitionRule()); | ||
2332 | } | ||
2333 | set( | ||
2334 | current, | ||
2335 | "name", | ||
2336 | lv_name_0_0, | ||
2337 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
2338 | afterParserOrEnumRuleCall(); | ||
2339 | |||
2340 | |||
2341 | } | ||
2342 | |||
2343 | |||
2344 | } | ||
2345 | |||
2346 | // InternalCftLanguage.g:850:3: ( (lv_k_1_0= RULE_INT ) ) | ||
2347 | // InternalCftLanguage.g:851:4: (lv_k_1_0= RULE_INT ) | ||
2348 | { | ||
2349 | // InternalCftLanguage.g:851:4: (lv_k_1_0= RULE_INT ) | ||
2350 | // InternalCftLanguage.g:852:5: lv_k_1_0= RULE_INT | ||
2351 | { | ||
2352 | lv_k_1_0=(Token)match(input,RULE_INT,FOLLOW_21); | ||
2353 | |||
2354 | newLeafNode(lv_k_1_0, grammarAccess.getKOfMGateDefinitionAccess().getKINTTerminalRuleCall_1_0()); | ||
2355 | |||
2356 | |||
2357 | if (current==null) { | ||
2358 | current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
2359 | } | ||
2360 | setWithLastConsumed( | ||
2361 | current, | ||
2362 | "k", | ||
2363 | lv_k_1_0, | ||
2364 | "org.eclipse.xtext.common.Terminals.INT"); | ||
2365 | |||
2366 | |||
2367 | } | ||
2368 | |||
2369 | |||
2370 | } | ||
2371 | |||
2372 | // InternalCftLanguage.g:868:3: ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) | ||
2373 | int alt15=2; | ||
2374 | int LA15_0 = input.LA(1); | ||
2375 | |||
2376 | if ( (LA15_0==27) ) { | ||
2377 | alt15=1; | ||
2378 | } | ||
2379 | else if ( (LA15_0==RULE_OF_INT) ) { | ||
2380 | alt15=2; | ||
2381 | } | ||
2382 | else { | ||
2383 | NoViableAltException nvae = | ||
2384 | new NoViableAltException("", 15, 0, input); | ||
2385 | |||
2386 | throw nvae; | ||
2387 | } | ||
2388 | switch (alt15) { | ||
2389 | case 1 : | ||
2390 | // InternalCftLanguage.g:869:4: (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ||
2391 | { | ||
2392 | // InternalCftLanguage.g:869:4: (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ||
2393 | // InternalCftLanguage.g:870:5: otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) | ||
2394 | { | ||
2395 | otherlv_2=(Token)match(input,27,FOLLOW_20); | ||
2396 | |||
2397 | newLeafNode(otherlv_2, grammarAccess.getKOfMGateDefinitionAccess().getOfKeyword_2_0_0()); | ||
2398 | |||
2399 | // InternalCftLanguage.g:874:5: ( (lv_m_3_0= RULE_INT ) ) | ||
2400 | // InternalCftLanguage.g:875:6: (lv_m_3_0= RULE_INT ) | ||
2401 | { | ||
2402 | // InternalCftLanguage.g:875:6: (lv_m_3_0= RULE_INT ) | ||
2403 | // InternalCftLanguage.g:876:7: lv_m_3_0= RULE_INT | ||
2404 | { | ||
2405 | lv_m_3_0=(Token)match(input,RULE_INT,FOLLOW_18); | ||
2406 | |||
2407 | newLeafNode(lv_m_3_0, grammarAccess.getKOfMGateDefinitionAccess().getMINTTerminalRuleCall_2_0_1_0()); | ||
2408 | |||
2409 | |||
2410 | if (current==null) { | ||
2411 | current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
2412 | } | ||
2413 | setWithLastConsumed( | ||
2414 | current, | ||
2415 | "m", | ||
2416 | lv_m_3_0, | ||
2417 | "org.eclipse.xtext.common.Terminals.INT"); | ||
2418 | |||
2419 | |||
2420 | } | ||
2421 | |||
2422 | |||
2423 | } | ||
2424 | |||
2425 | |||
2426 | } | ||
2427 | |||
2428 | |||
2429 | } | ||
2430 | break; | ||
2431 | case 2 : | ||
2432 | // InternalCftLanguage.g:894:4: ( (lv_m_4_0= RULE_OF_INT ) ) | ||
2433 | { | ||
2434 | // InternalCftLanguage.g:894:4: ( (lv_m_4_0= RULE_OF_INT ) ) | ||
2435 | // InternalCftLanguage.g:895:5: (lv_m_4_0= RULE_OF_INT ) | ||
2436 | { | ||
2437 | // InternalCftLanguage.g:895:5: (lv_m_4_0= RULE_OF_INT ) | ||
2438 | // InternalCftLanguage.g:896:6: lv_m_4_0= RULE_OF_INT | ||
2439 | { | ||
2440 | lv_m_4_0=(Token)match(input,RULE_OF_INT,FOLLOW_18); | ||
2441 | |||
2442 | newLeafNode(lv_m_4_0, grammarAccess.getKOfMGateDefinitionAccess().getMOF_INTTerminalRuleCall_2_1_0()); | ||
2443 | |||
2444 | |||
2445 | if (current==null) { | ||
2446 | current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
2447 | } | ||
2448 | setWithLastConsumed( | ||
2449 | current, | ||
2450 | "m", | ||
2451 | lv_m_4_0, | ||
2452 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.OF_INT"); | ||
2453 | |||
2454 | |||
2455 | } | ||
2456 | |||
2457 | |||
2458 | } | ||
2459 | |||
2460 | |||
2461 | } | ||
2462 | break; | ||
2463 | |||
2464 | } | ||
2465 | |||
2466 | // InternalCftLanguage.g:913:3: ( ( ruleValidId ) )* | ||
2467 | loop16: | ||
2468 | do { | ||
2469 | int alt16=2; | ||
2470 | int LA16_0 = input.LA(1); | ||
2471 | |||
2472 | if ( ((LA16_0>=RULE_OF_INT && LA16_0<=RULE_ID)) ) { | ||
2473 | alt16=1; | ||
2474 | } | ||
2475 | |||
2476 | |||
2477 | switch (alt16) { | ||
2478 | case 1 : | ||
2479 | // InternalCftLanguage.g:914:4: ( ruleValidId ) | ||
2480 | { | ||
2481 | // InternalCftLanguage.g:914:4: ( ruleValidId ) | ||
2482 | // InternalCftLanguage.g:915:5: ruleValidId | ||
2483 | { | ||
2484 | |||
2485 | if (current==null) { | ||
2486 | current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
2487 | } | ||
2488 | |||
2489 | |||
2490 | newCompositeNode(grammarAccess.getKOfMGateDefinitionAccess().getInputEventsEventDeclarationCrossReference_3_0()); | ||
2491 | |||
2492 | pushFollow(FOLLOW_18); | ||
2493 | ruleValidId(); | ||
2494 | |||
2495 | state._fsp--; | ||
2496 | |||
2497 | |||
2498 | afterParserOrEnumRuleCall(); | ||
2499 | |||
2500 | |||
2501 | } | ||
2502 | |||
2503 | |||
2504 | } | ||
2505 | break; | ||
2506 | |||
2507 | default : | ||
2508 | break loop16; | ||
2509 | } | ||
2510 | } while (true); | ||
2511 | |||
2512 | |||
2513 | } | ||
2514 | |||
2515 | |||
2516 | } | ||
2517 | |||
2518 | |||
2519 | leaveRule(); | ||
2520 | |||
2521 | } | ||
2522 | |||
2523 | catch (RecognitionException re) { | ||
2524 | recover(input,re); | ||
2525 | appendSkippedTokens(); | ||
2526 | } | ||
2527 | finally { | ||
2528 | } | ||
2529 | return current; | ||
2530 | } | ||
2531 | // $ANTLR end "ruleKOfMGateDefinition" | ||
1776 | 2532 | ||
1777 | 2533 | ||
1778 | // $ANTLR start "entryRuleTransformationDefinition" | 2534 | // $ANTLR start "entryRuleTransformationDefinition" |
1779 | // InternalCftLanguage.g:672:1: entryRuleTransformationDefinition returns [EObject current=null] : iv_ruleTransformationDefinition= ruleTransformationDefinition EOF ; | 2535 | // InternalCftLanguage.g:933:1: entryRuleTransformationDefinition returns [EObject current=null] : iv_ruleTransformationDefinition= ruleTransformationDefinition EOF ; |
1780 | public final EObject entryRuleTransformationDefinition() throws RecognitionException { | 2536 | public final EObject entryRuleTransformationDefinition() throws RecognitionException { |
1781 | EObject current = null; | 2537 | EObject current = null; |
1782 | 2538 | ||
@@ -1784,8 +2540,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1784 | 2540 | ||
1785 | 2541 | ||
1786 | try { | 2542 | try { |
1787 | // InternalCftLanguage.g:672:65: (iv_ruleTransformationDefinition= ruleTransformationDefinition EOF ) | 2543 | // InternalCftLanguage.g:933:65: (iv_ruleTransformationDefinition= ruleTransformationDefinition EOF ) |
1788 | // InternalCftLanguage.g:673:2: iv_ruleTransformationDefinition= ruleTransformationDefinition EOF | 2544 | // InternalCftLanguage.g:934:2: iv_ruleTransformationDefinition= ruleTransformationDefinition EOF |
1789 | { | 2545 | { |
1790 | newCompositeNode(grammarAccess.getTransformationDefinitionRule()); | 2546 | newCompositeNode(grammarAccess.getTransformationDefinitionRule()); |
1791 | pushFollow(FOLLOW_1); | 2547 | pushFollow(FOLLOW_1); |
@@ -1812,14 +2568,15 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1812 | 2568 | ||
1813 | 2569 | ||
1814 | // $ANTLR start "ruleTransformationDefinition" | 2570 | // $ANTLR start "ruleTransformationDefinition" |
1815 | // InternalCftLanguage.g:679:1: ruleTransformationDefinition returns [EObject current=null] : (otherlv_0= 'transformation' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) ; | 2571 | // InternalCftLanguage.g:940:1: ruleTransformationDefinition returns [EObject current=null] : (otherlv_0= 'transformation' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) ; |
1816 | public final EObject ruleTransformationDefinition() throws RecognitionException { | 2572 | public final EObject ruleTransformationDefinition() throws RecognitionException { |
1817 | EObject current = null; | 2573 | EObject current = null; |
1818 | 2574 | ||
1819 | Token otherlv_0=null; | 2575 | Token otherlv_0=null; |
1820 | Token lv_name_1_0=null; | ||
1821 | Token otherlv_2=null; | 2576 | Token otherlv_2=null; |
1822 | Token otherlv_4=null; | 2577 | Token otherlv_4=null; |
2578 | AntlrDatatypeRuleToken lv_name_1_0 = null; | ||
2579 | |||
1823 | EObject lv_mappingDefinitions_3_0 = null; | 2580 | EObject lv_mappingDefinitions_3_0 = null; |
1824 | 2581 | ||
1825 | 2582 | ||
@@ -1827,35 +2584,40 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1827 | enterRule(); | 2584 | enterRule(); |
1828 | 2585 | ||
1829 | try { | 2586 | try { |
1830 | // InternalCftLanguage.g:685:2: ( (otherlv_0= 'transformation' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) ) | 2587 | // InternalCftLanguage.g:946:2: ( (otherlv_0= 'transformation' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) ) |
1831 | // InternalCftLanguage.g:686:2: (otherlv_0= 'transformation' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) | 2588 | // InternalCftLanguage.g:947:2: (otherlv_0= 'transformation' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) |
1832 | { | 2589 | { |
1833 | // InternalCftLanguage.g:686:2: (otherlv_0= 'transformation' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) | 2590 | // InternalCftLanguage.g:947:2: (otherlv_0= 'transformation' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) |
1834 | // InternalCftLanguage.g:687:3: otherlv_0= 'transformation' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' | 2591 | // InternalCftLanguage.g:948:3: otherlv_0= 'transformation' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' |
1835 | { | 2592 | { |
1836 | otherlv_0=(Token)match(input,25,FOLLOW_3); | 2593 | otherlv_0=(Token)match(input,28,FOLLOW_3); |
1837 | 2594 | ||
1838 | newLeafNode(otherlv_0, grammarAccess.getTransformationDefinitionAccess().getTransformationKeyword_0()); | 2595 | newLeafNode(otherlv_0, grammarAccess.getTransformationDefinitionAccess().getTransformationKeyword_0()); |
1839 | 2596 | ||
1840 | // InternalCftLanguage.g:691:3: ( (lv_name_1_0= RULE_ID ) ) | 2597 | // InternalCftLanguage.g:952:3: ( (lv_name_1_0= ruleValidId ) ) |
1841 | // InternalCftLanguage.g:692:4: (lv_name_1_0= RULE_ID ) | 2598 | // InternalCftLanguage.g:953:4: (lv_name_1_0= ruleValidId ) |
1842 | { | 2599 | { |
1843 | // InternalCftLanguage.g:692:4: (lv_name_1_0= RULE_ID ) | 2600 | // InternalCftLanguage.g:953:4: (lv_name_1_0= ruleValidId ) |
1844 | // InternalCftLanguage.g:693:5: lv_name_1_0= RULE_ID | 2601 | // InternalCftLanguage.g:954:5: lv_name_1_0= ruleValidId |
1845 | { | 2602 | { |
1846 | lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_8); | ||
1847 | 2603 | ||
1848 | newLeafNode(lv_name_1_0, grammarAccess.getTransformationDefinitionAccess().getNameIDTerminalRuleCall_1_0()); | 2604 | newCompositeNode(grammarAccess.getTransformationDefinitionAccess().getNameValidIdParserRuleCall_1_0()); |
1849 | 2605 | ||
2606 | pushFollow(FOLLOW_8); | ||
2607 | lv_name_1_0=ruleValidId(); | ||
2608 | |||
2609 | state._fsp--; | ||
2610 | |||
1850 | 2611 | ||
1851 | if (current==null) { | 2612 | if (current==null) { |
1852 | current = createModelElement(grammarAccess.getTransformationDefinitionRule()); | 2613 | current = createModelElementForParent(grammarAccess.getTransformationDefinitionRule()); |
1853 | } | 2614 | } |
1854 | setWithLastConsumed( | 2615 | set( |
1855 | current, | 2616 | current, |
1856 | "name", | 2617 | "name", |
1857 | lv_name_1_0, | 2618 | lv_name_1_0, |
1858 | "org.eclipse.xtext.common.Terminals.ID"); | 2619 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
2620 | afterParserOrEnumRuleCall(); | ||
1859 | 2621 | ||
1860 | 2622 | ||
1861 | } | 2623 | } |
@@ -1863,32 +2625,32 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1863 | 2625 | ||
1864 | } | 2626 | } |
1865 | 2627 | ||
1866 | otherlv_2=(Token)match(input,16,FOLLOW_20); | 2628 | otherlv_2=(Token)match(input,17,FOLLOW_22); |
1867 | 2629 | ||
1868 | newLeafNode(otherlv_2, grammarAccess.getTransformationDefinitionAccess().getLeftCurlyBracketKeyword_2()); | 2630 | newLeafNode(otherlv_2, grammarAccess.getTransformationDefinitionAccess().getLeftCurlyBracketKeyword_2()); |
1869 | 2631 | ||
1870 | // InternalCftLanguage.g:713:3: ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* | 2632 | // InternalCftLanguage.g:975:3: ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* |
1871 | loop14: | 2633 | loop17: |
1872 | do { | 2634 | do { |
1873 | int alt14=2; | 2635 | int alt17=2; |
1874 | int LA14_0 = input.LA(1); | 2636 | int LA17_0 = input.LA(1); |
1875 | 2637 | ||
1876 | if ( ((LA14_0>=26 && LA14_0<=27)) ) { | 2638 | if ( ((LA17_0>=29 && LA17_0<=30)) ) { |
1877 | alt14=1; | 2639 | alt17=1; |
1878 | } | 2640 | } |
1879 | 2641 | ||
1880 | 2642 | ||
1881 | switch (alt14) { | 2643 | switch (alt17) { |
1882 | case 1 : | 2644 | case 1 : |
1883 | // InternalCftLanguage.g:714:4: (lv_mappingDefinitions_3_0= ruleMappingDefinition ) | 2645 | // InternalCftLanguage.g:976:4: (lv_mappingDefinitions_3_0= ruleMappingDefinition ) |
1884 | { | 2646 | { |
1885 | // InternalCftLanguage.g:714:4: (lv_mappingDefinitions_3_0= ruleMappingDefinition ) | 2647 | // InternalCftLanguage.g:976:4: (lv_mappingDefinitions_3_0= ruleMappingDefinition ) |
1886 | // InternalCftLanguage.g:715:5: lv_mappingDefinitions_3_0= ruleMappingDefinition | 2648 | // InternalCftLanguage.g:977:5: lv_mappingDefinitions_3_0= ruleMappingDefinition |
1887 | { | 2649 | { |
1888 | 2650 | ||
1889 | newCompositeNode(grammarAccess.getTransformationDefinitionAccess().getMappingDefinitionsMappingDefinitionParserRuleCall_3_0()); | 2651 | newCompositeNode(grammarAccess.getTransformationDefinitionAccess().getMappingDefinitionsMappingDefinitionParserRuleCall_3_0()); |
1890 | 2652 | ||
1891 | pushFollow(FOLLOW_20); | 2653 | pushFollow(FOLLOW_22); |
1892 | lv_mappingDefinitions_3_0=ruleMappingDefinition(); | 2654 | lv_mappingDefinitions_3_0=ruleMappingDefinition(); |
1893 | 2655 | ||
1894 | state._fsp--; | 2656 | state._fsp--; |
@@ -1912,11 +2674,11 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1912 | break; | 2674 | break; |
1913 | 2675 | ||
1914 | default : | 2676 | default : |
1915 | break loop14; | 2677 | break loop17; |
1916 | } | 2678 | } |
1917 | } while (true); | 2679 | } while (true); |
1918 | 2680 | ||
1919 | otherlv_4=(Token)match(input,19,FOLLOW_2); | 2681 | otherlv_4=(Token)match(input,20,FOLLOW_2); |
1920 | 2682 | ||
1921 | newLeafNode(otherlv_4, grammarAccess.getTransformationDefinitionAccess().getRightCurlyBracketKeyword_4()); | 2683 | newLeafNode(otherlv_4, grammarAccess.getTransformationDefinitionAccess().getRightCurlyBracketKeyword_4()); |
1922 | 2684 | ||
@@ -1943,7 +2705,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1943 | 2705 | ||
1944 | 2706 | ||
1945 | // $ANTLR start "entryRuleMappingDefinition" | 2707 | // $ANTLR start "entryRuleMappingDefinition" |
1946 | // InternalCftLanguage.g:740:1: entryRuleMappingDefinition returns [EObject current=null] : iv_ruleMappingDefinition= ruleMappingDefinition EOF ; | 2708 | // InternalCftLanguage.g:1002:1: entryRuleMappingDefinition returns [EObject current=null] : iv_ruleMappingDefinition= ruleMappingDefinition EOF ; |
1947 | public final EObject entryRuleMappingDefinition() throws RecognitionException { | 2709 | public final EObject entryRuleMappingDefinition() throws RecognitionException { |
1948 | EObject current = null; | 2710 | EObject current = null; |
1949 | 2711 | ||
@@ -1951,8 +2713,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1951 | 2713 | ||
1952 | 2714 | ||
1953 | try { | 2715 | try { |
1954 | // InternalCftLanguage.g:740:58: (iv_ruleMappingDefinition= ruleMappingDefinition EOF ) | 2716 | // InternalCftLanguage.g:1002:58: (iv_ruleMappingDefinition= ruleMappingDefinition EOF ) |
1955 | // InternalCftLanguage.g:741:2: iv_ruleMappingDefinition= ruleMappingDefinition EOF | 2717 | // InternalCftLanguage.g:1003:2: iv_ruleMappingDefinition= ruleMappingDefinition EOF |
1956 | { | 2718 | { |
1957 | newCompositeNode(grammarAccess.getMappingDefinitionRule()); | 2719 | newCompositeNode(grammarAccess.getMappingDefinitionRule()); |
1958 | pushFollow(FOLLOW_1); | 2720 | pushFollow(FOLLOW_1); |
@@ -1979,7 +2741,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1979 | 2741 | ||
1980 | 2742 | ||
1981 | // $ANTLR start "ruleMappingDefinition" | 2743 | // $ANTLR start "ruleMappingDefinition" |
1982 | // InternalCftLanguage.g:747:1: ruleMappingDefinition returns [EObject current=null] : ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) ; | 2744 | // InternalCftLanguage.g:1009:1: ruleMappingDefinition returns [EObject current=null] : ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) ; |
1983 | public final EObject ruleMappingDefinition() throws RecognitionException { | 2745 | public final EObject ruleMappingDefinition() throws RecognitionException { |
1984 | EObject current = null; | 2746 | EObject current = null; |
1985 | 2747 | ||
@@ -2006,27 +2768,27 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2006 | enterRule(); | 2768 | enterRule(); |
2007 | 2769 | ||
2008 | try { | 2770 | try { |
2009 | // InternalCftLanguage.g:753:2: ( ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) ) | 2771 | // InternalCftLanguage.g:1015:2: ( ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) ) |
2010 | // InternalCftLanguage.g:754:2: ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) | 2772 | // InternalCftLanguage.g:1016:2: ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) |
2011 | { | 2773 | { |
2012 | // InternalCftLanguage.g:754:2: ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) | 2774 | // InternalCftLanguage.g:1016:2: ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) |
2013 | // InternalCftLanguage.g:755:3: ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? | 2775 | // InternalCftLanguage.g:1017:3: ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? |
2014 | { | 2776 | { |
2015 | // InternalCftLanguage.g:755:3: ( (lv_topLevel_0_0= 'toplevel' ) )? | 2777 | // InternalCftLanguage.g:1017:3: ( (lv_topLevel_0_0= 'toplevel' ) )? |
2016 | int alt15=2; | 2778 | int alt18=2; |
2017 | int LA15_0 = input.LA(1); | 2779 | int LA18_0 = input.LA(1); |
2018 | 2780 | ||
2019 | if ( (LA15_0==26) ) { | 2781 | if ( (LA18_0==29) ) { |
2020 | alt15=1; | 2782 | alt18=1; |
2021 | } | 2783 | } |
2022 | switch (alt15) { | 2784 | switch (alt18) { |
2023 | case 1 : | 2785 | case 1 : |
2024 | // InternalCftLanguage.g:756:4: (lv_topLevel_0_0= 'toplevel' ) | 2786 | // InternalCftLanguage.g:1018:4: (lv_topLevel_0_0= 'toplevel' ) |
2025 | { | 2787 | { |
2026 | // InternalCftLanguage.g:756:4: (lv_topLevel_0_0= 'toplevel' ) | 2788 | // InternalCftLanguage.g:1018:4: (lv_topLevel_0_0= 'toplevel' ) |
2027 | // InternalCftLanguage.g:757:5: lv_topLevel_0_0= 'toplevel' | 2789 | // InternalCftLanguage.g:1019:5: lv_topLevel_0_0= 'toplevel' |
2028 | { | 2790 | { |
2029 | lv_topLevel_0_0=(Token)match(input,26,FOLLOW_21); | 2791 | lv_topLevel_0_0=(Token)match(input,29,FOLLOW_23); |
2030 | 2792 | ||
2031 | newLeafNode(lv_topLevel_0_0, grammarAccess.getMappingDefinitionAccess().getTopLevelToplevelKeyword_0_0()); | 2793 | newLeafNode(lv_topLevel_0_0, grammarAccess.getMappingDefinitionAccess().getTopLevelToplevelKeyword_0_0()); |
2032 | 2794 | ||
@@ -2045,15 +2807,15 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2045 | 2807 | ||
2046 | } | 2808 | } |
2047 | 2809 | ||
2048 | otherlv_1=(Token)match(input,27,FOLLOW_3); | 2810 | otherlv_1=(Token)match(input,30,FOLLOW_3); |
2049 | 2811 | ||
2050 | newLeafNode(otherlv_1, grammarAccess.getMappingDefinitionAccess().getMappingKeyword_1()); | 2812 | newLeafNode(otherlv_1, grammarAccess.getMappingDefinitionAccess().getMappingKeyword_1()); |
2051 | 2813 | ||
2052 | // InternalCftLanguage.g:773:3: ( ( ruleQualifiedName ) ) | 2814 | // InternalCftLanguage.g:1035:3: ( ( ruleQualifiedName ) ) |
2053 | // InternalCftLanguage.g:774:4: ( ruleQualifiedName ) | 2815 | // InternalCftLanguage.g:1036:4: ( ruleQualifiedName ) |
2054 | { | 2816 | { |
2055 | // InternalCftLanguage.g:774:4: ( ruleQualifiedName ) | 2817 | // InternalCftLanguage.g:1036:4: ( ruleQualifiedName ) |
2056 | // InternalCftLanguage.g:775:5: ruleQualifiedName | 2818 | // InternalCftLanguage.g:1037:5: ruleQualifiedName |
2057 | { | 2819 | { |
2058 | 2820 | ||
2059 | if (current==null) { | 2821 | if (current==null) { |
@@ -2063,7 +2825,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2063 | 2825 | ||
2064 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getPatternPatternCrossReference_2_0()); | 2826 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getPatternPatternCrossReference_2_0()); |
2065 | 2827 | ||
2066 | pushFollow(FOLLOW_22); | 2828 | pushFollow(FOLLOW_24); |
2067 | ruleQualifiedName(); | 2829 | ruleQualifiedName(); |
2068 | 2830 | ||
2069 | state._fsp--; | 2831 | state._fsp--; |
@@ -2077,20 +2839,20 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2077 | 2839 | ||
2078 | } | 2840 | } |
2079 | 2841 | ||
2080 | otherlv_3=(Token)match(input,28,FOLLOW_3); | 2842 | otherlv_3=(Token)match(input,31,FOLLOW_3); |
2081 | 2843 | ||
2082 | newLeafNode(otherlv_3, grammarAccess.getMappingDefinitionAccess().getLeftParenthesisKeyword_3()); | 2844 | newLeafNode(otherlv_3, grammarAccess.getMappingDefinitionAccess().getLeftParenthesisKeyword_3()); |
2083 | 2845 | ||
2084 | // InternalCftLanguage.g:793:3: ( (lv_parameters_4_0= ruleMappingParameter ) ) | 2846 | // InternalCftLanguage.g:1055:3: ( (lv_parameters_4_0= ruleMappingParameter ) ) |
2085 | // InternalCftLanguage.g:794:4: (lv_parameters_4_0= ruleMappingParameter ) | 2847 | // InternalCftLanguage.g:1056:4: (lv_parameters_4_0= ruleMappingParameter ) |
2086 | { | 2848 | { |
2087 | // InternalCftLanguage.g:794:4: (lv_parameters_4_0= ruleMappingParameter ) | 2849 | // InternalCftLanguage.g:1056:4: (lv_parameters_4_0= ruleMappingParameter ) |
2088 | // InternalCftLanguage.g:795:5: lv_parameters_4_0= ruleMappingParameter | 2850 | // InternalCftLanguage.g:1057:5: lv_parameters_4_0= ruleMappingParameter |
2089 | { | 2851 | { |
2090 | 2852 | ||
2091 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_4_0()); | 2853 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_4_0()); |
2092 | 2854 | ||
2093 | pushFollow(FOLLOW_23); | 2855 | pushFollow(FOLLOW_25); |
2094 | lv_parameters_4_0=ruleMappingParameter(); | 2856 | lv_parameters_4_0=ruleMappingParameter(); |
2095 | 2857 | ||
2096 | state._fsp--; | 2858 | state._fsp--; |
@@ -2112,35 +2874,35 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2112 | 2874 | ||
2113 | } | 2875 | } |
2114 | 2876 | ||
2115 | // InternalCftLanguage.g:812:3: (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* | 2877 | // InternalCftLanguage.g:1074:3: (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* |
2116 | loop16: | 2878 | loop19: |
2117 | do { | 2879 | do { |
2118 | int alt16=2; | 2880 | int alt19=2; |
2119 | int LA16_0 = input.LA(1); | 2881 | int LA19_0 = input.LA(1); |
2120 | 2882 | ||
2121 | if ( (LA16_0==29) ) { | 2883 | if ( (LA19_0==32) ) { |
2122 | alt16=1; | 2884 | alt19=1; |
2123 | } | 2885 | } |
2124 | 2886 | ||
2125 | 2887 | ||
2126 | switch (alt16) { | 2888 | switch (alt19) { |
2127 | case 1 : | 2889 | case 1 : |
2128 | // InternalCftLanguage.g:813:4: otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) | 2890 | // InternalCftLanguage.g:1075:4: otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) |
2129 | { | 2891 | { |
2130 | otherlv_5=(Token)match(input,29,FOLLOW_3); | 2892 | otherlv_5=(Token)match(input,32,FOLLOW_3); |
2131 | 2893 | ||
2132 | newLeafNode(otherlv_5, grammarAccess.getMappingDefinitionAccess().getCommaKeyword_5_0()); | 2894 | newLeafNode(otherlv_5, grammarAccess.getMappingDefinitionAccess().getCommaKeyword_5_0()); |
2133 | 2895 | ||
2134 | // InternalCftLanguage.g:817:4: ( (lv_parameters_6_0= ruleMappingParameter ) ) | 2896 | // InternalCftLanguage.g:1079:4: ( (lv_parameters_6_0= ruleMappingParameter ) ) |
2135 | // InternalCftLanguage.g:818:5: (lv_parameters_6_0= ruleMappingParameter ) | 2897 | // InternalCftLanguage.g:1080:5: (lv_parameters_6_0= ruleMappingParameter ) |
2136 | { | 2898 | { |
2137 | // InternalCftLanguage.g:818:5: (lv_parameters_6_0= ruleMappingParameter ) | 2899 | // InternalCftLanguage.g:1080:5: (lv_parameters_6_0= ruleMappingParameter ) |
2138 | // InternalCftLanguage.g:819:6: lv_parameters_6_0= ruleMappingParameter | 2900 | // InternalCftLanguage.g:1081:6: lv_parameters_6_0= ruleMappingParameter |
2139 | { | 2901 | { |
2140 | 2902 | ||
2141 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_5_1_0()); | 2903 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_5_1_0()); |
2142 | 2904 | ||
2143 | pushFollow(FOLLOW_23); | 2905 | pushFollow(FOLLOW_25); |
2144 | lv_parameters_6_0=ruleMappingParameter(); | 2906 | lv_parameters_6_0=ruleMappingParameter(); |
2145 | 2907 | ||
2146 | state._fsp--; | 2908 | state._fsp--; |
@@ -2167,32 +2929,32 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2167 | break; | 2929 | break; |
2168 | 2930 | ||
2169 | default : | 2931 | default : |
2170 | break loop16; | 2932 | break loop19; |
2171 | } | 2933 | } |
2172 | } while (true); | 2934 | } while (true); |
2173 | 2935 | ||
2174 | otherlv_7=(Token)match(input,30,FOLLOW_24); | 2936 | otherlv_7=(Token)match(input,33,FOLLOW_26); |
2175 | 2937 | ||
2176 | newLeafNode(otherlv_7, grammarAccess.getMappingDefinitionAccess().getRightParenthesisKeyword_6()); | 2938 | newLeafNode(otherlv_7, grammarAccess.getMappingDefinitionAccess().getRightParenthesisKeyword_6()); |
2177 | 2939 | ||
2178 | // InternalCftLanguage.g:841:3: ( (lv_componentInstance_8_0= ruleComponentInstance ) )? | 2940 | // InternalCftLanguage.g:1103:3: ( (lv_componentInstance_8_0= ruleComponentInstance ) )? |
2179 | int alt17=2; | 2941 | int alt20=2; |
2180 | int LA17_0 = input.LA(1); | 2942 | int LA20_0 = input.LA(1); |
2181 | 2943 | ||
2182 | if ( (LA17_0==36) ) { | 2944 | if ( (LA20_0==39) ) { |
2183 | alt17=1; | 2945 | alt20=1; |
2184 | } | 2946 | } |
2185 | switch (alt17) { | 2947 | switch (alt20) { |
2186 | case 1 : | 2948 | case 1 : |
2187 | // InternalCftLanguage.g:842:4: (lv_componentInstance_8_0= ruleComponentInstance ) | 2949 | // InternalCftLanguage.g:1104:4: (lv_componentInstance_8_0= ruleComponentInstance ) |
2188 | { | 2950 | { |
2189 | // InternalCftLanguage.g:842:4: (lv_componentInstance_8_0= ruleComponentInstance ) | 2951 | // InternalCftLanguage.g:1104:4: (lv_componentInstance_8_0= ruleComponentInstance ) |
2190 | // InternalCftLanguage.g:843:5: lv_componentInstance_8_0= ruleComponentInstance | 2952 | // InternalCftLanguage.g:1105:5: lv_componentInstance_8_0= ruleComponentInstance |
2191 | { | 2953 | { |
2192 | 2954 | ||
2193 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getComponentInstanceComponentInstanceParserRuleCall_7_0()); | 2955 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getComponentInstanceComponentInstanceParserRuleCall_7_0()); |
2194 | 2956 | ||
2195 | pushFollow(FOLLOW_25); | 2957 | pushFollow(FOLLOW_27); |
2196 | lv_componentInstance_8_0=ruleComponentInstance(); | 2958 | lv_componentInstance_8_0=ruleComponentInstance(); |
2197 | 2959 | ||
2198 | state._fsp--; | 2960 | state._fsp--; |
@@ -2217,61 +2979,61 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2217 | 2979 | ||
2218 | } | 2980 | } |
2219 | 2981 | ||
2220 | // InternalCftLanguage.g:860:3: (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? | 2982 | // InternalCftLanguage.g:1122:3: (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? |
2221 | int alt20=2; | 2983 | int alt23=2; |
2222 | int LA20_0 = input.LA(1); | 2984 | int LA23_0 = input.LA(1); |
2223 | 2985 | ||
2224 | if ( (LA20_0==16) ) { | 2986 | if ( (LA23_0==17) ) { |
2225 | alt20=1; | 2987 | alt23=1; |
2226 | } | 2988 | } |
2227 | switch (alt20) { | 2989 | switch (alt23) { |
2228 | case 1 : | 2990 | case 1 : |
2229 | // InternalCftLanguage.g:861:4: otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' | 2991 | // InternalCftLanguage.g:1123:4: otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' |
2230 | { | 2992 | { |
2231 | otherlv_9=(Token)match(input,16,FOLLOW_26); | 2993 | otherlv_9=(Token)match(input,17,FOLLOW_28); |
2232 | 2994 | ||
2233 | newLeafNode(otherlv_9, grammarAccess.getMappingDefinitionAccess().getLeftCurlyBracketKeyword_8_0()); | 2995 | newLeafNode(otherlv_9, grammarAccess.getMappingDefinitionAccess().getLeftCurlyBracketKeyword_8_0()); |
2234 | 2996 | ||
2235 | // InternalCftLanguage.g:865:4: ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* | 2997 | // InternalCftLanguage.g:1127:4: ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* |
2236 | loop19: | 2998 | loop22: |
2237 | do { | 2999 | do { |
2238 | int alt19=2; | 3000 | int alt22=2; |
2239 | int LA19_0 = input.LA(1); | 3001 | int LA22_0 = input.LA(1); |
2240 | 3002 | ||
2241 | if ( (LA19_0==RULE_ID||LA19_0==31) ) { | 3003 | if ( ((LA22_0>=RULE_OF_INT && LA22_0<=RULE_ID)||LA22_0==34) ) { |
2242 | alt19=1; | 3004 | alt22=1; |
2243 | } | 3005 | } |
2244 | 3006 | ||
2245 | 3007 | ||
2246 | switch (alt19) { | 3008 | switch (alt22) { |
2247 | case 1 : | 3009 | case 1 : |
2248 | // InternalCftLanguage.g:866:5: ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' | 3010 | // InternalCftLanguage.g:1128:5: ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' |
2249 | { | 3011 | { |
2250 | // InternalCftLanguage.g:866:5: ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) | 3012 | // InternalCftLanguage.g:1128:5: ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) |
2251 | int alt18=2; | 3013 | int alt21=2; |
2252 | int LA18_0 = input.LA(1); | 3014 | int LA21_0 = input.LA(1); |
2253 | 3015 | ||
2254 | if ( (LA18_0==31) ) { | 3016 | if ( (LA21_0==34) ) { |
2255 | alt18=1; | 3017 | alt21=1; |
2256 | } | 3018 | } |
2257 | else if ( (LA18_0==RULE_ID) ) { | 3019 | else if ( ((LA21_0>=RULE_OF_INT && LA21_0<=RULE_ID)) ) { |
2258 | alt18=2; | 3020 | alt21=2; |
2259 | } | 3021 | } |
2260 | else { | 3022 | else { |
2261 | NoViableAltException nvae = | 3023 | NoViableAltException nvae = |
2262 | new NoViableAltException("", 18, 0, input); | 3024 | new NoViableAltException("", 21, 0, input); |
2263 | 3025 | ||
2264 | throw nvae; | 3026 | throw nvae; |
2265 | } | 3027 | } |
2266 | switch (alt18) { | 3028 | switch (alt21) { |
2267 | case 1 : | 3029 | case 1 : |
2268 | // InternalCftLanguage.g:867:6: ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | 3030 | // InternalCftLanguage.g:1129:6: ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) |
2269 | { | 3031 | { |
2270 | // InternalCftLanguage.g:867:6: ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | 3032 | // InternalCftLanguage.g:1129:6: ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) |
2271 | // InternalCftLanguage.g:868:7: (lv_lookupDefinitions_10_0= ruleLookupDefinition ) | 3033 | // InternalCftLanguage.g:1130:7: (lv_lookupDefinitions_10_0= ruleLookupDefinition ) |
2272 | { | 3034 | { |
2273 | // InternalCftLanguage.g:868:7: (lv_lookupDefinitions_10_0= ruleLookupDefinition ) | 3035 | // InternalCftLanguage.g:1130:7: (lv_lookupDefinitions_10_0= ruleLookupDefinition ) |
2274 | // InternalCftLanguage.g:869:8: lv_lookupDefinitions_10_0= ruleLookupDefinition | 3036 | // InternalCftLanguage.g:1131:8: lv_lookupDefinitions_10_0= ruleLookupDefinition |
2275 | { | 3037 | { |
2276 | 3038 | ||
2277 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0()); | 3039 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0()); |
@@ -2302,13 +3064,13 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2302 | } | 3064 | } |
2303 | break; | 3065 | break; |
2304 | case 2 : | 3066 | case 2 : |
2305 | // InternalCftLanguage.g:887:6: ( (lv_assignments_11_0= ruleAssignment ) ) | 3067 | // InternalCftLanguage.g:1149:6: ( (lv_assignments_11_0= ruleAssignment ) ) |
2306 | { | 3068 | { |
2307 | // InternalCftLanguage.g:887:6: ( (lv_assignments_11_0= ruleAssignment ) ) | 3069 | // InternalCftLanguage.g:1149:6: ( (lv_assignments_11_0= ruleAssignment ) ) |
2308 | // InternalCftLanguage.g:888:7: (lv_assignments_11_0= ruleAssignment ) | 3070 | // InternalCftLanguage.g:1150:7: (lv_assignments_11_0= ruleAssignment ) |
2309 | { | 3071 | { |
2310 | // InternalCftLanguage.g:888:7: (lv_assignments_11_0= ruleAssignment ) | 3072 | // InternalCftLanguage.g:1150:7: (lv_assignments_11_0= ruleAssignment ) |
2311 | // InternalCftLanguage.g:889:8: lv_assignments_11_0= ruleAssignment | 3073 | // InternalCftLanguage.g:1151:8: lv_assignments_11_0= ruleAssignment |
2312 | { | 3074 | { |
2313 | 3075 | ||
2314 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getAssignmentsAssignmentParserRuleCall_8_1_0_1_0()); | 3076 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getAssignmentsAssignmentParserRuleCall_8_1_0_1_0()); |
@@ -2341,7 +3103,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2341 | 3103 | ||
2342 | } | 3104 | } |
2343 | 3105 | ||
2344 | otherlv_12=(Token)match(input,13,FOLLOW_26); | 3106 | otherlv_12=(Token)match(input,14,FOLLOW_28); |
2345 | 3107 | ||
2346 | newLeafNode(otherlv_12, grammarAccess.getMappingDefinitionAccess().getSemicolonKeyword_8_1_1()); | 3108 | newLeafNode(otherlv_12, grammarAccess.getMappingDefinitionAccess().getSemicolonKeyword_8_1_1()); |
2347 | 3109 | ||
@@ -2350,11 +3112,11 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2350 | break; | 3112 | break; |
2351 | 3113 | ||
2352 | default : | 3114 | default : |
2353 | break loop19; | 3115 | break loop22; |
2354 | } | 3116 | } |
2355 | } while (true); | 3117 | } while (true); |
2356 | 3118 | ||
2357 | otherlv_13=(Token)match(input,19,FOLLOW_2); | 3119 | otherlv_13=(Token)match(input,20,FOLLOW_2); |
2358 | 3120 | ||
2359 | newLeafNode(otherlv_13, grammarAccess.getMappingDefinitionAccess().getRightCurlyBracketKeyword_8_2()); | 3121 | newLeafNode(otherlv_13, grammarAccess.getMappingDefinitionAccess().getRightCurlyBracketKeyword_8_2()); |
2360 | 3122 | ||
@@ -2387,7 +3149,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2387 | 3149 | ||
2388 | 3150 | ||
2389 | // $ANTLR start "entryRuleMappingParameter" | 3151 | // $ANTLR start "entryRuleMappingParameter" |
2390 | // InternalCftLanguage.g:921:1: entryRuleMappingParameter returns [EObject current=null] : iv_ruleMappingParameter= ruleMappingParameter EOF ; | 3152 | // InternalCftLanguage.g:1183:1: entryRuleMappingParameter returns [EObject current=null] : iv_ruleMappingParameter= ruleMappingParameter EOF ; |
2391 | public final EObject entryRuleMappingParameter() throws RecognitionException { | 3153 | public final EObject entryRuleMappingParameter() throws RecognitionException { |
2392 | EObject current = null; | 3154 | EObject current = null; |
2393 | 3155 | ||
@@ -2395,8 +3157,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2395 | 3157 | ||
2396 | 3158 | ||
2397 | try { | 3159 | try { |
2398 | // InternalCftLanguage.g:921:57: (iv_ruleMappingParameter= ruleMappingParameter EOF ) | 3160 | // InternalCftLanguage.g:1183:57: (iv_ruleMappingParameter= ruleMappingParameter EOF ) |
2399 | // InternalCftLanguage.g:922:2: iv_ruleMappingParameter= ruleMappingParameter EOF | 3161 | // InternalCftLanguage.g:1184:2: iv_ruleMappingParameter= ruleMappingParameter EOF |
2400 | { | 3162 | { |
2401 | newCompositeNode(grammarAccess.getMappingParameterRule()); | 3163 | newCompositeNode(grammarAccess.getMappingParameterRule()); |
2402 | pushFollow(FOLLOW_1); | 3164 | pushFollow(FOLLOW_1); |
@@ -2423,38 +3185,44 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2423 | 3185 | ||
2424 | 3186 | ||
2425 | // $ANTLR start "ruleMappingParameter" | 3187 | // $ANTLR start "ruleMappingParameter" |
2426 | // InternalCftLanguage.g:928:1: ruleMappingParameter returns [EObject current=null] : ( (lv_name_0_0= RULE_ID ) ) ; | 3188 | // InternalCftLanguage.g:1190:1: ruleMappingParameter returns [EObject current=null] : ( (lv_name_0_0= ruleValidId ) ) ; |
2427 | public final EObject ruleMappingParameter() throws RecognitionException { | 3189 | public final EObject ruleMappingParameter() throws RecognitionException { |
2428 | EObject current = null; | 3190 | EObject current = null; |
2429 | 3191 | ||
2430 | Token lv_name_0_0=null; | 3192 | AntlrDatatypeRuleToken lv_name_0_0 = null; |
3193 | |||
2431 | 3194 | ||
2432 | 3195 | ||
2433 | enterRule(); | 3196 | enterRule(); |
2434 | 3197 | ||
2435 | try { | 3198 | try { |
2436 | // InternalCftLanguage.g:934:2: ( ( (lv_name_0_0= RULE_ID ) ) ) | 3199 | // InternalCftLanguage.g:1196:2: ( ( (lv_name_0_0= ruleValidId ) ) ) |
2437 | // InternalCftLanguage.g:935:2: ( (lv_name_0_0= RULE_ID ) ) | 3200 | // InternalCftLanguage.g:1197:2: ( (lv_name_0_0= ruleValidId ) ) |
2438 | { | 3201 | { |
2439 | // InternalCftLanguage.g:935:2: ( (lv_name_0_0= RULE_ID ) ) | 3202 | // InternalCftLanguage.g:1197:2: ( (lv_name_0_0= ruleValidId ) ) |
2440 | // InternalCftLanguage.g:936:3: (lv_name_0_0= RULE_ID ) | 3203 | // InternalCftLanguage.g:1198:3: (lv_name_0_0= ruleValidId ) |
2441 | { | 3204 | { |
2442 | // InternalCftLanguage.g:936:3: (lv_name_0_0= RULE_ID ) | 3205 | // InternalCftLanguage.g:1198:3: (lv_name_0_0= ruleValidId ) |
2443 | // InternalCftLanguage.g:937:4: lv_name_0_0= RULE_ID | 3206 | // InternalCftLanguage.g:1199:4: lv_name_0_0= ruleValidId |
2444 | { | 3207 | { |
2445 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_2); | ||
2446 | 3208 | ||
2447 | newLeafNode(lv_name_0_0, grammarAccess.getMappingParameterAccess().getNameIDTerminalRuleCall_0()); | 3209 | newCompositeNode(grammarAccess.getMappingParameterAccess().getNameValidIdParserRuleCall_0()); |
2448 | 3210 | ||
3211 | pushFollow(FOLLOW_2); | ||
3212 | lv_name_0_0=ruleValidId(); | ||
3213 | |||
3214 | state._fsp--; | ||
3215 | |||
2449 | 3216 | ||
2450 | if (current==null) { | 3217 | if (current==null) { |
2451 | current = createModelElement(grammarAccess.getMappingParameterRule()); | 3218 | current = createModelElementForParent(grammarAccess.getMappingParameterRule()); |
2452 | } | 3219 | } |
2453 | setWithLastConsumed( | 3220 | set( |
2454 | current, | 3221 | current, |
2455 | "name", | 3222 | "name", |
2456 | lv_name_0_0, | 3223 | lv_name_0_0, |
2457 | "org.eclipse.xtext.common.Terminals.ID"); | 3224 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
3225 | afterParserOrEnumRuleCall(); | ||
2458 | 3226 | ||
2459 | 3227 | ||
2460 | } | 3228 | } |
@@ -2482,7 +3250,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2482 | 3250 | ||
2483 | 3251 | ||
2484 | // $ANTLR start "entryRuleLookupDefinition" | 3252 | // $ANTLR start "entryRuleLookupDefinition" |
2485 | // InternalCftLanguage.g:956:1: entryRuleLookupDefinition returns [EObject current=null] : iv_ruleLookupDefinition= ruleLookupDefinition EOF ; | 3253 | // InternalCftLanguage.g:1219:1: entryRuleLookupDefinition returns [EObject current=null] : iv_ruleLookupDefinition= ruleLookupDefinition EOF ; |
2486 | public final EObject entryRuleLookupDefinition() throws RecognitionException { | 3254 | public final EObject entryRuleLookupDefinition() throws RecognitionException { |
2487 | EObject current = null; | 3255 | EObject current = null; |
2488 | 3256 | ||
@@ -2490,8 +3258,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2490 | 3258 | ||
2491 | 3259 | ||
2492 | try { | 3260 | try { |
2493 | // InternalCftLanguage.g:956:57: (iv_ruleLookupDefinition= ruleLookupDefinition EOF ) | 3261 | // InternalCftLanguage.g:1219:57: (iv_ruleLookupDefinition= ruleLookupDefinition EOF ) |
2494 | // InternalCftLanguage.g:957:2: iv_ruleLookupDefinition= ruleLookupDefinition EOF | 3262 | // InternalCftLanguage.g:1220:2: iv_ruleLookupDefinition= ruleLookupDefinition EOF |
2495 | { | 3263 | { |
2496 | newCompositeNode(grammarAccess.getLookupDefinitionRule()); | 3264 | newCompositeNode(grammarAccess.getLookupDefinitionRule()); |
2497 | pushFollow(FOLLOW_1); | 3265 | pushFollow(FOLLOW_1); |
@@ -2518,48 +3286,53 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2518 | 3286 | ||
2519 | 3287 | ||
2520 | // $ANTLR start "ruleLookupDefinition" | 3288 | // $ANTLR start "ruleLookupDefinition" |
2521 | // InternalCftLanguage.g:963:1: ruleLookupDefinition returns [EObject current=null] : (otherlv_0= 'lookup' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( (otherlv_3= RULE_ID ) ) (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= RULE_ID ) ) ) ; | 3289 | // InternalCftLanguage.g:1226:1: ruleLookupDefinition returns [EObject current=null] : (otherlv_0= 'lookup' ( ( ruleQualifiedName ) ) otherlv_2= '(' ( ( ruleValidId ) ) (otherlv_4= ',' ( ( ruleValidId ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= ruleValidId ) ) ) ; |
2522 | public final EObject ruleLookupDefinition() throws RecognitionException { | 3290 | public final EObject ruleLookupDefinition() throws RecognitionException { |
2523 | EObject current = null; | 3291 | EObject current = null; |
2524 | 3292 | ||
2525 | Token otherlv_0=null; | 3293 | Token otherlv_0=null; |
2526 | Token otherlv_1=null; | ||
2527 | Token otherlv_2=null; | 3294 | Token otherlv_2=null; |
2528 | Token otherlv_3=null; | ||
2529 | Token otherlv_4=null; | 3295 | Token otherlv_4=null; |
2530 | Token otherlv_5=null; | ||
2531 | Token otherlv_6=null; | 3296 | Token otherlv_6=null; |
2532 | Token otherlv_7=null; | 3297 | Token otherlv_7=null; |
2533 | Token lv_name_8_0=null; | 3298 | AntlrDatatypeRuleToken lv_name_8_0 = null; |
3299 | |||
2534 | 3300 | ||
2535 | 3301 | ||
2536 | enterRule(); | 3302 | enterRule(); |
2537 | 3303 | ||
2538 | try { | 3304 | try { |
2539 | // InternalCftLanguage.g:969:2: ( (otherlv_0= 'lookup' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( (otherlv_3= RULE_ID ) ) (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= RULE_ID ) ) ) ) | 3305 | // InternalCftLanguage.g:1232:2: ( (otherlv_0= 'lookup' ( ( ruleQualifiedName ) ) otherlv_2= '(' ( ( ruleValidId ) ) (otherlv_4= ',' ( ( ruleValidId ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= ruleValidId ) ) ) ) |
2540 | // InternalCftLanguage.g:970:2: (otherlv_0= 'lookup' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( (otherlv_3= RULE_ID ) ) (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= RULE_ID ) ) ) | 3306 | // InternalCftLanguage.g:1233:2: (otherlv_0= 'lookup' ( ( ruleQualifiedName ) ) otherlv_2= '(' ( ( ruleValidId ) ) (otherlv_4= ',' ( ( ruleValidId ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= ruleValidId ) ) ) |
2541 | { | 3307 | { |
2542 | // InternalCftLanguage.g:970:2: (otherlv_0= 'lookup' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( (otherlv_3= RULE_ID ) ) (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= RULE_ID ) ) ) | 3308 | // InternalCftLanguage.g:1233:2: (otherlv_0= 'lookup' ( ( ruleQualifiedName ) ) otherlv_2= '(' ( ( ruleValidId ) ) (otherlv_4= ',' ( ( ruleValidId ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= ruleValidId ) ) ) |
2543 | // InternalCftLanguage.g:971:3: otherlv_0= 'lookup' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( (otherlv_3= RULE_ID ) ) (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= RULE_ID ) ) | 3309 | // InternalCftLanguage.g:1234:3: otherlv_0= 'lookup' ( ( ruleQualifiedName ) ) otherlv_2= '(' ( ( ruleValidId ) ) (otherlv_4= ',' ( ( ruleValidId ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= ruleValidId ) ) |
2544 | { | 3310 | { |
2545 | otherlv_0=(Token)match(input,31,FOLLOW_3); | 3311 | otherlv_0=(Token)match(input,34,FOLLOW_3); |
2546 | 3312 | ||
2547 | newLeafNode(otherlv_0, grammarAccess.getLookupDefinitionAccess().getLookupKeyword_0()); | 3313 | newLeafNode(otherlv_0, grammarAccess.getLookupDefinitionAccess().getLookupKeyword_0()); |
2548 | 3314 | ||
2549 | // InternalCftLanguage.g:975:3: ( (otherlv_1= RULE_ID ) ) | 3315 | // InternalCftLanguage.g:1238:3: ( ( ruleQualifiedName ) ) |
2550 | // InternalCftLanguage.g:976:4: (otherlv_1= RULE_ID ) | 3316 | // InternalCftLanguage.g:1239:4: ( ruleQualifiedName ) |
2551 | { | 3317 | { |
2552 | // InternalCftLanguage.g:976:4: (otherlv_1= RULE_ID ) | 3318 | // InternalCftLanguage.g:1239:4: ( ruleQualifiedName ) |
2553 | // InternalCftLanguage.g:977:5: otherlv_1= RULE_ID | 3319 | // InternalCftLanguage.g:1240:5: ruleQualifiedName |
2554 | { | 3320 | { |
2555 | 3321 | ||
2556 | if (current==null) { | 3322 | if (current==null) { |
2557 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | 3323 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); |
2558 | } | 3324 | } |
2559 | 3325 | ||
2560 | otherlv_1=(Token)match(input,RULE_ID,FOLLOW_22); | ||
2561 | 3326 | ||
2562 | newLeafNode(otherlv_1, grammarAccess.getLookupDefinitionAccess().getMappingMappingDefinitionCrossReference_1_0()); | 3327 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getMappingMappingDefinitionCrossReference_1_0()); |
3328 | |||
3329 | pushFollow(FOLLOW_24); | ||
3330 | ruleQualifiedName(); | ||
3331 | |||
3332 | state._fsp--; | ||
3333 | |||
3334 | |||
3335 | afterParserOrEnumRuleCall(); | ||
2563 | 3336 | ||
2564 | 3337 | ||
2565 | } | 3338 | } |
@@ -2567,24 +3340,31 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2567 | 3340 | ||
2568 | } | 3341 | } |
2569 | 3342 | ||
2570 | otherlv_2=(Token)match(input,28,FOLLOW_3); | 3343 | otherlv_2=(Token)match(input,31,FOLLOW_3); |
2571 | 3344 | ||
2572 | newLeafNode(otherlv_2, grammarAccess.getLookupDefinitionAccess().getLeftParenthesisKeyword_2()); | 3345 | newLeafNode(otherlv_2, grammarAccess.getLookupDefinitionAccess().getLeftParenthesisKeyword_2()); |
2573 | 3346 | ||
2574 | // InternalCftLanguage.g:992:3: ( (otherlv_3= RULE_ID ) ) | 3347 | // InternalCftLanguage.g:1258:3: ( ( ruleValidId ) ) |
2575 | // InternalCftLanguage.g:993:4: (otherlv_3= RULE_ID ) | 3348 | // InternalCftLanguage.g:1259:4: ( ruleValidId ) |
2576 | { | 3349 | { |
2577 | // InternalCftLanguage.g:993:4: (otherlv_3= RULE_ID ) | 3350 | // InternalCftLanguage.g:1259:4: ( ruleValidId ) |
2578 | // InternalCftLanguage.g:994:5: otherlv_3= RULE_ID | 3351 | // InternalCftLanguage.g:1260:5: ruleValidId |
2579 | { | 3352 | { |
2580 | 3353 | ||
2581 | if (current==null) { | 3354 | if (current==null) { |
2582 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | 3355 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); |
2583 | } | 3356 | } |
2584 | 3357 | ||
2585 | otherlv_3=(Token)match(input,RULE_ID,FOLLOW_23); | ||
2586 | 3358 | ||
2587 | newLeafNode(otherlv_3, grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_3_0()); | 3359 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_3_0()); |
3360 | |||
3361 | pushFollow(FOLLOW_25); | ||
3362 | ruleValidId(); | ||
3363 | |||
3364 | state._fsp--; | ||
3365 | |||
3366 | |||
3367 | afterParserOrEnumRuleCall(); | ||
2588 | 3368 | ||
2589 | 3369 | ||
2590 | } | 3370 | } |
@@ -2592,39 +3372,46 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2592 | 3372 | ||
2593 | } | 3373 | } |
2594 | 3374 | ||
2595 | // InternalCftLanguage.g:1005:3: (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* | 3375 | // InternalCftLanguage.g:1274:3: (otherlv_4= ',' ( ( ruleValidId ) ) )* |
2596 | loop21: | 3376 | loop24: |
2597 | do { | 3377 | do { |
2598 | int alt21=2; | 3378 | int alt24=2; |
2599 | int LA21_0 = input.LA(1); | 3379 | int LA24_0 = input.LA(1); |
2600 | 3380 | ||
2601 | if ( (LA21_0==29) ) { | 3381 | if ( (LA24_0==32) ) { |
2602 | alt21=1; | 3382 | alt24=1; |
2603 | } | 3383 | } |
2604 | 3384 | ||
2605 | 3385 | ||
2606 | switch (alt21) { | 3386 | switch (alt24) { |
2607 | case 1 : | 3387 | case 1 : |
2608 | // InternalCftLanguage.g:1006:4: otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) | 3388 | // InternalCftLanguage.g:1275:4: otherlv_4= ',' ( ( ruleValidId ) ) |
2609 | { | 3389 | { |
2610 | otherlv_4=(Token)match(input,29,FOLLOW_3); | 3390 | otherlv_4=(Token)match(input,32,FOLLOW_3); |
2611 | 3391 | ||
2612 | newLeafNode(otherlv_4, grammarAccess.getLookupDefinitionAccess().getCommaKeyword_4_0()); | 3392 | newLeafNode(otherlv_4, grammarAccess.getLookupDefinitionAccess().getCommaKeyword_4_0()); |
2613 | 3393 | ||
2614 | // InternalCftLanguage.g:1010:4: ( (otherlv_5= RULE_ID ) ) | 3394 | // InternalCftLanguage.g:1279:4: ( ( ruleValidId ) ) |
2615 | // InternalCftLanguage.g:1011:5: (otherlv_5= RULE_ID ) | 3395 | // InternalCftLanguage.g:1280:5: ( ruleValidId ) |
2616 | { | 3396 | { |
2617 | // InternalCftLanguage.g:1011:5: (otherlv_5= RULE_ID ) | 3397 | // InternalCftLanguage.g:1280:5: ( ruleValidId ) |
2618 | // InternalCftLanguage.g:1012:6: otherlv_5= RULE_ID | 3398 | // InternalCftLanguage.g:1281:6: ruleValidId |
2619 | { | 3399 | { |
2620 | 3400 | ||
2621 | if (current==null) { | 3401 | if (current==null) { |
2622 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | 3402 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); |
2623 | } | 3403 | } |
2624 | 3404 | ||
2625 | otherlv_5=(Token)match(input,RULE_ID,FOLLOW_23); | ||
2626 | 3405 | ||
2627 | newLeafNode(otherlv_5, grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_4_1_0()); | 3406 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_4_1_0()); |
3407 | |||
3408 | pushFollow(FOLLOW_25); | ||
3409 | ruleValidId(); | ||
3410 | |||
3411 | state._fsp--; | ||
3412 | |||
3413 | |||
3414 | afterParserOrEnumRuleCall(); | ||
2628 | 3415 | ||
2629 | 3416 | ||
2630 | } | 3417 | } |
@@ -2637,37 +3424,42 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2637 | break; | 3424 | break; |
2638 | 3425 | ||
2639 | default : | 3426 | default : |
2640 | break loop21; | 3427 | break loop24; |
2641 | } | 3428 | } |
2642 | } while (true); | 3429 | } while (true); |
2643 | 3430 | ||
2644 | otherlv_6=(Token)match(input,30,FOLLOW_27); | 3431 | otherlv_6=(Token)match(input,33,FOLLOW_29); |
2645 | 3432 | ||
2646 | newLeafNode(otherlv_6, grammarAccess.getLookupDefinitionAccess().getRightParenthesisKeyword_5()); | 3433 | newLeafNode(otherlv_6, grammarAccess.getLookupDefinitionAccess().getRightParenthesisKeyword_5()); |
2647 | 3434 | ||
2648 | otherlv_7=(Token)match(input,32,FOLLOW_3); | 3435 | otherlv_7=(Token)match(input,35,FOLLOW_3); |
2649 | 3436 | ||
2650 | newLeafNode(otherlv_7, grammarAccess.getLookupDefinitionAccess().getAsKeyword_6()); | 3437 | newLeafNode(otherlv_7, grammarAccess.getLookupDefinitionAccess().getAsKeyword_6()); |
2651 | 3438 | ||
2652 | // InternalCftLanguage.g:1032:3: ( (lv_name_8_0= RULE_ID ) ) | 3439 | // InternalCftLanguage.g:1304:3: ( (lv_name_8_0= ruleValidId ) ) |
2653 | // InternalCftLanguage.g:1033:4: (lv_name_8_0= RULE_ID ) | 3440 | // InternalCftLanguage.g:1305:4: (lv_name_8_0= ruleValidId ) |
2654 | { | 3441 | { |
2655 | // InternalCftLanguage.g:1033:4: (lv_name_8_0= RULE_ID ) | 3442 | // InternalCftLanguage.g:1305:4: (lv_name_8_0= ruleValidId ) |
2656 | // InternalCftLanguage.g:1034:5: lv_name_8_0= RULE_ID | 3443 | // InternalCftLanguage.g:1306:5: lv_name_8_0= ruleValidId |
2657 | { | 3444 | { |
2658 | lv_name_8_0=(Token)match(input,RULE_ID,FOLLOW_2); | ||
2659 | 3445 | ||
2660 | newLeafNode(lv_name_8_0, grammarAccess.getLookupDefinitionAccess().getNameIDTerminalRuleCall_7_0()); | 3446 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getNameValidIdParserRuleCall_7_0()); |
2661 | 3447 | ||
3448 | pushFollow(FOLLOW_2); | ||
3449 | lv_name_8_0=ruleValidId(); | ||
3450 | |||
3451 | state._fsp--; | ||
3452 | |||
2662 | 3453 | ||
2663 | if (current==null) { | 3454 | if (current==null) { |
2664 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | 3455 | current = createModelElementForParent(grammarAccess.getLookupDefinitionRule()); |
2665 | } | 3456 | } |
2666 | setWithLastConsumed( | 3457 | set( |
2667 | current, | 3458 | current, |
2668 | "name", | 3459 | "name", |
2669 | lv_name_8_0, | 3460 | lv_name_8_0, |
2670 | "org.eclipse.xtext.common.Terminals.ID"); | 3461 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
3462 | afterParserOrEnumRuleCall(); | ||
2671 | 3463 | ||
2672 | 3464 | ||
2673 | } | 3465 | } |
@@ -2698,7 +3490,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2698 | 3490 | ||
2699 | 3491 | ||
2700 | // $ANTLR start "entryRuleAssignment" | 3492 | // $ANTLR start "entryRuleAssignment" |
2701 | // InternalCftLanguage.g:1054:1: entryRuleAssignment returns [EObject current=null] : iv_ruleAssignment= ruleAssignment EOF ; | 3493 | // InternalCftLanguage.g:1327:1: entryRuleAssignment returns [EObject current=null] : iv_ruleAssignment= ruleAssignment EOF ; |
2702 | public final EObject entryRuleAssignment() throws RecognitionException { | 3494 | public final EObject entryRuleAssignment() throws RecognitionException { |
2703 | EObject current = null; | 3495 | EObject current = null; |
2704 | 3496 | ||
@@ -2706,8 +3498,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2706 | 3498 | ||
2707 | 3499 | ||
2708 | try { | 3500 | try { |
2709 | // InternalCftLanguage.g:1054:51: (iv_ruleAssignment= ruleAssignment EOF ) | 3501 | // InternalCftLanguage.g:1327:51: (iv_ruleAssignment= ruleAssignment EOF ) |
2710 | // InternalCftLanguage.g:1055:2: iv_ruleAssignment= ruleAssignment EOF | 3502 | // InternalCftLanguage.g:1328:2: iv_ruleAssignment= ruleAssignment EOF |
2711 | { | 3503 | { |
2712 | newCompositeNode(grammarAccess.getAssignmentRule()); | 3504 | newCompositeNode(grammarAccess.getAssignmentRule()); |
2713 | pushFollow(FOLLOW_1); | 3505 | pushFollow(FOLLOW_1); |
@@ -2734,7 +3526,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2734 | 3526 | ||
2735 | 3527 | ||
2736 | // $ANTLR start "ruleAssignment" | 3528 | // $ANTLR start "ruleAssignment" |
2737 | // InternalCftLanguage.g:1061:1: ruleAssignment returns [EObject current=null] : ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) ; | 3529 | // InternalCftLanguage.g:1334:1: ruleAssignment returns [EObject current=null] : ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) ; |
2738 | public final EObject ruleAssignment() throws RecognitionException { | 3530 | public final EObject ruleAssignment() throws RecognitionException { |
2739 | EObject current = null; | 3531 | EObject current = null; |
2740 | 3532 | ||
@@ -2749,22 +3541,22 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2749 | enterRule(); | 3541 | enterRule(); |
2750 | 3542 | ||
2751 | try { | 3543 | try { |
2752 | // InternalCftLanguage.g:1067:2: ( ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) ) | 3544 | // InternalCftLanguage.g:1340:2: ( ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) ) |
2753 | // InternalCftLanguage.g:1068:2: ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) | 3545 | // InternalCftLanguage.g:1341:2: ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) |
2754 | { | 3546 | { |
2755 | // InternalCftLanguage.g:1068:2: ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) | 3547 | // InternalCftLanguage.g:1341:2: ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) |
2756 | // InternalCftLanguage.g:1069:3: ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) | 3548 | // InternalCftLanguage.g:1342:3: ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) |
2757 | { | 3549 | { |
2758 | // InternalCftLanguage.g:1069:3: ( (lv_input_0_0= ruleEventReference ) ) | 3550 | // InternalCftLanguage.g:1342:3: ( (lv_input_0_0= ruleEventReference ) ) |
2759 | // InternalCftLanguage.g:1070:4: (lv_input_0_0= ruleEventReference ) | 3551 | // InternalCftLanguage.g:1343:4: (lv_input_0_0= ruleEventReference ) |
2760 | { | 3552 | { |
2761 | // InternalCftLanguage.g:1070:4: (lv_input_0_0= ruleEventReference ) | 3553 | // InternalCftLanguage.g:1343:4: (lv_input_0_0= ruleEventReference ) |
2762 | // InternalCftLanguage.g:1071:5: lv_input_0_0= ruleEventReference | 3554 | // InternalCftLanguage.g:1344:5: lv_input_0_0= ruleEventReference |
2763 | { | 3555 | { |
2764 | 3556 | ||
2765 | newCompositeNode(grammarAccess.getAssignmentAccess().getInputEventReferenceParserRuleCall_0_0()); | 3557 | newCompositeNode(grammarAccess.getAssignmentAccess().getInputEventReferenceParserRuleCall_0_0()); |
2766 | 3558 | ||
2767 | pushFollow(FOLLOW_28); | 3559 | pushFollow(FOLLOW_30); |
2768 | lv_input_0_0=ruleEventReference(); | 3560 | lv_input_0_0=ruleEventReference(); |
2769 | 3561 | ||
2770 | state._fsp--; | 3562 | state._fsp--; |
@@ -2786,33 +3578,33 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2786 | 3578 | ||
2787 | } | 3579 | } |
2788 | 3580 | ||
2789 | // InternalCftLanguage.g:1088:3: ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) | 3581 | // InternalCftLanguage.g:1361:3: ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) |
2790 | int alt22=2; | 3582 | int alt25=2; |
2791 | int LA22_0 = input.LA(1); | 3583 | int LA25_0 = input.LA(1); |
2792 | 3584 | ||
2793 | if ( (LA22_0==33) ) { | 3585 | if ( (LA25_0==36) ) { |
2794 | alt22=1; | 3586 | alt25=1; |
2795 | } | 3587 | } |
2796 | else if ( (LA22_0==34) ) { | 3588 | else if ( (LA25_0==37) ) { |
2797 | alt22=2; | 3589 | alt25=2; |
2798 | } | 3590 | } |
2799 | else { | 3591 | else { |
2800 | NoViableAltException nvae = | 3592 | NoViableAltException nvae = |
2801 | new NoViableAltException("", 22, 0, input); | 3593 | new NoViableAltException("", 25, 0, input); |
2802 | 3594 | ||
2803 | throw nvae; | 3595 | throw nvae; |
2804 | } | 3596 | } |
2805 | switch (alt22) { | 3597 | switch (alt25) { |
2806 | case 1 : | 3598 | case 1 : |
2807 | // InternalCftLanguage.g:1089:4: ( (lv_multiple_1_0= '+=' ) ) | 3599 | // InternalCftLanguage.g:1362:4: ( (lv_multiple_1_0= '+=' ) ) |
2808 | { | 3600 | { |
2809 | // InternalCftLanguage.g:1089:4: ( (lv_multiple_1_0= '+=' ) ) | 3601 | // InternalCftLanguage.g:1362:4: ( (lv_multiple_1_0= '+=' ) ) |
2810 | // InternalCftLanguage.g:1090:5: (lv_multiple_1_0= '+=' ) | 3602 | // InternalCftLanguage.g:1363:5: (lv_multiple_1_0= '+=' ) |
2811 | { | 3603 | { |
2812 | // InternalCftLanguage.g:1090:5: (lv_multiple_1_0= '+=' ) | 3604 | // InternalCftLanguage.g:1363:5: (lv_multiple_1_0= '+=' ) |
2813 | // InternalCftLanguage.g:1091:6: lv_multiple_1_0= '+=' | 3605 | // InternalCftLanguage.g:1364:6: lv_multiple_1_0= '+=' |
2814 | { | 3606 | { |
2815 | lv_multiple_1_0=(Token)match(input,33,FOLLOW_29); | 3607 | lv_multiple_1_0=(Token)match(input,36,FOLLOW_31); |
2816 | 3608 | ||
2817 | newLeafNode(lv_multiple_1_0, grammarAccess.getAssignmentAccess().getMultiplePlusSignEqualsSignKeyword_1_0_0()); | 3609 | newLeafNode(lv_multiple_1_0, grammarAccess.getAssignmentAccess().getMultiplePlusSignEqualsSignKeyword_1_0_0()); |
2818 | 3610 | ||
@@ -2832,9 +3624,9 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2832 | } | 3624 | } |
2833 | break; | 3625 | break; |
2834 | case 2 : | 3626 | case 2 : |
2835 | // InternalCftLanguage.g:1104:4: otherlv_2= ':=' | 3627 | // InternalCftLanguage.g:1377:4: otherlv_2= ':=' |
2836 | { | 3628 | { |
2837 | otherlv_2=(Token)match(input,34,FOLLOW_29); | 3629 | otherlv_2=(Token)match(input,37,FOLLOW_31); |
2838 | 3630 | ||
2839 | newLeafNode(otherlv_2, grammarAccess.getAssignmentAccess().getColonEqualsSignKeyword_1_1()); | 3631 | newLeafNode(otherlv_2, grammarAccess.getAssignmentAccess().getColonEqualsSignKeyword_1_1()); |
2840 | 3632 | ||
@@ -2844,11 +3636,11 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2844 | 3636 | ||
2845 | } | 3637 | } |
2846 | 3638 | ||
2847 | // InternalCftLanguage.g:1109:3: ( (lv_output_3_0= ruleEventReference ) ) | 3639 | // InternalCftLanguage.g:1382:3: ( (lv_output_3_0= ruleEventReference ) ) |
2848 | // InternalCftLanguage.g:1110:4: (lv_output_3_0= ruleEventReference ) | 3640 | // InternalCftLanguage.g:1383:4: (lv_output_3_0= ruleEventReference ) |
2849 | { | 3641 | { |
2850 | // InternalCftLanguage.g:1110:4: (lv_output_3_0= ruleEventReference ) | 3642 | // InternalCftLanguage.g:1383:4: (lv_output_3_0= ruleEventReference ) |
2851 | // InternalCftLanguage.g:1111:5: lv_output_3_0= ruleEventReference | 3643 | // InternalCftLanguage.g:1384:5: lv_output_3_0= ruleEventReference |
2852 | { | 3644 | { |
2853 | 3645 | ||
2854 | newCompositeNode(grammarAccess.getAssignmentAccess().getOutputEventReferenceParserRuleCall_2_0()); | 3646 | newCompositeNode(grammarAccess.getAssignmentAccess().getOutputEventReferenceParserRuleCall_2_0()); |
@@ -2898,7 +3690,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2898 | 3690 | ||
2899 | 3691 | ||
2900 | // $ANTLR start "entryRuleEventReference" | 3692 | // $ANTLR start "entryRuleEventReference" |
2901 | // InternalCftLanguage.g:1132:1: entryRuleEventReference returns [EObject current=null] : iv_ruleEventReference= ruleEventReference EOF ; | 3693 | // InternalCftLanguage.g:1405:1: entryRuleEventReference returns [EObject current=null] : iv_ruleEventReference= ruleEventReference EOF ; |
2902 | public final EObject entryRuleEventReference() throws RecognitionException { | 3694 | public final EObject entryRuleEventReference() throws RecognitionException { |
2903 | EObject current = null; | 3695 | EObject current = null; |
2904 | 3696 | ||
@@ -2906,8 +3698,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2906 | 3698 | ||
2907 | 3699 | ||
2908 | try { | 3700 | try { |
2909 | // InternalCftLanguage.g:1132:55: (iv_ruleEventReference= ruleEventReference EOF ) | 3701 | // InternalCftLanguage.g:1405:55: (iv_ruleEventReference= ruleEventReference EOF ) |
2910 | // InternalCftLanguage.g:1133:2: iv_ruleEventReference= ruleEventReference EOF | 3702 | // InternalCftLanguage.g:1406:2: iv_ruleEventReference= ruleEventReference EOF |
2911 | { | 3703 | { |
2912 | newCompositeNode(grammarAccess.getEventReferenceRule()); | 3704 | newCompositeNode(grammarAccess.getEventReferenceRule()); |
2913 | pushFollow(FOLLOW_1); | 3705 | pushFollow(FOLLOW_1); |
@@ -2934,38 +3726,43 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2934 | 3726 | ||
2935 | 3727 | ||
2936 | // $ANTLR start "ruleEventReference" | 3728 | // $ANTLR start "ruleEventReference" |
2937 | // InternalCftLanguage.g:1139:1: ruleEventReference returns [EObject current=null] : ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) ; | 3729 | // InternalCftLanguage.g:1412:1: ruleEventReference returns [EObject current=null] : ( ( ( ruleValidId ) ) otherlv_1= '.' ( ( ruleValidId ) ) ) ; |
2938 | public final EObject ruleEventReference() throws RecognitionException { | 3730 | public final EObject ruleEventReference() throws RecognitionException { |
2939 | EObject current = null; | 3731 | EObject current = null; |
2940 | 3732 | ||
2941 | Token otherlv_0=null; | ||
2942 | Token otherlv_1=null; | 3733 | Token otherlv_1=null; |
2943 | Token otherlv_2=null; | ||
2944 | 3734 | ||
2945 | 3735 | ||
2946 | enterRule(); | 3736 | enterRule(); |
2947 | 3737 | ||
2948 | try { | 3738 | try { |
2949 | // InternalCftLanguage.g:1145:2: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) ) | 3739 | // InternalCftLanguage.g:1418:2: ( ( ( ( ruleValidId ) ) otherlv_1= '.' ( ( ruleValidId ) ) ) ) |
2950 | // InternalCftLanguage.g:1146:2: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) | 3740 | // InternalCftLanguage.g:1419:2: ( ( ( ruleValidId ) ) otherlv_1= '.' ( ( ruleValidId ) ) ) |
2951 | { | 3741 | { |
2952 | // InternalCftLanguage.g:1146:2: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) | 3742 | // InternalCftLanguage.g:1419:2: ( ( ( ruleValidId ) ) otherlv_1= '.' ( ( ruleValidId ) ) ) |
2953 | // InternalCftLanguage.g:1147:3: ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) | 3743 | // InternalCftLanguage.g:1420:3: ( ( ruleValidId ) ) otherlv_1= '.' ( ( ruleValidId ) ) |
2954 | { | 3744 | { |
2955 | // InternalCftLanguage.g:1147:3: ( (otherlv_0= RULE_ID ) ) | 3745 | // InternalCftLanguage.g:1420:3: ( ( ruleValidId ) ) |
2956 | // InternalCftLanguage.g:1148:4: (otherlv_0= RULE_ID ) | 3746 | // InternalCftLanguage.g:1421:4: ( ruleValidId ) |
2957 | { | 3747 | { |
2958 | // InternalCftLanguage.g:1148:4: (otherlv_0= RULE_ID ) | 3748 | // InternalCftLanguage.g:1421:4: ( ruleValidId ) |
2959 | // InternalCftLanguage.g:1149:5: otherlv_0= RULE_ID | 3749 | // InternalCftLanguage.g:1422:5: ruleValidId |
2960 | { | 3750 | { |
2961 | 3751 | ||
2962 | if (current==null) { | 3752 | if (current==null) { |
2963 | current = createModelElement(grammarAccess.getEventReferenceRule()); | 3753 | current = createModelElement(grammarAccess.getEventReferenceRule()); |
2964 | } | 3754 | } |
2965 | 3755 | ||
2966 | otherlv_0=(Token)match(input,RULE_ID,FOLLOW_30); | ||
2967 | 3756 | ||
2968 | newLeafNode(otherlv_0, grammarAccess.getEventReferenceAccess().getComponentVariableCrossReference_0_0()); | 3757 | newCompositeNode(grammarAccess.getEventReferenceAccess().getComponentVariableCrossReference_0_0()); |
3758 | |||
3759 | pushFollow(FOLLOW_32); | ||
3760 | ruleValidId(); | ||
3761 | |||
3762 | state._fsp--; | ||
3763 | |||
3764 | |||
3765 | afterParserOrEnumRuleCall(); | ||
2969 | 3766 | ||
2970 | 3767 | ||
2971 | } | 3768 | } |
@@ -2973,24 +3770,31 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2973 | 3770 | ||
2974 | } | 3771 | } |
2975 | 3772 | ||
2976 | otherlv_1=(Token)match(input,35,FOLLOW_3); | 3773 | otherlv_1=(Token)match(input,38,FOLLOW_3); |
2977 | 3774 | ||
2978 | newLeafNode(otherlv_1, grammarAccess.getEventReferenceAccess().getFullStopKeyword_1()); | 3775 | newLeafNode(otherlv_1, grammarAccess.getEventReferenceAccess().getFullStopKeyword_1()); |
2979 | 3776 | ||
2980 | // InternalCftLanguage.g:1164:3: ( (otherlv_2= RULE_ID ) ) | 3777 | // InternalCftLanguage.g:1440:3: ( ( ruleValidId ) ) |
2981 | // InternalCftLanguage.g:1165:4: (otherlv_2= RULE_ID ) | 3778 | // InternalCftLanguage.g:1441:4: ( ruleValidId ) |
2982 | { | 3779 | { |
2983 | // InternalCftLanguage.g:1165:4: (otherlv_2= RULE_ID ) | 3780 | // InternalCftLanguage.g:1441:4: ( ruleValidId ) |
2984 | // InternalCftLanguage.g:1166:5: otherlv_2= RULE_ID | 3781 | // InternalCftLanguage.g:1442:5: ruleValidId |
2985 | { | 3782 | { |
2986 | 3783 | ||
2987 | if (current==null) { | 3784 | if (current==null) { |
2988 | current = createModelElement(grammarAccess.getEventReferenceRule()); | 3785 | current = createModelElement(grammarAccess.getEventReferenceRule()); |
2989 | } | 3786 | } |
2990 | 3787 | ||
2991 | otherlv_2=(Token)match(input,RULE_ID,FOLLOW_2); | ||
2992 | 3788 | ||
2993 | newLeafNode(otherlv_2, grammarAccess.getEventReferenceAccess().getEventEventDeclarationCrossReference_2_0()); | 3789 | newCompositeNode(grammarAccess.getEventReferenceAccess().getEventEventDeclarationCrossReference_2_0()); |
3790 | |||
3791 | pushFollow(FOLLOW_2); | ||
3792 | ruleValidId(); | ||
3793 | |||
3794 | state._fsp--; | ||
3795 | |||
3796 | |||
3797 | afterParserOrEnumRuleCall(); | ||
2994 | 3798 | ||
2995 | 3799 | ||
2996 | } | 3800 | } |
@@ -3021,7 +3825,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3021 | 3825 | ||
3022 | 3826 | ||
3023 | // $ANTLR start "entryRuleComponentInstance" | 3827 | // $ANTLR start "entryRuleComponentInstance" |
3024 | // InternalCftLanguage.g:1181:1: entryRuleComponentInstance returns [EObject current=null] : iv_ruleComponentInstance= ruleComponentInstance EOF ; | 3828 | // InternalCftLanguage.g:1460:1: entryRuleComponentInstance returns [EObject current=null] : iv_ruleComponentInstance= ruleComponentInstance EOF ; |
3025 | public final EObject entryRuleComponentInstance() throws RecognitionException { | 3829 | public final EObject entryRuleComponentInstance() throws RecognitionException { |
3026 | EObject current = null; | 3830 | EObject current = null; |
3027 | 3831 | ||
@@ -3029,8 +3833,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3029 | 3833 | ||
3030 | 3834 | ||
3031 | try { | 3835 | try { |
3032 | // InternalCftLanguage.g:1181:58: (iv_ruleComponentInstance= ruleComponentInstance EOF ) | 3836 | // InternalCftLanguage.g:1460:58: (iv_ruleComponentInstance= ruleComponentInstance EOF ) |
3033 | // InternalCftLanguage.g:1182:2: iv_ruleComponentInstance= ruleComponentInstance EOF | 3837 | // InternalCftLanguage.g:1461:2: iv_ruleComponentInstance= ruleComponentInstance EOF |
3034 | { | 3838 | { |
3035 | newCompositeNode(grammarAccess.getComponentInstanceRule()); | 3839 | newCompositeNode(grammarAccess.getComponentInstanceRule()); |
3036 | pushFollow(FOLLOW_1); | 3840 | pushFollow(FOLLOW_1); |
@@ -3057,7 +3861,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3057 | 3861 | ||
3058 | 3862 | ||
3059 | // $ANTLR start "ruleComponentInstance" | 3863 | // $ANTLR start "ruleComponentInstance" |
3060 | // InternalCftLanguage.g:1188:1: ruleComponentInstance returns [EObject current=null] : (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) ; | 3864 | // InternalCftLanguage.g:1467:1: ruleComponentInstance returns [EObject current=null] : (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) ; |
3061 | public final EObject ruleComponentInstance() throws RecognitionException { | 3865 | public final EObject ruleComponentInstance() throws RecognitionException { |
3062 | EObject current = null; | 3866 | EObject current = null; |
3063 | 3867 | ||
@@ -3068,21 +3872,21 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3068 | enterRule(); | 3872 | enterRule(); |
3069 | 3873 | ||
3070 | try { | 3874 | try { |
3071 | // InternalCftLanguage.g:1194:2: ( (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) ) | 3875 | // InternalCftLanguage.g:1473:2: ( (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) ) |
3072 | // InternalCftLanguage.g:1195:2: (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) | 3876 | // InternalCftLanguage.g:1474:2: (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) |
3073 | { | 3877 | { |
3074 | // InternalCftLanguage.g:1195:2: (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) | 3878 | // InternalCftLanguage.g:1474:2: (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) |
3075 | // InternalCftLanguage.g:1196:3: otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? | 3879 | // InternalCftLanguage.g:1475:3: otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? |
3076 | { | 3880 | { |
3077 | otherlv_0=(Token)match(input,36,FOLLOW_3); | 3881 | otherlv_0=(Token)match(input,39,FOLLOW_3); |
3078 | 3882 | ||
3079 | newLeafNode(otherlv_0, grammarAccess.getComponentInstanceAccess().getEqualsSignGreaterThanSignKeyword_0()); | 3883 | newLeafNode(otherlv_0, grammarAccess.getComponentInstanceAccess().getEqualsSignGreaterThanSignKeyword_0()); |
3080 | 3884 | ||
3081 | // InternalCftLanguage.g:1200:3: ( ( ruleQualifiedName ) ) | 3885 | // InternalCftLanguage.g:1479:3: ( ( ruleQualifiedName ) ) |
3082 | // InternalCftLanguage.g:1201:4: ( ruleQualifiedName ) | 3886 | // InternalCftLanguage.g:1480:4: ( ruleQualifiedName ) |
3083 | { | 3887 | { |
3084 | // InternalCftLanguage.g:1201:4: ( ruleQualifiedName ) | 3888 | // InternalCftLanguage.g:1480:4: ( ruleQualifiedName ) |
3085 | // InternalCftLanguage.g:1202:5: ruleQualifiedName | 3889 | // InternalCftLanguage.g:1481:5: ruleQualifiedName |
3086 | { | 3890 | { |
3087 | 3891 | ||
3088 | if (current==null) { | 3892 | if (current==null) { |
@@ -3092,7 +3896,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3092 | 3896 | ||
3093 | newCompositeNode(grammarAccess.getComponentInstanceAccess().getComponentTypeComponentDefinitionCrossReference_1_0()); | 3897 | newCompositeNode(grammarAccess.getComponentInstanceAccess().getComponentTypeComponentDefinitionCrossReference_1_0()); |
3094 | 3898 | ||
3095 | pushFollow(FOLLOW_18); | 3899 | pushFollow(FOLLOW_33); |
3096 | ruleQualifiedName(); | 3900 | ruleQualifiedName(); |
3097 | 3901 | ||
3098 | state._fsp--; | 3902 | state._fsp--; |
@@ -3106,19 +3910,19 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3106 | 3910 | ||
3107 | } | 3911 | } |
3108 | 3912 | ||
3109 | // InternalCftLanguage.g:1216:3: ( (lv_name_2_0= RULE_ID ) )? | 3913 | // InternalCftLanguage.g:1495:3: ( (lv_name_2_0= RULE_ID ) )? |
3110 | int alt23=2; | 3914 | int alt26=2; |
3111 | int LA23_0 = input.LA(1); | 3915 | int LA26_0 = input.LA(1); |
3112 | 3916 | ||
3113 | if ( (LA23_0==RULE_ID) ) { | 3917 | if ( (LA26_0==RULE_ID) ) { |
3114 | alt23=1; | 3918 | alt26=1; |
3115 | } | 3919 | } |
3116 | switch (alt23) { | 3920 | switch (alt26) { |
3117 | case 1 : | 3921 | case 1 : |
3118 | // InternalCftLanguage.g:1217:4: (lv_name_2_0= RULE_ID ) | 3922 | // InternalCftLanguage.g:1496:4: (lv_name_2_0= RULE_ID ) |
3119 | { | 3923 | { |
3120 | // InternalCftLanguage.g:1217:4: (lv_name_2_0= RULE_ID ) | 3924 | // InternalCftLanguage.g:1496:4: (lv_name_2_0= RULE_ID ) |
3121 | // InternalCftLanguage.g:1218:5: lv_name_2_0= RULE_ID | 3925 | // InternalCftLanguage.g:1497:5: lv_name_2_0= RULE_ID |
3122 | { | 3926 | { |
3123 | lv_name_2_0=(Token)match(input,RULE_ID,FOLLOW_2); | 3927 | lv_name_2_0=(Token)match(input,RULE_ID,FOLLOW_2); |
3124 | 3928 | ||
@@ -3166,7 +3970,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3166 | 3970 | ||
3167 | 3971 | ||
3168 | // $ANTLR start "entryRuleQualifiedName" | 3972 | // $ANTLR start "entryRuleQualifiedName" |
3169 | // InternalCftLanguage.g:1238:1: entryRuleQualifiedName returns [String current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ; | 3973 | // InternalCftLanguage.g:1517:1: entryRuleQualifiedName returns [String current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ; |
3170 | public final String entryRuleQualifiedName() throws RecognitionException { | 3974 | public final String entryRuleQualifiedName() throws RecognitionException { |
3171 | String current = null; | 3975 | String current = null; |
3172 | 3976 | ||
@@ -3174,8 +3978,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3174 | 3978 | ||
3175 | 3979 | ||
3176 | try { | 3980 | try { |
3177 | // InternalCftLanguage.g:1238:53: (iv_ruleQualifiedName= ruleQualifiedName EOF ) | 3981 | // InternalCftLanguage.g:1517:53: (iv_ruleQualifiedName= ruleQualifiedName EOF ) |
3178 | // InternalCftLanguage.g:1239:2: iv_ruleQualifiedName= ruleQualifiedName EOF | 3982 | // InternalCftLanguage.g:1518:2: iv_ruleQualifiedName= ruleQualifiedName EOF |
3179 | { | 3983 | { |
3180 | newCompositeNode(grammarAccess.getQualifiedNameRule()); | 3984 | newCompositeNode(grammarAccess.getQualifiedNameRule()); |
3181 | pushFollow(FOLLOW_1); | 3985 | pushFollow(FOLLOW_1); |
@@ -3202,70 +4006,86 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3202 | 4006 | ||
3203 | 4007 | ||
3204 | // $ANTLR start "ruleQualifiedName" | 4008 | // $ANTLR start "ruleQualifiedName" |
3205 | // InternalCftLanguage.g:1245:1: ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) ; | 4009 | // InternalCftLanguage.g:1524:1: ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ValidId_0= ruleValidId (kw= '.' this_ValidId_2= ruleValidId )* ) ; |
3206 | public final AntlrDatatypeRuleToken ruleQualifiedName() throws RecognitionException { | 4010 | public final AntlrDatatypeRuleToken ruleQualifiedName() throws RecognitionException { |
3207 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); | 4011 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
3208 | 4012 | ||
3209 | Token this_ID_0=null; | ||
3210 | Token kw=null; | 4013 | Token kw=null; |
3211 | Token this_ID_2=null; | 4014 | AntlrDatatypeRuleToken this_ValidId_0 = null; |
4015 | |||
4016 | AntlrDatatypeRuleToken this_ValidId_2 = null; | ||
4017 | |||
3212 | 4018 | ||
3213 | 4019 | ||
3214 | enterRule(); | 4020 | enterRule(); |
3215 | 4021 | ||
3216 | try { | 4022 | try { |
3217 | // InternalCftLanguage.g:1251:2: ( (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) ) | 4023 | // InternalCftLanguage.g:1530:2: ( (this_ValidId_0= ruleValidId (kw= '.' this_ValidId_2= ruleValidId )* ) ) |
3218 | // InternalCftLanguage.g:1252:2: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) | 4024 | // InternalCftLanguage.g:1531:2: (this_ValidId_0= ruleValidId (kw= '.' this_ValidId_2= ruleValidId )* ) |
3219 | { | 4025 | { |
3220 | // InternalCftLanguage.g:1252:2: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) | 4026 | // InternalCftLanguage.g:1531:2: (this_ValidId_0= ruleValidId (kw= '.' this_ValidId_2= ruleValidId )* ) |
3221 | // InternalCftLanguage.g:1253:3: this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* | 4027 | // InternalCftLanguage.g:1532:3: this_ValidId_0= ruleValidId (kw= '.' this_ValidId_2= ruleValidId )* |
3222 | { | 4028 | { |
3223 | this_ID_0=(Token)match(input,RULE_ID,FOLLOW_31); | ||
3224 | 4029 | ||
3225 | current.merge(this_ID_0); | 4030 | newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIdParserRuleCall_0()); |
3226 | 4031 | ||
4032 | pushFollow(FOLLOW_34); | ||
4033 | this_ValidId_0=ruleValidId(); | ||
4034 | |||
4035 | state._fsp--; | ||
4036 | |||
3227 | 4037 | ||
3228 | newLeafNode(this_ID_0, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); | 4038 | current.merge(this_ValidId_0); |
3229 | 4039 | ||
3230 | // InternalCftLanguage.g:1260:3: (kw= '.' this_ID_2= RULE_ID )* | 4040 | |
3231 | loop24: | 4041 | afterParserOrEnumRuleCall(); |
4042 | |||
4043 | // InternalCftLanguage.g:1542:3: (kw= '.' this_ValidId_2= ruleValidId )* | ||
4044 | loop27: | ||
3232 | do { | 4045 | do { |
3233 | int alt24=2; | 4046 | int alt27=2; |
3234 | int LA24_0 = input.LA(1); | 4047 | int LA27_0 = input.LA(1); |
3235 | 4048 | ||
3236 | if ( (LA24_0==35) ) { | 4049 | if ( (LA27_0==38) ) { |
3237 | int LA24_2 = input.LA(2); | 4050 | int LA27_2 = input.LA(2); |
3238 | 4051 | ||
3239 | if ( (LA24_2==RULE_ID) ) { | 4052 | if ( ((LA27_2>=RULE_OF_INT && LA27_2<=RULE_ID)) ) { |
3240 | alt24=1; | 4053 | alt27=1; |
3241 | } | 4054 | } |
3242 | 4055 | ||
3243 | 4056 | ||
3244 | } | 4057 | } |
3245 | 4058 | ||
3246 | 4059 | ||
3247 | switch (alt24) { | 4060 | switch (alt27) { |
3248 | case 1 : | 4061 | case 1 : |
3249 | // InternalCftLanguage.g:1261:4: kw= '.' this_ID_2= RULE_ID | 4062 | // InternalCftLanguage.g:1543:4: kw= '.' this_ValidId_2= ruleValidId |
3250 | { | 4063 | { |
3251 | kw=(Token)match(input,35,FOLLOW_3); | 4064 | kw=(Token)match(input,38,FOLLOW_3); |
3252 | 4065 | ||
3253 | current.merge(kw); | 4066 | current.merge(kw); |
3254 | newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); | 4067 | newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); |
3255 | 4068 | ||
3256 | this_ID_2=(Token)match(input,RULE_ID,FOLLOW_31); | ||
3257 | 4069 | ||
3258 | current.merge(this_ID_2); | 4070 | newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIdParserRuleCall_1_1()); |
3259 | 4071 | ||
4072 | pushFollow(FOLLOW_34); | ||
4073 | this_ValidId_2=ruleValidId(); | ||
4074 | |||
4075 | state._fsp--; | ||
4076 | |||
3260 | 4077 | ||
3261 | newLeafNode(this_ID_2, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); | 4078 | current.merge(this_ValidId_2); |
4079 | |||
4080 | |||
4081 | afterParserOrEnumRuleCall(); | ||
3262 | 4082 | ||
3263 | 4083 | ||
3264 | } | 4084 | } |
3265 | break; | 4085 | break; |
3266 | 4086 | ||
3267 | default : | 4087 | default : |
3268 | break loop24; | 4088 | break loop27; |
3269 | } | 4089 | } |
3270 | } while (true); | 4090 | } while (true); |
3271 | 4091 | ||
@@ -3292,7 +4112,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3292 | 4112 | ||
3293 | 4113 | ||
3294 | // $ANTLR start "entryRuleQualifiedNameWithWildcard" | 4114 | // $ANTLR start "entryRuleQualifiedNameWithWildcard" |
3295 | // InternalCftLanguage.g:1278:1: entryRuleQualifiedNameWithWildcard returns [String current=null] : iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ; | 4115 | // InternalCftLanguage.g:1563:1: entryRuleQualifiedNameWithWildcard returns [String current=null] : iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ; |
3296 | public final String entryRuleQualifiedNameWithWildcard() throws RecognitionException { | 4116 | public final String entryRuleQualifiedNameWithWildcard() throws RecognitionException { |
3297 | String current = null; | 4117 | String current = null; |
3298 | 4118 | ||
@@ -3300,8 +4120,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3300 | 4120 | ||
3301 | 4121 | ||
3302 | try { | 4122 | try { |
3303 | // InternalCftLanguage.g:1278:65: (iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ) | 4123 | // InternalCftLanguage.g:1563:65: (iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ) |
3304 | // InternalCftLanguage.g:1279:2: iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF | 4124 | // InternalCftLanguage.g:1564:2: iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF |
3305 | { | 4125 | { |
3306 | newCompositeNode(grammarAccess.getQualifiedNameWithWildcardRule()); | 4126 | newCompositeNode(grammarAccess.getQualifiedNameWithWildcardRule()); |
3307 | pushFollow(FOLLOW_1); | 4127 | pushFollow(FOLLOW_1); |
@@ -3328,7 +4148,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3328 | 4148 | ||
3329 | 4149 | ||
3330 | // $ANTLR start "ruleQualifiedNameWithWildcard" | 4150 | // $ANTLR start "ruleQualifiedNameWithWildcard" |
3331 | // InternalCftLanguage.g:1285:1: ruleQualifiedNameWithWildcard returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) ; | 4151 | // InternalCftLanguage.g:1570:1: ruleQualifiedNameWithWildcard returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) ; |
3332 | public final AntlrDatatypeRuleToken ruleQualifiedNameWithWildcard() throws RecognitionException { | 4152 | public final AntlrDatatypeRuleToken ruleQualifiedNameWithWildcard() throws RecognitionException { |
3333 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); | 4153 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
3334 | 4154 | ||
@@ -3340,16 +4160,16 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3340 | enterRule(); | 4160 | enterRule(); |
3341 | 4161 | ||
3342 | try { | 4162 | try { |
3343 | // InternalCftLanguage.g:1291:2: ( (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) ) | 4163 | // InternalCftLanguage.g:1576:2: ( (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) ) |
3344 | // InternalCftLanguage.g:1292:2: (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) | 4164 | // InternalCftLanguage.g:1577:2: (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) |
3345 | { | 4165 | { |
3346 | // InternalCftLanguage.g:1292:2: (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) | 4166 | // InternalCftLanguage.g:1577:2: (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) |
3347 | // InternalCftLanguage.g:1293:3: this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? | 4167 | // InternalCftLanguage.g:1578:3: this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? |
3348 | { | 4168 | { |
3349 | 4169 | ||
3350 | newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); | 4170 | newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); |
3351 | 4171 | ||
3352 | pushFollow(FOLLOW_31); | 4172 | pushFollow(FOLLOW_34); |
3353 | this_QualifiedName_0=ruleQualifiedName(); | 4173 | this_QualifiedName_0=ruleQualifiedName(); |
3354 | 4174 | ||
3355 | state._fsp--; | 4175 | state._fsp--; |
@@ -3360,23 +4180,23 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3360 | 4180 | ||
3361 | afterParserOrEnumRuleCall(); | 4181 | afterParserOrEnumRuleCall(); |
3362 | 4182 | ||
3363 | // InternalCftLanguage.g:1303:3: (kw= '.' kw= '*' )? | 4183 | // InternalCftLanguage.g:1588:3: (kw= '.' kw= '*' )? |
3364 | int alt25=2; | 4184 | int alt28=2; |
3365 | int LA25_0 = input.LA(1); | 4185 | int LA28_0 = input.LA(1); |
3366 | 4186 | ||
3367 | if ( (LA25_0==35) ) { | 4187 | if ( (LA28_0==38) ) { |
3368 | alt25=1; | 4188 | alt28=1; |
3369 | } | 4189 | } |
3370 | switch (alt25) { | 4190 | switch (alt28) { |
3371 | case 1 : | 4191 | case 1 : |
3372 | // InternalCftLanguage.g:1304:4: kw= '.' kw= '*' | 4192 | // InternalCftLanguage.g:1589:4: kw= '.' kw= '*' |
3373 | { | 4193 | { |
3374 | kw=(Token)match(input,35,FOLLOW_32); | 4194 | kw=(Token)match(input,38,FOLLOW_35); |
3375 | 4195 | ||
3376 | current.merge(kw); | 4196 | current.merge(kw); |
3377 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1_0()); | 4197 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1_0()); |
3378 | 4198 | ||
3379 | kw=(Token)match(input,37,FOLLOW_2); | 4199 | kw=(Token)match(input,40,FOLLOW_2); |
3380 | 4200 | ||
3381 | current.merge(kw); | 4201 | current.merge(kw); |
3382 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_1_1()); | 4202 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_1_1()); |
@@ -3408,6 +4228,238 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3408 | } | 4228 | } |
3409 | // $ANTLR end "ruleQualifiedNameWithWildcard" | 4229 | // $ANTLR end "ruleQualifiedNameWithWildcard" |
3410 | 4230 | ||
4231 | |||
4232 | // $ANTLR start "entryRuleValidId" | ||
4233 | // InternalCftLanguage.g:1604:1: entryRuleValidId returns [String current=null] : iv_ruleValidId= ruleValidId EOF ; | ||
4234 | public final String entryRuleValidId() throws RecognitionException { | ||
4235 | String current = null; | ||
4236 | |||
4237 | AntlrDatatypeRuleToken iv_ruleValidId = null; | ||
4238 | |||
4239 | |||
4240 | try { | ||
4241 | // InternalCftLanguage.g:1604:47: (iv_ruleValidId= ruleValidId EOF ) | ||
4242 | // InternalCftLanguage.g:1605:2: iv_ruleValidId= ruleValidId EOF | ||
4243 | { | ||
4244 | newCompositeNode(grammarAccess.getValidIdRule()); | ||
4245 | pushFollow(FOLLOW_1); | ||
4246 | iv_ruleValidId=ruleValidId(); | ||
4247 | |||
4248 | state._fsp--; | ||
4249 | |||
4250 | current =iv_ruleValidId.getText(); | ||
4251 | match(input,EOF,FOLLOW_2); | ||
4252 | |||
4253 | } | ||
4254 | |||
4255 | } | ||
4256 | |||
4257 | catch (RecognitionException re) { | ||
4258 | recover(input,re); | ||
4259 | appendSkippedTokens(); | ||
4260 | } | ||
4261 | finally { | ||
4262 | } | ||
4263 | return current; | ||
4264 | } | ||
4265 | // $ANTLR end "entryRuleValidId" | ||
4266 | |||
4267 | |||
4268 | // $ANTLR start "ruleValidId" | ||
4269 | // InternalCftLanguage.g:1611:1: ruleValidId returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ID_0= RULE_ID | this_OF_INT_1= RULE_OF_INT ) ; | ||
4270 | public final AntlrDatatypeRuleToken ruleValidId() throws RecognitionException { | ||
4271 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); | ||
4272 | |||
4273 | Token this_ID_0=null; | ||
4274 | Token this_OF_INT_1=null; | ||
4275 | |||
4276 | |||
4277 | enterRule(); | ||
4278 | |||
4279 | try { | ||
4280 | // InternalCftLanguage.g:1617:2: ( (this_ID_0= RULE_ID | this_OF_INT_1= RULE_OF_INT ) ) | ||
4281 | // InternalCftLanguage.g:1618:2: (this_ID_0= RULE_ID | this_OF_INT_1= RULE_OF_INT ) | ||
4282 | { | ||
4283 | // InternalCftLanguage.g:1618:2: (this_ID_0= RULE_ID | this_OF_INT_1= RULE_OF_INT ) | ||
4284 | int alt29=2; | ||
4285 | int LA29_0 = input.LA(1); | ||
4286 | |||
4287 | if ( (LA29_0==RULE_ID) ) { | ||
4288 | alt29=1; | ||
4289 | } | ||
4290 | else if ( (LA29_0==RULE_OF_INT) ) { | ||
4291 | alt29=2; | ||
4292 | } | ||
4293 | else { | ||
4294 | NoViableAltException nvae = | ||
4295 | new NoViableAltException("", 29, 0, input); | ||
4296 | |||
4297 | throw nvae; | ||
4298 | } | ||
4299 | switch (alt29) { | ||
4300 | case 1 : | ||
4301 | // InternalCftLanguage.g:1619:3: this_ID_0= RULE_ID | ||
4302 | { | ||
4303 | this_ID_0=(Token)match(input,RULE_ID,FOLLOW_2); | ||
4304 | |||
4305 | current.merge(this_ID_0); | ||
4306 | |||
4307 | |||
4308 | newLeafNode(this_ID_0, grammarAccess.getValidIdAccess().getIDTerminalRuleCall_0()); | ||
4309 | |||
4310 | |||
4311 | } | ||
4312 | break; | ||
4313 | case 2 : | ||
4314 | // InternalCftLanguage.g:1627:3: this_OF_INT_1= RULE_OF_INT | ||
4315 | { | ||
4316 | this_OF_INT_1=(Token)match(input,RULE_OF_INT,FOLLOW_2); | ||
4317 | |||
4318 | current.merge(this_OF_INT_1); | ||
4319 | |||
4320 | |||
4321 | newLeafNode(this_OF_INT_1, grammarAccess.getValidIdAccess().getOF_INTTerminalRuleCall_1()); | ||
4322 | |||
4323 | |||
4324 | } | ||
4325 | break; | ||
4326 | |||
4327 | } | ||
4328 | |||
4329 | |||
4330 | } | ||
4331 | |||
4332 | |||
4333 | leaveRule(); | ||
4334 | |||
4335 | } | ||
4336 | |||
4337 | catch (RecognitionException re) { | ||
4338 | recover(input,re); | ||
4339 | appendSkippedTokens(); | ||
4340 | } | ||
4341 | finally { | ||
4342 | } | ||
4343 | return current; | ||
4344 | } | ||
4345 | // $ANTLR end "ruleValidId" | ||
4346 | |||
4347 | |||
4348 | // $ANTLR start "entryRuleDouble" | ||
4349 | // InternalCftLanguage.g:1638:1: entryRuleDouble returns [String current=null] : iv_ruleDouble= ruleDouble EOF ; | ||
4350 | public final String entryRuleDouble() throws RecognitionException { | ||
4351 | String current = null; | ||
4352 | |||
4353 | AntlrDatatypeRuleToken iv_ruleDouble = null; | ||
4354 | |||
4355 | |||
4356 | try { | ||
4357 | // InternalCftLanguage.g:1638:46: (iv_ruleDouble= ruleDouble EOF ) | ||
4358 | // InternalCftLanguage.g:1639:2: iv_ruleDouble= ruleDouble EOF | ||
4359 | { | ||
4360 | newCompositeNode(grammarAccess.getDoubleRule()); | ||
4361 | pushFollow(FOLLOW_1); | ||
4362 | iv_ruleDouble=ruleDouble(); | ||
4363 | |||
4364 | state._fsp--; | ||
4365 | |||
4366 | current =iv_ruleDouble.getText(); | ||
4367 | match(input,EOF,FOLLOW_2); | ||
4368 | |||
4369 | } | ||
4370 | |||
4371 | } | ||
4372 | |||
4373 | catch (RecognitionException re) { | ||
4374 | recover(input,re); | ||
4375 | appendSkippedTokens(); | ||
4376 | } | ||
4377 | finally { | ||
4378 | } | ||
4379 | return current; | ||
4380 | } | ||
4381 | // $ANTLR end "entryRuleDouble" | ||
4382 | |||
4383 | |||
4384 | // $ANTLR start "ruleDouble" | ||
4385 | // InternalCftLanguage.g:1645:1: ruleDouble returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_INT_0= RULE_INT | this_T_DOUBLE_1= RULE_T_DOUBLE ) ; | ||
4386 | public final AntlrDatatypeRuleToken ruleDouble() throws RecognitionException { | ||
4387 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); | ||
4388 | |||
4389 | Token this_INT_0=null; | ||
4390 | Token this_T_DOUBLE_1=null; | ||
4391 | |||
4392 | |||
4393 | enterRule(); | ||
4394 | |||
4395 | try { | ||
4396 | // InternalCftLanguage.g:1651:2: ( (this_INT_0= RULE_INT | this_T_DOUBLE_1= RULE_T_DOUBLE ) ) | ||
4397 | // InternalCftLanguage.g:1652:2: (this_INT_0= RULE_INT | this_T_DOUBLE_1= RULE_T_DOUBLE ) | ||
4398 | { | ||
4399 | // InternalCftLanguage.g:1652:2: (this_INT_0= RULE_INT | this_T_DOUBLE_1= RULE_T_DOUBLE ) | ||
4400 | int alt30=2; | ||
4401 | int LA30_0 = input.LA(1); | ||
4402 | |||
4403 | if ( (LA30_0==RULE_INT) ) { | ||
4404 | alt30=1; | ||
4405 | } | ||
4406 | else if ( (LA30_0==RULE_T_DOUBLE) ) { | ||
4407 | alt30=2; | ||
4408 | } | ||
4409 | else { | ||
4410 | NoViableAltException nvae = | ||
4411 | new NoViableAltException("", 30, 0, input); | ||
4412 | |||
4413 | throw nvae; | ||
4414 | } | ||
4415 | switch (alt30) { | ||
4416 | case 1 : | ||
4417 | // InternalCftLanguage.g:1653:3: this_INT_0= RULE_INT | ||
4418 | { | ||
4419 | this_INT_0=(Token)match(input,RULE_INT,FOLLOW_2); | ||
4420 | |||
4421 | current.merge(this_INT_0); | ||
4422 | |||
4423 | |||
4424 | newLeafNode(this_INT_0, grammarAccess.getDoubleAccess().getINTTerminalRuleCall_0()); | ||
4425 | |||
4426 | |||
4427 | } | ||
4428 | break; | ||
4429 | case 2 : | ||
4430 | // InternalCftLanguage.g:1661:3: this_T_DOUBLE_1= RULE_T_DOUBLE | ||
4431 | { | ||
4432 | this_T_DOUBLE_1=(Token)match(input,RULE_T_DOUBLE,FOLLOW_2); | ||
4433 | |||
4434 | current.merge(this_T_DOUBLE_1); | ||
4435 | |||
4436 | |||
4437 | newLeafNode(this_T_DOUBLE_1, grammarAccess.getDoubleAccess().getT_DOUBLETerminalRuleCall_1()); | ||
4438 | |||
4439 | |||
4440 | } | ||
4441 | break; | ||
4442 | |||
4443 | } | ||
4444 | |||
4445 | |||
4446 | } | ||
4447 | |||
4448 | |||
4449 | leaveRule(); | ||
4450 | |||
4451 | } | ||
4452 | |||
4453 | catch (RecognitionException re) { | ||
4454 | recover(input,re); | ||
4455 | appendSkippedTokens(); | ||
4456 | } | ||
4457 | finally { | ||
4458 | } | ||
4459 | return current; | ||
4460 | } | ||
4461 | // $ANTLR end "ruleDouble" | ||
4462 | |||
3411 | // Delegated rules | 4463 | // Delegated rules |
3412 | 4464 | ||
3413 | 4465 | ||
@@ -3415,35 +4467,38 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3415 | 4467 | ||
3416 | public static final BitSet FOLLOW_1 = new BitSet(new long[]{0x0000000000000000L}); | 4468 | public static final BitSet FOLLOW_1 = new BitSet(new long[]{0x0000000000000000L}); |
3417 | public static final BitSet FOLLOW_2 = new BitSet(new long[]{0x0000000000000002L}); | 4469 | public static final BitSet FOLLOW_2 = new BitSet(new long[]{0x0000000000000002L}); |
3418 | public static final BitSet FOLLOW_3 = new BitSet(new long[]{0x0000000000000010L}); | 4470 | public static final BitSet FOLLOW_3 = new BitSet(new long[]{0x0000000000000060L}); |
3419 | public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x000000000200E002L}); | 4471 | public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x000000001001C002L}); |
3420 | public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x000000000200C002L}); | 4472 | public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000010018002L}); |
3421 | public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000002008002L}); | 4473 | public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000010010002L}); |
3422 | public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000002002L}); | 4474 | public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000004002L}); |
3423 | public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000010000L}); | 4475 | public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000020000L}); |
3424 | public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x00000000000E0010L}); | 4476 | public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x00000000001C0060L}); |
3425 | public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000002010L}); | 4477 | public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000004060L}); |
3426 | public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000000002000L}); | 4478 | public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000000004000L}); |
3427 | public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000000080010L}); | 4479 | public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000000100060L}); |
3428 | public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000000100002L}); | 4480 | public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000000200002L}); |
3429 | public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000000200000L}); | 4481 | public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000001400000L}); |
3430 | public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000000400000L}); | 4482 | public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000000800000L}); |
3431 | public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000000000020L}); | 4483 | public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000000000090L}); |
3432 | public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000000000800000L}); | 4484 | public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000000002000000L}); |
3433 | public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000000000012L}); | 4485 | public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000000000062L}); |
3434 | public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0000000001000000L}); | 4486 | public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0000000004000000L}); |
3435 | public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x000000000C080000L}); | 4487 | public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x0000000000000010L}); |
3436 | public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000000008000000L}); | 4488 | public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000000008000020L}); |
3437 | public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0000000010000000L}); | 4489 | public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0000000060100000L}); |
3438 | public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000000060000000L}); | 4490 | public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000000040000000L}); |
3439 | public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000001000010002L}); | 4491 | public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000000080000000L}); |
3440 | public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0000000000010002L}); | 4492 | public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0000000300000000L}); |
3441 | public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000000080080010L}); | 4493 | public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000008000020002L}); |
3442 | public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0000000100000000L}); | 4494 | public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0000000000020002L}); |
3443 | public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0000000600000000L}); | 4495 | public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0000000400100060L}); |
3444 | public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0000000080000010L}); | 4496 | public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0000000800000000L}); |
3445 | public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x0000000800000000L}); | 4497 | public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x0000003000000000L}); |
3446 | public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0000000800000002L}); | 4498 | public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0000000400000060L}); |
3447 | public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x0000002000000000L}); | 4499 | public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x0000004000000000L}); |
4500 | public static final BitSet FOLLOW_33 = new BitSet(new long[]{0x0000000000000042L}); | ||
4501 | public static final BitSet FOLLOW_34 = new BitSet(new long[]{0x0000004000000002L}); | ||
4502 | public static final BitSet FOLLOW_35 = new BitSet(new long[]{0x0000010000000000L}); | ||
3448 | 4503 | ||
3449 | } | 4504 | } |