diff options
author | 2019-02-05 23:54:03 +0100 | |
---|---|---|
committer | 2019-02-19 19:18:25 +0100 | |
commit | 7f7f934fe6ad11df96906d009eec68583fd46660 (patch) | |
tree | 17828b0e833bc89b2b796fcc7da6cb74d6ec3e9c /Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java | |
parent | Generated files change (diff) | |
download | VIATRA-Generator-7f7f934fe6ad11df96906d009eec68583fd46660.tar.gz VIATRA-Generator-7f7f934fe6ad11df96906d009eec68583fd46660.tar.zst VIATRA-Generator-7f7f934fe6ad11df96906d009eec68583fd46660.zip |
[Stochastic] Fault tree transformation langauge
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 | 3449 |
1 files changed, 3449 insertions, 0 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 new file mode 100644 index 00000000..29c15563 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java | |||
@@ -0,0 +1,3449 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.faulttree.components.parser.antlr.internal; | ||
2 | |||
3 | import org.eclipse.xtext.*; | ||
4 | import org.eclipse.xtext.parser.*; | ||
5 | import org.eclipse.xtext.parser.impl.*; | ||
6 | import org.eclipse.emf.ecore.util.EcoreUtil; | ||
7 | import org.eclipse.emf.ecore.EObject; | ||
8 | import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser; | ||
9 | import org.eclipse.xtext.parser.antlr.XtextTokenStream; | ||
10 | import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; | ||
11 | import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; | ||
12 | import hu.bme.mit.inf.dslreasoner.faulttree.components.services.CftLanguageGrammarAccess; | ||
13 | |||
14 | |||
15 | |||
16 | import org.antlr.runtime.*; | ||
17 | import java.util.Stack; | ||
18 | import java.util.List; | ||
19 | import java.util.ArrayList; | ||
20 | |||
21 | @SuppressWarnings("all") | ||
22 | public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | ||
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'", "'+='", "':='", "'.'", "'=>'", "'*'" | ||
25 | }; | ||
26 | public static final int RULE_STRING=7; | ||
27 | public static final int RULE_SL_COMMENT=9; | ||
28 | public static final int T__19=19; | ||
29 | public static final int T__15=15; | ||
30 | public static final int T__37=37; | ||
31 | public static final int T__16=16; | ||
32 | public static final int T__17=17; | ||
33 | public static final int T__18=18; | ||
34 | 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__13=13; | ||
38 | public static final int T__35=35; | ||
39 | public static final int T__14=14; | ||
40 | public static final int T__36=36; | ||
41 | public static final int EOF=-1; | ||
42 | public static final int T__30=30; | ||
43 | public static final int T__31=31; | ||
44 | public static final int T__32=32; | ||
45 | public static final int RULE_ID=4; | ||
46 | public static final int RULE_WS=10; | ||
47 | public static final int RULE_DOULBE=5; | ||
48 | public static final int RULE_ANY_OTHER=11; | ||
49 | public static final int T__26=26; | ||
50 | public static final int T__27=27; | ||
51 | public static final int T__28=28; | ||
52 | public static final int RULE_INT=6; | ||
53 | public static final int T__29=29; | ||
54 | public static final int T__22=22; | ||
55 | public static final int RULE_ML_COMMENT=8; | ||
56 | public static final int T__23=23; | ||
57 | public static final int T__24=24; | ||
58 | public static final int T__25=25; | ||
59 | public static final int T__20=20; | ||
60 | public static final int T__21=21; | ||
61 | |||
62 | // delegates | ||
63 | // delegators | ||
64 | |||
65 | |||
66 | public InternalCftLanguageParser(TokenStream input) { | ||
67 | this(input, new RecognizerSharedState()); | ||
68 | } | ||
69 | public InternalCftLanguageParser(TokenStream input, RecognizerSharedState state) { | ||
70 | super(input, state); | ||
71 | |||
72 | } | ||
73 | |||
74 | |||
75 | public String[] getTokenNames() { return InternalCftLanguageParser.tokenNames; } | ||
76 | public String getGrammarFileName() { return "InternalCftLanguage.g"; } | ||
77 | |||
78 | |||
79 | |||
80 | private CftLanguageGrammarAccess grammarAccess; | ||
81 | |||
82 | public InternalCftLanguageParser(TokenStream input, CftLanguageGrammarAccess grammarAccess) { | ||
83 | this(input); | ||
84 | this.grammarAccess = grammarAccess; | ||
85 | registerRules(grammarAccess.getGrammar()); | ||
86 | } | ||
87 | |||
88 | @Override | ||
89 | protected String getFirstRuleName() { | ||
90 | return "CftModel"; | ||
91 | } | ||
92 | |||
93 | @Override | ||
94 | protected CftLanguageGrammarAccess getGrammarAccess() { | ||
95 | return grammarAccess; | ||
96 | } | ||
97 | |||
98 | |||
99 | |||
100 | |||
101 | // $ANTLR start "entryRuleCftModel" | ||
102 | // InternalCftLanguage.g:64:1: entryRuleCftModel returns [EObject current=null] : iv_ruleCftModel= ruleCftModel EOF ; | ||
103 | public final EObject entryRuleCftModel() throws RecognitionException { | ||
104 | EObject current = null; | ||
105 | |||
106 | EObject iv_ruleCftModel = null; | ||
107 | |||
108 | |||
109 | try { | ||
110 | // InternalCftLanguage.g:64:49: (iv_ruleCftModel= ruleCftModel EOF ) | ||
111 | // InternalCftLanguage.g:65:2: iv_ruleCftModel= ruleCftModel EOF | ||
112 | { | ||
113 | newCompositeNode(grammarAccess.getCftModelRule()); | ||
114 | pushFollow(FOLLOW_1); | ||
115 | iv_ruleCftModel=ruleCftModel(); | ||
116 | |||
117 | state._fsp--; | ||
118 | |||
119 | current =iv_ruleCftModel; | ||
120 | match(input,EOF,FOLLOW_2); | ||
121 | |||
122 | } | ||
123 | |||
124 | } | ||
125 | |||
126 | catch (RecognitionException re) { | ||
127 | recover(input,re); | ||
128 | appendSkippedTokens(); | ||
129 | } | ||
130 | finally { | ||
131 | } | ||
132 | return current; | ||
133 | } | ||
134 | // $ANTLR end "entryRuleCftModel" | ||
135 | |||
136 | |||
137 | // $ANTLR start "ruleCftModel" | ||
138 | // InternalCftLanguage.g:71:1: ruleCftModel returns [EObject current=null] : (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 ) ) )* ) ; | ||
139 | public final EObject ruleCftModel() throws RecognitionException { | ||
140 | EObject current = null; | ||
141 | |||
142 | Token otherlv_0=null; | ||
143 | Token otherlv_2=null; | ||
144 | AntlrDatatypeRuleToken lv_packageName_1_0 = null; | ||
145 | |||
146 | EObject lv_imports_3_0 = null; | ||
147 | |||
148 | EObject lv_componentDefinitions_4_0 = null; | ||
149 | |||
150 | EObject lv_transformationDefinitions_5_0 = null; | ||
151 | |||
152 | |||
153 | |||
154 | enterRule(); | ||
155 | |||
156 | try { | ||
157 | // InternalCftLanguage.g:77: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 ) ) )* ) ) | ||
158 | // 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 ) ) )* ) | ||
159 | { | ||
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 ) ) )* ) | ||
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 ) ) )* | ||
162 | { | ||
163 | otherlv_0=(Token)match(input,12,FOLLOW_3); | ||
164 | |||
165 | newLeafNode(otherlv_0, grammarAccess.getCftModelAccess().getPackageKeyword_0()); | ||
166 | |||
167 | // InternalCftLanguage.g:83:3: ( (lv_packageName_1_0= ruleQualifiedName ) ) | ||
168 | // InternalCftLanguage.g:84:4: (lv_packageName_1_0= ruleQualifiedName ) | ||
169 | { | ||
170 | // InternalCftLanguage.g:84:4: (lv_packageName_1_0= ruleQualifiedName ) | ||
171 | // InternalCftLanguage.g:85:5: lv_packageName_1_0= ruleQualifiedName | ||
172 | { | ||
173 | |||
174 | newCompositeNode(grammarAccess.getCftModelAccess().getPackageNameQualifiedNameParserRuleCall_1_0()); | ||
175 | |||
176 | pushFollow(FOLLOW_4); | ||
177 | lv_packageName_1_0=ruleQualifiedName(); | ||
178 | |||
179 | state._fsp--; | ||
180 | |||
181 | |||
182 | if (current==null) { | ||
183 | current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
184 | } | ||
185 | set( | ||
186 | current, | ||
187 | "packageName", | ||
188 | lv_packageName_1_0, | ||
189 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.QualifiedName"); | ||
190 | afterParserOrEnumRuleCall(); | ||
191 | |||
192 | |||
193 | } | ||
194 | |||
195 | |||
196 | } | ||
197 | |||
198 | // InternalCftLanguage.g:102:3: (otherlv_2= ';' )? | ||
199 | int alt1=2; | ||
200 | int LA1_0 = input.LA(1); | ||
201 | |||
202 | if ( (LA1_0==13) ) { | ||
203 | alt1=1; | ||
204 | } | ||
205 | switch (alt1) { | ||
206 | case 1 : | ||
207 | // InternalCftLanguage.g:103:4: otherlv_2= ';' | ||
208 | { | ||
209 | otherlv_2=(Token)match(input,13,FOLLOW_5); | ||
210 | |||
211 | newLeafNode(otherlv_2, grammarAccess.getCftModelAccess().getSemicolonKeyword_2()); | ||
212 | |||
213 | |||
214 | } | ||
215 | break; | ||
216 | |||
217 | } | ||
218 | |||
219 | // InternalCftLanguage.g:108:3: ( (lv_imports_3_0= ruleImportDeclaration ) )* | ||
220 | loop2: | ||
221 | do { | ||
222 | int alt2=2; | ||
223 | int LA2_0 = input.LA(1); | ||
224 | |||
225 | if ( (LA2_0==14) ) { | ||
226 | alt2=1; | ||
227 | } | ||
228 | |||
229 | |||
230 | switch (alt2) { | ||
231 | case 1 : | ||
232 | // InternalCftLanguage.g:109:4: (lv_imports_3_0= ruleImportDeclaration ) | ||
233 | { | ||
234 | // InternalCftLanguage.g:109:4: (lv_imports_3_0= ruleImportDeclaration ) | ||
235 | // InternalCftLanguage.g:110:5: lv_imports_3_0= ruleImportDeclaration | ||
236 | { | ||
237 | |||
238 | newCompositeNode(grammarAccess.getCftModelAccess().getImportsImportDeclarationParserRuleCall_3_0()); | ||
239 | |||
240 | pushFollow(FOLLOW_5); | ||
241 | lv_imports_3_0=ruleImportDeclaration(); | ||
242 | |||
243 | state._fsp--; | ||
244 | |||
245 | |||
246 | if (current==null) { | ||
247 | current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
248 | } | ||
249 | add( | ||
250 | current, | ||
251 | "imports", | ||
252 | lv_imports_3_0, | ||
253 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ImportDeclaration"); | ||
254 | afterParserOrEnumRuleCall(); | ||
255 | |||
256 | |||
257 | } | ||
258 | |||
259 | |||
260 | } | ||
261 | break; | ||
262 | |||
263 | default : | ||
264 | break loop2; | ||
265 | } | ||
266 | } while (true); | ||
267 | |||
268 | // InternalCftLanguage.g:127:3: ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* | ||
269 | loop3: | ||
270 | do { | ||
271 | int alt3=3; | ||
272 | int LA3_0 = input.LA(1); | ||
273 | |||
274 | if ( (LA3_0==15) ) { | ||
275 | alt3=1; | ||
276 | } | ||
277 | else if ( (LA3_0==25) ) { | ||
278 | alt3=2; | ||
279 | } | ||
280 | |||
281 | |||
282 | switch (alt3) { | ||
283 | case 1 : | ||
284 | // InternalCftLanguage.g:128:4: ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ||
285 | { | ||
286 | // InternalCftLanguage.g:128:4: ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ||
287 | // InternalCftLanguage.g:129:5: (lv_componentDefinitions_4_0= ruleComponentDefinition ) | ||
288 | { | ||
289 | // InternalCftLanguage.g:129:5: (lv_componentDefinitions_4_0= ruleComponentDefinition ) | ||
290 | // InternalCftLanguage.g:130:6: lv_componentDefinitions_4_0= ruleComponentDefinition | ||
291 | { | ||
292 | |||
293 | newCompositeNode(grammarAccess.getCftModelAccess().getComponentDefinitionsComponentDefinitionParserRuleCall_4_0_0()); | ||
294 | |||
295 | pushFollow(FOLLOW_6); | ||
296 | lv_componentDefinitions_4_0=ruleComponentDefinition(); | ||
297 | |||
298 | state._fsp--; | ||
299 | |||
300 | |||
301 | if (current==null) { | ||
302 | current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
303 | } | ||
304 | add( | ||
305 | current, | ||
306 | "componentDefinitions", | ||
307 | lv_componentDefinitions_4_0, | ||
308 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ComponentDefinition"); | ||
309 | afterParserOrEnumRuleCall(); | ||
310 | |||
311 | |||
312 | } | ||
313 | |||
314 | |||
315 | } | ||
316 | |||
317 | |||
318 | } | ||
319 | break; | ||
320 | case 2 : | ||
321 | // InternalCftLanguage.g:148:4: ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) | ||
322 | { | ||
323 | // InternalCftLanguage.g:148:4: ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) | ||
324 | // InternalCftLanguage.g:149:5: (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) | ||
325 | { | ||
326 | // InternalCftLanguage.g:149:5: (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) | ||
327 | // InternalCftLanguage.g:150:6: lv_transformationDefinitions_5_0= ruleTransformationDefinition | ||
328 | { | ||
329 | |||
330 | newCompositeNode(grammarAccess.getCftModelAccess().getTransformationDefinitionsTransformationDefinitionParserRuleCall_4_1_0()); | ||
331 | |||
332 | pushFollow(FOLLOW_6); | ||
333 | lv_transformationDefinitions_5_0=ruleTransformationDefinition(); | ||
334 | |||
335 | state._fsp--; | ||
336 | |||
337 | |||
338 | if (current==null) { | ||
339 | current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
340 | } | ||
341 | add( | ||
342 | current, | ||
343 | "transformationDefinitions", | ||
344 | lv_transformationDefinitions_5_0, | ||
345 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.TransformationDefinition"); | ||
346 | afterParserOrEnumRuleCall(); | ||
347 | |||
348 | |||
349 | } | ||
350 | |||
351 | |||
352 | } | ||
353 | |||
354 | |||
355 | } | ||
356 | break; | ||
357 | |||
358 | default : | ||
359 | break loop3; | ||
360 | } | ||
361 | } while (true); | ||
362 | |||
363 | |||
364 | } | ||
365 | |||
366 | |||
367 | } | ||
368 | |||
369 | |||
370 | leaveRule(); | ||
371 | |||
372 | } | ||
373 | |||
374 | catch (RecognitionException re) { | ||
375 | recover(input,re); | ||
376 | appendSkippedTokens(); | ||
377 | } | ||
378 | finally { | ||
379 | } | ||
380 | return current; | ||
381 | } | ||
382 | // $ANTLR end "ruleCftModel" | ||
383 | |||
384 | |||
385 | // $ANTLR start "entryRuleImportDeclaration" | ||
386 | // InternalCftLanguage.g:172:1: entryRuleImportDeclaration returns [EObject current=null] : iv_ruleImportDeclaration= ruleImportDeclaration EOF ; | ||
387 | public final EObject entryRuleImportDeclaration() throws RecognitionException { | ||
388 | EObject current = null; | ||
389 | |||
390 | EObject iv_ruleImportDeclaration = null; | ||
391 | |||
392 | |||
393 | try { | ||
394 | // InternalCftLanguage.g:172:58: (iv_ruleImportDeclaration= ruleImportDeclaration EOF ) | ||
395 | // InternalCftLanguage.g:173:2: iv_ruleImportDeclaration= ruleImportDeclaration EOF | ||
396 | { | ||
397 | newCompositeNode(grammarAccess.getImportDeclarationRule()); | ||
398 | pushFollow(FOLLOW_1); | ||
399 | iv_ruleImportDeclaration=ruleImportDeclaration(); | ||
400 | |||
401 | state._fsp--; | ||
402 | |||
403 | current =iv_ruleImportDeclaration; | ||
404 | match(input,EOF,FOLLOW_2); | ||
405 | |||
406 | } | ||
407 | |||
408 | } | ||
409 | |||
410 | catch (RecognitionException re) { | ||
411 | recover(input,re); | ||
412 | appendSkippedTokens(); | ||
413 | } | ||
414 | finally { | ||
415 | } | ||
416 | return current; | ||
417 | } | ||
418 | // $ANTLR end "entryRuleImportDeclaration" | ||
419 | |||
420 | |||
421 | // $ANTLR start "ruleImportDeclaration" | ||
422 | // InternalCftLanguage.g:179:1: ruleImportDeclaration returns [EObject current=null] : (otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? ) ; | ||
423 | public final EObject ruleImportDeclaration() throws RecognitionException { | ||
424 | EObject current = null; | ||
425 | |||
426 | Token otherlv_0=null; | ||
427 | Token otherlv_2=null; | ||
428 | AntlrDatatypeRuleToken lv_importedNamespace_1_0 = null; | ||
429 | |||
430 | |||
431 | |||
432 | enterRule(); | ||
433 | |||
434 | try { | ||
435 | // InternalCftLanguage.g:185:2: ( (otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? ) ) | ||
436 | // InternalCftLanguage.g:186:2: (otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? ) | ||
437 | { | ||
438 | // 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= ';' )? | ||
440 | { | ||
441 | otherlv_0=(Token)match(input,14,FOLLOW_3); | ||
442 | |||
443 | newLeafNode(otherlv_0, grammarAccess.getImportDeclarationAccess().getImportKeyword_0()); | ||
444 | |||
445 | // InternalCftLanguage.g:191:3: ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) | ||
446 | // InternalCftLanguage.g:192:4: (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) | ||
447 | { | ||
448 | // InternalCftLanguage.g:192:4: (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) | ||
449 | // InternalCftLanguage.g:193:5: lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard | ||
450 | { | ||
451 | |||
452 | newCompositeNode(grammarAccess.getImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_0()); | ||
453 | |||
454 | pushFollow(FOLLOW_7); | ||
455 | lv_importedNamespace_1_0=ruleQualifiedNameWithWildcard(); | ||
456 | |||
457 | state._fsp--; | ||
458 | |||
459 | |||
460 | if (current==null) { | ||
461 | current = createModelElementForParent(grammarAccess.getImportDeclarationRule()); | ||
462 | } | ||
463 | set( | ||
464 | current, | ||
465 | "importedNamespace", | ||
466 | lv_importedNamespace_1_0, | ||
467 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.QualifiedNameWithWildcard"); | ||
468 | afterParserOrEnumRuleCall(); | ||
469 | |||
470 | |||
471 | } | ||
472 | |||
473 | |||
474 | } | ||
475 | |||
476 | // InternalCftLanguage.g:210:3: (otherlv_2= ';' )? | ||
477 | int alt4=2; | ||
478 | int LA4_0 = input.LA(1); | ||
479 | |||
480 | if ( (LA4_0==13) ) { | ||
481 | alt4=1; | ||
482 | } | ||
483 | switch (alt4) { | ||
484 | case 1 : | ||
485 | // InternalCftLanguage.g:211:4: otherlv_2= ';' | ||
486 | { | ||
487 | otherlv_2=(Token)match(input,13,FOLLOW_2); | ||
488 | |||
489 | newLeafNode(otherlv_2, grammarAccess.getImportDeclarationAccess().getSemicolonKeyword_2()); | ||
490 | |||
491 | |||
492 | } | ||
493 | break; | ||
494 | |||
495 | } | ||
496 | |||
497 | |||
498 | } | ||
499 | |||
500 | |||
501 | } | ||
502 | |||
503 | |||
504 | leaveRule(); | ||
505 | |||
506 | } | ||
507 | |||
508 | catch (RecognitionException re) { | ||
509 | recover(input,re); | ||
510 | appendSkippedTokens(); | ||
511 | } | ||
512 | finally { | ||
513 | } | ||
514 | return current; | ||
515 | } | ||
516 | // $ANTLR end "ruleImportDeclaration" | ||
517 | |||
518 | |||
519 | // $ANTLR start "entryRuleComponentDefinition" | ||
520 | // InternalCftLanguage.g:220:1: entryRuleComponentDefinition returns [EObject current=null] : iv_ruleComponentDefinition= ruleComponentDefinition EOF ; | ||
521 | public final EObject entryRuleComponentDefinition() throws RecognitionException { | ||
522 | EObject current = null; | ||
523 | |||
524 | EObject iv_ruleComponentDefinition = null; | ||
525 | |||
526 | |||
527 | try { | ||
528 | // InternalCftLanguage.g:220:60: (iv_ruleComponentDefinition= ruleComponentDefinition EOF ) | ||
529 | // InternalCftLanguage.g:221:2: iv_ruleComponentDefinition= ruleComponentDefinition EOF | ||
530 | { | ||
531 | newCompositeNode(grammarAccess.getComponentDefinitionRule()); | ||
532 | pushFollow(FOLLOW_1); | ||
533 | iv_ruleComponentDefinition=ruleComponentDefinition(); | ||
534 | |||
535 | state._fsp--; | ||
536 | |||
537 | current =iv_ruleComponentDefinition; | ||
538 | match(input,EOF,FOLLOW_2); | ||
539 | |||
540 | } | ||
541 | |||
542 | } | ||
543 | |||
544 | catch (RecognitionException re) { | ||
545 | recover(input,re); | ||
546 | appendSkippedTokens(); | ||
547 | } | ||
548 | finally { | ||
549 | } | ||
550 | return current; | ||
551 | } | ||
552 | // $ANTLR end "entryRuleComponentDefinition" | ||
553 | |||
554 | |||
555 | // $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= '}' ) ; | ||
557 | public final EObject ruleComponentDefinition() throws RecognitionException { | ||
558 | EObject current = null; | ||
559 | |||
560 | Token otherlv_0=null; | ||
561 | Token lv_name_1_0=null; | ||
562 | Token otherlv_2=null; | ||
563 | Token otherlv_4=null; | ||
564 | Token otherlv_6=null; | ||
565 | Token otherlv_7=null; | ||
566 | Token otherlv_8=null; | ||
567 | Token otherlv_9=null; | ||
568 | Token otherlv_11=null; | ||
569 | Token otherlv_12=null; | ||
570 | EObject lv_inputEvents_5_0 = null; | ||
571 | |||
572 | EObject lv_eventDefinitions_10_0 = null; | ||
573 | |||
574 | |||
575 | |||
576 | enterRule(); | ||
577 | |||
578 | 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= '}' ) ) | ||
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= '}' ) | ||
581 | { | ||
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= '}' ) | ||
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= '}' | ||
584 | { | ||
585 | otherlv_0=(Token)match(input,15,FOLLOW_3); | ||
586 | |||
587 | newLeafNode(otherlv_0, grammarAccess.getComponentDefinitionAccess().getCftKeyword_0()); | ||
588 | |||
589 | // InternalCftLanguage.g:239:3: ( (lv_name_1_0= RULE_ID ) ) | ||
590 | // InternalCftLanguage.g:240:4: (lv_name_1_0= RULE_ID ) | ||
591 | { | ||
592 | // InternalCftLanguage.g:240:4: (lv_name_1_0= RULE_ID ) | ||
593 | // InternalCftLanguage.g:241:5: lv_name_1_0= RULE_ID | ||
594 | { | ||
595 | lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_8); | ||
596 | |||
597 | newLeafNode(lv_name_1_0, grammarAccess.getComponentDefinitionAccess().getNameIDTerminalRuleCall_1_0()); | ||
598 | |||
599 | |||
600 | if (current==null) { | ||
601 | current = createModelElement(grammarAccess.getComponentDefinitionRule()); | ||
602 | } | ||
603 | setWithLastConsumed( | ||
604 | current, | ||
605 | "name", | ||
606 | lv_name_1_0, | ||
607 | "org.eclipse.xtext.common.Terminals.ID"); | ||
608 | |||
609 | |||
610 | } | ||
611 | |||
612 | |||
613 | } | ||
614 | |||
615 | otherlv_2=(Token)match(input,16,FOLLOW_9); | ||
616 | |||
617 | newLeafNode(otherlv_2, grammarAccess.getComponentDefinitionAccess().getLeftCurlyBracketKeyword_2()); | ||
618 | |||
619 | // InternalCftLanguage.g:261:3: ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* 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= ';' ) ) ) ) )* ) ) | ||
621 | { | ||
622 | // InternalCftLanguage.g:262:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* 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= ';' ) ) ) ) )* ) | ||
624 | { | ||
625 | |||
626 | getUnorderedGroupHelper().enter(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
627 | |||
628 | // InternalCftLanguage.g:266:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* 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= ';' ) ) ) ) )* | ||
630 | { | ||
631 | // InternalCftLanguage.g:267:6: ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* | ||
632 | loop7: | ||
633 | do { | ||
634 | int alt7=3; | ||
635 | int LA7_0 = input.LA(1); | ||
636 | |||
637 | if ( LA7_0 == 17 && getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0) ) { | ||
638 | alt7=1; | ||
639 | } | ||
640 | else if ( LA7_0 == 18 && getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1) ) { | ||
641 | alt7=2; | ||
642 | } | ||
643 | |||
644 | |||
645 | switch (alt7) { | ||
646 | case 1 : | ||
647 | // InternalCftLanguage.g:268:4: ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ||
648 | { | ||
649 | // InternalCftLanguage.g:268: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= ';' ) ) ) | ||
651 | { | ||
652 | if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0) ) { | ||
653 | throw new FailedPredicateException(input, "ruleComponentDefinition", "getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0)"); | ||
654 | } | ||
655 | // InternalCftLanguage.g:269: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= ';' ) ) | ||
657 | { | ||
658 | |||
659 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0); | ||
660 | |||
661 | // InternalCftLanguage.g:273: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= ';' ) | ||
663 | { | ||
664 | if ( !((true)) ) { | ||
665 | throw new FailedPredicateException(input, "ruleComponentDefinition", "true"); | ||
666 | } | ||
667 | // InternalCftLanguage.g:273: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= ';' | ||
669 | { | ||
670 | otherlv_4=(Token)match(input,17,FOLLOW_10); | ||
671 | |||
672 | newLeafNode(otherlv_4, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()); | ||
673 | |||
674 | // InternalCftLanguage.g:277:9: ( (lv_inputEvents_5_0= ruleInputEvent ) )* | ||
675 | loop5: | ||
676 | do { | ||
677 | int alt5=2; | ||
678 | int LA5_0 = input.LA(1); | ||
679 | |||
680 | if ( (LA5_0==RULE_ID) ) { | ||
681 | alt5=1; | ||
682 | } | ||
683 | |||
684 | |||
685 | switch (alt5) { | ||
686 | case 1 : | ||
687 | // InternalCftLanguage.g:278:10: (lv_inputEvents_5_0= ruleInputEvent ) | ||
688 | { | ||
689 | // InternalCftLanguage.g:278:10: (lv_inputEvents_5_0= ruleInputEvent ) | ||
690 | // InternalCftLanguage.g:279:11: lv_inputEvents_5_0= ruleInputEvent | ||
691 | { | ||
692 | |||
693 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getInputEventsInputEventParserRuleCall_3_0_1_0()); | ||
694 | |||
695 | pushFollow(FOLLOW_10); | ||
696 | lv_inputEvents_5_0=ruleInputEvent(); | ||
697 | |||
698 | state._fsp--; | ||
699 | |||
700 | |||
701 | if (current==null) { | ||
702 | current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); | ||
703 | } | ||
704 | add( | ||
705 | current, | ||
706 | "inputEvents", | ||
707 | lv_inputEvents_5_0, | ||
708 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.InputEvent"); | ||
709 | afterParserOrEnumRuleCall(); | ||
710 | |||
711 | |||
712 | } | ||
713 | |||
714 | |||
715 | } | ||
716 | break; | ||
717 | |||
718 | default : | ||
719 | break loop5; | ||
720 | } | ||
721 | } while (true); | ||
722 | |||
723 | otherlv_6=(Token)match(input,13,FOLLOW_9); | ||
724 | |||
725 | newLeafNode(otherlv_6, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()); | ||
726 | |||
727 | |||
728 | } | ||
729 | |||
730 | |||
731 | } | ||
732 | |||
733 | |||
734 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
735 | |||
736 | |||
737 | } | ||
738 | |||
739 | |||
740 | } | ||
741 | |||
742 | |||
743 | } | ||
744 | break; | ||
745 | case 2 : | ||
746 | // InternalCftLanguage.g:306:4: ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) | ||
747 | { | ||
748 | // InternalCftLanguage.g:306:4: ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) | ||
749 | // InternalCftLanguage.g:307:5: {...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) | ||
750 | { | ||
751 | if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1) ) { | ||
752 | throw new FailedPredicateException(input, "ruleComponentDefinition", "getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1)"); | ||
753 | } | ||
754 | // InternalCftLanguage.g:307:116: ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) | ||
755 | // InternalCftLanguage.g:308:6: ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) | ||
756 | { | ||
757 | |||
758 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1); | ||
759 | |||
760 | // InternalCftLanguage.g:311:9: ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) | ||
761 | // InternalCftLanguage.g:311:10: {...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) | ||
762 | { | ||
763 | if ( !((true)) ) { | ||
764 | throw new FailedPredicateException(input, "ruleComponentDefinition", "true"); | ||
765 | } | ||
766 | // InternalCftLanguage.g:311:19: (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) | ||
767 | // InternalCftLanguage.g:311:20: otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' | ||
768 | { | ||
769 | otherlv_7=(Token)match(input,18,FOLLOW_10); | ||
770 | |||
771 | newLeafNode(otherlv_7, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()); | ||
772 | |||
773 | // InternalCftLanguage.g:315:9: ( (otherlv_8= RULE_ID ) )* | ||
774 | loop6: | ||
775 | do { | ||
776 | int alt6=2; | ||
777 | int LA6_0 = input.LA(1); | ||
778 | |||
779 | if ( (LA6_0==RULE_ID) ) { | ||
780 | alt6=1; | ||
781 | } | ||
782 | |||
783 | |||
784 | switch (alt6) { | ||
785 | case 1 : | ||
786 | // InternalCftLanguage.g:316:10: (otherlv_8= RULE_ID ) | ||
787 | { | ||
788 | // InternalCftLanguage.g:316:10: (otherlv_8= RULE_ID ) | ||
789 | // InternalCftLanguage.g:317:11: otherlv_8= RULE_ID | ||
790 | { | ||
791 | |||
792 | if (current==null) { | ||
793 | current = createModelElement(grammarAccess.getComponentDefinitionRule()); | ||
794 | } | ||
795 | |||
796 | otherlv_8=(Token)match(input,RULE_ID,FOLLOW_10); | ||
797 | |||
798 | newLeafNode(otherlv_8, grammarAccess.getComponentDefinitionAccess().getOutputEventsEventDeclarationCrossReference_3_1_1_0()); | ||
799 | |||
800 | |||
801 | } | ||
802 | |||
803 | |||
804 | } | ||
805 | break; | ||
806 | |||
807 | default : | ||
808 | break loop6; | ||
809 | } | ||
810 | } while (true); | ||
811 | |||
812 | otherlv_9=(Token)match(input,13,FOLLOW_9); | ||
813 | |||
814 | newLeafNode(otherlv_9, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()); | ||
815 | |||
816 | |||
817 | } | ||
818 | |||
819 | |||
820 | } | ||
821 | |||
822 | |||
823 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
824 | |||
825 | |||
826 | } | ||
827 | |||
828 | |||
829 | } | ||
830 | |||
831 | |||
832 | } | ||
833 | break; | ||
834 | |||
835 | default : | ||
836 | break loop7; | ||
837 | } | ||
838 | } while (true); | ||
839 | |||
840 | |||
841 | } | ||
842 | |||
843 | |||
844 | } | ||
845 | |||
846 | |||
847 | getUnorderedGroupHelper().leave(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
848 | |||
849 | |||
850 | } | ||
851 | |||
852 | // InternalCftLanguage.g:345:3: ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* | ||
853 | loop8: | ||
854 | do { | ||
855 | int alt8=2; | ||
856 | int LA8_0 = input.LA(1); | ||
857 | |||
858 | if ( (LA8_0==RULE_ID) ) { | ||
859 | alt8=1; | ||
860 | } | ||
861 | |||
862 | |||
863 | switch (alt8) { | ||
864 | case 1 : | ||
865 | // InternalCftLanguage.g:346:4: ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' | ||
866 | { | ||
867 | // InternalCftLanguage.g:346:4: ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) | ||
868 | // InternalCftLanguage.g:347:5: (lv_eventDefinitions_10_0= ruleEventDefinition ) | ||
869 | { | ||
870 | // InternalCftLanguage.g:347:5: (lv_eventDefinitions_10_0= ruleEventDefinition ) | ||
871 | // InternalCftLanguage.g:348:6: lv_eventDefinitions_10_0= ruleEventDefinition | ||
872 | { | ||
873 | |||
874 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getEventDefinitionsEventDefinitionParserRuleCall_4_0_0()); | ||
875 | |||
876 | pushFollow(FOLLOW_11); | ||
877 | lv_eventDefinitions_10_0=ruleEventDefinition(); | ||
878 | |||
879 | state._fsp--; | ||
880 | |||
881 | |||
882 | if (current==null) { | ||
883 | current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); | ||
884 | } | ||
885 | add( | ||
886 | current, | ||
887 | "eventDefinitions", | ||
888 | lv_eventDefinitions_10_0, | ||
889 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventDefinition"); | ||
890 | afterParserOrEnumRuleCall(); | ||
891 | |||
892 | |||
893 | } | ||
894 | |||
895 | |||
896 | } | ||
897 | |||
898 | otherlv_11=(Token)match(input,13,FOLLOW_12); | ||
899 | |||
900 | newLeafNode(otherlv_11, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_4_1()); | ||
901 | |||
902 | |||
903 | } | ||
904 | break; | ||
905 | |||
906 | default : | ||
907 | break loop8; | ||
908 | } | ||
909 | } while (true); | ||
910 | |||
911 | otherlv_12=(Token)match(input,19,FOLLOW_2); | ||
912 | |||
913 | newLeafNode(otherlv_12, grammarAccess.getComponentDefinitionAccess().getRightCurlyBracketKeyword_5()); | ||
914 | |||
915 | |||
916 | } | ||
917 | |||
918 | |||
919 | } | ||
920 | |||
921 | |||
922 | leaveRule(); | ||
923 | |||
924 | } | ||
925 | |||
926 | catch (RecognitionException re) { | ||
927 | recover(input,re); | ||
928 | appendSkippedTokens(); | ||
929 | } | ||
930 | finally { | ||
931 | } | ||
932 | return current; | ||
933 | } | ||
934 | // $ANTLR end "ruleComponentDefinition" | ||
935 | |||
936 | |||
937 | // $ANTLR start "entryRuleInputEvent" | ||
938 | // InternalCftLanguage.g:378:1: entryRuleInputEvent returns [EObject current=null] : iv_ruleInputEvent= ruleInputEvent EOF ; | ||
939 | public final EObject entryRuleInputEvent() throws RecognitionException { | ||
940 | EObject current = null; | ||
941 | |||
942 | EObject iv_ruleInputEvent = null; | ||
943 | |||
944 | |||
945 | try { | ||
946 | // InternalCftLanguage.g:378:51: (iv_ruleInputEvent= ruleInputEvent EOF ) | ||
947 | // InternalCftLanguage.g:379:2: iv_ruleInputEvent= ruleInputEvent EOF | ||
948 | { | ||
949 | newCompositeNode(grammarAccess.getInputEventRule()); | ||
950 | pushFollow(FOLLOW_1); | ||
951 | iv_ruleInputEvent=ruleInputEvent(); | ||
952 | |||
953 | state._fsp--; | ||
954 | |||
955 | current =iv_ruleInputEvent; | ||
956 | match(input,EOF,FOLLOW_2); | ||
957 | |||
958 | } | ||
959 | |||
960 | } | ||
961 | |||
962 | catch (RecognitionException re) { | ||
963 | recover(input,re); | ||
964 | appendSkippedTokens(); | ||
965 | } | ||
966 | finally { | ||
967 | } | ||
968 | return current; | ||
969 | } | ||
970 | // $ANTLR end "entryRuleInputEvent" | ||
971 | |||
972 | |||
973 | // $ANTLR start "ruleInputEvent" | ||
974 | // InternalCftLanguage.g:385:1: ruleInputEvent returns [EObject current=null] : ( ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? ) ; | ||
975 | public final EObject ruleInputEvent() throws RecognitionException { | ||
976 | EObject current = null; | ||
977 | |||
978 | Token lv_name_0_0=null; | ||
979 | Token lv_multiple_1_0=null; | ||
980 | |||
981 | |||
982 | enterRule(); | ||
983 | |||
984 | try { | ||
985 | // InternalCftLanguage.g:391:2: ( ( ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? ) ) | ||
986 | // InternalCftLanguage.g:392:2: ( ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? ) | ||
987 | { | ||
988 | // InternalCftLanguage.g:392:2: ( ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? ) | ||
989 | // InternalCftLanguage.g:393:3: ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? | ||
990 | { | ||
991 | // InternalCftLanguage.g:393:3: ( (lv_name_0_0= RULE_ID ) ) | ||
992 | // InternalCftLanguage.g:394:4: (lv_name_0_0= RULE_ID ) | ||
993 | { | ||
994 | // InternalCftLanguage.g:394:4: (lv_name_0_0= RULE_ID ) | ||
995 | // InternalCftLanguage.g:395:5: lv_name_0_0= RULE_ID | ||
996 | { | ||
997 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_13); | ||
998 | |||
999 | newLeafNode(lv_name_0_0, grammarAccess.getInputEventAccess().getNameIDTerminalRuleCall_0_0()); | ||
1000 | |||
1001 | |||
1002 | if (current==null) { | ||
1003 | current = createModelElement(grammarAccess.getInputEventRule()); | ||
1004 | } | ||
1005 | setWithLastConsumed( | ||
1006 | current, | ||
1007 | "name", | ||
1008 | lv_name_0_0, | ||
1009 | "org.eclipse.xtext.common.Terminals.ID"); | ||
1010 | |||
1011 | |||
1012 | } | ||
1013 | |||
1014 | |||
1015 | } | ||
1016 | |||
1017 | // InternalCftLanguage.g:411:3: ( (lv_multiple_1_0= '[]' ) )? | ||
1018 | int alt9=2; | ||
1019 | int LA9_0 = input.LA(1); | ||
1020 | |||
1021 | if ( (LA9_0==20) ) { | ||
1022 | alt9=1; | ||
1023 | } | ||
1024 | switch (alt9) { | ||
1025 | case 1 : | ||
1026 | // InternalCftLanguage.g:412:4: (lv_multiple_1_0= '[]' ) | ||
1027 | { | ||
1028 | // InternalCftLanguage.g:412:4: (lv_multiple_1_0= '[]' ) | ||
1029 | // InternalCftLanguage.g:413:5: lv_multiple_1_0= '[]' | ||
1030 | { | ||
1031 | lv_multiple_1_0=(Token)match(input,20,FOLLOW_2); | ||
1032 | |||
1033 | newLeafNode(lv_multiple_1_0, grammarAccess.getInputEventAccess().getMultipleLeftSquareBracketRightSquareBracketKeyword_1_0()); | ||
1034 | |||
1035 | |||
1036 | if (current==null) { | ||
1037 | current = createModelElement(grammarAccess.getInputEventRule()); | ||
1038 | } | ||
1039 | setWithLastConsumed(current, "multiple", true, "[]"); | ||
1040 | |||
1041 | |||
1042 | } | ||
1043 | |||
1044 | |||
1045 | } | ||
1046 | break; | ||
1047 | |||
1048 | } | ||
1049 | |||
1050 | |||
1051 | } | ||
1052 | |||
1053 | |||
1054 | } | ||
1055 | |||
1056 | |||
1057 | leaveRule(); | ||
1058 | |||
1059 | } | ||
1060 | |||
1061 | catch (RecognitionException re) { | ||
1062 | recover(input,re); | ||
1063 | appendSkippedTokens(); | ||
1064 | } | ||
1065 | finally { | ||
1066 | } | ||
1067 | return current; | ||
1068 | } | ||
1069 | // $ANTLR end "ruleInputEvent" | ||
1070 | |||
1071 | |||
1072 | // $ANTLR start "entryRuleEventDefinition" | ||
1073 | // InternalCftLanguage.g:429:1: entryRuleEventDefinition returns [EObject current=null] : iv_ruleEventDefinition= ruleEventDefinition EOF ; | ||
1074 | public final EObject entryRuleEventDefinition() throws RecognitionException { | ||
1075 | EObject current = null; | ||
1076 | |||
1077 | EObject iv_ruleEventDefinition = null; | ||
1078 | |||
1079 | |||
1080 | try { | ||
1081 | // InternalCftLanguage.g:429:56: (iv_ruleEventDefinition= ruleEventDefinition EOF ) | ||
1082 | // InternalCftLanguage.g:430:2: iv_ruleEventDefinition= ruleEventDefinition EOF | ||
1083 | { | ||
1084 | newCompositeNode(grammarAccess.getEventDefinitionRule()); | ||
1085 | pushFollow(FOLLOW_1); | ||
1086 | iv_ruleEventDefinition=ruleEventDefinition(); | ||
1087 | |||
1088 | state._fsp--; | ||
1089 | |||
1090 | current =iv_ruleEventDefinition; | ||
1091 | match(input,EOF,FOLLOW_2); | ||
1092 | |||
1093 | } | ||
1094 | |||
1095 | } | ||
1096 | |||
1097 | catch (RecognitionException re) { | ||
1098 | recover(input,re); | ||
1099 | appendSkippedTokens(); | ||
1100 | } | ||
1101 | finally { | ||
1102 | } | ||
1103 | return current; | ||
1104 | } | ||
1105 | // $ANTLR end "entryRuleEventDefinition" | ||
1106 | |||
1107 | |||
1108 | // $ANTLR start "ruleEventDefinition" | ||
1109 | // InternalCftLanguage.g:436:1: ruleEventDefinition returns [EObject current=null] : (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) ; | ||
1110 | public final EObject ruleEventDefinition() throws RecognitionException { | ||
1111 | EObject current = null; | ||
1112 | |||
1113 | EObject this_BasicEventDefinition_0 = null; | ||
1114 | |||
1115 | EObject this_GateDefinition_1 = null; | ||
1116 | |||
1117 | |||
1118 | |||
1119 | enterRule(); | ||
1120 | |||
1121 | try { | ||
1122 | // InternalCftLanguage.g:442:2: ( (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) ) | ||
1123 | // InternalCftLanguage.g:443:2: (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) | ||
1124 | { | ||
1125 | // InternalCftLanguage.g:443:2: (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) | ||
1126 | int alt10=2; | ||
1127 | int LA10_0 = input.LA(1); | ||
1128 | |||
1129 | if ( (LA10_0==RULE_ID) ) { | ||
1130 | int LA10_1 = input.LA(2); | ||
1131 | |||
1132 | if ( ((LA10_1>=23 && LA10_1<=24)) ) { | ||
1133 | alt10=2; | ||
1134 | } | ||
1135 | else if ( (LA10_1==21) ) { | ||
1136 | alt10=1; | ||
1137 | } | ||
1138 | else { | ||
1139 | NoViableAltException nvae = | ||
1140 | new NoViableAltException("", 10, 1, input); | ||
1141 | |||
1142 | throw nvae; | ||
1143 | } | ||
1144 | } | ||
1145 | else { | ||
1146 | NoViableAltException nvae = | ||
1147 | new NoViableAltException("", 10, 0, input); | ||
1148 | |||
1149 | throw nvae; | ||
1150 | } | ||
1151 | switch (alt10) { | ||
1152 | case 1 : | ||
1153 | // InternalCftLanguage.g:444:3: this_BasicEventDefinition_0= ruleBasicEventDefinition | ||
1154 | { | ||
1155 | |||
1156 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getBasicEventDefinitionParserRuleCall_0()); | ||
1157 | |||
1158 | pushFollow(FOLLOW_2); | ||
1159 | this_BasicEventDefinition_0=ruleBasicEventDefinition(); | ||
1160 | |||
1161 | state._fsp--; | ||
1162 | |||
1163 | |||
1164 | current = this_BasicEventDefinition_0; | ||
1165 | afterParserOrEnumRuleCall(); | ||
1166 | |||
1167 | |||
1168 | } | ||
1169 | break; | ||
1170 | case 2 : | ||
1171 | // InternalCftLanguage.g:453:3: this_GateDefinition_1= ruleGateDefinition | ||
1172 | { | ||
1173 | |||
1174 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getGateDefinitionParserRuleCall_1()); | ||
1175 | |||
1176 | pushFollow(FOLLOW_2); | ||
1177 | this_GateDefinition_1=ruleGateDefinition(); | ||
1178 | |||
1179 | state._fsp--; | ||
1180 | |||
1181 | |||
1182 | current = this_GateDefinition_1; | ||
1183 | afterParserOrEnumRuleCall(); | ||
1184 | |||
1185 | |||
1186 | } | ||
1187 | break; | ||
1188 | |||
1189 | } | ||
1190 | |||
1191 | |||
1192 | } | ||
1193 | |||
1194 | |||
1195 | leaveRule(); | ||
1196 | |||
1197 | } | ||
1198 | |||
1199 | catch (RecognitionException re) { | ||
1200 | recover(input,re); | ||
1201 | appendSkippedTokens(); | ||
1202 | } | ||
1203 | finally { | ||
1204 | } | ||
1205 | return current; | ||
1206 | } | ||
1207 | // $ANTLR end "ruleEventDefinition" | ||
1208 | |||
1209 | |||
1210 | // $ANTLR start "entryRuleBasicEventDefinition" | ||
1211 | // InternalCftLanguage.g:465:1: entryRuleBasicEventDefinition returns [EObject current=null] : iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF ; | ||
1212 | public final EObject entryRuleBasicEventDefinition() throws RecognitionException { | ||
1213 | EObject current = null; | ||
1214 | |||
1215 | EObject iv_ruleBasicEventDefinition = null; | ||
1216 | |||
1217 | |||
1218 | try { | ||
1219 | // InternalCftLanguage.g:465:61: (iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF ) | ||
1220 | // InternalCftLanguage.g:466:2: iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF | ||
1221 | { | ||
1222 | newCompositeNode(grammarAccess.getBasicEventDefinitionRule()); | ||
1223 | pushFollow(FOLLOW_1); | ||
1224 | iv_ruleBasicEventDefinition=ruleBasicEventDefinition(); | ||
1225 | |||
1226 | state._fsp--; | ||
1227 | |||
1228 | current =iv_ruleBasicEventDefinition; | ||
1229 | match(input,EOF,FOLLOW_2); | ||
1230 | |||
1231 | } | ||
1232 | |||
1233 | } | ||
1234 | |||
1235 | catch (RecognitionException re) { | ||
1236 | recover(input,re); | ||
1237 | appendSkippedTokens(); | ||
1238 | } | ||
1239 | finally { | ||
1240 | } | ||
1241 | return current; | ||
1242 | } | ||
1243 | // $ANTLR end "entryRuleBasicEventDefinition" | ||
1244 | |||
1245 | |||
1246 | // $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 ) ) ) ; | ||
1248 | public final EObject ruleBasicEventDefinition() throws RecognitionException { | ||
1249 | EObject current = null; | ||
1250 | |||
1251 | Token lv_name_0_0=null; | ||
1252 | Token otherlv_1=null; | ||
1253 | Token otherlv_2=null; | ||
1254 | Token lv_rate_3_0=null; | ||
1255 | |||
1256 | |||
1257 | enterRule(); | ||
1258 | |||
1259 | try { | ||
1260 | // InternalCftLanguage.g:478:2: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) ) ) | ||
1261 | // InternalCftLanguage.g:479:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) ) | ||
1262 | { | ||
1263 | // InternalCftLanguage.g:479:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) ) | ||
1264 | // InternalCftLanguage.g:480:3: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) | ||
1265 | { | ||
1266 | // InternalCftLanguage.g:480:3: ( (lv_name_0_0= RULE_ID ) ) | ||
1267 | // InternalCftLanguage.g:481:4: (lv_name_0_0= RULE_ID ) | ||
1268 | { | ||
1269 | // InternalCftLanguage.g:481:4: (lv_name_0_0= RULE_ID ) | ||
1270 | // InternalCftLanguage.g:482:5: lv_name_0_0= RULE_ID | ||
1271 | { | ||
1272 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_14); | ||
1273 | |||
1274 | newLeafNode(lv_name_0_0, grammarAccess.getBasicEventDefinitionAccess().getNameIDTerminalRuleCall_0_0()); | ||
1275 | |||
1276 | |||
1277 | if (current==null) { | ||
1278 | current = createModelElement(grammarAccess.getBasicEventDefinitionRule()); | ||
1279 | } | ||
1280 | setWithLastConsumed( | ||
1281 | current, | ||
1282 | "name", | ||
1283 | lv_name_0_0, | ||
1284 | "org.eclipse.xtext.common.Terminals.ID"); | ||
1285 | |||
1286 | |||
1287 | } | ||
1288 | |||
1289 | |||
1290 | } | ||
1291 | |||
1292 | otherlv_1=(Token)match(input,21,FOLLOW_15); | ||
1293 | |||
1294 | newLeafNode(otherlv_1, grammarAccess.getBasicEventDefinitionAccess().getLambdaKeyword_1()); | ||
1295 | |||
1296 | otherlv_2=(Token)match(input,22,FOLLOW_16); | ||
1297 | |||
1298 | newLeafNode(otherlv_2, grammarAccess.getBasicEventDefinitionAccess().getEqualsSignKeyword_2()); | ||
1299 | |||
1300 | // InternalCftLanguage.g:506:3: ( (lv_rate_3_0= RULE_DOULBE ) ) | ||
1301 | // InternalCftLanguage.g:507:4: (lv_rate_3_0= RULE_DOULBE ) | ||
1302 | { | ||
1303 | // InternalCftLanguage.g:507:4: (lv_rate_3_0= RULE_DOULBE ) | ||
1304 | // InternalCftLanguage.g:508:5: lv_rate_3_0= RULE_DOULBE | ||
1305 | { | ||
1306 | lv_rate_3_0=(Token)match(input,RULE_DOULBE,FOLLOW_2); | ||
1307 | |||
1308 | newLeafNode(lv_rate_3_0, grammarAccess.getBasicEventDefinitionAccess().getRateDOULBETerminalRuleCall_3_0()); | ||
1309 | |||
1310 | |||
1311 | if (current==null) { | ||
1312 | current = createModelElement(grammarAccess.getBasicEventDefinitionRule()); | ||
1313 | } | ||
1314 | setWithLastConsumed( | ||
1315 | current, | ||
1316 | "rate", | ||
1317 | lv_rate_3_0, | ||
1318 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.DOULBE"); | ||
1319 | |||
1320 | |||
1321 | } | ||
1322 | |||
1323 | |||
1324 | } | ||
1325 | |||
1326 | |||
1327 | } | ||
1328 | |||
1329 | |||
1330 | } | ||
1331 | |||
1332 | |||
1333 | leaveRule(); | ||
1334 | |||
1335 | } | ||
1336 | |||
1337 | catch (RecognitionException re) { | ||
1338 | recover(input,re); | ||
1339 | appendSkippedTokens(); | ||
1340 | } | ||
1341 | finally { | ||
1342 | } | ||
1343 | return current; | ||
1344 | } | ||
1345 | // $ANTLR end "ruleBasicEventDefinition" | ||
1346 | |||
1347 | |||
1348 | // $ANTLR start "entryRuleGateDefinition" | ||
1349 | // InternalCftLanguage.g:528:1: entryRuleGateDefinition returns [EObject current=null] : iv_ruleGateDefinition= ruleGateDefinition EOF ; | ||
1350 | public final EObject entryRuleGateDefinition() throws RecognitionException { | ||
1351 | EObject current = null; | ||
1352 | |||
1353 | EObject iv_ruleGateDefinition = null; | ||
1354 | |||
1355 | |||
1356 | try { | ||
1357 | // InternalCftLanguage.g:528:55: (iv_ruleGateDefinition= ruleGateDefinition EOF ) | ||
1358 | // InternalCftLanguage.g:529:2: iv_ruleGateDefinition= ruleGateDefinition EOF | ||
1359 | { | ||
1360 | newCompositeNode(grammarAccess.getGateDefinitionRule()); | ||
1361 | pushFollow(FOLLOW_1); | ||
1362 | iv_ruleGateDefinition=ruleGateDefinition(); | ||
1363 | |||
1364 | state._fsp--; | ||
1365 | |||
1366 | current =iv_ruleGateDefinition; | ||
1367 | match(input,EOF,FOLLOW_2); | ||
1368 | |||
1369 | } | ||
1370 | |||
1371 | } | ||
1372 | |||
1373 | catch (RecognitionException re) { | ||
1374 | recover(input,re); | ||
1375 | appendSkippedTokens(); | ||
1376 | } | ||
1377 | finally { | ||
1378 | } | ||
1379 | return current; | ||
1380 | } | ||
1381 | // $ANTLR end "entryRuleGateDefinition" | ||
1382 | |||
1383 | |||
1384 | // $ANTLR start "ruleGateDefinition" | ||
1385 | // InternalCftLanguage.g:535:1: ruleGateDefinition returns [EObject current=null] : (this_AndGate_0= ruleAndGate | this_OrGate_1= ruleOrGate ) ; | ||
1386 | public final EObject ruleGateDefinition() throws RecognitionException { | ||
1387 | EObject current = null; | ||
1388 | |||
1389 | EObject this_AndGate_0 = null; | ||
1390 | |||
1391 | EObject this_OrGate_1 = null; | ||
1392 | |||
1393 | |||
1394 | |||
1395 | enterRule(); | ||
1396 | |||
1397 | try { | ||
1398 | // InternalCftLanguage.g:541:2: ( (this_AndGate_0= ruleAndGate | this_OrGate_1= ruleOrGate ) ) | ||
1399 | // InternalCftLanguage.g:542:2: (this_AndGate_0= ruleAndGate | this_OrGate_1= ruleOrGate ) | ||
1400 | { | ||
1401 | // InternalCftLanguage.g:542:2: (this_AndGate_0= ruleAndGate | this_OrGate_1= ruleOrGate ) | ||
1402 | int alt11=2; | ||
1403 | int LA11_0 = input.LA(1); | ||
1404 | |||
1405 | if ( (LA11_0==RULE_ID) ) { | ||
1406 | int LA11_1 = input.LA(2); | ||
1407 | |||
1408 | if ( (LA11_1==24) ) { | ||
1409 | alt11=2; | ||
1410 | } | ||
1411 | else if ( (LA11_1==23) ) { | ||
1412 | alt11=1; | ||
1413 | } | ||
1414 | else { | ||
1415 | NoViableAltException nvae = | ||
1416 | new NoViableAltException("", 11, 1, input); | ||
1417 | |||
1418 | throw nvae; | ||
1419 | } | ||
1420 | } | ||
1421 | else { | ||
1422 | NoViableAltException nvae = | ||
1423 | new NoViableAltException("", 11, 0, input); | ||
1424 | |||
1425 | throw nvae; | ||
1426 | } | ||
1427 | switch (alt11) { | ||
1428 | case 1 : | ||
1429 | // InternalCftLanguage.g:543:3: this_AndGate_0= ruleAndGate | ||
1430 | { | ||
1431 | |||
1432 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getAndGateParserRuleCall_0()); | ||
1433 | |||
1434 | pushFollow(FOLLOW_2); | ||
1435 | this_AndGate_0=ruleAndGate(); | ||
1436 | |||
1437 | state._fsp--; | ||
1438 | |||
1439 | |||
1440 | current = this_AndGate_0; | ||
1441 | afterParserOrEnumRuleCall(); | ||
1442 | |||
1443 | |||
1444 | } | ||
1445 | break; | ||
1446 | case 2 : | ||
1447 | // InternalCftLanguage.g:552:3: this_OrGate_1= ruleOrGate | ||
1448 | { | ||
1449 | |||
1450 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getOrGateParserRuleCall_1()); | ||
1451 | |||
1452 | pushFollow(FOLLOW_2); | ||
1453 | this_OrGate_1=ruleOrGate(); | ||
1454 | |||
1455 | state._fsp--; | ||
1456 | |||
1457 | |||
1458 | current = this_OrGate_1; | ||
1459 | afterParserOrEnumRuleCall(); | ||
1460 | |||
1461 | |||
1462 | } | ||
1463 | break; | ||
1464 | |||
1465 | } | ||
1466 | |||
1467 | |||
1468 | } | ||
1469 | |||
1470 | |||
1471 | leaveRule(); | ||
1472 | |||
1473 | } | ||
1474 | |||
1475 | catch (RecognitionException re) { | ||
1476 | recover(input,re); | ||
1477 | appendSkippedTokens(); | ||
1478 | } | ||
1479 | finally { | ||
1480 | } | ||
1481 | return current; | ||
1482 | } | ||
1483 | // $ANTLR end "ruleGateDefinition" | ||
1484 | |||
1485 | |||
1486 | // $ANTLR start "entryRuleAndGate" | ||
1487 | // InternalCftLanguage.g:564:1: entryRuleAndGate returns [EObject current=null] : iv_ruleAndGate= ruleAndGate EOF ; | ||
1488 | public final EObject entryRuleAndGate() throws RecognitionException { | ||
1489 | EObject current = null; | ||
1490 | |||
1491 | EObject iv_ruleAndGate = null; | ||
1492 | |||
1493 | |||
1494 | try { | ||
1495 | // InternalCftLanguage.g:564:48: (iv_ruleAndGate= ruleAndGate EOF ) | ||
1496 | // InternalCftLanguage.g:565:2: iv_ruleAndGate= ruleAndGate EOF | ||
1497 | { | ||
1498 | newCompositeNode(grammarAccess.getAndGateRule()); | ||
1499 | pushFollow(FOLLOW_1); | ||
1500 | iv_ruleAndGate=ruleAndGate(); | ||
1501 | |||
1502 | state._fsp--; | ||
1503 | |||
1504 | current =iv_ruleAndGate; | ||
1505 | match(input,EOF,FOLLOW_2); | ||
1506 | |||
1507 | } | ||
1508 | |||
1509 | } | ||
1510 | |||
1511 | catch (RecognitionException re) { | ||
1512 | recover(input,re); | ||
1513 | appendSkippedTokens(); | ||
1514 | } | ||
1515 | finally { | ||
1516 | } | ||
1517 | return current; | ||
1518 | } | ||
1519 | // $ANTLR end "entryRuleAndGate" | ||
1520 | |||
1521 | |||
1522 | // $ANTLR start "ruleAndGate" | ||
1523 | // InternalCftLanguage.g:571:1: ruleAndGate returns [EObject current=null] : ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* ) ; | ||
1524 | public final EObject ruleAndGate() throws RecognitionException { | ||
1525 | EObject current = null; | ||
1526 | |||
1527 | Token lv_name_0_0=null; | ||
1528 | Token otherlv_1=null; | ||
1529 | Token otherlv_2=null; | ||
1530 | |||
1531 | |||
1532 | enterRule(); | ||
1533 | |||
1534 | try { | ||
1535 | // InternalCftLanguage.g:577:2: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* ) ) | ||
1536 | // InternalCftLanguage.g:578:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* ) | ||
1537 | { | ||
1538 | // InternalCftLanguage.g:578:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* ) | ||
1539 | // InternalCftLanguage.g:579:3: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* | ||
1540 | { | ||
1541 | // InternalCftLanguage.g:579:3: ( (lv_name_0_0= RULE_ID ) ) | ||
1542 | // InternalCftLanguage.g:580:4: (lv_name_0_0= RULE_ID ) | ||
1543 | { | ||
1544 | // InternalCftLanguage.g:580:4: (lv_name_0_0= RULE_ID ) | ||
1545 | // InternalCftLanguage.g:581:5: lv_name_0_0= RULE_ID | ||
1546 | { | ||
1547 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_17); | ||
1548 | |||
1549 | newLeafNode(lv_name_0_0, grammarAccess.getAndGateAccess().getNameIDTerminalRuleCall_0_0()); | ||
1550 | |||
1551 | |||
1552 | if (current==null) { | ||
1553 | current = createModelElement(grammarAccess.getAndGateRule()); | ||
1554 | } | ||
1555 | setWithLastConsumed( | ||
1556 | current, | ||
1557 | "name", | ||
1558 | lv_name_0_0, | ||
1559 | "org.eclipse.xtext.common.Terminals.ID"); | ||
1560 | |||
1561 | |||
1562 | } | ||
1563 | |||
1564 | |||
1565 | } | ||
1566 | |||
1567 | otherlv_1=(Token)match(input,23,FOLLOW_18); | ||
1568 | |||
1569 | newLeafNode(otherlv_1, grammarAccess.getAndGateAccess().getAndKeyword_1()); | ||
1570 | |||
1571 | // InternalCftLanguage.g:601:3: ( (otherlv_2= RULE_ID ) )* | ||
1572 | loop12: | ||
1573 | do { | ||
1574 | int alt12=2; | ||
1575 | int LA12_0 = input.LA(1); | ||
1576 | |||
1577 | if ( (LA12_0==RULE_ID) ) { | ||
1578 | alt12=1; | ||
1579 | } | ||
1580 | |||
1581 | |||
1582 | switch (alt12) { | ||
1583 | case 1 : | ||
1584 | // InternalCftLanguage.g:602:4: (otherlv_2= RULE_ID ) | ||
1585 | { | ||
1586 | // InternalCftLanguage.g:602:4: (otherlv_2= RULE_ID ) | ||
1587 | // InternalCftLanguage.g:603:5: otherlv_2= RULE_ID | ||
1588 | { | ||
1589 | |||
1590 | if (current==null) { | ||
1591 | current = createModelElement(grammarAccess.getAndGateRule()); | ||
1592 | } | ||
1593 | |||
1594 | otherlv_2=(Token)match(input,RULE_ID,FOLLOW_18); | ||
1595 | |||
1596 | newLeafNode(otherlv_2, grammarAccess.getAndGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); | ||
1597 | |||
1598 | |||
1599 | } | ||
1600 | |||
1601 | |||
1602 | } | ||
1603 | break; | ||
1604 | |||
1605 | default : | ||
1606 | break loop12; | ||
1607 | } | ||
1608 | } while (true); | ||
1609 | |||
1610 | |||
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 "ruleAndGate" | ||
1630 | |||
1631 | |||
1632 | // $ANTLR start "entryRuleOrGate" | ||
1633 | // InternalCftLanguage.g:618:1: entryRuleOrGate returns [EObject current=null] : iv_ruleOrGate= ruleOrGate EOF ; | ||
1634 | public final EObject entryRuleOrGate() throws RecognitionException { | ||
1635 | EObject current = null; | ||
1636 | |||
1637 | EObject iv_ruleOrGate = null; | ||
1638 | |||
1639 | |||
1640 | try { | ||
1641 | // InternalCftLanguage.g:618:47: (iv_ruleOrGate= ruleOrGate EOF ) | ||
1642 | // InternalCftLanguage.g:619:2: iv_ruleOrGate= ruleOrGate EOF | ||
1643 | { | ||
1644 | newCompositeNode(grammarAccess.getOrGateRule()); | ||
1645 | pushFollow(FOLLOW_1); | ||
1646 | iv_ruleOrGate=ruleOrGate(); | ||
1647 | |||
1648 | state._fsp--; | ||
1649 | |||
1650 | current =iv_ruleOrGate; | ||
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 "entryRuleOrGate" | ||
1666 | |||
1667 | |||
1668 | // $ANTLR start "ruleOrGate" | ||
1669 | // InternalCftLanguage.g:625:1: ruleOrGate returns [EObject current=null] : ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* ) ; | ||
1670 | public final EObject ruleOrGate() throws RecognitionException { | ||
1671 | EObject current = null; | ||
1672 | |||
1673 | Token lv_name_0_0=null; | ||
1674 | Token otherlv_1=null; | ||
1675 | Token otherlv_2=null; | ||
1676 | |||
1677 | |||
1678 | enterRule(); | ||
1679 | |||
1680 | try { | ||
1681 | // InternalCftLanguage.g:631:2: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* ) ) | ||
1682 | // InternalCftLanguage.g:632:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* ) | ||
1683 | { | ||
1684 | // InternalCftLanguage.g:632:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* ) | ||
1685 | // InternalCftLanguage.g:633:3: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* | ||
1686 | { | ||
1687 | // InternalCftLanguage.g:633:3: ( (lv_name_0_0= RULE_ID ) ) | ||
1688 | // InternalCftLanguage.g:634:4: (lv_name_0_0= RULE_ID ) | ||
1689 | { | ||
1690 | // InternalCftLanguage.g:634:4: (lv_name_0_0= RULE_ID ) | ||
1691 | // InternalCftLanguage.g:635:5: lv_name_0_0= RULE_ID | ||
1692 | { | ||
1693 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_19); | ||
1694 | |||
1695 | newLeafNode(lv_name_0_0, grammarAccess.getOrGateAccess().getNameIDTerminalRuleCall_0_0()); | ||
1696 | |||
1697 | |||
1698 | if (current==null) { | ||
1699 | current = createModelElement(grammarAccess.getOrGateRule()); | ||
1700 | } | ||
1701 | setWithLastConsumed( | ||
1702 | current, | ||
1703 | "name", | ||
1704 | lv_name_0_0, | ||
1705 | "org.eclipse.xtext.common.Terminals.ID"); | ||
1706 | |||
1707 | |||
1708 | } | ||
1709 | |||
1710 | |||
1711 | } | ||
1712 | |||
1713 | otherlv_1=(Token)match(input,24,FOLLOW_18); | ||
1714 | |||
1715 | newLeafNode(otherlv_1, grammarAccess.getOrGateAccess().getOrKeyword_1()); | ||
1716 | |||
1717 | // InternalCftLanguage.g:655:3: ( (otherlv_2= RULE_ID ) )* | ||
1718 | loop13: | ||
1719 | do { | ||
1720 | int alt13=2; | ||
1721 | int LA13_0 = input.LA(1); | ||
1722 | |||
1723 | if ( (LA13_0==RULE_ID) ) { | ||
1724 | alt13=1; | ||
1725 | } | ||
1726 | |||
1727 | |||
1728 | switch (alt13) { | ||
1729 | case 1 : | ||
1730 | // InternalCftLanguage.g:656:4: (otherlv_2= RULE_ID ) | ||
1731 | { | ||
1732 | // InternalCftLanguage.g:656:4: (otherlv_2= RULE_ID ) | ||
1733 | // InternalCftLanguage.g:657:5: otherlv_2= RULE_ID | ||
1734 | { | ||
1735 | |||
1736 | if (current==null) { | ||
1737 | current = createModelElement(grammarAccess.getOrGateRule()); | ||
1738 | } | ||
1739 | |||
1740 | otherlv_2=(Token)match(input,RULE_ID,FOLLOW_18); | ||
1741 | |||
1742 | newLeafNode(otherlv_2, grammarAccess.getOrGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); | ||
1743 | |||
1744 | |||
1745 | } | ||
1746 | |||
1747 | |||
1748 | } | ||
1749 | break; | ||
1750 | |||
1751 | default : | ||
1752 | break loop13; | ||
1753 | } | ||
1754 | } while (true); | ||
1755 | |||
1756 | |||
1757 | } | ||
1758 | |||
1759 | |||
1760 | } | ||
1761 | |||
1762 | |||
1763 | leaveRule(); | ||
1764 | |||
1765 | } | ||
1766 | |||
1767 | catch (RecognitionException re) { | ||
1768 | recover(input,re); | ||
1769 | appendSkippedTokens(); | ||
1770 | } | ||
1771 | finally { | ||
1772 | } | ||
1773 | return current; | ||
1774 | } | ||
1775 | // $ANTLR end "ruleOrGate" | ||
1776 | |||
1777 | |||
1778 | // $ANTLR start "entryRuleTransformationDefinition" | ||
1779 | // InternalCftLanguage.g:672:1: entryRuleTransformationDefinition returns [EObject current=null] : iv_ruleTransformationDefinition= ruleTransformationDefinition EOF ; | ||
1780 | public final EObject entryRuleTransformationDefinition() throws RecognitionException { | ||
1781 | EObject current = null; | ||
1782 | |||
1783 | EObject iv_ruleTransformationDefinition = null; | ||
1784 | |||
1785 | |||
1786 | try { | ||
1787 | // InternalCftLanguage.g:672:65: (iv_ruleTransformationDefinition= ruleTransformationDefinition EOF ) | ||
1788 | // InternalCftLanguage.g:673:2: iv_ruleTransformationDefinition= ruleTransformationDefinition EOF | ||
1789 | { | ||
1790 | newCompositeNode(grammarAccess.getTransformationDefinitionRule()); | ||
1791 | pushFollow(FOLLOW_1); | ||
1792 | iv_ruleTransformationDefinition=ruleTransformationDefinition(); | ||
1793 | |||
1794 | state._fsp--; | ||
1795 | |||
1796 | current =iv_ruleTransformationDefinition; | ||
1797 | match(input,EOF,FOLLOW_2); | ||
1798 | |||
1799 | } | ||
1800 | |||
1801 | } | ||
1802 | |||
1803 | catch (RecognitionException re) { | ||
1804 | recover(input,re); | ||
1805 | appendSkippedTokens(); | ||
1806 | } | ||
1807 | finally { | ||
1808 | } | ||
1809 | return current; | ||
1810 | } | ||
1811 | // $ANTLR end "entryRuleTransformationDefinition" | ||
1812 | |||
1813 | |||
1814 | // $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= '}' ) ; | ||
1816 | public final EObject ruleTransformationDefinition() throws RecognitionException { | ||
1817 | EObject current = null; | ||
1818 | |||
1819 | Token otherlv_0=null; | ||
1820 | Token lv_name_1_0=null; | ||
1821 | Token otherlv_2=null; | ||
1822 | Token otherlv_4=null; | ||
1823 | EObject lv_mappingDefinitions_3_0 = null; | ||
1824 | |||
1825 | |||
1826 | |||
1827 | enterRule(); | ||
1828 | |||
1829 | try { | ||
1830 | // InternalCftLanguage.g:685:2: ( (otherlv_0= 'transformation' ( (lv_name_1_0= RULE_ID ) ) 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= '}' ) | ||
1832 | { | ||
1833 | // InternalCftLanguage.g:686:2: (otherlv_0= 'transformation' ( (lv_name_1_0= RULE_ID ) ) 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= '}' | ||
1835 | { | ||
1836 | otherlv_0=(Token)match(input,25,FOLLOW_3); | ||
1837 | |||
1838 | newLeafNode(otherlv_0, grammarAccess.getTransformationDefinitionAccess().getTransformationKeyword_0()); | ||
1839 | |||
1840 | // InternalCftLanguage.g:691:3: ( (lv_name_1_0= RULE_ID ) ) | ||
1841 | // InternalCftLanguage.g:692:4: (lv_name_1_0= RULE_ID ) | ||
1842 | { | ||
1843 | // InternalCftLanguage.g:692:4: (lv_name_1_0= RULE_ID ) | ||
1844 | // InternalCftLanguage.g:693:5: lv_name_1_0= RULE_ID | ||
1845 | { | ||
1846 | lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_8); | ||
1847 | |||
1848 | newLeafNode(lv_name_1_0, grammarAccess.getTransformationDefinitionAccess().getNameIDTerminalRuleCall_1_0()); | ||
1849 | |||
1850 | |||
1851 | if (current==null) { | ||
1852 | current = createModelElement(grammarAccess.getTransformationDefinitionRule()); | ||
1853 | } | ||
1854 | setWithLastConsumed( | ||
1855 | current, | ||
1856 | "name", | ||
1857 | lv_name_1_0, | ||
1858 | "org.eclipse.xtext.common.Terminals.ID"); | ||
1859 | |||
1860 | |||
1861 | } | ||
1862 | |||
1863 | |||
1864 | } | ||
1865 | |||
1866 | otherlv_2=(Token)match(input,16,FOLLOW_20); | ||
1867 | |||
1868 | newLeafNode(otherlv_2, grammarAccess.getTransformationDefinitionAccess().getLeftCurlyBracketKeyword_2()); | ||
1869 | |||
1870 | // InternalCftLanguage.g:713:3: ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* | ||
1871 | loop14: | ||
1872 | do { | ||
1873 | int alt14=2; | ||
1874 | int LA14_0 = input.LA(1); | ||
1875 | |||
1876 | if ( ((LA14_0>=26 && LA14_0<=27)) ) { | ||
1877 | alt14=1; | ||
1878 | } | ||
1879 | |||
1880 | |||
1881 | switch (alt14) { | ||
1882 | case 1 : | ||
1883 | // InternalCftLanguage.g:714:4: (lv_mappingDefinitions_3_0= ruleMappingDefinition ) | ||
1884 | { | ||
1885 | // InternalCftLanguage.g:714:4: (lv_mappingDefinitions_3_0= ruleMappingDefinition ) | ||
1886 | // InternalCftLanguage.g:715:5: lv_mappingDefinitions_3_0= ruleMappingDefinition | ||
1887 | { | ||
1888 | |||
1889 | newCompositeNode(grammarAccess.getTransformationDefinitionAccess().getMappingDefinitionsMappingDefinitionParserRuleCall_3_0()); | ||
1890 | |||
1891 | pushFollow(FOLLOW_20); | ||
1892 | lv_mappingDefinitions_3_0=ruleMappingDefinition(); | ||
1893 | |||
1894 | state._fsp--; | ||
1895 | |||
1896 | |||
1897 | if (current==null) { | ||
1898 | current = createModelElementForParent(grammarAccess.getTransformationDefinitionRule()); | ||
1899 | } | ||
1900 | add( | ||
1901 | current, | ||
1902 | "mappingDefinitions", | ||
1903 | lv_mappingDefinitions_3_0, | ||
1904 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingDefinition"); | ||
1905 | afterParserOrEnumRuleCall(); | ||
1906 | |||
1907 | |||
1908 | } | ||
1909 | |||
1910 | |||
1911 | } | ||
1912 | break; | ||
1913 | |||
1914 | default : | ||
1915 | break loop14; | ||
1916 | } | ||
1917 | } while (true); | ||
1918 | |||
1919 | otherlv_4=(Token)match(input,19,FOLLOW_2); | ||
1920 | |||
1921 | newLeafNode(otherlv_4, grammarAccess.getTransformationDefinitionAccess().getRightCurlyBracketKeyword_4()); | ||
1922 | |||
1923 | |||
1924 | } | ||
1925 | |||
1926 | |||
1927 | } | ||
1928 | |||
1929 | |||
1930 | leaveRule(); | ||
1931 | |||
1932 | } | ||
1933 | |||
1934 | catch (RecognitionException re) { | ||
1935 | recover(input,re); | ||
1936 | appendSkippedTokens(); | ||
1937 | } | ||
1938 | finally { | ||
1939 | } | ||
1940 | return current; | ||
1941 | } | ||
1942 | // $ANTLR end "ruleTransformationDefinition" | ||
1943 | |||
1944 | |||
1945 | // $ANTLR start "entryRuleMappingDefinition" | ||
1946 | // InternalCftLanguage.g:740:1: entryRuleMappingDefinition returns [EObject current=null] : iv_ruleMappingDefinition= ruleMappingDefinition EOF ; | ||
1947 | public final EObject entryRuleMappingDefinition() throws RecognitionException { | ||
1948 | EObject current = null; | ||
1949 | |||
1950 | EObject iv_ruleMappingDefinition = null; | ||
1951 | |||
1952 | |||
1953 | try { | ||
1954 | // InternalCftLanguage.g:740:58: (iv_ruleMappingDefinition= ruleMappingDefinition EOF ) | ||
1955 | // InternalCftLanguage.g:741:2: iv_ruleMappingDefinition= ruleMappingDefinition EOF | ||
1956 | { | ||
1957 | newCompositeNode(grammarAccess.getMappingDefinitionRule()); | ||
1958 | pushFollow(FOLLOW_1); | ||
1959 | iv_ruleMappingDefinition=ruleMappingDefinition(); | ||
1960 | |||
1961 | state._fsp--; | ||
1962 | |||
1963 | current =iv_ruleMappingDefinition; | ||
1964 | match(input,EOF,FOLLOW_2); | ||
1965 | |||
1966 | } | ||
1967 | |||
1968 | } | ||
1969 | |||
1970 | catch (RecognitionException re) { | ||
1971 | recover(input,re); | ||
1972 | appendSkippedTokens(); | ||
1973 | } | ||
1974 | finally { | ||
1975 | } | ||
1976 | return current; | ||
1977 | } | ||
1978 | // $ANTLR end "entryRuleMappingDefinition" | ||
1979 | |||
1980 | |||
1981 | // $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= '}' )? ) ; | ||
1983 | public final EObject ruleMappingDefinition() throws RecognitionException { | ||
1984 | EObject current = null; | ||
1985 | |||
1986 | Token lv_topLevel_0_0=null; | ||
1987 | Token otherlv_1=null; | ||
1988 | Token otherlv_3=null; | ||
1989 | Token otherlv_5=null; | ||
1990 | Token otherlv_7=null; | ||
1991 | Token otherlv_9=null; | ||
1992 | Token otherlv_12=null; | ||
1993 | Token otherlv_13=null; | ||
1994 | EObject lv_parameters_4_0 = null; | ||
1995 | |||
1996 | EObject lv_parameters_6_0 = null; | ||
1997 | |||
1998 | EObject lv_componentInstance_8_0 = null; | ||
1999 | |||
2000 | EObject lv_lookupDefinitions_10_0 = null; | ||
2001 | |||
2002 | EObject lv_assignments_11_0 = null; | ||
2003 | |||
2004 | |||
2005 | |||
2006 | enterRule(); | ||
2007 | |||
2008 | 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= '}' )? ) ) | ||
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= '}' )? ) | ||
2011 | { | ||
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= '}' )? ) | ||
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= '}' )? | ||
2014 | { | ||
2015 | // InternalCftLanguage.g:755:3: ( (lv_topLevel_0_0= 'toplevel' ) )? | ||
2016 | int alt15=2; | ||
2017 | int LA15_0 = input.LA(1); | ||
2018 | |||
2019 | if ( (LA15_0==26) ) { | ||
2020 | alt15=1; | ||
2021 | } | ||
2022 | switch (alt15) { | ||
2023 | case 1 : | ||
2024 | // InternalCftLanguage.g:756:4: (lv_topLevel_0_0= 'toplevel' ) | ||
2025 | { | ||
2026 | // InternalCftLanguage.g:756:4: (lv_topLevel_0_0= 'toplevel' ) | ||
2027 | // InternalCftLanguage.g:757:5: lv_topLevel_0_0= 'toplevel' | ||
2028 | { | ||
2029 | lv_topLevel_0_0=(Token)match(input,26,FOLLOW_21); | ||
2030 | |||
2031 | newLeafNode(lv_topLevel_0_0, grammarAccess.getMappingDefinitionAccess().getTopLevelToplevelKeyword_0_0()); | ||
2032 | |||
2033 | |||
2034 | if (current==null) { | ||
2035 | current = createModelElement(grammarAccess.getMappingDefinitionRule()); | ||
2036 | } | ||
2037 | setWithLastConsumed(current, "topLevel", true, "toplevel"); | ||
2038 | |||
2039 | |||
2040 | } | ||
2041 | |||
2042 | |||
2043 | } | ||
2044 | break; | ||
2045 | |||
2046 | } | ||
2047 | |||
2048 | otherlv_1=(Token)match(input,27,FOLLOW_3); | ||
2049 | |||
2050 | newLeafNode(otherlv_1, grammarAccess.getMappingDefinitionAccess().getMappingKeyword_1()); | ||
2051 | |||
2052 | // InternalCftLanguage.g:773:3: ( ( ruleQualifiedName ) ) | ||
2053 | // InternalCftLanguage.g:774:4: ( ruleQualifiedName ) | ||
2054 | { | ||
2055 | // InternalCftLanguage.g:774:4: ( ruleQualifiedName ) | ||
2056 | // InternalCftLanguage.g:775:5: ruleQualifiedName | ||
2057 | { | ||
2058 | |||
2059 | if (current==null) { | ||
2060 | current = createModelElement(grammarAccess.getMappingDefinitionRule()); | ||
2061 | } | ||
2062 | |||
2063 | |||
2064 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getPatternPatternCrossReference_2_0()); | ||
2065 | |||
2066 | pushFollow(FOLLOW_22); | ||
2067 | ruleQualifiedName(); | ||
2068 | |||
2069 | state._fsp--; | ||
2070 | |||
2071 | |||
2072 | afterParserOrEnumRuleCall(); | ||
2073 | |||
2074 | |||
2075 | } | ||
2076 | |||
2077 | |||
2078 | } | ||
2079 | |||
2080 | otherlv_3=(Token)match(input,28,FOLLOW_3); | ||
2081 | |||
2082 | newLeafNode(otherlv_3, grammarAccess.getMappingDefinitionAccess().getLeftParenthesisKeyword_3()); | ||
2083 | |||
2084 | // InternalCftLanguage.g:793:3: ( (lv_parameters_4_0= ruleMappingParameter ) ) | ||
2085 | // InternalCftLanguage.g:794:4: (lv_parameters_4_0= ruleMappingParameter ) | ||
2086 | { | ||
2087 | // InternalCftLanguage.g:794:4: (lv_parameters_4_0= ruleMappingParameter ) | ||
2088 | // InternalCftLanguage.g:795:5: lv_parameters_4_0= ruleMappingParameter | ||
2089 | { | ||
2090 | |||
2091 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_4_0()); | ||
2092 | |||
2093 | pushFollow(FOLLOW_23); | ||
2094 | lv_parameters_4_0=ruleMappingParameter(); | ||
2095 | |||
2096 | state._fsp--; | ||
2097 | |||
2098 | |||
2099 | if (current==null) { | ||
2100 | current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
2101 | } | ||
2102 | add( | ||
2103 | current, | ||
2104 | "parameters", | ||
2105 | lv_parameters_4_0, | ||
2106 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingParameter"); | ||
2107 | afterParserOrEnumRuleCall(); | ||
2108 | |||
2109 | |||
2110 | } | ||
2111 | |||
2112 | |||
2113 | } | ||
2114 | |||
2115 | // InternalCftLanguage.g:812:3: (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* | ||
2116 | loop16: | ||
2117 | do { | ||
2118 | int alt16=2; | ||
2119 | int LA16_0 = input.LA(1); | ||
2120 | |||
2121 | if ( (LA16_0==29) ) { | ||
2122 | alt16=1; | ||
2123 | } | ||
2124 | |||
2125 | |||
2126 | switch (alt16) { | ||
2127 | case 1 : | ||
2128 | // InternalCftLanguage.g:813:4: otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) | ||
2129 | { | ||
2130 | otherlv_5=(Token)match(input,29,FOLLOW_3); | ||
2131 | |||
2132 | newLeafNode(otherlv_5, grammarAccess.getMappingDefinitionAccess().getCommaKeyword_5_0()); | ||
2133 | |||
2134 | // InternalCftLanguage.g:817:4: ( (lv_parameters_6_0= ruleMappingParameter ) ) | ||
2135 | // InternalCftLanguage.g:818:5: (lv_parameters_6_0= ruleMappingParameter ) | ||
2136 | { | ||
2137 | // InternalCftLanguage.g:818:5: (lv_parameters_6_0= ruleMappingParameter ) | ||
2138 | // InternalCftLanguage.g:819:6: lv_parameters_6_0= ruleMappingParameter | ||
2139 | { | ||
2140 | |||
2141 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_5_1_0()); | ||
2142 | |||
2143 | pushFollow(FOLLOW_23); | ||
2144 | lv_parameters_6_0=ruleMappingParameter(); | ||
2145 | |||
2146 | state._fsp--; | ||
2147 | |||
2148 | |||
2149 | if (current==null) { | ||
2150 | current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
2151 | } | ||
2152 | add( | ||
2153 | current, | ||
2154 | "parameters", | ||
2155 | lv_parameters_6_0, | ||
2156 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingParameter"); | ||
2157 | afterParserOrEnumRuleCall(); | ||
2158 | |||
2159 | |||
2160 | } | ||
2161 | |||
2162 | |||
2163 | } | ||
2164 | |||
2165 | |||
2166 | } | ||
2167 | break; | ||
2168 | |||
2169 | default : | ||
2170 | break loop16; | ||
2171 | } | ||
2172 | } while (true); | ||
2173 | |||
2174 | otherlv_7=(Token)match(input,30,FOLLOW_24); | ||
2175 | |||
2176 | newLeafNode(otherlv_7, grammarAccess.getMappingDefinitionAccess().getRightParenthesisKeyword_6()); | ||
2177 | |||
2178 | // InternalCftLanguage.g:841:3: ( (lv_componentInstance_8_0= ruleComponentInstance ) )? | ||
2179 | int alt17=2; | ||
2180 | int LA17_0 = input.LA(1); | ||
2181 | |||
2182 | if ( (LA17_0==36) ) { | ||
2183 | alt17=1; | ||
2184 | } | ||
2185 | switch (alt17) { | ||
2186 | case 1 : | ||
2187 | // InternalCftLanguage.g:842:4: (lv_componentInstance_8_0= ruleComponentInstance ) | ||
2188 | { | ||
2189 | // InternalCftLanguage.g:842:4: (lv_componentInstance_8_0= ruleComponentInstance ) | ||
2190 | // InternalCftLanguage.g:843:5: lv_componentInstance_8_0= ruleComponentInstance | ||
2191 | { | ||
2192 | |||
2193 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getComponentInstanceComponentInstanceParserRuleCall_7_0()); | ||
2194 | |||
2195 | pushFollow(FOLLOW_25); | ||
2196 | lv_componentInstance_8_0=ruleComponentInstance(); | ||
2197 | |||
2198 | state._fsp--; | ||
2199 | |||
2200 | |||
2201 | if (current==null) { | ||
2202 | current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
2203 | } | ||
2204 | set( | ||
2205 | current, | ||
2206 | "componentInstance", | ||
2207 | lv_componentInstance_8_0, | ||
2208 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ComponentInstance"); | ||
2209 | afterParserOrEnumRuleCall(); | ||
2210 | |||
2211 | |||
2212 | } | ||
2213 | |||
2214 | |||
2215 | } | ||
2216 | break; | ||
2217 | |||
2218 | } | ||
2219 | |||
2220 | // InternalCftLanguage.g:860:3: (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? | ||
2221 | int alt20=2; | ||
2222 | int LA20_0 = input.LA(1); | ||
2223 | |||
2224 | if ( (LA20_0==16) ) { | ||
2225 | alt20=1; | ||
2226 | } | ||
2227 | switch (alt20) { | ||
2228 | case 1 : | ||
2229 | // InternalCftLanguage.g:861:4: otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' | ||
2230 | { | ||
2231 | otherlv_9=(Token)match(input,16,FOLLOW_26); | ||
2232 | |||
2233 | newLeafNode(otherlv_9, grammarAccess.getMappingDefinitionAccess().getLeftCurlyBracketKeyword_8_0()); | ||
2234 | |||
2235 | // InternalCftLanguage.g:865:4: ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* | ||
2236 | loop19: | ||
2237 | do { | ||
2238 | int alt19=2; | ||
2239 | int LA19_0 = input.LA(1); | ||
2240 | |||
2241 | if ( (LA19_0==RULE_ID||LA19_0==31) ) { | ||
2242 | alt19=1; | ||
2243 | } | ||
2244 | |||
2245 | |||
2246 | switch (alt19) { | ||
2247 | case 1 : | ||
2248 | // InternalCftLanguage.g:866:5: ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' | ||
2249 | { | ||
2250 | // InternalCftLanguage.g:866:5: ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) | ||
2251 | int alt18=2; | ||
2252 | int LA18_0 = input.LA(1); | ||
2253 | |||
2254 | if ( (LA18_0==31) ) { | ||
2255 | alt18=1; | ||
2256 | } | ||
2257 | else if ( (LA18_0==RULE_ID) ) { | ||
2258 | alt18=2; | ||
2259 | } | ||
2260 | else { | ||
2261 | NoViableAltException nvae = | ||
2262 | new NoViableAltException("", 18, 0, input); | ||
2263 | |||
2264 | throw nvae; | ||
2265 | } | ||
2266 | switch (alt18) { | ||
2267 | case 1 : | ||
2268 | // InternalCftLanguage.g:867:6: ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ||
2269 | { | ||
2270 | // InternalCftLanguage.g:867:6: ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ||
2271 | // InternalCftLanguage.g:868:7: (lv_lookupDefinitions_10_0= ruleLookupDefinition ) | ||
2272 | { | ||
2273 | // InternalCftLanguage.g:868:7: (lv_lookupDefinitions_10_0= ruleLookupDefinition ) | ||
2274 | // InternalCftLanguage.g:869:8: lv_lookupDefinitions_10_0= ruleLookupDefinition | ||
2275 | { | ||
2276 | |||
2277 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0()); | ||
2278 | |||
2279 | pushFollow(FOLLOW_11); | ||
2280 | lv_lookupDefinitions_10_0=ruleLookupDefinition(); | ||
2281 | |||
2282 | state._fsp--; | ||
2283 | |||
2284 | |||
2285 | if (current==null) { | ||
2286 | current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
2287 | } | ||
2288 | add( | ||
2289 | current, | ||
2290 | "lookupDefinitions", | ||
2291 | lv_lookupDefinitions_10_0, | ||
2292 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.LookupDefinition"); | ||
2293 | afterParserOrEnumRuleCall(); | ||
2294 | |||
2295 | |||
2296 | } | ||
2297 | |||
2298 | |||
2299 | } | ||
2300 | |||
2301 | |||
2302 | } | ||
2303 | break; | ||
2304 | case 2 : | ||
2305 | // InternalCftLanguage.g:887:6: ( (lv_assignments_11_0= ruleAssignment ) ) | ||
2306 | { | ||
2307 | // InternalCftLanguage.g:887:6: ( (lv_assignments_11_0= ruleAssignment ) ) | ||
2308 | // InternalCftLanguage.g:888:7: (lv_assignments_11_0= ruleAssignment ) | ||
2309 | { | ||
2310 | // InternalCftLanguage.g:888:7: (lv_assignments_11_0= ruleAssignment ) | ||
2311 | // InternalCftLanguage.g:889:8: lv_assignments_11_0= ruleAssignment | ||
2312 | { | ||
2313 | |||
2314 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getAssignmentsAssignmentParserRuleCall_8_1_0_1_0()); | ||
2315 | |||
2316 | pushFollow(FOLLOW_11); | ||
2317 | lv_assignments_11_0=ruleAssignment(); | ||
2318 | |||
2319 | state._fsp--; | ||
2320 | |||
2321 | |||
2322 | if (current==null) { | ||
2323 | current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
2324 | } | ||
2325 | add( | ||
2326 | current, | ||
2327 | "assignments", | ||
2328 | lv_assignments_11_0, | ||
2329 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Assignment"); | ||
2330 | afterParserOrEnumRuleCall(); | ||
2331 | |||
2332 | |||
2333 | } | ||
2334 | |||
2335 | |||
2336 | } | ||
2337 | |||
2338 | |||
2339 | } | ||
2340 | break; | ||
2341 | |||
2342 | } | ||
2343 | |||
2344 | otherlv_12=(Token)match(input,13,FOLLOW_26); | ||
2345 | |||
2346 | newLeafNode(otherlv_12, grammarAccess.getMappingDefinitionAccess().getSemicolonKeyword_8_1_1()); | ||
2347 | |||
2348 | |||
2349 | } | ||
2350 | break; | ||
2351 | |||
2352 | default : | ||
2353 | break loop19; | ||
2354 | } | ||
2355 | } while (true); | ||
2356 | |||
2357 | otherlv_13=(Token)match(input,19,FOLLOW_2); | ||
2358 | |||
2359 | newLeafNode(otherlv_13, grammarAccess.getMappingDefinitionAccess().getRightCurlyBracketKeyword_8_2()); | ||
2360 | |||
2361 | |||
2362 | } | ||
2363 | break; | ||
2364 | |||
2365 | } | ||
2366 | |||
2367 | |||
2368 | } | ||
2369 | |||
2370 | |||
2371 | } | ||
2372 | |||
2373 | |||
2374 | leaveRule(); | ||
2375 | |||
2376 | } | ||
2377 | |||
2378 | catch (RecognitionException re) { | ||
2379 | recover(input,re); | ||
2380 | appendSkippedTokens(); | ||
2381 | } | ||
2382 | finally { | ||
2383 | } | ||
2384 | return current; | ||
2385 | } | ||
2386 | // $ANTLR end "ruleMappingDefinition" | ||
2387 | |||
2388 | |||
2389 | // $ANTLR start "entryRuleMappingParameter" | ||
2390 | // InternalCftLanguage.g:921:1: entryRuleMappingParameter returns [EObject current=null] : iv_ruleMappingParameter= ruleMappingParameter EOF ; | ||
2391 | public final EObject entryRuleMappingParameter() throws RecognitionException { | ||
2392 | EObject current = null; | ||
2393 | |||
2394 | EObject iv_ruleMappingParameter = null; | ||
2395 | |||
2396 | |||
2397 | try { | ||
2398 | // InternalCftLanguage.g:921:57: (iv_ruleMappingParameter= ruleMappingParameter EOF ) | ||
2399 | // InternalCftLanguage.g:922:2: iv_ruleMappingParameter= ruleMappingParameter EOF | ||
2400 | { | ||
2401 | newCompositeNode(grammarAccess.getMappingParameterRule()); | ||
2402 | pushFollow(FOLLOW_1); | ||
2403 | iv_ruleMappingParameter=ruleMappingParameter(); | ||
2404 | |||
2405 | state._fsp--; | ||
2406 | |||
2407 | current =iv_ruleMappingParameter; | ||
2408 | match(input,EOF,FOLLOW_2); | ||
2409 | |||
2410 | } | ||
2411 | |||
2412 | } | ||
2413 | |||
2414 | catch (RecognitionException re) { | ||
2415 | recover(input,re); | ||
2416 | appendSkippedTokens(); | ||
2417 | } | ||
2418 | finally { | ||
2419 | } | ||
2420 | return current; | ||
2421 | } | ||
2422 | // $ANTLR end "entryRuleMappingParameter" | ||
2423 | |||
2424 | |||
2425 | // $ANTLR start "ruleMappingParameter" | ||
2426 | // InternalCftLanguage.g:928:1: ruleMappingParameter returns [EObject current=null] : ( (lv_name_0_0= RULE_ID ) ) ; | ||
2427 | public final EObject ruleMappingParameter() throws RecognitionException { | ||
2428 | EObject current = null; | ||
2429 | |||
2430 | Token lv_name_0_0=null; | ||
2431 | |||
2432 | |||
2433 | enterRule(); | ||
2434 | |||
2435 | try { | ||
2436 | // InternalCftLanguage.g:934:2: ( ( (lv_name_0_0= RULE_ID ) ) ) | ||
2437 | // InternalCftLanguage.g:935:2: ( (lv_name_0_0= RULE_ID ) ) | ||
2438 | { | ||
2439 | // InternalCftLanguage.g:935:2: ( (lv_name_0_0= RULE_ID ) ) | ||
2440 | // InternalCftLanguage.g:936:3: (lv_name_0_0= RULE_ID ) | ||
2441 | { | ||
2442 | // InternalCftLanguage.g:936:3: (lv_name_0_0= RULE_ID ) | ||
2443 | // InternalCftLanguage.g:937:4: lv_name_0_0= RULE_ID | ||
2444 | { | ||
2445 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_2); | ||
2446 | |||
2447 | newLeafNode(lv_name_0_0, grammarAccess.getMappingParameterAccess().getNameIDTerminalRuleCall_0()); | ||
2448 | |||
2449 | |||
2450 | if (current==null) { | ||
2451 | current = createModelElement(grammarAccess.getMappingParameterRule()); | ||
2452 | } | ||
2453 | setWithLastConsumed( | ||
2454 | current, | ||
2455 | "name", | ||
2456 | lv_name_0_0, | ||
2457 | "org.eclipse.xtext.common.Terminals.ID"); | ||
2458 | |||
2459 | |||
2460 | } | ||
2461 | |||
2462 | |||
2463 | } | ||
2464 | |||
2465 | |||
2466 | } | ||
2467 | |||
2468 | |||
2469 | leaveRule(); | ||
2470 | |||
2471 | } | ||
2472 | |||
2473 | catch (RecognitionException re) { | ||
2474 | recover(input,re); | ||
2475 | appendSkippedTokens(); | ||
2476 | } | ||
2477 | finally { | ||
2478 | } | ||
2479 | return current; | ||
2480 | } | ||
2481 | // $ANTLR end "ruleMappingParameter" | ||
2482 | |||
2483 | |||
2484 | // $ANTLR start "entryRuleLookupDefinition" | ||
2485 | // InternalCftLanguage.g:956:1: entryRuleLookupDefinition returns [EObject current=null] : iv_ruleLookupDefinition= ruleLookupDefinition EOF ; | ||
2486 | public final EObject entryRuleLookupDefinition() throws RecognitionException { | ||
2487 | EObject current = null; | ||
2488 | |||
2489 | EObject iv_ruleLookupDefinition = null; | ||
2490 | |||
2491 | |||
2492 | try { | ||
2493 | // InternalCftLanguage.g:956:57: (iv_ruleLookupDefinition= ruleLookupDefinition EOF ) | ||
2494 | // InternalCftLanguage.g:957:2: iv_ruleLookupDefinition= ruleLookupDefinition EOF | ||
2495 | { | ||
2496 | newCompositeNode(grammarAccess.getLookupDefinitionRule()); | ||
2497 | pushFollow(FOLLOW_1); | ||
2498 | iv_ruleLookupDefinition=ruleLookupDefinition(); | ||
2499 | |||
2500 | state._fsp--; | ||
2501 | |||
2502 | current =iv_ruleLookupDefinition; | ||
2503 | match(input,EOF,FOLLOW_2); | ||
2504 | |||
2505 | } | ||
2506 | |||
2507 | } | ||
2508 | |||
2509 | catch (RecognitionException re) { | ||
2510 | recover(input,re); | ||
2511 | appendSkippedTokens(); | ||
2512 | } | ||
2513 | finally { | ||
2514 | } | ||
2515 | return current; | ||
2516 | } | ||
2517 | // $ANTLR end "entryRuleLookupDefinition" | ||
2518 | |||
2519 | |||
2520 | // $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 ) ) ) ; | ||
2522 | public final EObject ruleLookupDefinition() throws RecognitionException { | ||
2523 | EObject current = null; | ||
2524 | |||
2525 | Token otherlv_0=null; | ||
2526 | Token otherlv_1=null; | ||
2527 | Token otherlv_2=null; | ||
2528 | Token otherlv_3=null; | ||
2529 | Token otherlv_4=null; | ||
2530 | Token otherlv_5=null; | ||
2531 | Token otherlv_6=null; | ||
2532 | Token otherlv_7=null; | ||
2533 | Token lv_name_8_0=null; | ||
2534 | |||
2535 | |||
2536 | enterRule(); | ||
2537 | |||
2538 | 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 ) ) ) ) | ||
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 ) ) ) | ||
2541 | { | ||
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 ) ) ) | ||
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 ) ) | ||
2544 | { | ||
2545 | otherlv_0=(Token)match(input,31,FOLLOW_3); | ||
2546 | |||
2547 | newLeafNode(otherlv_0, grammarAccess.getLookupDefinitionAccess().getLookupKeyword_0()); | ||
2548 | |||
2549 | // InternalCftLanguage.g:975:3: ( (otherlv_1= RULE_ID ) ) | ||
2550 | // InternalCftLanguage.g:976:4: (otherlv_1= RULE_ID ) | ||
2551 | { | ||
2552 | // InternalCftLanguage.g:976:4: (otherlv_1= RULE_ID ) | ||
2553 | // InternalCftLanguage.g:977:5: otherlv_1= RULE_ID | ||
2554 | { | ||
2555 | |||
2556 | if (current==null) { | ||
2557 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
2558 | } | ||
2559 | |||
2560 | otherlv_1=(Token)match(input,RULE_ID,FOLLOW_22); | ||
2561 | |||
2562 | newLeafNode(otherlv_1, grammarAccess.getLookupDefinitionAccess().getMappingMappingDefinitionCrossReference_1_0()); | ||
2563 | |||
2564 | |||
2565 | } | ||
2566 | |||
2567 | |||
2568 | } | ||
2569 | |||
2570 | otherlv_2=(Token)match(input,28,FOLLOW_3); | ||
2571 | |||
2572 | newLeafNode(otherlv_2, grammarAccess.getLookupDefinitionAccess().getLeftParenthesisKeyword_2()); | ||
2573 | |||
2574 | // InternalCftLanguage.g:992:3: ( (otherlv_3= RULE_ID ) ) | ||
2575 | // InternalCftLanguage.g:993:4: (otherlv_3= RULE_ID ) | ||
2576 | { | ||
2577 | // InternalCftLanguage.g:993:4: (otherlv_3= RULE_ID ) | ||
2578 | // InternalCftLanguage.g:994:5: otherlv_3= RULE_ID | ||
2579 | { | ||
2580 | |||
2581 | if (current==null) { | ||
2582 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
2583 | } | ||
2584 | |||
2585 | otherlv_3=(Token)match(input,RULE_ID,FOLLOW_23); | ||
2586 | |||
2587 | newLeafNode(otherlv_3, grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_3_0()); | ||
2588 | |||
2589 | |||
2590 | } | ||
2591 | |||
2592 | |||
2593 | } | ||
2594 | |||
2595 | // InternalCftLanguage.g:1005:3: (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* | ||
2596 | loop21: | ||
2597 | do { | ||
2598 | int alt21=2; | ||
2599 | int LA21_0 = input.LA(1); | ||
2600 | |||
2601 | if ( (LA21_0==29) ) { | ||
2602 | alt21=1; | ||
2603 | } | ||
2604 | |||
2605 | |||
2606 | switch (alt21) { | ||
2607 | case 1 : | ||
2608 | // InternalCftLanguage.g:1006:4: otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) | ||
2609 | { | ||
2610 | otherlv_4=(Token)match(input,29,FOLLOW_3); | ||
2611 | |||
2612 | newLeafNode(otherlv_4, grammarAccess.getLookupDefinitionAccess().getCommaKeyword_4_0()); | ||
2613 | |||
2614 | // InternalCftLanguage.g:1010:4: ( (otherlv_5= RULE_ID ) ) | ||
2615 | // InternalCftLanguage.g:1011:5: (otherlv_5= RULE_ID ) | ||
2616 | { | ||
2617 | // InternalCftLanguage.g:1011:5: (otherlv_5= RULE_ID ) | ||
2618 | // InternalCftLanguage.g:1012:6: otherlv_5= RULE_ID | ||
2619 | { | ||
2620 | |||
2621 | if (current==null) { | ||
2622 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
2623 | } | ||
2624 | |||
2625 | otherlv_5=(Token)match(input,RULE_ID,FOLLOW_23); | ||
2626 | |||
2627 | newLeafNode(otherlv_5, grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_4_1_0()); | ||
2628 | |||
2629 | |||
2630 | } | ||
2631 | |||
2632 | |||
2633 | } | ||
2634 | |||
2635 | |||
2636 | } | ||
2637 | break; | ||
2638 | |||
2639 | default : | ||
2640 | break loop21; | ||
2641 | } | ||
2642 | } while (true); | ||
2643 | |||
2644 | otherlv_6=(Token)match(input,30,FOLLOW_27); | ||
2645 | |||
2646 | newLeafNode(otherlv_6, grammarAccess.getLookupDefinitionAccess().getRightParenthesisKeyword_5()); | ||
2647 | |||
2648 | otherlv_7=(Token)match(input,32,FOLLOW_3); | ||
2649 | |||
2650 | newLeafNode(otherlv_7, grammarAccess.getLookupDefinitionAccess().getAsKeyword_6()); | ||
2651 | |||
2652 | // InternalCftLanguage.g:1032:3: ( (lv_name_8_0= RULE_ID ) ) | ||
2653 | // InternalCftLanguage.g:1033:4: (lv_name_8_0= RULE_ID ) | ||
2654 | { | ||
2655 | // InternalCftLanguage.g:1033:4: (lv_name_8_0= RULE_ID ) | ||
2656 | // InternalCftLanguage.g:1034:5: lv_name_8_0= RULE_ID | ||
2657 | { | ||
2658 | lv_name_8_0=(Token)match(input,RULE_ID,FOLLOW_2); | ||
2659 | |||
2660 | newLeafNode(lv_name_8_0, grammarAccess.getLookupDefinitionAccess().getNameIDTerminalRuleCall_7_0()); | ||
2661 | |||
2662 | |||
2663 | if (current==null) { | ||
2664 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
2665 | } | ||
2666 | setWithLastConsumed( | ||
2667 | current, | ||
2668 | "name", | ||
2669 | lv_name_8_0, | ||
2670 | "org.eclipse.xtext.common.Terminals.ID"); | ||
2671 | |||
2672 | |||
2673 | } | ||
2674 | |||
2675 | |||
2676 | } | ||
2677 | |||
2678 | |||
2679 | } | ||
2680 | |||
2681 | |||
2682 | } | ||
2683 | |||
2684 | |||
2685 | leaveRule(); | ||
2686 | |||
2687 | } | ||
2688 | |||
2689 | catch (RecognitionException re) { | ||
2690 | recover(input,re); | ||
2691 | appendSkippedTokens(); | ||
2692 | } | ||
2693 | finally { | ||
2694 | } | ||
2695 | return current; | ||
2696 | } | ||
2697 | // $ANTLR end "ruleLookupDefinition" | ||
2698 | |||
2699 | |||
2700 | // $ANTLR start "entryRuleAssignment" | ||
2701 | // InternalCftLanguage.g:1054:1: entryRuleAssignment returns [EObject current=null] : iv_ruleAssignment= ruleAssignment EOF ; | ||
2702 | public final EObject entryRuleAssignment() throws RecognitionException { | ||
2703 | EObject current = null; | ||
2704 | |||
2705 | EObject iv_ruleAssignment = null; | ||
2706 | |||
2707 | |||
2708 | try { | ||
2709 | // InternalCftLanguage.g:1054:51: (iv_ruleAssignment= ruleAssignment EOF ) | ||
2710 | // InternalCftLanguage.g:1055:2: iv_ruleAssignment= ruleAssignment EOF | ||
2711 | { | ||
2712 | newCompositeNode(grammarAccess.getAssignmentRule()); | ||
2713 | pushFollow(FOLLOW_1); | ||
2714 | iv_ruleAssignment=ruleAssignment(); | ||
2715 | |||
2716 | state._fsp--; | ||
2717 | |||
2718 | current =iv_ruleAssignment; | ||
2719 | match(input,EOF,FOLLOW_2); | ||
2720 | |||
2721 | } | ||
2722 | |||
2723 | } | ||
2724 | |||
2725 | catch (RecognitionException re) { | ||
2726 | recover(input,re); | ||
2727 | appendSkippedTokens(); | ||
2728 | } | ||
2729 | finally { | ||
2730 | } | ||
2731 | return current; | ||
2732 | } | ||
2733 | // $ANTLR end "entryRuleAssignment" | ||
2734 | |||
2735 | |||
2736 | // $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 ) ) ) ; | ||
2738 | public final EObject ruleAssignment() throws RecognitionException { | ||
2739 | EObject current = null; | ||
2740 | |||
2741 | Token lv_multiple_1_0=null; | ||
2742 | Token otherlv_2=null; | ||
2743 | EObject lv_input_0_0 = null; | ||
2744 | |||
2745 | EObject lv_output_3_0 = null; | ||
2746 | |||
2747 | |||
2748 | |||
2749 | enterRule(); | ||
2750 | |||
2751 | try { | ||
2752 | // InternalCftLanguage.g:1067: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 ) ) ) | ||
2754 | { | ||
2755 | // InternalCftLanguage.g:1068: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 ) ) | ||
2757 | { | ||
2758 | // InternalCftLanguage.g:1069:3: ( (lv_input_0_0= ruleEventReference ) ) | ||
2759 | // InternalCftLanguage.g:1070:4: (lv_input_0_0= ruleEventReference ) | ||
2760 | { | ||
2761 | // InternalCftLanguage.g:1070:4: (lv_input_0_0= ruleEventReference ) | ||
2762 | // InternalCftLanguage.g:1071:5: lv_input_0_0= ruleEventReference | ||
2763 | { | ||
2764 | |||
2765 | newCompositeNode(grammarAccess.getAssignmentAccess().getInputEventReferenceParserRuleCall_0_0()); | ||
2766 | |||
2767 | pushFollow(FOLLOW_28); | ||
2768 | lv_input_0_0=ruleEventReference(); | ||
2769 | |||
2770 | state._fsp--; | ||
2771 | |||
2772 | |||
2773 | if (current==null) { | ||
2774 | current = createModelElementForParent(grammarAccess.getAssignmentRule()); | ||
2775 | } | ||
2776 | set( | ||
2777 | current, | ||
2778 | "input", | ||
2779 | lv_input_0_0, | ||
2780 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventReference"); | ||
2781 | afterParserOrEnumRuleCall(); | ||
2782 | |||
2783 | |||
2784 | } | ||
2785 | |||
2786 | |||
2787 | } | ||
2788 | |||
2789 | // InternalCftLanguage.g:1088:3: ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) | ||
2790 | int alt22=2; | ||
2791 | int LA22_0 = input.LA(1); | ||
2792 | |||
2793 | if ( (LA22_0==33) ) { | ||
2794 | alt22=1; | ||
2795 | } | ||
2796 | else if ( (LA22_0==34) ) { | ||
2797 | alt22=2; | ||
2798 | } | ||
2799 | else { | ||
2800 | NoViableAltException nvae = | ||
2801 | new NoViableAltException("", 22, 0, input); | ||
2802 | |||
2803 | throw nvae; | ||
2804 | } | ||
2805 | switch (alt22) { | ||
2806 | case 1 : | ||
2807 | // InternalCftLanguage.g:1089:4: ( (lv_multiple_1_0= '+=' ) ) | ||
2808 | { | ||
2809 | // InternalCftLanguage.g:1089:4: ( (lv_multiple_1_0= '+=' ) ) | ||
2810 | // InternalCftLanguage.g:1090:5: (lv_multiple_1_0= '+=' ) | ||
2811 | { | ||
2812 | // InternalCftLanguage.g:1090:5: (lv_multiple_1_0= '+=' ) | ||
2813 | // InternalCftLanguage.g:1091:6: lv_multiple_1_0= '+=' | ||
2814 | { | ||
2815 | lv_multiple_1_0=(Token)match(input,33,FOLLOW_29); | ||
2816 | |||
2817 | newLeafNode(lv_multiple_1_0, grammarAccess.getAssignmentAccess().getMultiplePlusSignEqualsSignKeyword_1_0_0()); | ||
2818 | |||
2819 | |||
2820 | if (current==null) { | ||
2821 | current = createModelElement(grammarAccess.getAssignmentRule()); | ||
2822 | } | ||
2823 | setWithLastConsumed(current, "multiple", true, "+="); | ||
2824 | |||
2825 | |||
2826 | } | ||
2827 | |||
2828 | |||
2829 | } | ||
2830 | |||
2831 | |||
2832 | } | ||
2833 | break; | ||
2834 | case 2 : | ||
2835 | // InternalCftLanguage.g:1104:4: otherlv_2= ':=' | ||
2836 | { | ||
2837 | otherlv_2=(Token)match(input,34,FOLLOW_29); | ||
2838 | |||
2839 | newLeafNode(otherlv_2, grammarAccess.getAssignmentAccess().getColonEqualsSignKeyword_1_1()); | ||
2840 | |||
2841 | |||
2842 | } | ||
2843 | break; | ||
2844 | |||
2845 | } | ||
2846 | |||
2847 | // InternalCftLanguage.g:1109:3: ( (lv_output_3_0= ruleEventReference ) ) | ||
2848 | // InternalCftLanguage.g:1110:4: (lv_output_3_0= ruleEventReference ) | ||
2849 | { | ||
2850 | // InternalCftLanguage.g:1110:4: (lv_output_3_0= ruleEventReference ) | ||
2851 | // InternalCftLanguage.g:1111:5: lv_output_3_0= ruleEventReference | ||
2852 | { | ||
2853 | |||
2854 | newCompositeNode(grammarAccess.getAssignmentAccess().getOutputEventReferenceParserRuleCall_2_0()); | ||
2855 | |||
2856 | pushFollow(FOLLOW_2); | ||
2857 | lv_output_3_0=ruleEventReference(); | ||
2858 | |||
2859 | state._fsp--; | ||
2860 | |||
2861 | |||
2862 | if (current==null) { | ||
2863 | current = createModelElementForParent(grammarAccess.getAssignmentRule()); | ||
2864 | } | ||
2865 | set( | ||
2866 | current, | ||
2867 | "output", | ||
2868 | lv_output_3_0, | ||
2869 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventReference"); | ||
2870 | afterParserOrEnumRuleCall(); | ||
2871 | |||
2872 | |||
2873 | } | ||
2874 | |||
2875 | |||
2876 | } | ||
2877 | |||
2878 | |||
2879 | } | ||
2880 | |||
2881 | |||
2882 | } | ||
2883 | |||
2884 | |||
2885 | leaveRule(); | ||
2886 | |||
2887 | } | ||
2888 | |||
2889 | catch (RecognitionException re) { | ||
2890 | recover(input,re); | ||
2891 | appendSkippedTokens(); | ||
2892 | } | ||
2893 | finally { | ||
2894 | } | ||
2895 | return current; | ||
2896 | } | ||
2897 | // $ANTLR end "ruleAssignment" | ||
2898 | |||
2899 | |||
2900 | // $ANTLR start "entryRuleEventReference" | ||
2901 | // InternalCftLanguage.g:1132:1: entryRuleEventReference returns [EObject current=null] : iv_ruleEventReference= ruleEventReference EOF ; | ||
2902 | public final EObject entryRuleEventReference() throws RecognitionException { | ||
2903 | EObject current = null; | ||
2904 | |||
2905 | EObject iv_ruleEventReference = null; | ||
2906 | |||
2907 | |||
2908 | try { | ||
2909 | // InternalCftLanguage.g:1132:55: (iv_ruleEventReference= ruleEventReference EOF ) | ||
2910 | // InternalCftLanguage.g:1133:2: iv_ruleEventReference= ruleEventReference EOF | ||
2911 | { | ||
2912 | newCompositeNode(grammarAccess.getEventReferenceRule()); | ||
2913 | pushFollow(FOLLOW_1); | ||
2914 | iv_ruleEventReference=ruleEventReference(); | ||
2915 | |||
2916 | state._fsp--; | ||
2917 | |||
2918 | current =iv_ruleEventReference; | ||
2919 | match(input,EOF,FOLLOW_2); | ||
2920 | |||
2921 | } | ||
2922 | |||
2923 | } | ||
2924 | |||
2925 | catch (RecognitionException re) { | ||
2926 | recover(input,re); | ||
2927 | appendSkippedTokens(); | ||
2928 | } | ||
2929 | finally { | ||
2930 | } | ||
2931 | return current; | ||
2932 | } | ||
2933 | // $ANTLR end "entryRuleEventReference" | ||
2934 | |||
2935 | |||
2936 | // $ANTLR start "ruleEventReference" | ||
2937 | // InternalCftLanguage.g:1139:1: ruleEventReference returns [EObject current=null] : ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) ; | ||
2938 | public final EObject ruleEventReference() throws RecognitionException { | ||
2939 | EObject current = null; | ||
2940 | |||
2941 | Token otherlv_0=null; | ||
2942 | Token otherlv_1=null; | ||
2943 | Token otherlv_2=null; | ||
2944 | |||
2945 | |||
2946 | enterRule(); | ||
2947 | |||
2948 | try { | ||
2949 | // InternalCftLanguage.g:1145:2: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) ) | ||
2950 | // InternalCftLanguage.g:1146:2: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) | ||
2951 | { | ||
2952 | // InternalCftLanguage.g:1146:2: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) | ||
2953 | // InternalCftLanguage.g:1147:3: ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) | ||
2954 | { | ||
2955 | // InternalCftLanguage.g:1147:3: ( (otherlv_0= RULE_ID ) ) | ||
2956 | // InternalCftLanguage.g:1148:4: (otherlv_0= RULE_ID ) | ||
2957 | { | ||
2958 | // InternalCftLanguage.g:1148:4: (otherlv_0= RULE_ID ) | ||
2959 | // InternalCftLanguage.g:1149:5: otherlv_0= RULE_ID | ||
2960 | { | ||
2961 | |||
2962 | if (current==null) { | ||
2963 | current = createModelElement(grammarAccess.getEventReferenceRule()); | ||
2964 | } | ||
2965 | |||
2966 | otherlv_0=(Token)match(input,RULE_ID,FOLLOW_30); | ||
2967 | |||
2968 | newLeafNode(otherlv_0, grammarAccess.getEventReferenceAccess().getComponentVariableCrossReference_0_0()); | ||
2969 | |||
2970 | |||
2971 | } | ||
2972 | |||
2973 | |||
2974 | } | ||
2975 | |||
2976 | otherlv_1=(Token)match(input,35,FOLLOW_3); | ||
2977 | |||
2978 | newLeafNode(otherlv_1, grammarAccess.getEventReferenceAccess().getFullStopKeyword_1()); | ||
2979 | |||
2980 | // InternalCftLanguage.g:1164:3: ( (otherlv_2= RULE_ID ) ) | ||
2981 | // InternalCftLanguage.g:1165:4: (otherlv_2= RULE_ID ) | ||
2982 | { | ||
2983 | // InternalCftLanguage.g:1165:4: (otherlv_2= RULE_ID ) | ||
2984 | // InternalCftLanguage.g:1166:5: otherlv_2= RULE_ID | ||
2985 | { | ||
2986 | |||
2987 | if (current==null) { | ||
2988 | current = createModelElement(grammarAccess.getEventReferenceRule()); | ||
2989 | } | ||
2990 | |||
2991 | otherlv_2=(Token)match(input,RULE_ID,FOLLOW_2); | ||
2992 | |||
2993 | newLeafNode(otherlv_2, grammarAccess.getEventReferenceAccess().getEventEventDeclarationCrossReference_2_0()); | ||
2994 | |||
2995 | |||
2996 | } | ||
2997 | |||
2998 | |||
2999 | } | ||
3000 | |||
3001 | |||
3002 | } | ||
3003 | |||
3004 | |||
3005 | } | ||
3006 | |||
3007 | |||
3008 | leaveRule(); | ||
3009 | |||
3010 | } | ||
3011 | |||
3012 | catch (RecognitionException re) { | ||
3013 | recover(input,re); | ||
3014 | appendSkippedTokens(); | ||
3015 | } | ||
3016 | finally { | ||
3017 | } | ||
3018 | return current; | ||
3019 | } | ||
3020 | // $ANTLR end "ruleEventReference" | ||
3021 | |||
3022 | |||
3023 | // $ANTLR start "entryRuleComponentInstance" | ||
3024 | // InternalCftLanguage.g:1181:1: entryRuleComponentInstance returns [EObject current=null] : iv_ruleComponentInstance= ruleComponentInstance EOF ; | ||
3025 | public final EObject entryRuleComponentInstance() throws RecognitionException { | ||
3026 | EObject current = null; | ||
3027 | |||
3028 | EObject iv_ruleComponentInstance = null; | ||
3029 | |||
3030 | |||
3031 | try { | ||
3032 | // InternalCftLanguage.g:1181:58: (iv_ruleComponentInstance= ruleComponentInstance EOF ) | ||
3033 | // InternalCftLanguage.g:1182:2: iv_ruleComponentInstance= ruleComponentInstance EOF | ||
3034 | { | ||
3035 | newCompositeNode(grammarAccess.getComponentInstanceRule()); | ||
3036 | pushFollow(FOLLOW_1); | ||
3037 | iv_ruleComponentInstance=ruleComponentInstance(); | ||
3038 | |||
3039 | state._fsp--; | ||
3040 | |||
3041 | current =iv_ruleComponentInstance; | ||
3042 | match(input,EOF,FOLLOW_2); | ||
3043 | |||
3044 | } | ||
3045 | |||
3046 | } | ||
3047 | |||
3048 | catch (RecognitionException re) { | ||
3049 | recover(input,re); | ||
3050 | appendSkippedTokens(); | ||
3051 | } | ||
3052 | finally { | ||
3053 | } | ||
3054 | return current; | ||
3055 | } | ||
3056 | // $ANTLR end "entryRuleComponentInstance" | ||
3057 | |||
3058 | |||
3059 | // $ANTLR start "ruleComponentInstance" | ||
3060 | // InternalCftLanguage.g:1188:1: ruleComponentInstance returns [EObject current=null] : (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) ; | ||
3061 | public final EObject ruleComponentInstance() throws RecognitionException { | ||
3062 | EObject current = null; | ||
3063 | |||
3064 | Token otherlv_0=null; | ||
3065 | Token lv_name_2_0=null; | ||
3066 | |||
3067 | |||
3068 | enterRule(); | ||
3069 | |||
3070 | try { | ||
3071 | // InternalCftLanguage.g:1194:2: ( (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) ) | ||
3072 | // InternalCftLanguage.g:1195:2: (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) | ||
3073 | { | ||
3074 | // InternalCftLanguage.g:1195:2: (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) | ||
3075 | // InternalCftLanguage.g:1196:3: otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? | ||
3076 | { | ||
3077 | otherlv_0=(Token)match(input,36,FOLLOW_3); | ||
3078 | |||
3079 | newLeafNode(otherlv_0, grammarAccess.getComponentInstanceAccess().getEqualsSignGreaterThanSignKeyword_0()); | ||
3080 | |||
3081 | // InternalCftLanguage.g:1200:3: ( ( ruleQualifiedName ) ) | ||
3082 | // InternalCftLanguage.g:1201:4: ( ruleQualifiedName ) | ||
3083 | { | ||
3084 | // InternalCftLanguage.g:1201:4: ( ruleQualifiedName ) | ||
3085 | // InternalCftLanguage.g:1202:5: ruleQualifiedName | ||
3086 | { | ||
3087 | |||
3088 | if (current==null) { | ||
3089 | current = createModelElement(grammarAccess.getComponentInstanceRule()); | ||
3090 | } | ||
3091 | |||
3092 | |||
3093 | newCompositeNode(grammarAccess.getComponentInstanceAccess().getComponentTypeComponentDefinitionCrossReference_1_0()); | ||
3094 | |||
3095 | pushFollow(FOLLOW_18); | ||
3096 | ruleQualifiedName(); | ||
3097 | |||
3098 | state._fsp--; | ||
3099 | |||
3100 | |||
3101 | afterParserOrEnumRuleCall(); | ||
3102 | |||
3103 | |||
3104 | } | ||
3105 | |||
3106 | |||
3107 | } | ||
3108 | |||
3109 | // InternalCftLanguage.g:1216:3: ( (lv_name_2_0= RULE_ID ) )? | ||
3110 | int alt23=2; | ||
3111 | int LA23_0 = input.LA(1); | ||
3112 | |||
3113 | if ( (LA23_0==RULE_ID) ) { | ||
3114 | alt23=1; | ||
3115 | } | ||
3116 | switch (alt23) { | ||
3117 | case 1 : | ||
3118 | // InternalCftLanguage.g:1217:4: (lv_name_2_0= RULE_ID ) | ||
3119 | { | ||
3120 | // InternalCftLanguage.g:1217:4: (lv_name_2_0= RULE_ID ) | ||
3121 | // InternalCftLanguage.g:1218:5: lv_name_2_0= RULE_ID | ||
3122 | { | ||
3123 | lv_name_2_0=(Token)match(input,RULE_ID,FOLLOW_2); | ||
3124 | |||
3125 | newLeafNode(lv_name_2_0, grammarAccess.getComponentInstanceAccess().getNameIDTerminalRuleCall_2_0()); | ||
3126 | |||
3127 | |||
3128 | if (current==null) { | ||
3129 | current = createModelElement(grammarAccess.getComponentInstanceRule()); | ||
3130 | } | ||
3131 | setWithLastConsumed( | ||
3132 | current, | ||
3133 | "name", | ||
3134 | lv_name_2_0, | ||
3135 | "org.eclipse.xtext.common.Terminals.ID"); | ||
3136 | |||
3137 | |||
3138 | } | ||
3139 | |||
3140 | |||
3141 | } | ||
3142 | break; | ||
3143 | |||
3144 | } | ||
3145 | |||
3146 | |||
3147 | } | ||
3148 | |||
3149 | |||
3150 | } | ||
3151 | |||
3152 | |||
3153 | leaveRule(); | ||
3154 | |||
3155 | } | ||
3156 | |||
3157 | catch (RecognitionException re) { | ||
3158 | recover(input,re); | ||
3159 | appendSkippedTokens(); | ||
3160 | } | ||
3161 | finally { | ||
3162 | } | ||
3163 | return current; | ||
3164 | } | ||
3165 | // $ANTLR end "ruleComponentInstance" | ||
3166 | |||
3167 | |||
3168 | // $ANTLR start "entryRuleQualifiedName" | ||
3169 | // InternalCftLanguage.g:1238:1: entryRuleQualifiedName returns [String current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ; | ||
3170 | public final String entryRuleQualifiedName() throws RecognitionException { | ||
3171 | String current = null; | ||
3172 | |||
3173 | AntlrDatatypeRuleToken iv_ruleQualifiedName = null; | ||
3174 | |||
3175 | |||
3176 | try { | ||
3177 | // InternalCftLanguage.g:1238:53: (iv_ruleQualifiedName= ruleQualifiedName EOF ) | ||
3178 | // InternalCftLanguage.g:1239:2: iv_ruleQualifiedName= ruleQualifiedName EOF | ||
3179 | { | ||
3180 | newCompositeNode(grammarAccess.getQualifiedNameRule()); | ||
3181 | pushFollow(FOLLOW_1); | ||
3182 | iv_ruleQualifiedName=ruleQualifiedName(); | ||
3183 | |||
3184 | state._fsp--; | ||
3185 | |||
3186 | current =iv_ruleQualifiedName.getText(); | ||
3187 | match(input,EOF,FOLLOW_2); | ||
3188 | |||
3189 | } | ||
3190 | |||
3191 | } | ||
3192 | |||
3193 | catch (RecognitionException re) { | ||
3194 | recover(input,re); | ||
3195 | appendSkippedTokens(); | ||
3196 | } | ||
3197 | finally { | ||
3198 | } | ||
3199 | return current; | ||
3200 | } | ||
3201 | // $ANTLR end "entryRuleQualifiedName" | ||
3202 | |||
3203 | |||
3204 | // $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 )* ) ; | ||
3206 | public final AntlrDatatypeRuleToken ruleQualifiedName() throws RecognitionException { | ||
3207 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); | ||
3208 | |||
3209 | Token this_ID_0=null; | ||
3210 | Token kw=null; | ||
3211 | Token this_ID_2=null; | ||
3212 | |||
3213 | |||
3214 | enterRule(); | ||
3215 | |||
3216 | try { | ||
3217 | // InternalCftLanguage.g:1251:2: ( (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) ) | ||
3218 | // InternalCftLanguage.g:1252:2: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) | ||
3219 | { | ||
3220 | // InternalCftLanguage.g:1252:2: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) | ||
3221 | // InternalCftLanguage.g:1253:3: this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* | ||
3222 | { | ||
3223 | this_ID_0=(Token)match(input,RULE_ID,FOLLOW_31); | ||
3224 | |||
3225 | current.merge(this_ID_0); | ||
3226 | |||
3227 | |||
3228 | newLeafNode(this_ID_0, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); | ||
3229 | |||
3230 | // InternalCftLanguage.g:1260:3: (kw= '.' this_ID_2= RULE_ID )* | ||
3231 | loop24: | ||
3232 | do { | ||
3233 | int alt24=2; | ||
3234 | int LA24_0 = input.LA(1); | ||
3235 | |||
3236 | if ( (LA24_0==35) ) { | ||
3237 | int LA24_2 = input.LA(2); | ||
3238 | |||
3239 | if ( (LA24_2==RULE_ID) ) { | ||
3240 | alt24=1; | ||
3241 | } | ||
3242 | |||
3243 | |||
3244 | } | ||
3245 | |||
3246 | |||
3247 | switch (alt24) { | ||
3248 | case 1 : | ||
3249 | // InternalCftLanguage.g:1261:4: kw= '.' this_ID_2= RULE_ID | ||
3250 | { | ||
3251 | kw=(Token)match(input,35,FOLLOW_3); | ||
3252 | |||
3253 | current.merge(kw); | ||
3254 | newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); | ||
3255 | |||
3256 | this_ID_2=(Token)match(input,RULE_ID,FOLLOW_31); | ||
3257 | |||
3258 | current.merge(this_ID_2); | ||
3259 | |||
3260 | |||
3261 | newLeafNode(this_ID_2, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); | ||
3262 | |||
3263 | |||
3264 | } | ||
3265 | break; | ||
3266 | |||
3267 | default : | ||
3268 | break loop24; | ||
3269 | } | ||
3270 | } while (true); | ||
3271 | |||
3272 | |||
3273 | } | ||
3274 | |||
3275 | |||
3276 | } | ||
3277 | |||
3278 | |||
3279 | leaveRule(); | ||
3280 | |||
3281 | } | ||
3282 | |||
3283 | catch (RecognitionException re) { | ||
3284 | recover(input,re); | ||
3285 | appendSkippedTokens(); | ||
3286 | } | ||
3287 | finally { | ||
3288 | } | ||
3289 | return current; | ||
3290 | } | ||
3291 | // $ANTLR end "ruleQualifiedName" | ||
3292 | |||
3293 | |||
3294 | // $ANTLR start "entryRuleQualifiedNameWithWildcard" | ||
3295 | // InternalCftLanguage.g:1278:1: entryRuleQualifiedNameWithWildcard returns [String current=null] : iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ; | ||
3296 | public final String entryRuleQualifiedNameWithWildcard() throws RecognitionException { | ||
3297 | String current = null; | ||
3298 | |||
3299 | AntlrDatatypeRuleToken iv_ruleQualifiedNameWithWildcard = null; | ||
3300 | |||
3301 | |||
3302 | try { | ||
3303 | // InternalCftLanguage.g:1278:65: (iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ) | ||
3304 | // InternalCftLanguage.g:1279:2: iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF | ||
3305 | { | ||
3306 | newCompositeNode(grammarAccess.getQualifiedNameWithWildcardRule()); | ||
3307 | pushFollow(FOLLOW_1); | ||
3308 | iv_ruleQualifiedNameWithWildcard=ruleQualifiedNameWithWildcard(); | ||
3309 | |||
3310 | state._fsp--; | ||
3311 | |||
3312 | current =iv_ruleQualifiedNameWithWildcard.getText(); | ||
3313 | match(input,EOF,FOLLOW_2); | ||
3314 | |||
3315 | } | ||
3316 | |||
3317 | } | ||
3318 | |||
3319 | catch (RecognitionException re) { | ||
3320 | recover(input,re); | ||
3321 | appendSkippedTokens(); | ||
3322 | } | ||
3323 | finally { | ||
3324 | } | ||
3325 | return current; | ||
3326 | } | ||
3327 | // $ANTLR end "entryRuleQualifiedNameWithWildcard" | ||
3328 | |||
3329 | |||
3330 | // $ANTLR start "ruleQualifiedNameWithWildcard" | ||
3331 | // InternalCftLanguage.g:1285:1: ruleQualifiedNameWithWildcard returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) ; | ||
3332 | public final AntlrDatatypeRuleToken ruleQualifiedNameWithWildcard() throws RecognitionException { | ||
3333 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); | ||
3334 | |||
3335 | Token kw=null; | ||
3336 | AntlrDatatypeRuleToken this_QualifiedName_0 = null; | ||
3337 | |||
3338 | |||
3339 | |||
3340 | enterRule(); | ||
3341 | |||
3342 | try { | ||
3343 | // InternalCftLanguage.g:1291:2: ( (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) ) | ||
3344 | // InternalCftLanguage.g:1292:2: (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) | ||
3345 | { | ||
3346 | // InternalCftLanguage.g:1292:2: (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) | ||
3347 | // InternalCftLanguage.g:1293:3: this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? | ||
3348 | { | ||
3349 | |||
3350 | newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); | ||
3351 | |||
3352 | pushFollow(FOLLOW_31); | ||
3353 | this_QualifiedName_0=ruleQualifiedName(); | ||
3354 | |||
3355 | state._fsp--; | ||
3356 | |||
3357 | |||
3358 | current.merge(this_QualifiedName_0); | ||
3359 | |||
3360 | |||
3361 | afterParserOrEnumRuleCall(); | ||
3362 | |||
3363 | // InternalCftLanguage.g:1303:3: (kw= '.' kw= '*' )? | ||
3364 | int alt25=2; | ||
3365 | int LA25_0 = input.LA(1); | ||
3366 | |||
3367 | if ( (LA25_0==35) ) { | ||
3368 | alt25=1; | ||
3369 | } | ||
3370 | switch (alt25) { | ||
3371 | case 1 : | ||
3372 | // InternalCftLanguage.g:1304:4: kw= '.' kw= '*' | ||
3373 | { | ||
3374 | kw=(Token)match(input,35,FOLLOW_32); | ||
3375 | |||
3376 | current.merge(kw); | ||
3377 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1_0()); | ||
3378 | |||
3379 | kw=(Token)match(input,37,FOLLOW_2); | ||
3380 | |||
3381 | current.merge(kw); | ||
3382 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_1_1()); | ||
3383 | |||
3384 | |||
3385 | } | ||
3386 | break; | ||
3387 | |||
3388 | } | ||
3389 | |||
3390 | |||
3391 | } | ||
3392 | |||
3393 | |||
3394 | } | ||
3395 | |||
3396 | |||
3397 | leaveRule(); | ||
3398 | |||
3399 | } | ||
3400 | |||
3401 | catch (RecognitionException re) { | ||
3402 | recover(input,re); | ||
3403 | appendSkippedTokens(); | ||
3404 | } | ||
3405 | finally { | ||
3406 | } | ||
3407 | return current; | ||
3408 | } | ||
3409 | // $ANTLR end "ruleQualifiedNameWithWildcard" | ||
3410 | |||
3411 | // Delegated rules | ||
3412 | |||
3413 | |||
3414 | |||
3415 | |||
3416 | public static final BitSet FOLLOW_1 = new BitSet(new long[]{0x0000000000000000L}); | ||
3417 | public static final BitSet FOLLOW_2 = new BitSet(new long[]{0x0000000000000002L}); | ||
3418 | public static final BitSet FOLLOW_3 = new BitSet(new long[]{0x0000000000000010L}); | ||
3419 | public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x000000000200E002L}); | ||
3420 | public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x000000000200C002L}); | ||
3421 | public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000002008002L}); | ||
3422 | public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000002002L}); | ||
3423 | public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000010000L}); | ||
3424 | public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x00000000000E0010L}); | ||
3425 | public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000002010L}); | ||
3426 | public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000000002000L}); | ||
3427 | public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000000080010L}); | ||
3428 | public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000000100002L}); | ||
3429 | public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000000200000L}); | ||
3430 | public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000000400000L}); | ||
3431 | public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000000000020L}); | ||
3432 | public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000000000800000L}); | ||
3433 | public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000000000012L}); | ||
3434 | public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0000000001000000L}); | ||
3435 | public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x000000000C080000L}); | ||
3436 | public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000000008000000L}); | ||
3437 | public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0000000010000000L}); | ||
3438 | public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000000060000000L}); | ||
3439 | public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000001000010002L}); | ||
3440 | public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0000000000010002L}); | ||
3441 | public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000000080080010L}); | ||
3442 | public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0000000100000000L}); | ||
3443 | public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0000000600000000L}); | ||
3444 | public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0000000080000010L}); | ||
3445 | public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x0000000800000000L}); | ||
3446 | public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0000000800000002L}); | ||
3447 | public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x0000002000000000L}); | ||
3448 | |||
3449 | } | ||