diff options
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal')
4 files changed, 6717 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/InternalCftLanguage.g b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.g new file mode 100644 index 00000000..ff509b0a --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.g | |||
@@ -0,0 +1,1332 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | grammar InternalCftLanguage; | ||
5 | |||
6 | options { | ||
7 | superClass=AbstractInternalAntlrParser; | ||
8 | } | ||
9 | |||
10 | @lexer::header { | ||
11 | package hu.bme.mit.inf.dslreasoner.faulttree.components.parser.antlr.internal; | ||
12 | |||
13 | // Hack: Use our own Lexer superclass by means of import. | ||
14 | // Currently there is no other way to specify the superclass for the lexer. | ||
15 | import org.eclipse.xtext.parser.antlr.Lexer; | ||
16 | } | ||
17 | |||
18 | @parser::header { | ||
19 | package hu.bme.mit.inf.dslreasoner.faulttree.components.parser.antlr.internal; | ||
20 | |||
21 | import org.eclipse.xtext.*; | ||
22 | import org.eclipse.xtext.parser.*; | ||
23 | import org.eclipse.xtext.parser.impl.*; | ||
24 | import org.eclipse.emf.ecore.util.EcoreUtil; | ||
25 | import org.eclipse.emf.ecore.EObject; | ||
26 | import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser; | ||
27 | import org.eclipse.xtext.parser.antlr.XtextTokenStream; | ||
28 | import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; | ||
29 | import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; | ||
30 | import hu.bme.mit.inf.dslreasoner.faulttree.components.services.CftLanguageGrammarAccess; | ||
31 | |||
32 | } | ||
33 | |||
34 | @parser::members { | ||
35 | |||
36 | private CftLanguageGrammarAccess grammarAccess; | ||
37 | |||
38 | public InternalCftLanguageParser(TokenStream input, CftLanguageGrammarAccess grammarAccess) { | ||
39 | this(input); | ||
40 | this.grammarAccess = grammarAccess; | ||
41 | registerRules(grammarAccess.getGrammar()); | ||
42 | } | ||
43 | |||
44 | @Override | ||
45 | protected String getFirstRuleName() { | ||
46 | return "CftModel"; | ||
47 | } | ||
48 | |||
49 | @Override | ||
50 | protected CftLanguageGrammarAccess getGrammarAccess() { | ||
51 | return grammarAccess; | ||
52 | } | ||
53 | |||
54 | } | ||
55 | |||
56 | @rulecatch { | ||
57 | catch (RecognitionException re) { | ||
58 | recover(input,re); | ||
59 | appendSkippedTokens(); | ||
60 | } | ||
61 | } | ||
62 | |||
63 | // Entry rule entryRuleCftModel | ||
64 | entryRuleCftModel returns [EObject current=null]: | ||
65 | { newCompositeNode(grammarAccess.getCftModelRule()); } | ||
66 | iv_ruleCftModel=ruleCftModel | ||
67 | { $current=$iv_ruleCftModel.current; } | ||
68 | EOF; | ||
69 | |||
70 | // Rule CftModel | ||
71 | ruleCftModel returns [EObject current=null] | ||
72 | @init { | ||
73 | enterRule(); | ||
74 | } | ||
75 | @after { | ||
76 | leaveRule(); | ||
77 | }: | ||
78 | ( | ||
79 | otherlv_0='package' | ||
80 | { | ||
81 | newLeafNode(otherlv_0, grammarAccess.getCftModelAccess().getPackageKeyword_0()); | ||
82 | } | ||
83 | ( | ||
84 | ( | ||
85 | { | ||
86 | newCompositeNode(grammarAccess.getCftModelAccess().getPackageNameQualifiedNameParserRuleCall_1_0()); | ||
87 | } | ||
88 | lv_packageName_1_0=ruleQualifiedName | ||
89 | { | ||
90 | if ($current==null) { | ||
91 | $current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
92 | } | ||
93 | set( | ||
94 | $current, | ||
95 | "packageName", | ||
96 | lv_packageName_1_0, | ||
97 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.QualifiedName"); | ||
98 | afterParserOrEnumRuleCall(); | ||
99 | } | ||
100 | ) | ||
101 | ) | ||
102 | ( | ||
103 | otherlv_2=';' | ||
104 | { | ||
105 | newLeafNode(otherlv_2, grammarAccess.getCftModelAccess().getSemicolonKeyword_2()); | ||
106 | } | ||
107 | )? | ||
108 | ( | ||
109 | ( | ||
110 | { | ||
111 | newCompositeNode(grammarAccess.getCftModelAccess().getImportsImportDeclarationParserRuleCall_3_0()); | ||
112 | } | ||
113 | lv_imports_3_0=ruleImportDeclaration | ||
114 | { | ||
115 | if ($current==null) { | ||
116 | $current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
117 | } | ||
118 | add( | ||
119 | $current, | ||
120 | "imports", | ||
121 | lv_imports_3_0, | ||
122 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ImportDeclaration"); | ||
123 | afterParserOrEnumRuleCall(); | ||
124 | } | ||
125 | ) | ||
126 | )* | ||
127 | ( | ||
128 | ( | ||
129 | ( | ||
130 | { | ||
131 | newCompositeNode(grammarAccess.getCftModelAccess().getComponentDefinitionsComponentDefinitionParserRuleCall_4_0_0()); | ||
132 | } | ||
133 | lv_componentDefinitions_4_0=ruleComponentDefinition | ||
134 | { | ||
135 | if ($current==null) { | ||
136 | $current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
137 | } | ||
138 | add( | ||
139 | $current, | ||
140 | "componentDefinitions", | ||
141 | lv_componentDefinitions_4_0, | ||
142 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ComponentDefinition"); | ||
143 | afterParserOrEnumRuleCall(); | ||
144 | } | ||
145 | ) | ||
146 | ) | ||
147 | | | ||
148 | ( | ||
149 | ( | ||
150 | { | ||
151 | newCompositeNode(grammarAccess.getCftModelAccess().getTransformationDefinitionsTransformationDefinitionParserRuleCall_4_1_0()); | ||
152 | } | ||
153 | lv_transformationDefinitions_5_0=ruleTransformationDefinition | ||
154 | { | ||
155 | if ($current==null) { | ||
156 | $current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
157 | } | ||
158 | add( | ||
159 | $current, | ||
160 | "transformationDefinitions", | ||
161 | lv_transformationDefinitions_5_0, | ||
162 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.TransformationDefinition"); | ||
163 | afterParserOrEnumRuleCall(); | ||
164 | } | ||
165 | ) | ||
166 | ) | ||
167 | )* | ||
168 | ) | ||
169 | ; | ||
170 | |||
171 | // Entry rule entryRuleImportDeclaration | ||
172 | entryRuleImportDeclaration returns [EObject current=null]: | ||
173 | { newCompositeNode(grammarAccess.getImportDeclarationRule()); } | ||
174 | iv_ruleImportDeclaration=ruleImportDeclaration | ||
175 | { $current=$iv_ruleImportDeclaration.current; } | ||
176 | EOF; | ||
177 | |||
178 | // Rule ImportDeclaration | ||
179 | ruleImportDeclaration returns [EObject current=null] | ||
180 | @init { | ||
181 | enterRule(); | ||
182 | } | ||
183 | @after { | ||
184 | leaveRule(); | ||
185 | }: | ||
186 | ( | ||
187 | otherlv_0='import' | ||
188 | { | ||
189 | newLeafNode(otherlv_0, grammarAccess.getImportDeclarationAccess().getImportKeyword_0()); | ||
190 | } | ||
191 | ( | ||
192 | ( | ||
193 | { | ||
194 | newCompositeNode(grammarAccess.getImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_0()); | ||
195 | } | ||
196 | lv_importedNamespace_1_0=ruleQualifiedNameWithWildcard | ||
197 | { | ||
198 | if ($current==null) { | ||
199 | $current = createModelElementForParent(grammarAccess.getImportDeclarationRule()); | ||
200 | } | ||
201 | set( | ||
202 | $current, | ||
203 | "importedNamespace", | ||
204 | lv_importedNamespace_1_0, | ||
205 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.QualifiedNameWithWildcard"); | ||
206 | afterParserOrEnumRuleCall(); | ||
207 | } | ||
208 | ) | ||
209 | ) | ||
210 | ( | ||
211 | otherlv_2=';' | ||
212 | { | ||
213 | newLeafNode(otherlv_2, grammarAccess.getImportDeclarationAccess().getSemicolonKeyword_2()); | ||
214 | } | ||
215 | )? | ||
216 | ) | ||
217 | ; | ||
218 | |||
219 | // Entry rule entryRuleComponentDefinition | ||
220 | entryRuleComponentDefinition returns [EObject current=null]: | ||
221 | { newCompositeNode(grammarAccess.getComponentDefinitionRule()); } | ||
222 | iv_ruleComponentDefinition=ruleComponentDefinition | ||
223 | { $current=$iv_ruleComponentDefinition.current; } | ||
224 | EOF; | ||
225 | |||
226 | // Rule ComponentDefinition | ||
227 | ruleComponentDefinition returns [EObject current=null] | ||
228 | @init { | ||
229 | enterRule(); | ||
230 | } | ||
231 | @after { | ||
232 | leaveRule(); | ||
233 | }: | ||
234 | ( | ||
235 | otherlv_0='cft' | ||
236 | { | ||
237 | newLeafNode(otherlv_0, grammarAccess.getComponentDefinitionAccess().getCftKeyword_0()); | ||
238 | } | ||
239 | ( | ||
240 | ( | ||
241 | lv_name_1_0=RULE_ID | ||
242 | { | ||
243 | newLeafNode(lv_name_1_0, grammarAccess.getComponentDefinitionAccess().getNameIDTerminalRuleCall_1_0()); | ||
244 | } | ||
245 | { | ||
246 | if ($current==null) { | ||
247 | $current = createModelElement(grammarAccess.getComponentDefinitionRule()); | ||
248 | } | ||
249 | setWithLastConsumed( | ||
250 | $current, | ||
251 | "name", | ||
252 | lv_name_1_0, | ||
253 | "org.eclipse.xtext.common.Terminals.ID"); | ||
254 | } | ||
255 | ) | ||
256 | ) | ||
257 | otherlv_2='{' | ||
258 | { | ||
259 | newLeafNode(otherlv_2, grammarAccess.getComponentDefinitionAccess().getLeftCurlyBracketKeyword_2()); | ||
260 | } | ||
261 | ( | ||
262 | ( | ||
263 | { | ||
264 | getUnorderedGroupHelper().enter(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
265 | } | ||
266 | ( | ||
267 | ( | ||
268 | ( | ||
269 | {getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0)}?=>( | ||
270 | { | ||
271 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0); | ||
272 | } | ||
273 | ({true}?=>(otherlv_4='in' | ||
274 | { | ||
275 | newLeafNode(otherlv_4, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()); | ||
276 | } | ||
277 | ( | ||
278 | ( | ||
279 | { | ||
280 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getInputEventsInputEventParserRuleCall_3_0_1_0()); | ||
281 | } | ||
282 | lv_inputEvents_5_0=ruleInputEvent | ||
283 | { | ||
284 | if ($current==null) { | ||
285 | $current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); | ||
286 | } | ||
287 | add( | ||
288 | $current, | ||
289 | "inputEvents", | ||
290 | lv_inputEvents_5_0, | ||
291 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.InputEvent"); | ||
292 | afterParserOrEnumRuleCall(); | ||
293 | } | ||
294 | ) | ||
295 | )* | ||
296 | otherlv_6=';' | ||
297 | { | ||
298 | newLeafNode(otherlv_6, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()); | ||
299 | } | ||
300 | )) | ||
301 | { | ||
302 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
303 | } | ||
304 | ) | ||
305 | )| | ||
306 | ( | ||
307 | {getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1)}?=>( | ||
308 | { | ||
309 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1); | ||
310 | } | ||
311 | ({true}?=>(otherlv_7='out' | ||
312 | { | ||
313 | newLeafNode(otherlv_7, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()); | ||
314 | } | ||
315 | ( | ||
316 | ( | ||
317 | { | ||
318 | if ($current==null) { | ||
319 | $current = createModelElement(grammarAccess.getComponentDefinitionRule()); | ||
320 | } | ||
321 | } | ||
322 | otherlv_8=RULE_ID | ||
323 | { | ||
324 | newLeafNode(otherlv_8, grammarAccess.getComponentDefinitionAccess().getOutputEventsEventDeclarationCrossReference_3_1_1_0()); | ||
325 | } | ||
326 | ) | ||
327 | )* | ||
328 | otherlv_9=';' | ||
329 | { | ||
330 | newLeafNode(otherlv_9, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()); | ||
331 | } | ||
332 | )) | ||
333 | { | ||
334 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
335 | } | ||
336 | ) | ||
337 | ) | ||
338 | )* | ||
339 | ) | ||
340 | ) | ||
341 | { | ||
342 | getUnorderedGroupHelper().leave(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
343 | } | ||
344 | ) | ||
345 | ( | ||
346 | ( | ||
347 | ( | ||
348 | { | ||
349 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getEventDefinitionsEventDefinitionParserRuleCall_4_0_0()); | ||
350 | } | ||
351 | lv_eventDefinitions_10_0=ruleEventDefinition | ||
352 | { | ||
353 | if ($current==null) { | ||
354 | $current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); | ||
355 | } | ||
356 | add( | ||
357 | $current, | ||
358 | "eventDefinitions", | ||
359 | lv_eventDefinitions_10_0, | ||
360 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventDefinition"); | ||
361 | afterParserOrEnumRuleCall(); | ||
362 | } | ||
363 | ) | ||
364 | ) | ||
365 | otherlv_11=';' | ||
366 | { | ||
367 | newLeafNode(otherlv_11, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_4_1()); | ||
368 | } | ||
369 | )* | ||
370 | otherlv_12='}' | ||
371 | { | ||
372 | newLeafNode(otherlv_12, grammarAccess.getComponentDefinitionAccess().getRightCurlyBracketKeyword_5()); | ||
373 | } | ||
374 | ) | ||
375 | ; | ||
376 | |||
377 | // Entry rule entryRuleInputEvent | ||
378 | entryRuleInputEvent returns [EObject current=null]: | ||
379 | { newCompositeNode(grammarAccess.getInputEventRule()); } | ||
380 | iv_ruleInputEvent=ruleInputEvent | ||
381 | { $current=$iv_ruleInputEvent.current; } | ||
382 | EOF; | ||
383 | |||
384 | // Rule InputEvent | ||
385 | ruleInputEvent returns [EObject current=null] | ||
386 | @init { | ||
387 | enterRule(); | ||
388 | } | ||
389 | @after { | ||
390 | leaveRule(); | ||
391 | }: | ||
392 | ( | ||
393 | ( | ||
394 | ( | ||
395 | lv_name_0_0=RULE_ID | ||
396 | { | ||
397 | newLeafNode(lv_name_0_0, grammarAccess.getInputEventAccess().getNameIDTerminalRuleCall_0_0()); | ||
398 | } | ||
399 | { | ||
400 | if ($current==null) { | ||
401 | $current = createModelElement(grammarAccess.getInputEventRule()); | ||
402 | } | ||
403 | setWithLastConsumed( | ||
404 | $current, | ||
405 | "name", | ||
406 | lv_name_0_0, | ||
407 | "org.eclipse.xtext.common.Terminals.ID"); | ||
408 | } | ||
409 | ) | ||
410 | ) | ||
411 | ( | ||
412 | ( | ||
413 | lv_multiple_1_0='[]' | ||
414 | { | ||
415 | newLeafNode(lv_multiple_1_0, grammarAccess.getInputEventAccess().getMultipleLeftSquareBracketRightSquareBracketKeyword_1_0()); | ||
416 | } | ||
417 | { | ||
418 | if ($current==null) { | ||
419 | $current = createModelElement(grammarAccess.getInputEventRule()); | ||
420 | } | ||
421 | setWithLastConsumed($current, "multiple", true, "[]"); | ||
422 | } | ||
423 | ) | ||
424 | )? | ||
425 | ) | ||
426 | ; | ||
427 | |||
428 | // Entry rule entryRuleEventDefinition | ||
429 | entryRuleEventDefinition returns [EObject current=null]: | ||
430 | { newCompositeNode(grammarAccess.getEventDefinitionRule()); } | ||
431 | iv_ruleEventDefinition=ruleEventDefinition | ||
432 | { $current=$iv_ruleEventDefinition.current; } | ||
433 | EOF; | ||
434 | |||
435 | // Rule EventDefinition | ||
436 | ruleEventDefinition returns [EObject current=null] | ||
437 | @init { | ||
438 | enterRule(); | ||
439 | } | ||
440 | @after { | ||
441 | leaveRule(); | ||
442 | }: | ||
443 | ( | ||
444 | { | ||
445 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getBasicEventDefinitionParserRuleCall_0()); | ||
446 | } | ||
447 | this_BasicEventDefinition_0=ruleBasicEventDefinition | ||
448 | { | ||
449 | $current = $this_BasicEventDefinition_0.current; | ||
450 | afterParserOrEnumRuleCall(); | ||
451 | } | ||
452 | | | ||
453 | { | ||
454 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getGateDefinitionParserRuleCall_1()); | ||
455 | } | ||
456 | this_GateDefinition_1=ruleGateDefinition | ||
457 | { | ||
458 | $current = $this_GateDefinition_1.current; | ||
459 | afterParserOrEnumRuleCall(); | ||
460 | } | ||
461 | ) | ||
462 | ; | ||
463 | |||
464 | // Entry rule entryRuleBasicEventDefinition | ||
465 | entryRuleBasicEventDefinition returns [EObject current=null]: | ||
466 | { newCompositeNode(grammarAccess.getBasicEventDefinitionRule()); } | ||
467 | iv_ruleBasicEventDefinition=ruleBasicEventDefinition | ||
468 | { $current=$iv_ruleBasicEventDefinition.current; } | ||
469 | EOF; | ||
470 | |||
471 | // Rule BasicEventDefinition | ||
472 | ruleBasicEventDefinition returns [EObject current=null] | ||
473 | @init { | ||
474 | enterRule(); | ||
475 | } | ||
476 | @after { | ||
477 | leaveRule(); | ||
478 | }: | ||
479 | ( | ||
480 | ( | ||
481 | ( | ||
482 | lv_name_0_0=RULE_ID | ||
483 | { | ||
484 | newLeafNode(lv_name_0_0, grammarAccess.getBasicEventDefinitionAccess().getNameIDTerminalRuleCall_0_0()); | ||
485 | } | ||
486 | { | ||
487 | if ($current==null) { | ||
488 | $current = createModelElement(grammarAccess.getBasicEventDefinitionRule()); | ||
489 | } | ||
490 | setWithLastConsumed( | ||
491 | $current, | ||
492 | "name", | ||
493 | lv_name_0_0, | ||
494 | "org.eclipse.xtext.common.Terminals.ID"); | ||
495 | } | ||
496 | ) | ||
497 | ) | ||
498 | otherlv_1='lambda' | ||
499 | { | ||
500 | newLeafNode(otherlv_1, grammarAccess.getBasicEventDefinitionAccess().getLambdaKeyword_1()); | ||
501 | } | ||
502 | otherlv_2='=' | ||
503 | { | ||
504 | newLeafNode(otherlv_2, grammarAccess.getBasicEventDefinitionAccess().getEqualsSignKeyword_2()); | ||
505 | } | ||
506 | ( | ||
507 | ( | ||
508 | lv_rate_3_0=RULE_DOULBE | ||
509 | { | ||
510 | newLeafNode(lv_rate_3_0, grammarAccess.getBasicEventDefinitionAccess().getRateDOULBETerminalRuleCall_3_0()); | ||
511 | } | ||
512 | { | ||
513 | if ($current==null) { | ||
514 | $current = createModelElement(grammarAccess.getBasicEventDefinitionRule()); | ||
515 | } | ||
516 | setWithLastConsumed( | ||
517 | $current, | ||
518 | "rate", | ||
519 | lv_rate_3_0, | ||
520 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.DOULBE"); | ||
521 | } | ||
522 | ) | ||
523 | ) | ||
524 | ) | ||
525 | ; | ||
526 | |||
527 | // Entry rule entryRuleGateDefinition | ||
528 | entryRuleGateDefinition returns [EObject current=null]: | ||
529 | { newCompositeNode(grammarAccess.getGateDefinitionRule()); } | ||
530 | iv_ruleGateDefinition=ruleGateDefinition | ||
531 | { $current=$iv_ruleGateDefinition.current; } | ||
532 | EOF; | ||
533 | |||
534 | // Rule GateDefinition | ||
535 | ruleGateDefinition returns [EObject current=null] | ||
536 | @init { | ||
537 | enterRule(); | ||
538 | } | ||
539 | @after { | ||
540 | leaveRule(); | ||
541 | }: | ||
542 | ( | ||
543 | { | ||
544 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getAndGateParserRuleCall_0()); | ||
545 | } | ||
546 | this_AndGate_0=ruleAndGate | ||
547 | { | ||
548 | $current = $this_AndGate_0.current; | ||
549 | afterParserOrEnumRuleCall(); | ||
550 | } | ||
551 | | | ||
552 | { | ||
553 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getOrGateParserRuleCall_1()); | ||
554 | } | ||
555 | this_OrGate_1=ruleOrGate | ||
556 | { | ||
557 | $current = $this_OrGate_1.current; | ||
558 | afterParserOrEnumRuleCall(); | ||
559 | } | ||
560 | ) | ||
561 | ; | ||
562 | |||
563 | // Entry rule entryRuleAndGate | ||
564 | entryRuleAndGate returns [EObject current=null]: | ||
565 | { newCompositeNode(grammarAccess.getAndGateRule()); } | ||
566 | iv_ruleAndGate=ruleAndGate | ||
567 | { $current=$iv_ruleAndGate.current; } | ||
568 | EOF; | ||
569 | |||
570 | // Rule AndGate | ||
571 | ruleAndGate returns [EObject current=null] | ||
572 | @init { | ||
573 | enterRule(); | ||
574 | } | ||
575 | @after { | ||
576 | leaveRule(); | ||
577 | }: | ||
578 | ( | ||
579 | ( | ||
580 | ( | ||
581 | lv_name_0_0=RULE_ID | ||
582 | { | ||
583 | newLeafNode(lv_name_0_0, grammarAccess.getAndGateAccess().getNameIDTerminalRuleCall_0_0()); | ||
584 | } | ||
585 | { | ||
586 | if ($current==null) { | ||
587 | $current = createModelElement(grammarAccess.getAndGateRule()); | ||
588 | } | ||
589 | setWithLastConsumed( | ||
590 | $current, | ||
591 | "name", | ||
592 | lv_name_0_0, | ||
593 | "org.eclipse.xtext.common.Terminals.ID"); | ||
594 | } | ||
595 | ) | ||
596 | ) | ||
597 | otherlv_1='and' | ||
598 | { | ||
599 | newLeafNode(otherlv_1, grammarAccess.getAndGateAccess().getAndKeyword_1()); | ||
600 | } | ||
601 | ( | ||
602 | ( | ||
603 | { | ||
604 | if ($current==null) { | ||
605 | $current = createModelElement(grammarAccess.getAndGateRule()); | ||
606 | } | ||
607 | } | ||
608 | otherlv_2=RULE_ID | ||
609 | { | ||
610 | newLeafNode(otherlv_2, grammarAccess.getAndGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); | ||
611 | } | ||
612 | ) | ||
613 | )* | ||
614 | ) | ||
615 | ; | ||
616 | |||
617 | // Entry rule entryRuleOrGate | ||
618 | entryRuleOrGate returns [EObject current=null]: | ||
619 | { newCompositeNode(grammarAccess.getOrGateRule()); } | ||
620 | iv_ruleOrGate=ruleOrGate | ||
621 | { $current=$iv_ruleOrGate.current; } | ||
622 | EOF; | ||
623 | |||
624 | // Rule OrGate | ||
625 | ruleOrGate returns [EObject current=null] | ||
626 | @init { | ||
627 | enterRule(); | ||
628 | } | ||
629 | @after { | ||
630 | leaveRule(); | ||
631 | }: | ||
632 | ( | ||
633 | ( | ||
634 | ( | ||
635 | lv_name_0_0=RULE_ID | ||
636 | { | ||
637 | newLeafNode(lv_name_0_0, grammarAccess.getOrGateAccess().getNameIDTerminalRuleCall_0_0()); | ||
638 | } | ||
639 | { | ||
640 | if ($current==null) { | ||
641 | $current = createModelElement(grammarAccess.getOrGateRule()); | ||
642 | } | ||
643 | setWithLastConsumed( | ||
644 | $current, | ||
645 | "name", | ||
646 | lv_name_0_0, | ||
647 | "org.eclipse.xtext.common.Terminals.ID"); | ||
648 | } | ||
649 | ) | ||
650 | ) | ||
651 | otherlv_1='or' | ||
652 | { | ||
653 | newLeafNode(otherlv_1, grammarAccess.getOrGateAccess().getOrKeyword_1()); | ||
654 | } | ||
655 | ( | ||
656 | ( | ||
657 | { | ||
658 | if ($current==null) { | ||
659 | $current = createModelElement(grammarAccess.getOrGateRule()); | ||
660 | } | ||
661 | } | ||
662 | otherlv_2=RULE_ID | ||
663 | { | ||
664 | newLeafNode(otherlv_2, grammarAccess.getOrGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); | ||
665 | } | ||
666 | ) | ||
667 | )* | ||
668 | ) | ||
669 | ; | ||
670 | |||
671 | // Entry rule entryRuleTransformationDefinition | ||
672 | entryRuleTransformationDefinition returns [EObject current=null]: | ||
673 | { newCompositeNode(grammarAccess.getTransformationDefinitionRule()); } | ||
674 | iv_ruleTransformationDefinition=ruleTransformationDefinition | ||
675 | { $current=$iv_ruleTransformationDefinition.current; } | ||
676 | EOF; | ||
677 | |||
678 | // Rule TransformationDefinition | ||
679 | ruleTransformationDefinition returns [EObject current=null] | ||
680 | @init { | ||
681 | enterRule(); | ||
682 | } | ||
683 | @after { | ||
684 | leaveRule(); | ||
685 | }: | ||
686 | ( | ||
687 | otherlv_0='transformation' | ||
688 | { | ||
689 | newLeafNode(otherlv_0, grammarAccess.getTransformationDefinitionAccess().getTransformationKeyword_0()); | ||
690 | } | ||
691 | ( | ||
692 | ( | ||
693 | lv_name_1_0=RULE_ID | ||
694 | { | ||
695 | newLeafNode(lv_name_1_0, grammarAccess.getTransformationDefinitionAccess().getNameIDTerminalRuleCall_1_0()); | ||
696 | } | ||
697 | { | ||
698 | if ($current==null) { | ||
699 | $current = createModelElement(grammarAccess.getTransformationDefinitionRule()); | ||
700 | } | ||
701 | setWithLastConsumed( | ||
702 | $current, | ||
703 | "name", | ||
704 | lv_name_1_0, | ||
705 | "org.eclipse.xtext.common.Terminals.ID"); | ||
706 | } | ||
707 | ) | ||
708 | ) | ||
709 | otherlv_2='{' | ||
710 | { | ||
711 | newLeafNode(otherlv_2, grammarAccess.getTransformationDefinitionAccess().getLeftCurlyBracketKeyword_2()); | ||
712 | } | ||
713 | ( | ||
714 | ( | ||
715 | { | ||
716 | newCompositeNode(grammarAccess.getTransformationDefinitionAccess().getMappingDefinitionsMappingDefinitionParserRuleCall_3_0()); | ||
717 | } | ||
718 | lv_mappingDefinitions_3_0=ruleMappingDefinition | ||
719 | { | ||
720 | if ($current==null) { | ||
721 | $current = createModelElementForParent(grammarAccess.getTransformationDefinitionRule()); | ||
722 | } | ||
723 | add( | ||
724 | $current, | ||
725 | "mappingDefinitions", | ||
726 | lv_mappingDefinitions_3_0, | ||
727 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingDefinition"); | ||
728 | afterParserOrEnumRuleCall(); | ||
729 | } | ||
730 | ) | ||
731 | )* | ||
732 | otherlv_4='}' | ||
733 | { | ||
734 | newLeafNode(otherlv_4, grammarAccess.getTransformationDefinitionAccess().getRightCurlyBracketKeyword_4()); | ||
735 | } | ||
736 | ) | ||
737 | ; | ||
738 | |||
739 | // Entry rule entryRuleMappingDefinition | ||
740 | entryRuleMappingDefinition returns [EObject current=null]: | ||
741 | { newCompositeNode(grammarAccess.getMappingDefinitionRule()); } | ||
742 | iv_ruleMappingDefinition=ruleMappingDefinition | ||
743 | { $current=$iv_ruleMappingDefinition.current; } | ||
744 | EOF; | ||
745 | |||
746 | // Rule MappingDefinition | ||
747 | ruleMappingDefinition returns [EObject current=null] | ||
748 | @init { | ||
749 | enterRule(); | ||
750 | } | ||
751 | @after { | ||
752 | leaveRule(); | ||
753 | }: | ||
754 | ( | ||
755 | ( | ||
756 | ( | ||
757 | lv_topLevel_0_0='toplevel' | ||
758 | { | ||
759 | newLeafNode(lv_topLevel_0_0, grammarAccess.getMappingDefinitionAccess().getTopLevelToplevelKeyword_0_0()); | ||
760 | } | ||
761 | { | ||
762 | if ($current==null) { | ||
763 | $current = createModelElement(grammarAccess.getMappingDefinitionRule()); | ||
764 | } | ||
765 | setWithLastConsumed($current, "topLevel", true, "toplevel"); | ||
766 | } | ||
767 | ) | ||
768 | )? | ||
769 | otherlv_1='mapping' | ||
770 | { | ||
771 | newLeafNode(otherlv_1, grammarAccess.getMappingDefinitionAccess().getMappingKeyword_1()); | ||
772 | } | ||
773 | ( | ||
774 | ( | ||
775 | { | ||
776 | if ($current==null) { | ||
777 | $current = createModelElement(grammarAccess.getMappingDefinitionRule()); | ||
778 | } | ||
779 | } | ||
780 | { | ||
781 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getPatternPatternCrossReference_2_0()); | ||
782 | } | ||
783 | ruleQualifiedName | ||
784 | { | ||
785 | afterParserOrEnumRuleCall(); | ||
786 | } | ||
787 | ) | ||
788 | ) | ||
789 | otherlv_3='(' | ||
790 | { | ||
791 | newLeafNode(otherlv_3, grammarAccess.getMappingDefinitionAccess().getLeftParenthesisKeyword_3()); | ||
792 | } | ||
793 | ( | ||
794 | ( | ||
795 | { | ||
796 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_4_0()); | ||
797 | } | ||
798 | lv_parameters_4_0=ruleMappingParameter | ||
799 | { | ||
800 | if ($current==null) { | ||
801 | $current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
802 | } | ||
803 | add( | ||
804 | $current, | ||
805 | "parameters", | ||
806 | lv_parameters_4_0, | ||
807 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingParameter"); | ||
808 | afterParserOrEnumRuleCall(); | ||
809 | } | ||
810 | ) | ||
811 | ) | ||
812 | ( | ||
813 | otherlv_5=',' | ||
814 | { | ||
815 | newLeafNode(otherlv_5, grammarAccess.getMappingDefinitionAccess().getCommaKeyword_5_0()); | ||
816 | } | ||
817 | ( | ||
818 | ( | ||
819 | { | ||
820 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_5_1_0()); | ||
821 | } | ||
822 | lv_parameters_6_0=ruleMappingParameter | ||
823 | { | ||
824 | if ($current==null) { | ||
825 | $current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
826 | } | ||
827 | add( | ||
828 | $current, | ||
829 | "parameters", | ||
830 | lv_parameters_6_0, | ||
831 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingParameter"); | ||
832 | afterParserOrEnumRuleCall(); | ||
833 | } | ||
834 | ) | ||
835 | ) | ||
836 | )* | ||
837 | otherlv_7=')' | ||
838 | { | ||
839 | newLeafNode(otherlv_7, grammarAccess.getMappingDefinitionAccess().getRightParenthesisKeyword_6()); | ||
840 | } | ||
841 | ( | ||
842 | ( | ||
843 | { | ||
844 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getComponentInstanceComponentInstanceParserRuleCall_7_0()); | ||
845 | } | ||
846 | lv_componentInstance_8_0=ruleComponentInstance | ||
847 | { | ||
848 | if ($current==null) { | ||
849 | $current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
850 | } | ||
851 | set( | ||
852 | $current, | ||
853 | "componentInstance", | ||
854 | lv_componentInstance_8_0, | ||
855 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ComponentInstance"); | ||
856 | afterParserOrEnumRuleCall(); | ||
857 | } | ||
858 | ) | ||
859 | )? | ||
860 | ( | ||
861 | otherlv_9='{' | ||
862 | { | ||
863 | newLeafNode(otherlv_9, grammarAccess.getMappingDefinitionAccess().getLeftCurlyBracketKeyword_8_0()); | ||
864 | } | ||
865 | ( | ||
866 | ( | ||
867 | ( | ||
868 | ( | ||
869 | { | ||
870 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0()); | ||
871 | } | ||
872 | lv_lookupDefinitions_10_0=ruleLookupDefinition | ||
873 | { | ||
874 | if ($current==null) { | ||
875 | $current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
876 | } | ||
877 | add( | ||
878 | $current, | ||
879 | "lookupDefinitions", | ||
880 | lv_lookupDefinitions_10_0, | ||
881 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.LookupDefinition"); | ||
882 | afterParserOrEnumRuleCall(); | ||
883 | } | ||
884 | ) | ||
885 | ) | ||
886 | | | ||
887 | ( | ||
888 | ( | ||
889 | { | ||
890 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getAssignmentsAssignmentParserRuleCall_8_1_0_1_0()); | ||
891 | } | ||
892 | lv_assignments_11_0=ruleAssignment | ||
893 | { | ||
894 | if ($current==null) { | ||
895 | $current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
896 | } | ||
897 | add( | ||
898 | $current, | ||
899 | "assignments", | ||
900 | lv_assignments_11_0, | ||
901 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Assignment"); | ||
902 | afterParserOrEnumRuleCall(); | ||
903 | } | ||
904 | ) | ||
905 | ) | ||
906 | ) | ||
907 | otherlv_12=';' | ||
908 | { | ||
909 | newLeafNode(otherlv_12, grammarAccess.getMappingDefinitionAccess().getSemicolonKeyword_8_1_1()); | ||
910 | } | ||
911 | )* | ||
912 | otherlv_13='}' | ||
913 | { | ||
914 | newLeafNode(otherlv_13, grammarAccess.getMappingDefinitionAccess().getRightCurlyBracketKeyword_8_2()); | ||
915 | } | ||
916 | )? | ||
917 | ) | ||
918 | ; | ||
919 | |||
920 | // Entry rule entryRuleMappingParameter | ||
921 | entryRuleMappingParameter returns [EObject current=null]: | ||
922 | { newCompositeNode(grammarAccess.getMappingParameterRule()); } | ||
923 | iv_ruleMappingParameter=ruleMappingParameter | ||
924 | { $current=$iv_ruleMappingParameter.current; } | ||
925 | EOF; | ||
926 | |||
927 | // Rule MappingParameter | ||
928 | ruleMappingParameter returns [EObject current=null] | ||
929 | @init { | ||
930 | enterRule(); | ||
931 | } | ||
932 | @after { | ||
933 | leaveRule(); | ||
934 | }: | ||
935 | ( | ||
936 | ( | ||
937 | lv_name_0_0=RULE_ID | ||
938 | { | ||
939 | newLeafNode(lv_name_0_0, grammarAccess.getMappingParameterAccess().getNameIDTerminalRuleCall_0()); | ||
940 | } | ||
941 | { | ||
942 | if ($current==null) { | ||
943 | $current = createModelElement(grammarAccess.getMappingParameterRule()); | ||
944 | } | ||
945 | setWithLastConsumed( | ||
946 | $current, | ||
947 | "name", | ||
948 | lv_name_0_0, | ||
949 | "org.eclipse.xtext.common.Terminals.ID"); | ||
950 | } | ||
951 | ) | ||
952 | ) | ||
953 | ; | ||
954 | |||
955 | // Entry rule entryRuleLookupDefinition | ||
956 | entryRuleLookupDefinition returns [EObject current=null]: | ||
957 | { newCompositeNode(grammarAccess.getLookupDefinitionRule()); } | ||
958 | iv_ruleLookupDefinition=ruleLookupDefinition | ||
959 | { $current=$iv_ruleLookupDefinition.current; } | ||
960 | EOF; | ||
961 | |||
962 | // Rule LookupDefinition | ||
963 | ruleLookupDefinition returns [EObject current=null] | ||
964 | @init { | ||
965 | enterRule(); | ||
966 | } | ||
967 | @after { | ||
968 | leaveRule(); | ||
969 | }: | ||
970 | ( | ||
971 | otherlv_0='lookup' | ||
972 | { | ||
973 | newLeafNode(otherlv_0, grammarAccess.getLookupDefinitionAccess().getLookupKeyword_0()); | ||
974 | } | ||
975 | ( | ||
976 | ( | ||
977 | { | ||
978 | if ($current==null) { | ||
979 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
980 | } | ||
981 | } | ||
982 | otherlv_1=RULE_ID | ||
983 | { | ||
984 | newLeafNode(otherlv_1, grammarAccess.getLookupDefinitionAccess().getMappingMappingDefinitionCrossReference_1_0()); | ||
985 | } | ||
986 | ) | ||
987 | ) | ||
988 | otherlv_2='(' | ||
989 | { | ||
990 | newLeafNode(otherlv_2, grammarAccess.getLookupDefinitionAccess().getLeftParenthesisKeyword_2()); | ||
991 | } | ||
992 | ( | ||
993 | ( | ||
994 | { | ||
995 | if ($current==null) { | ||
996 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
997 | } | ||
998 | } | ||
999 | otherlv_3=RULE_ID | ||
1000 | { | ||
1001 | newLeafNode(otherlv_3, grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_3_0()); | ||
1002 | } | ||
1003 | ) | ||
1004 | ) | ||
1005 | ( | ||
1006 | otherlv_4=',' | ||
1007 | { | ||
1008 | newLeafNode(otherlv_4, grammarAccess.getLookupDefinitionAccess().getCommaKeyword_4_0()); | ||
1009 | } | ||
1010 | ( | ||
1011 | ( | ||
1012 | { | ||
1013 | if ($current==null) { | ||
1014 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
1015 | } | ||
1016 | } | ||
1017 | otherlv_5=RULE_ID | ||
1018 | { | ||
1019 | newLeafNode(otherlv_5, grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_4_1_0()); | ||
1020 | } | ||
1021 | ) | ||
1022 | ) | ||
1023 | )* | ||
1024 | otherlv_6=')' | ||
1025 | { | ||
1026 | newLeafNode(otherlv_6, grammarAccess.getLookupDefinitionAccess().getRightParenthesisKeyword_5()); | ||
1027 | } | ||
1028 | otherlv_7='as' | ||
1029 | { | ||
1030 | newLeafNode(otherlv_7, grammarAccess.getLookupDefinitionAccess().getAsKeyword_6()); | ||
1031 | } | ||
1032 | ( | ||
1033 | ( | ||
1034 | lv_name_8_0=RULE_ID | ||
1035 | { | ||
1036 | newLeafNode(lv_name_8_0, grammarAccess.getLookupDefinitionAccess().getNameIDTerminalRuleCall_7_0()); | ||
1037 | } | ||
1038 | { | ||
1039 | if ($current==null) { | ||
1040 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
1041 | } | ||
1042 | setWithLastConsumed( | ||
1043 | $current, | ||
1044 | "name", | ||
1045 | lv_name_8_0, | ||
1046 | "org.eclipse.xtext.common.Terminals.ID"); | ||
1047 | } | ||
1048 | ) | ||
1049 | ) | ||
1050 | ) | ||
1051 | ; | ||
1052 | |||
1053 | // Entry rule entryRuleAssignment | ||
1054 | entryRuleAssignment returns [EObject current=null]: | ||
1055 | { newCompositeNode(grammarAccess.getAssignmentRule()); } | ||
1056 | iv_ruleAssignment=ruleAssignment | ||
1057 | { $current=$iv_ruleAssignment.current; } | ||
1058 | EOF; | ||
1059 | |||
1060 | // Rule Assignment | ||
1061 | ruleAssignment returns [EObject current=null] | ||
1062 | @init { | ||
1063 | enterRule(); | ||
1064 | } | ||
1065 | @after { | ||
1066 | leaveRule(); | ||
1067 | }: | ||
1068 | ( | ||
1069 | ( | ||
1070 | ( | ||
1071 | { | ||
1072 | newCompositeNode(grammarAccess.getAssignmentAccess().getInputEventReferenceParserRuleCall_0_0()); | ||
1073 | } | ||
1074 | lv_input_0_0=ruleEventReference | ||
1075 | { | ||
1076 | if ($current==null) { | ||
1077 | $current = createModelElementForParent(grammarAccess.getAssignmentRule()); | ||
1078 | } | ||
1079 | set( | ||
1080 | $current, | ||
1081 | "input", | ||
1082 | lv_input_0_0, | ||
1083 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventReference"); | ||
1084 | afterParserOrEnumRuleCall(); | ||
1085 | } | ||
1086 | ) | ||
1087 | ) | ||
1088 | ( | ||
1089 | ( | ||
1090 | ( | ||
1091 | lv_multiple_1_0='+=' | ||
1092 | { | ||
1093 | newLeafNode(lv_multiple_1_0, grammarAccess.getAssignmentAccess().getMultiplePlusSignEqualsSignKeyword_1_0_0()); | ||
1094 | } | ||
1095 | { | ||
1096 | if ($current==null) { | ||
1097 | $current = createModelElement(grammarAccess.getAssignmentRule()); | ||
1098 | } | ||
1099 | setWithLastConsumed($current, "multiple", true, "+="); | ||
1100 | } | ||
1101 | ) | ||
1102 | ) | ||
1103 | | | ||
1104 | otherlv_2=':=' | ||
1105 | { | ||
1106 | newLeafNode(otherlv_2, grammarAccess.getAssignmentAccess().getColonEqualsSignKeyword_1_1()); | ||
1107 | } | ||
1108 | ) | ||
1109 | ( | ||
1110 | ( | ||
1111 | { | ||
1112 | newCompositeNode(grammarAccess.getAssignmentAccess().getOutputEventReferenceParserRuleCall_2_0()); | ||
1113 | } | ||
1114 | lv_output_3_0=ruleEventReference | ||
1115 | { | ||
1116 | if ($current==null) { | ||
1117 | $current = createModelElementForParent(grammarAccess.getAssignmentRule()); | ||
1118 | } | ||
1119 | set( | ||
1120 | $current, | ||
1121 | "output", | ||
1122 | lv_output_3_0, | ||
1123 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventReference"); | ||
1124 | afterParserOrEnumRuleCall(); | ||
1125 | } | ||
1126 | ) | ||
1127 | ) | ||
1128 | ) | ||
1129 | ; | ||
1130 | |||
1131 | // Entry rule entryRuleEventReference | ||
1132 | entryRuleEventReference returns [EObject current=null]: | ||
1133 | { newCompositeNode(grammarAccess.getEventReferenceRule()); } | ||
1134 | iv_ruleEventReference=ruleEventReference | ||
1135 | { $current=$iv_ruleEventReference.current; } | ||
1136 | EOF; | ||
1137 | |||
1138 | // Rule EventReference | ||
1139 | ruleEventReference returns [EObject current=null] | ||
1140 | @init { | ||
1141 | enterRule(); | ||
1142 | } | ||
1143 | @after { | ||
1144 | leaveRule(); | ||
1145 | }: | ||
1146 | ( | ||
1147 | ( | ||
1148 | ( | ||
1149 | { | ||
1150 | if ($current==null) { | ||
1151 | $current = createModelElement(grammarAccess.getEventReferenceRule()); | ||
1152 | } | ||
1153 | } | ||
1154 | otherlv_0=RULE_ID | ||
1155 | { | ||
1156 | newLeafNode(otherlv_0, grammarAccess.getEventReferenceAccess().getComponentVariableCrossReference_0_0()); | ||
1157 | } | ||
1158 | ) | ||
1159 | ) | ||
1160 | otherlv_1='.' | ||
1161 | { | ||
1162 | newLeafNode(otherlv_1, grammarAccess.getEventReferenceAccess().getFullStopKeyword_1()); | ||
1163 | } | ||
1164 | ( | ||
1165 | ( | ||
1166 | { | ||
1167 | if ($current==null) { | ||
1168 | $current = createModelElement(grammarAccess.getEventReferenceRule()); | ||
1169 | } | ||
1170 | } | ||
1171 | otherlv_2=RULE_ID | ||
1172 | { | ||
1173 | newLeafNode(otherlv_2, grammarAccess.getEventReferenceAccess().getEventEventDeclarationCrossReference_2_0()); | ||
1174 | } | ||
1175 | ) | ||
1176 | ) | ||
1177 | ) | ||
1178 | ; | ||
1179 | |||
1180 | // Entry rule entryRuleComponentInstance | ||
1181 | entryRuleComponentInstance returns [EObject current=null]: | ||
1182 | { newCompositeNode(grammarAccess.getComponentInstanceRule()); } | ||
1183 | iv_ruleComponentInstance=ruleComponentInstance | ||
1184 | { $current=$iv_ruleComponentInstance.current; } | ||
1185 | EOF; | ||
1186 | |||
1187 | // Rule ComponentInstance | ||
1188 | ruleComponentInstance returns [EObject current=null] | ||
1189 | @init { | ||
1190 | enterRule(); | ||
1191 | } | ||
1192 | @after { | ||
1193 | leaveRule(); | ||
1194 | }: | ||
1195 | ( | ||
1196 | otherlv_0='=>' | ||
1197 | { | ||
1198 | newLeafNode(otherlv_0, grammarAccess.getComponentInstanceAccess().getEqualsSignGreaterThanSignKeyword_0()); | ||
1199 | } | ||
1200 | ( | ||
1201 | ( | ||
1202 | { | ||
1203 | if ($current==null) { | ||
1204 | $current = createModelElement(grammarAccess.getComponentInstanceRule()); | ||
1205 | } | ||
1206 | } | ||
1207 | { | ||
1208 | newCompositeNode(grammarAccess.getComponentInstanceAccess().getComponentTypeComponentDefinitionCrossReference_1_0()); | ||
1209 | } | ||
1210 | ruleQualifiedName | ||
1211 | { | ||
1212 | afterParserOrEnumRuleCall(); | ||
1213 | } | ||
1214 | ) | ||
1215 | ) | ||
1216 | ( | ||
1217 | ( | ||
1218 | lv_name_2_0=RULE_ID | ||
1219 | { | ||
1220 | newLeafNode(lv_name_2_0, grammarAccess.getComponentInstanceAccess().getNameIDTerminalRuleCall_2_0()); | ||
1221 | } | ||
1222 | { | ||
1223 | if ($current==null) { | ||
1224 | $current = createModelElement(grammarAccess.getComponentInstanceRule()); | ||
1225 | } | ||
1226 | setWithLastConsumed( | ||
1227 | $current, | ||
1228 | "name", | ||
1229 | lv_name_2_0, | ||
1230 | "org.eclipse.xtext.common.Terminals.ID"); | ||
1231 | } | ||
1232 | ) | ||
1233 | )? | ||
1234 | ) | ||
1235 | ; | ||
1236 | |||
1237 | // Entry rule entryRuleQualifiedName | ||
1238 | entryRuleQualifiedName returns [String current=null]: | ||
1239 | { newCompositeNode(grammarAccess.getQualifiedNameRule()); } | ||
1240 | iv_ruleQualifiedName=ruleQualifiedName | ||
1241 | { $current=$iv_ruleQualifiedName.current.getText(); } | ||
1242 | EOF; | ||
1243 | |||
1244 | // Rule QualifiedName | ||
1245 | ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] | ||
1246 | @init { | ||
1247 | enterRule(); | ||
1248 | } | ||
1249 | @after { | ||
1250 | leaveRule(); | ||
1251 | }: | ||
1252 | ( | ||
1253 | this_ID_0=RULE_ID | ||
1254 | { | ||
1255 | $current.merge(this_ID_0); | ||
1256 | } | ||
1257 | { | ||
1258 | newLeafNode(this_ID_0, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); | ||
1259 | } | ||
1260 | ( | ||
1261 | kw='.' | ||
1262 | { | ||
1263 | $current.merge(kw); | ||
1264 | newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); | ||
1265 | } | ||
1266 | this_ID_2=RULE_ID | ||
1267 | { | ||
1268 | $current.merge(this_ID_2); | ||
1269 | } | ||
1270 | { | ||
1271 | newLeafNode(this_ID_2, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); | ||
1272 | } | ||
1273 | )* | ||
1274 | ) | ||
1275 | ; | ||
1276 | |||
1277 | // Entry rule entryRuleQualifiedNameWithWildcard | ||
1278 | entryRuleQualifiedNameWithWildcard returns [String current=null]: | ||
1279 | { newCompositeNode(grammarAccess.getQualifiedNameWithWildcardRule()); } | ||
1280 | iv_ruleQualifiedNameWithWildcard=ruleQualifiedNameWithWildcard | ||
1281 | { $current=$iv_ruleQualifiedNameWithWildcard.current.getText(); } | ||
1282 | EOF; | ||
1283 | |||
1284 | // Rule QualifiedNameWithWildcard | ||
1285 | ruleQualifiedNameWithWildcard returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] | ||
1286 | @init { | ||
1287 | enterRule(); | ||
1288 | } | ||
1289 | @after { | ||
1290 | leaveRule(); | ||
1291 | }: | ||
1292 | ( | ||
1293 | { | ||
1294 | newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); | ||
1295 | } | ||
1296 | this_QualifiedName_0=ruleQualifiedName | ||
1297 | { | ||
1298 | $current.merge(this_QualifiedName_0); | ||
1299 | } | ||
1300 | { | ||
1301 | afterParserOrEnumRuleCall(); | ||
1302 | } | ||
1303 | ( | ||
1304 | kw='.' | ||
1305 | { | ||
1306 | $current.merge(kw); | ||
1307 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1_0()); | ||
1308 | } | ||
1309 | kw='*' | ||
1310 | { | ||
1311 | $current.merge(kw); | ||
1312 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_1_1()); | ||
1313 | } | ||
1314 | )? | ||
1315 | ) | ||
1316 | ; | ||
1317 | |||
1318 | RULE_DOULBE : ('0'..'9')+ ('.' ('0'..'9')+|('.' ('0'..'9')+)? ('e'|'E') ('+'|'-')? ('0'..'9')+); | ||
1319 | |||
1320 | RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; | ||
1321 | |||
1322 | RULE_INT : ('0'..'9')+; | ||
1323 | |||
1324 | RULE_STRING : ('"' ('\\' .|~(('\\'|'"')))* '"'|'\'' ('\\' .|~(('\\'|'\'')))* '\''); | ||
1325 | |||
1326 | RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/'; | ||
1327 | |||
1328 | RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?; | ||
1329 | |||
1330 | RULE_WS : (' '|'\t'|'\r'|'\n')+; | ||
1331 | |||
1332 | RULE_ANY_OTHER : .; | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.tokens b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.tokens new file mode 100644 index 00000000..1c8b296f --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.tokens | |||
@@ -0,0 +1,60 @@ | |||
1 | '('=28 | ||
2 | ')'=30 | ||
3 | '*'=37 | ||
4 | '+='=33 | ||
5 | ','=29 | ||
6 | '.'=35 | ||
7 | ':='=34 | ||
8 | ';'=13 | ||
9 | '='=22 | ||
10 | '=>'=36 | ||
11 | '[]'=20 | ||
12 | 'and'=23 | ||
13 | 'as'=32 | ||
14 | 'cft'=15 | ||
15 | 'import'=14 | ||
16 | 'in'=17 | ||
17 | 'lambda'=21 | ||
18 | 'lookup'=31 | ||
19 | 'mapping'=27 | ||
20 | 'or'=24 | ||
21 | 'out'=18 | ||
22 | 'package'=12 | ||
23 | 'toplevel'=26 | ||
24 | 'transformation'=25 | ||
25 | '{'=16 | ||
26 | '}'=19 | ||
27 | RULE_ANY_OTHER=11 | ||
28 | RULE_DOULBE=5 | ||
29 | RULE_ID=4 | ||
30 | RULE_INT=6 | ||
31 | RULE_ML_COMMENT=8 | ||
32 | RULE_SL_COMMENT=9 | ||
33 | RULE_STRING=7 | ||
34 | RULE_WS=10 | ||
35 | T__12=12 | ||
36 | T__13=13 | ||
37 | T__14=14 | ||
38 | T__15=15 | ||
39 | T__16=16 | ||
40 | T__17=17 | ||
41 | T__18=18 | ||
42 | T__19=19 | ||
43 | T__20=20 | ||
44 | T__21=21 | ||
45 | T__22=22 | ||
46 | T__23=23 | ||
47 | T__24=24 | ||
48 | T__25=25 | ||
49 | T__26=26 | ||
50 | T__27=27 | ||
51 | T__28=28 | ||
52 | T__29=29 | ||
53 | T__30=30 | ||
54 | T__31=31 | ||
55 | T__32=32 | ||
56 | T__33=33 | ||
57 | T__34=34 | ||
58 | T__35=35 | ||
59 | T__36=36 | ||
60 | T__37=37 | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageLexer.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageLexer.java new file mode 100644 index 00000000..22a96234 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageLexer.java | |||
@@ -0,0 +1,1876 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.faulttree.components.parser.antlr.internal; | ||
2 | |||
3 | // Hack: Use our own Lexer superclass by means of import. | ||
4 | // Currently there is no other way to specify the superclass for the lexer. | ||
5 | import org.eclipse.xtext.parser.antlr.Lexer; | ||
6 | |||
7 | |||
8 | import org.antlr.runtime.*; | ||
9 | import java.util.Stack; | ||
10 | import java.util.List; | ||
11 | import java.util.ArrayList; | ||
12 | |||
13 | @SuppressWarnings("all") | ||
14 | public class InternalCftLanguageLexer extends Lexer { | ||
15 | public static final int RULE_STRING=7; | ||
16 | public static final int RULE_SL_COMMENT=9; | ||
17 | public static final int T__19=19; | ||
18 | public static final int T__15=15; | ||
19 | public static final int T__37=37; | ||
20 | public static final int T__16=16; | ||
21 | public static final int T__17=17; | ||
22 | public static final int T__18=18; | ||
23 | public static final int T__33=33; | ||
24 | public static final int T__12=12; | ||
25 | public static final int T__34=34; | ||
26 | public static final int T__13=13; | ||
27 | public static final int T__35=35; | ||
28 | public static final int T__14=14; | ||
29 | public static final int T__36=36; | ||
30 | public static final int EOF=-1; | ||
31 | public static final int T__30=30; | ||
32 | public static final int T__31=31; | ||
33 | public static final int T__32=32; | ||
34 | public static final int RULE_ID=4; | ||
35 | public static final int RULE_WS=10; | ||
36 | public static final int RULE_DOULBE=5; | ||
37 | public static final int RULE_ANY_OTHER=11; | ||
38 | public static final int T__26=26; | ||
39 | public static final int T__27=27; | ||
40 | public static final int T__28=28; | ||
41 | public static final int RULE_INT=6; | ||
42 | public static final int T__29=29; | ||
43 | public static final int T__22=22; | ||
44 | public static final int RULE_ML_COMMENT=8; | ||
45 | public static final int T__23=23; | ||
46 | public static final int T__24=24; | ||
47 | public static final int T__25=25; | ||
48 | public static final int T__20=20; | ||
49 | public static final int T__21=21; | ||
50 | |||
51 | // delegates | ||
52 | // delegators | ||
53 | |||
54 | public InternalCftLanguageLexer() {;} | ||
55 | public InternalCftLanguageLexer(CharStream input) { | ||
56 | this(input, new RecognizerSharedState()); | ||
57 | } | ||
58 | public InternalCftLanguageLexer(CharStream input, RecognizerSharedState state) { | ||
59 | super(input,state); | ||
60 | |||
61 | } | ||
62 | public String getGrammarFileName() { return "InternalCftLanguage.g"; } | ||
63 | |||
64 | // $ANTLR start "T__12" | ||
65 | public final void mT__12() throws RecognitionException { | ||
66 | try { | ||
67 | int _type = T__12; | ||
68 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
69 | // InternalCftLanguage.g:11:7: ( 'package' ) | ||
70 | // InternalCftLanguage.g:11:9: 'package' | ||
71 | { | ||
72 | match("package"); | ||
73 | |||
74 | |||
75 | } | ||
76 | |||
77 | state.type = _type; | ||
78 | state.channel = _channel; | ||
79 | } | ||
80 | finally { | ||
81 | } | ||
82 | } | ||
83 | // $ANTLR end "T__12" | ||
84 | |||
85 | // $ANTLR start "T__13" | ||
86 | public final void mT__13() throws RecognitionException { | ||
87 | try { | ||
88 | int _type = T__13; | ||
89 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
90 | // InternalCftLanguage.g:12:7: ( ';' ) | ||
91 | // InternalCftLanguage.g:12:9: ';' | ||
92 | { | ||
93 | match(';'); | ||
94 | |||
95 | } | ||
96 | |||
97 | state.type = _type; | ||
98 | state.channel = _channel; | ||
99 | } | ||
100 | finally { | ||
101 | } | ||
102 | } | ||
103 | // $ANTLR end "T__13" | ||
104 | |||
105 | // $ANTLR start "T__14" | ||
106 | public final void mT__14() throws RecognitionException { | ||
107 | try { | ||
108 | int _type = T__14; | ||
109 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
110 | // InternalCftLanguage.g:13:7: ( 'import' ) | ||
111 | // InternalCftLanguage.g:13:9: 'import' | ||
112 | { | ||
113 | match("import"); | ||
114 | |||
115 | |||
116 | } | ||
117 | |||
118 | state.type = _type; | ||
119 | state.channel = _channel; | ||
120 | } | ||
121 | finally { | ||
122 | } | ||
123 | } | ||
124 | // $ANTLR end "T__14" | ||
125 | |||
126 | // $ANTLR start "T__15" | ||
127 | public final void mT__15() throws RecognitionException { | ||
128 | try { | ||
129 | int _type = T__15; | ||
130 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
131 | // InternalCftLanguage.g:14:7: ( 'cft' ) | ||
132 | // InternalCftLanguage.g:14:9: 'cft' | ||
133 | { | ||
134 | match("cft"); | ||
135 | |||
136 | |||
137 | } | ||
138 | |||
139 | state.type = _type; | ||
140 | state.channel = _channel; | ||
141 | } | ||
142 | finally { | ||
143 | } | ||
144 | } | ||
145 | // $ANTLR end "T__15" | ||
146 | |||
147 | // $ANTLR start "T__16" | ||
148 | public final void mT__16() throws RecognitionException { | ||
149 | try { | ||
150 | int _type = T__16; | ||
151 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
152 | // InternalCftLanguage.g:15:7: ( '{' ) | ||
153 | // InternalCftLanguage.g:15:9: '{' | ||
154 | { | ||
155 | match('{'); | ||
156 | |||
157 | } | ||
158 | |||
159 | state.type = _type; | ||
160 | state.channel = _channel; | ||
161 | } | ||
162 | finally { | ||
163 | } | ||
164 | } | ||
165 | // $ANTLR end "T__16" | ||
166 | |||
167 | // $ANTLR start "T__17" | ||
168 | public final void mT__17() throws RecognitionException { | ||
169 | try { | ||
170 | int _type = T__17; | ||
171 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
172 | // InternalCftLanguage.g:16:7: ( 'in' ) | ||
173 | // InternalCftLanguage.g:16:9: 'in' | ||
174 | { | ||
175 | match("in"); | ||
176 | |||
177 | |||
178 | } | ||
179 | |||
180 | state.type = _type; | ||
181 | state.channel = _channel; | ||
182 | } | ||
183 | finally { | ||
184 | } | ||
185 | } | ||
186 | // $ANTLR end "T__17" | ||
187 | |||
188 | // $ANTLR start "T__18" | ||
189 | public final void mT__18() throws RecognitionException { | ||
190 | try { | ||
191 | int _type = T__18; | ||
192 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
193 | // InternalCftLanguage.g:17:7: ( 'out' ) | ||
194 | // InternalCftLanguage.g:17:9: 'out' | ||
195 | { | ||
196 | match("out"); | ||
197 | |||
198 | |||
199 | } | ||
200 | |||
201 | state.type = _type; | ||
202 | state.channel = _channel; | ||
203 | } | ||
204 | finally { | ||
205 | } | ||
206 | } | ||
207 | // $ANTLR end "T__18" | ||
208 | |||
209 | // $ANTLR start "T__19" | ||
210 | public final void mT__19() throws RecognitionException { | ||
211 | try { | ||
212 | int _type = T__19; | ||
213 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
214 | // InternalCftLanguage.g:18:7: ( '}' ) | ||
215 | // InternalCftLanguage.g:18:9: '}' | ||
216 | { | ||
217 | match('}'); | ||
218 | |||
219 | } | ||
220 | |||
221 | state.type = _type; | ||
222 | state.channel = _channel; | ||
223 | } | ||
224 | finally { | ||
225 | } | ||
226 | } | ||
227 | // $ANTLR end "T__19" | ||
228 | |||
229 | // $ANTLR start "T__20" | ||
230 | public final void mT__20() throws RecognitionException { | ||
231 | try { | ||
232 | int _type = T__20; | ||
233 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
234 | // InternalCftLanguage.g:19:7: ( '[]' ) | ||
235 | // InternalCftLanguage.g:19:9: '[]' | ||
236 | { | ||
237 | match("[]"); | ||
238 | |||
239 | |||
240 | } | ||
241 | |||
242 | state.type = _type; | ||
243 | state.channel = _channel; | ||
244 | } | ||
245 | finally { | ||
246 | } | ||
247 | } | ||
248 | // $ANTLR end "T__20" | ||
249 | |||
250 | // $ANTLR start "T__21" | ||
251 | public final void mT__21() throws RecognitionException { | ||
252 | try { | ||
253 | int _type = T__21; | ||
254 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
255 | // InternalCftLanguage.g:20:7: ( 'lambda' ) | ||
256 | // InternalCftLanguage.g:20:9: 'lambda' | ||
257 | { | ||
258 | match("lambda"); | ||
259 | |||
260 | |||
261 | } | ||
262 | |||
263 | state.type = _type; | ||
264 | state.channel = _channel; | ||
265 | } | ||
266 | finally { | ||
267 | } | ||
268 | } | ||
269 | // $ANTLR end "T__21" | ||
270 | |||
271 | // $ANTLR start "T__22" | ||
272 | public final void mT__22() throws RecognitionException { | ||
273 | try { | ||
274 | int _type = T__22; | ||
275 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
276 | // InternalCftLanguage.g:21:7: ( '=' ) | ||
277 | // InternalCftLanguage.g:21:9: '=' | ||
278 | { | ||
279 | match('='); | ||
280 | |||
281 | } | ||
282 | |||
283 | state.type = _type; | ||
284 | state.channel = _channel; | ||
285 | } | ||
286 | finally { | ||
287 | } | ||
288 | } | ||
289 | // $ANTLR end "T__22" | ||
290 | |||
291 | // $ANTLR start "T__23" | ||
292 | public final void mT__23() throws RecognitionException { | ||
293 | try { | ||
294 | int _type = T__23; | ||
295 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
296 | // InternalCftLanguage.g:22:7: ( 'and' ) | ||
297 | // InternalCftLanguage.g:22:9: 'and' | ||
298 | { | ||
299 | match("and"); | ||
300 | |||
301 | |||
302 | } | ||
303 | |||
304 | state.type = _type; | ||
305 | state.channel = _channel; | ||
306 | } | ||
307 | finally { | ||
308 | } | ||
309 | } | ||
310 | // $ANTLR end "T__23" | ||
311 | |||
312 | // $ANTLR start "T__24" | ||
313 | public final void mT__24() throws RecognitionException { | ||
314 | try { | ||
315 | int _type = T__24; | ||
316 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
317 | // InternalCftLanguage.g:23:7: ( 'or' ) | ||
318 | // InternalCftLanguage.g:23:9: 'or' | ||
319 | { | ||
320 | match("or"); | ||
321 | |||
322 | |||
323 | } | ||
324 | |||
325 | state.type = _type; | ||
326 | state.channel = _channel; | ||
327 | } | ||
328 | finally { | ||
329 | } | ||
330 | } | ||
331 | // $ANTLR end "T__24" | ||
332 | |||
333 | // $ANTLR start "T__25" | ||
334 | public final void mT__25() throws RecognitionException { | ||
335 | try { | ||
336 | int _type = T__25; | ||
337 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
338 | // InternalCftLanguage.g:24:7: ( 'transformation' ) | ||
339 | // InternalCftLanguage.g:24:9: 'transformation' | ||
340 | { | ||
341 | match("transformation"); | ||
342 | |||
343 | |||
344 | } | ||
345 | |||
346 | state.type = _type; | ||
347 | state.channel = _channel; | ||
348 | } | ||
349 | finally { | ||
350 | } | ||
351 | } | ||
352 | // $ANTLR end "T__25" | ||
353 | |||
354 | // $ANTLR start "T__26" | ||
355 | public final void mT__26() throws RecognitionException { | ||
356 | try { | ||
357 | int _type = T__26; | ||
358 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
359 | // InternalCftLanguage.g:25:7: ( 'toplevel' ) | ||
360 | // InternalCftLanguage.g:25:9: 'toplevel' | ||
361 | { | ||
362 | match("toplevel"); | ||
363 | |||
364 | |||
365 | } | ||
366 | |||
367 | state.type = _type; | ||
368 | state.channel = _channel; | ||
369 | } | ||
370 | finally { | ||
371 | } | ||
372 | } | ||
373 | // $ANTLR end "T__26" | ||
374 | |||
375 | // $ANTLR start "T__27" | ||
376 | public final void mT__27() throws RecognitionException { | ||
377 | try { | ||
378 | int _type = T__27; | ||
379 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
380 | // InternalCftLanguage.g:26:7: ( 'mapping' ) | ||
381 | // InternalCftLanguage.g:26:9: 'mapping' | ||
382 | { | ||
383 | match("mapping"); | ||
384 | |||
385 | |||
386 | } | ||
387 | |||
388 | state.type = _type; | ||
389 | state.channel = _channel; | ||
390 | } | ||
391 | finally { | ||
392 | } | ||
393 | } | ||
394 | // $ANTLR end "T__27" | ||
395 | |||
396 | // $ANTLR start "T__28" | ||
397 | public final void mT__28() throws RecognitionException { | ||
398 | try { | ||
399 | int _type = T__28; | ||
400 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
401 | // InternalCftLanguage.g:27:7: ( '(' ) | ||
402 | // InternalCftLanguage.g:27:9: '(' | ||
403 | { | ||
404 | match('('); | ||
405 | |||
406 | } | ||
407 | |||
408 | state.type = _type; | ||
409 | state.channel = _channel; | ||
410 | } | ||
411 | finally { | ||
412 | } | ||
413 | } | ||
414 | // $ANTLR end "T__28" | ||
415 | |||
416 | // $ANTLR start "T__29" | ||
417 | public final void mT__29() throws RecognitionException { | ||
418 | try { | ||
419 | int _type = T__29; | ||
420 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
421 | // InternalCftLanguage.g:28:7: ( ',' ) | ||
422 | // InternalCftLanguage.g:28:9: ',' | ||
423 | { | ||
424 | match(','); | ||
425 | |||
426 | } | ||
427 | |||
428 | state.type = _type; | ||
429 | state.channel = _channel; | ||
430 | } | ||
431 | finally { | ||
432 | } | ||
433 | } | ||
434 | // $ANTLR end "T__29" | ||
435 | |||
436 | // $ANTLR start "T__30" | ||
437 | public final void mT__30() throws RecognitionException { | ||
438 | try { | ||
439 | int _type = T__30; | ||
440 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
441 | // InternalCftLanguage.g:29:7: ( ')' ) | ||
442 | // InternalCftLanguage.g:29:9: ')' | ||
443 | { | ||
444 | match(')'); | ||
445 | |||
446 | } | ||
447 | |||
448 | state.type = _type; | ||
449 | state.channel = _channel; | ||
450 | } | ||
451 | finally { | ||
452 | } | ||
453 | } | ||
454 | // $ANTLR end "T__30" | ||
455 | |||
456 | // $ANTLR start "T__31" | ||
457 | public final void mT__31() throws RecognitionException { | ||
458 | try { | ||
459 | int _type = T__31; | ||
460 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
461 | // InternalCftLanguage.g:30:7: ( 'lookup' ) | ||
462 | // InternalCftLanguage.g:30:9: 'lookup' | ||
463 | { | ||
464 | match("lookup"); | ||
465 | |||
466 | |||
467 | } | ||
468 | |||
469 | state.type = _type; | ||
470 | state.channel = _channel; | ||
471 | } | ||
472 | finally { | ||
473 | } | ||
474 | } | ||
475 | // $ANTLR end "T__31" | ||
476 | |||
477 | // $ANTLR start "T__32" | ||
478 | public final void mT__32() throws RecognitionException { | ||
479 | try { | ||
480 | int _type = T__32; | ||
481 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
482 | // InternalCftLanguage.g:31:7: ( 'as' ) | ||
483 | // InternalCftLanguage.g:31:9: 'as' | ||
484 | { | ||
485 | match("as"); | ||
486 | |||
487 | |||
488 | } | ||
489 | |||
490 | state.type = _type; | ||
491 | state.channel = _channel; | ||
492 | } | ||
493 | finally { | ||
494 | } | ||
495 | } | ||
496 | // $ANTLR end "T__32" | ||
497 | |||
498 | // $ANTLR start "T__33" | ||
499 | public final void mT__33() throws RecognitionException { | ||
500 | try { | ||
501 | int _type = T__33; | ||
502 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
503 | // InternalCftLanguage.g:32:7: ( '+=' ) | ||
504 | // InternalCftLanguage.g:32:9: '+=' | ||
505 | { | ||
506 | match("+="); | ||
507 | |||
508 | |||
509 | } | ||
510 | |||
511 | state.type = _type; | ||
512 | state.channel = _channel; | ||
513 | } | ||
514 | finally { | ||
515 | } | ||
516 | } | ||
517 | // $ANTLR end "T__33" | ||
518 | |||
519 | // $ANTLR start "T__34" | ||
520 | public final void mT__34() throws RecognitionException { | ||
521 | try { | ||
522 | int _type = T__34; | ||
523 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
524 | // InternalCftLanguage.g:33:7: ( ':=' ) | ||
525 | // InternalCftLanguage.g:33:9: ':=' | ||
526 | { | ||
527 | match(":="); | ||
528 | |||
529 | |||
530 | } | ||
531 | |||
532 | state.type = _type; | ||
533 | state.channel = _channel; | ||
534 | } | ||
535 | finally { | ||
536 | } | ||
537 | } | ||
538 | // $ANTLR end "T__34" | ||
539 | |||
540 | // $ANTLR start "T__35" | ||
541 | public final void mT__35() throws RecognitionException { | ||
542 | try { | ||
543 | int _type = T__35; | ||
544 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
545 | // InternalCftLanguage.g:34:7: ( '.' ) | ||
546 | // InternalCftLanguage.g:34:9: '.' | ||
547 | { | ||
548 | match('.'); | ||
549 | |||
550 | } | ||
551 | |||
552 | state.type = _type; | ||
553 | state.channel = _channel; | ||
554 | } | ||
555 | finally { | ||
556 | } | ||
557 | } | ||
558 | // $ANTLR end "T__35" | ||
559 | |||
560 | // $ANTLR start "T__36" | ||
561 | public final void mT__36() throws RecognitionException { | ||
562 | try { | ||
563 | int _type = T__36; | ||
564 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
565 | // InternalCftLanguage.g:35:7: ( '=>' ) | ||
566 | // InternalCftLanguage.g:35:9: '=>' | ||
567 | { | ||
568 | match("=>"); | ||
569 | |||
570 | |||
571 | } | ||
572 | |||
573 | state.type = _type; | ||
574 | state.channel = _channel; | ||
575 | } | ||
576 | finally { | ||
577 | } | ||
578 | } | ||
579 | // $ANTLR end "T__36" | ||
580 | |||
581 | // $ANTLR start "T__37" | ||
582 | public final void mT__37() throws RecognitionException { | ||
583 | try { | ||
584 | int _type = T__37; | ||
585 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
586 | // InternalCftLanguage.g:36:7: ( '*' ) | ||
587 | // InternalCftLanguage.g:36:9: '*' | ||
588 | { | ||
589 | match('*'); | ||
590 | |||
591 | } | ||
592 | |||
593 | state.type = _type; | ||
594 | state.channel = _channel; | ||
595 | } | ||
596 | finally { | ||
597 | } | ||
598 | } | ||
599 | // $ANTLR end "T__37" | ||
600 | |||
601 | // $ANTLR start "RULE_DOULBE" | ||
602 | public final void mRULE_DOULBE() throws RecognitionException { | ||
603 | try { | ||
604 | int _type = RULE_DOULBE; | ||
605 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
606 | // InternalCftLanguage.g:1318:13: ( ( '0' .. '9' )+ ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) ) | ||
607 | // InternalCftLanguage.g:1318:15: ( '0' .. '9' )+ ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) | ||
608 | { | ||
609 | // InternalCftLanguage.g:1318:15: ( '0' .. '9' )+ | ||
610 | int cnt1=0; | ||
611 | loop1: | ||
612 | do { | ||
613 | int alt1=2; | ||
614 | int LA1_0 = input.LA(1); | ||
615 | |||
616 | if ( ((LA1_0>='0' && LA1_0<='9')) ) { | ||
617 | alt1=1; | ||
618 | } | ||
619 | |||
620 | |||
621 | switch (alt1) { | ||
622 | case 1 : | ||
623 | // InternalCftLanguage.g:1318:16: '0' .. '9' | ||
624 | { | ||
625 | matchRange('0','9'); | ||
626 | |||
627 | } | ||
628 | break; | ||
629 | |||
630 | default : | ||
631 | if ( cnt1 >= 1 ) break loop1; | ||
632 | EarlyExitException eee = | ||
633 | new EarlyExitException(1, input); | ||
634 | throw eee; | ||
635 | } | ||
636 | cnt1++; | ||
637 | } while (true); | ||
638 | |||
639 | // InternalCftLanguage.g:1318:27: ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) | ||
640 | int alt7=2; | ||
641 | alt7 = dfa7.predict(input); | ||
642 | switch (alt7) { | ||
643 | case 1 : | ||
644 | // InternalCftLanguage.g:1318:28: '.' ( '0' .. '9' )+ | ||
645 | { | ||
646 | match('.'); | ||
647 | // InternalCftLanguage.g:1318:32: ( '0' .. '9' )+ | ||
648 | int cnt2=0; | ||
649 | loop2: | ||
650 | do { | ||
651 | int alt2=2; | ||
652 | int LA2_0 = input.LA(1); | ||
653 | |||
654 | if ( ((LA2_0>='0' && LA2_0<='9')) ) { | ||
655 | alt2=1; | ||
656 | } | ||
657 | |||
658 | |||
659 | switch (alt2) { | ||
660 | case 1 : | ||
661 | // InternalCftLanguage.g:1318:33: '0' .. '9' | ||
662 | { | ||
663 | matchRange('0','9'); | ||
664 | |||
665 | } | ||
666 | break; | ||
667 | |||
668 | default : | ||
669 | if ( cnt2 >= 1 ) break loop2; | ||
670 | EarlyExitException eee = | ||
671 | new EarlyExitException(2, input); | ||
672 | throw eee; | ||
673 | } | ||
674 | cnt2++; | ||
675 | } while (true); | ||
676 | |||
677 | |||
678 | } | ||
679 | break; | ||
680 | case 2 : | ||
681 | // InternalCftLanguage.g:1318:44: ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ | ||
682 | { | ||
683 | // InternalCftLanguage.g:1318:44: ( '.' ( '0' .. '9' )+ )? | ||
684 | int alt4=2; | ||
685 | int LA4_0 = input.LA(1); | ||
686 | |||
687 | if ( (LA4_0=='.') ) { | ||
688 | alt4=1; | ||
689 | } | ||
690 | switch (alt4) { | ||
691 | case 1 : | ||
692 | // InternalCftLanguage.g:1318:45: '.' ( '0' .. '9' )+ | ||
693 | { | ||
694 | match('.'); | ||
695 | // InternalCftLanguage.g:1318:49: ( '0' .. '9' )+ | ||
696 | int cnt3=0; | ||
697 | loop3: | ||
698 | do { | ||
699 | int alt3=2; | ||
700 | int LA3_0 = input.LA(1); | ||
701 | |||
702 | if ( ((LA3_0>='0' && LA3_0<='9')) ) { | ||
703 | alt3=1; | ||
704 | } | ||
705 | |||
706 | |||
707 | switch (alt3) { | ||
708 | case 1 : | ||
709 | // InternalCftLanguage.g:1318:50: '0' .. '9' | ||
710 | { | ||
711 | matchRange('0','9'); | ||
712 | |||
713 | } | ||
714 | break; | ||
715 | |||
716 | default : | ||
717 | if ( cnt3 >= 1 ) break loop3; | ||
718 | EarlyExitException eee = | ||
719 | new EarlyExitException(3, input); | ||
720 | throw eee; | ||
721 | } | ||
722 | cnt3++; | ||
723 | } while (true); | ||
724 | |||
725 | |||
726 | } | ||
727 | break; | ||
728 | |||
729 | } | ||
730 | |||
731 | if ( input.LA(1)=='E'||input.LA(1)=='e' ) { | ||
732 | input.consume(); | ||
733 | |||
734 | } | ||
735 | else { | ||
736 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
737 | recover(mse); | ||
738 | throw mse;} | ||
739 | |||
740 | // InternalCftLanguage.g:1318:73: ( '+' | '-' )? | ||
741 | int alt5=2; | ||
742 | int LA5_0 = input.LA(1); | ||
743 | |||
744 | if ( (LA5_0=='+'||LA5_0=='-') ) { | ||
745 | alt5=1; | ||
746 | } | ||
747 | switch (alt5) { | ||
748 | case 1 : | ||
749 | // InternalCftLanguage.g: | ||
750 | { | ||
751 | if ( input.LA(1)=='+'||input.LA(1)=='-' ) { | ||
752 | input.consume(); | ||
753 | |||
754 | } | ||
755 | else { | ||
756 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
757 | recover(mse); | ||
758 | throw mse;} | ||
759 | |||
760 | |||
761 | } | ||
762 | break; | ||
763 | |||
764 | } | ||
765 | |||
766 | // InternalCftLanguage.g:1318:84: ( '0' .. '9' )+ | ||
767 | int cnt6=0; | ||
768 | loop6: | ||
769 | do { | ||
770 | int alt6=2; | ||
771 | int LA6_0 = input.LA(1); | ||
772 | |||
773 | if ( ((LA6_0>='0' && LA6_0<='9')) ) { | ||
774 | alt6=1; | ||
775 | } | ||
776 | |||
777 | |||
778 | switch (alt6) { | ||
779 | case 1 : | ||
780 | // InternalCftLanguage.g:1318:85: '0' .. '9' | ||
781 | { | ||
782 | matchRange('0','9'); | ||
783 | |||
784 | } | ||
785 | break; | ||
786 | |||
787 | default : | ||
788 | if ( cnt6 >= 1 ) break loop6; | ||
789 | EarlyExitException eee = | ||
790 | new EarlyExitException(6, input); | ||
791 | throw eee; | ||
792 | } | ||
793 | cnt6++; | ||
794 | } while (true); | ||
795 | |||
796 | |||
797 | } | ||
798 | break; | ||
799 | |||
800 | } | ||
801 | |||
802 | |||
803 | } | ||
804 | |||
805 | state.type = _type; | ||
806 | state.channel = _channel; | ||
807 | } | ||
808 | finally { | ||
809 | } | ||
810 | } | ||
811 | // $ANTLR end "RULE_DOULBE" | ||
812 | |||
813 | // $ANTLR start "RULE_ID" | ||
814 | public final void mRULE_ID() throws RecognitionException { | ||
815 | try { | ||
816 | int _type = RULE_ID; | ||
817 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
818 | // InternalCftLanguage.g:1320:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) | ||
819 | // InternalCftLanguage.g:1320:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | ||
820 | { | ||
821 | // InternalCftLanguage.g:1320:11: ( '^' )? | ||
822 | int alt8=2; | ||
823 | int LA8_0 = input.LA(1); | ||
824 | |||
825 | if ( (LA8_0=='^') ) { | ||
826 | alt8=1; | ||
827 | } | ||
828 | switch (alt8) { | ||
829 | case 1 : | ||
830 | // InternalCftLanguage.g:1320:11: '^' | ||
831 | { | ||
832 | match('^'); | ||
833 | |||
834 | } | ||
835 | break; | ||
836 | |||
837 | } | ||
838 | |||
839 | if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { | ||
840 | input.consume(); | ||
841 | |||
842 | } | ||
843 | else { | ||
844 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
845 | recover(mse); | ||
846 | throw mse;} | ||
847 | |||
848 | // InternalCftLanguage.g:1320:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | ||
849 | loop9: | ||
850 | do { | ||
851 | int alt9=2; | ||
852 | int LA9_0 = input.LA(1); | ||
853 | |||
854 | if ( ((LA9_0>='0' && LA9_0<='9')||(LA9_0>='A' && LA9_0<='Z')||LA9_0=='_'||(LA9_0>='a' && LA9_0<='z')) ) { | ||
855 | alt9=1; | ||
856 | } | ||
857 | |||
858 | |||
859 | switch (alt9) { | ||
860 | case 1 : | ||
861 | // InternalCftLanguage.g: | ||
862 | { | ||
863 | if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { | ||
864 | input.consume(); | ||
865 | |||
866 | } | ||
867 | else { | ||
868 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
869 | recover(mse); | ||
870 | throw mse;} | ||
871 | |||
872 | |||
873 | } | ||
874 | break; | ||
875 | |||
876 | default : | ||
877 | break loop9; | ||
878 | } | ||
879 | } while (true); | ||
880 | |||
881 | |||
882 | } | ||
883 | |||
884 | state.type = _type; | ||
885 | state.channel = _channel; | ||
886 | } | ||
887 | finally { | ||
888 | } | ||
889 | } | ||
890 | // $ANTLR end "RULE_ID" | ||
891 | |||
892 | // $ANTLR start "RULE_INT" | ||
893 | public final void mRULE_INT() throws RecognitionException { | ||
894 | try { | ||
895 | int _type = RULE_INT; | ||
896 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
897 | // InternalCftLanguage.g:1322:10: ( ( '0' .. '9' )+ ) | ||
898 | // InternalCftLanguage.g:1322:12: ( '0' .. '9' )+ | ||
899 | { | ||
900 | // InternalCftLanguage.g:1322:12: ( '0' .. '9' )+ | ||
901 | int cnt10=0; | ||
902 | loop10: | ||
903 | do { | ||
904 | int alt10=2; | ||
905 | int LA10_0 = input.LA(1); | ||
906 | |||
907 | if ( ((LA10_0>='0' && LA10_0<='9')) ) { | ||
908 | alt10=1; | ||
909 | } | ||
910 | |||
911 | |||
912 | switch (alt10) { | ||
913 | case 1 : | ||
914 | // InternalCftLanguage.g:1322:13: '0' .. '9' | ||
915 | { | ||
916 | matchRange('0','9'); | ||
917 | |||
918 | } | ||
919 | break; | ||
920 | |||
921 | default : | ||
922 | if ( cnt10 >= 1 ) break loop10; | ||
923 | EarlyExitException eee = | ||
924 | new EarlyExitException(10, input); | ||
925 | throw eee; | ||
926 | } | ||
927 | cnt10++; | ||
928 | } while (true); | ||
929 | |||
930 | |||
931 | } | ||
932 | |||
933 | state.type = _type; | ||
934 | state.channel = _channel; | ||
935 | } | ||
936 | finally { | ||
937 | } | ||
938 | } | ||
939 | // $ANTLR end "RULE_INT" | ||
940 | |||
941 | // $ANTLR start "RULE_STRING" | ||
942 | public final void mRULE_STRING() throws RecognitionException { | ||
943 | try { | ||
944 | int _type = RULE_STRING; | ||
945 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
946 | // InternalCftLanguage.g:1324:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) ) | ||
947 | // InternalCftLanguage.g:1324:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) | ||
948 | { | ||
949 | // InternalCftLanguage.g:1324:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) | ||
950 | int alt13=2; | ||
951 | int LA13_0 = input.LA(1); | ||
952 | |||
953 | if ( (LA13_0=='\"') ) { | ||
954 | alt13=1; | ||
955 | } | ||
956 | else if ( (LA13_0=='\'') ) { | ||
957 | alt13=2; | ||
958 | } | ||
959 | else { | ||
960 | NoViableAltException nvae = | ||
961 | new NoViableAltException("", 13, 0, input); | ||
962 | |||
963 | throw nvae; | ||
964 | } | ||
965 | switch (alt13) { | ||
966 | case 1 : | ||
967 | // InternalCftLanguage.g:1324:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | ||
968 | { | ||
969 | match('\"'); | ||
970 | // InternalCftLanguage.g:1324:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* | ||
971 | loop11: | ||
972 | do { | ||
973 | int alt11=3; | ||
974 | int LA11_0 = input.LA(1); | ||
975 | |||
976 | if ( (LA11_0=='\\') ) { | ||
977 | alt11=1; | ||
978 | } | ||
979 | else if ( ((LA11_0>='\u0000' && LA11_0<='!')||(LA11_0>='#' && LA11_0<='[')||(LA11_0>=']' && LA11_0<='\uFFFF')) ) { | ||
980 | alt11=2; | ||
981 | } | ||
982 | |||
983 | |||
984 | switch (alt11) { | ||
985 | case 1 : | ||
986 | // InternalCftLanguage.g:1324:21: '\\\\' . | ||
987 | { | ||
988 | match('\\'); | ||
989 | matchAny(); | ||
990 | |||
991 | } | ||
992 | break; | ||
993 | case 2 : | ||
994 | // InternalCftLanguage.g:1324:28: ~ ( ( '\\\\' | '\"' ) ) | ||
995 | { | ||
996 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { | ||
997 | input.consume(); | ||
998 | |||
999 | } | ||
1000 | else { | ||
1001 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
1002 | recover(mse); | ||
1003 | throw mse;} | ||
1004 | |||
1005 | |||
1006 | } | ||
1007 | break; | ||
1008 | |||
1009 | default : | ||
1010 | break loop11; | ||
1011 | } | ||
1012 | } while (true); | ||
1013 | |||
1014 | match('\"'); | ||
1015 | |||
1016 | } | ||
1017 | break; | ||
1018 | case 2 : | ||
1019 | // InternalCftLanguage.g:1324:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' | ||
1020 | { | ||
1021 | match('\''); | ||
1022 | // InternalCftLanguage.g:1324:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* | ||
1023 | loop12: | ||
1024 | do { | ||
1025 | int alt12=3; | ||
1026 | int LA12_0 = input.LA(1); | ||
1027 | |||
1028 | if ( (LA12_0=='\\') ) { | ||
1029 | alt12=1; | ||
1030 | } | ||
1031 | else if ( ((LA12_0>='\u0000' && LA12_0<='&')||(LA12_0>='(' && LA12_0<='[')||(LA12_0>=']' && LA12_0<='\uFFFF')) ) { | ||
1032 | alt12=2; | ||
1033 | } | ||
1034 | |||
1035 | |||
1036 | switch (alt12) { | ||
1037 | case 1 : | ||
1038 | // InternalCftLanguage.g:1324:54: '\\\\' . | ||
1039 | { | ||
1040 | match('\\'); | ||
1041 | matchAny(); | ||
1042 | |||
1043 | } | ||
1044 | break; | ||
1045 | case 2 : | ||
1046 | // InternalCftLanguage.g:1324:61: ~ ( ( '\\\\' | '\\'' ) ) | ||
1047 | { | ||
1048 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { | ||
1049 | input.consume(); | ||
1050 | |||
1051 | } | ||
1052 | else { | ||
1053 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
1054 | recover(mse); | ||
1055 | throw mse;} | ||
1056 | |||
1057 | |||
1058 | } | ||
1059 | break; | ||
1060 | |||
1061 | default : | ||
1062 | break loop12; | ||
1063 | } | ||
1064 | } while (true); | ||
1065 | |||
1066 | match('\''); | ||
1067 | |||
1068 | } | ||
1069 | break; | ||
1070 | |||
1071 | } | ||
1072 | |||
1073 | |||
1074 | } | ||
1075 | |||
1076 | state.type = _type; | ||
1077 | state.channel = _channel; | ||
1078 | } | ||
1079 | finally { | ||
1080 | } | ||
1081 | } | ||
1082 | // $ANTLR end "RULE_STRING" | ||
1083 | |||
1084 | // $ANTLR start "RULE_ML_COMMENT" | ||
1085 | public final void mRULE_ML_COMMENT() throws RecognitionException { | ||
1086 | try { | ||
1087 | int _type = RULE_ML_COMMENT; | ||
1088 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1089 | // InternalCftLanguage.g:1326:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) | ||
1090 | // InternalCftLanguage.g:1326:19: '/*' ( options {greedy=false; } : . )* '*/' | ||
1091 | { | ||
1092 | match("/*"); | ||
1093 | |||
1094 | // InternalCftLanguage.g:1326:24: ( options {greedy=false; } : . )* | ||
1095 | loop14: | ||
1096 | do { | ||
1097 | int alt14=2; | ||
1098 | int LA14_0 = input.LA(1); | ||
1099 | |||
1100 | if ( (LA14_0=='*') ) { | ||
1101 | int LA14_1 = input.LA(2); | ||
1102 | |||
1103 | if ( (LA14_1=='/') ) { | ||
1104 | alt14=2; | ||
1105 | } | ||
1106 | else if ( ((LA14_1>='\u0000' && LA14_1<='.')||(LA14_1>='0' && LA14_1<='\uFFFF')) ) { | ||
1107 | alt14=1; | ||
1108 | } | ||
1109 | |||
1110 | |||
1111 | } | ||
1112 | else if ( ((LA14_0>='\u0000' && LA14_0<=')')||(LA14_0>='+' && LA14_0<='\uFFFF')) ) { | ||
1113 | alt14=1; | ||
1114 | } | ||
1115 | |||
1116 | |||
1117 | switch (alt14) { | ||
1118 | case 1 : | ||
1119 | // InternalCftLanguage.g:1326:52: . | ||
1120 | { | ||
1121 | matchAny(); | ||
1122 | |||
1123 | } | ||
1124 | break; | ||
1125 | |||
1126 | default : | ||
1127 | break loop14; | ||
1128 | } | ||
1129 | } while (true); | ||
1130 | |||
1131 | match("*/"); | ||
1132 | |||
1133 | |||
1134 | } | ||
1135 | |||
1136 | state.type = _type; | ||
1137 | state.channel = _channel; | ||
1138 | } | ||
1139 | finally { | ||
1140 | } | ||
1141 | } | ||
1142 | // $ANTLR end "RULE_ML_COMMENT" | ||
1143 | |||
1144 | // $ANTLR start "RULE_SL_COMMENT" | ||
1145 | public final void mRULE_SL_COMMENT() throws RecognitionException { | ||
1146 | try { | ||
1147 | int _type = RULE_SL_COMMENT; | ||
1148 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1149 | // InternalCftLanguage.g:1328:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) | ||
1150 | // InternalCftLanguage.g:1328:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? | ||
1151 | { | ||
1152 | match("//"); | ||
1153 | |||
1154 | // InternalCftLanguage.g:1328:24: (~ ( ( '\\n' | '\\r' ) ) )* | ||
1155 | loop15: | ||
1156 | do { | ||
1157 | int alt15=2; | ||
1158 | int LA15_0 = input.LA(1); | ||
1159 | |||
1160 | if ( ((LA15_0>='\u0000' && LA15_0<='\t')||(LA15_0>='\u000B' && LA15_0<='\f')||(LA15_0>='\u000E' && LA15_0<='\uFFFF')) ) { | ||
1161 | alt15=1; | ||
1162 | } | ||
1163 | |||
1164 | |||
1165 | switch (alt15) { | ||
1166 | case 1 : | ||
1167 | // InternalCftLanguage.g:1328:24: ~ ( ( '\\n' | '\\r' ) ) | ||
1168 | { | ||
1169 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) { | ||
1170 | input.consume(); | ||
1171 | |||
1172 | } | ||
1173 | else { | ||
1174 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
1175 | recover(mse); | ||
1176 | throw mse;} | ||
1177 | |||
1178 | |||
1179 | } | ||
1180 | break; | ||
1181 | |||
1182 | default : | ||
1183 | break loop15; | ||
1184 | } | ||
1185 | } while (true); | ||
1186 | |||
1187 | // InternalCftLanguage.g:1328:40: ( ( '\\r' )? '\\n' )? | ||
1188 | int alt17=2; | ||
1189 | int LA17_0 = input.LA(1); | ||
1190 | |||
1191 | if ( (LA17_0=='\n'||LA17_0=='\r') ) { | ||
1192 | alt17=1; | ||
1193 | } | ||
1194 | switch (alt17) { | ||
1195 | case 1 : | ||
1196 | // InternalCftLanguage.g:1328:41: ( '\\r' )? '\\n' | ||
1197 | { | ||
1198 | // InternalCftLanguage.g:1328:41: ( '\\r' )? | ||
1199 | int alt16=2; | ||
1200 | int LA16_0 = input.LA(1); | ||
1201 | |||
1202 | if ( (LA16_0=='\r') ) { | ||
1203 | alt16=1; | ||
1204 | } | ||
1205 | switch (alt16) { | ||
1206 | case 1 : | ||
1207 | // InternalCftLanguage.g:1328:41: '\\r' | ||
1208 | { | ||
1209 | match('\r'); | ||
1210 | |||
1211 | } | ||
1212 | break; | ||
1213 | |||
1214 | } | ||
1215 | |||
1216 | match('\n'); | ||
1217 | |||
1218 | } | ||
1219 | break; | ||
1220 | |||
1221 | } | ||
1222 | |||
1223 | |||
1224 | } | ||
1225 | |||
1226 | state.type = _type; | ||
1227 | state.channel = _channel; | ||
1228 | } | ||
1229 | finally { | ||
1230 | } | ||
1231 | } | ||
1232 | // $ANTLR end "RULE_SL_COMMENT" | ||
1233 | |||
1234 | // $ANTLR start "RULE_WS" | ||
1235 | public final void mRULE_WS() throws RecognitionException { | ||
1236 | try { | ||
1237 | int _type = RULE_WS; | ||
1238 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1239 | // InternalCftLanguage.g:1330:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) | ||
1240 | // InternalCftLanguage.g:1330:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ | ||
1241 | { | ||
1242 | // InternalCftLanguage.g:1330:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ | ||
1243 | int cnt18=0; | ||
1244 | loop18: | ||
1245 | do { | ||
1246 | int alt18=2; | ||
1247 | int LA18_0 = input.LA(1); | ||
1248 | |||
1249 | if ( ((LA18_0>='\t' && LA18_0<='\n')||LA18_0=='\r'||LA18_0==' ') ) { | ||
1250 | alt18=1; | ||
1251 | } | ||
1252 | |||
1253 | |||
1254 | switch (alt18) { | ||
1255 | case 1 : | ||
1256 | // InternalCftLanguage.g: | ||
1257 | { | ||
1258 | if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) { | ||
1259 | input.consume(); | ||
1260 | |||
1261 | } | ||
1262 | else { | ||
1263 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
1264 | recover(mse); | ||
1265 | throw mse;} | ||
1266 | |||
1267 | |||
1268 | } | ||
1269 | break; | ||
1270 | |||
1271 | default : | ||
1272 | if ( cnt18 >= 1 ) break loop18; | ||
1273 | EarlyExitException eee = | ||
1274 | new EarlyExitException(18, input); | ||
1275 | throw eee; | ||
1276 | } | ||
1277 | cnt18++; | ||
1278 | } while (true); | ||
1279 | |||
1280 | |||
1281 | } | ||
1282 | |||
1283 | state.type = _type; | ||
1284 | state.channel = _channel; | ||
1285 | } | ||
1286 | finally { | ||
1287 | } | ||
1288 | } | ||
1289 | // $ANTLR end "RULE_WS" | ||
1290 | |||
1291 | // $ANTLR start "RULE_ANY_OTHER" | ||
1292 | public final void mRULE_ANY_OTHER() throws RecognitionException { | ||
1293 | try { | ||
1294 | int _type = RULE_ANY_OTHER; | ||
1295 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1296 | // InternalCftLanguage.g:1332:16: ( . ) | ||
1297 | // InternalCftLanguage.g:1332:18: . | ||
1298 | { | ||
1299 | matchAny(); | ||
1300 | |||
1301 | } | ||
1302 | |||
1303 | state.type = _type; | ||
1304 | state.channel = _channel; | ||
1305 | } | ||
1306 | finally { | ||
1307 | } | ||
1308 | } | ||
1309 | // $ANTLR end "RULE_ANY_OTHER" | ||
1310 | |||
1311 | public void mTokens() throws RecognitionException { | ||
1312 | // InternalCftLanguage.g:1:8: ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | RULE_DOULBE | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER ) | ||
1313 | int alt19=34; | ||
1314 | alt19 = dfa19.predict(input); | ||
1315 | switch (alt19) { | ||
1316 | case 1 : | ||
1317 | // InternalCftLanguage.g:1:10: T__12 | ||
1318 | { | ||
1319 | mT__12(); | ||
1320 | |||
1321 | } | ||
1322 | break; | ||
1323 | case 2 : | ||
1324 | // InternalCftLanguage.g:1:16: T__13 | ||
1325 | { | ||
1326 | mT__13(); | ||
1327 | |||
1328 | } | ||
1329 | break; | ||
1330 | case 3 : | ||
1331 | // InternalCftLanguage.g:1:22: T__14 | ||
1332 | { | ||
1333 | mT__14(); | ||
1334 | |||
1335 | } | ||
1336 | break; | ||
1337 | case 4 : | ||
1338 | // InternalCftLanguage.g:1:28: T__15 | ||
1339 | { | ||
1340 | mT__15(); | ||
1341 | |||
1342 | } | ||
1343 | break; | ||
1344 | case 5 : | ||
1345 | // InternalCftLanguage.g:1:34: T__16 | ||
1346 | { | ||
1347 | mT__16(); | ||
1348 | |||
1349 | } | ||
1350 | break; | ||
1351 | case 6 : | ||
1352 | // InternalCftLanguage.g:1:40: T__17 | ||
1353 | { | ||
1354 | mT__17(); | ||
1355 | |||
1356 | } | ||
1357 | break; | ||
1358 | case 7 : | ||
1359 | // InternalCftLanguage.g:1:46: T__18 | ||
1360 | { | ||
1361 | mT__18(); | ||
1362 | |||
1363 | } | ||
1364 | break; | ||
1365 | case 8 : | ||
1366 | // InternalCftLanguage.g:1:52: T__19 | ||
1367 | { | ||
1368 | mT__19(); | ||
1369 | |||
1370 | } | ||
1371 | break; | ||
1372 | case 9 : | ||
1373 | // InternalCftLanguage.g:1:58: T__20 | ||
1374 | { | ||
1375 | mT__20(); | ||
1376 | |||
1377 | } | ||
1378 | break; | ||
1379 | case 10 : | ||
1380 | // InternalCftLanguage.g:1:64: T__21 | ||
1381 | { | ||
1382 | mT__21(); | ||
1383 | |||
1384 | } | ||
1385 | break; | ||
1386 | case 11 : | ||
1387 | // InternalCftLanguage.g:1:70: T__22 | ||
1388 | { | ||
1389 | mT__22(); | ||
1390 | |||
1391 | } | ||
1392 | break; | ||
1393 | case 12 : | ||
1394 | // InternalCftLanguage.g:1:76: T__23 | ||
1395 | { | ||
1396 | mT__23(); | ||
1397 | |||
1398 | } | ||
1399 | break; | ||
1400 | case 13 : | ||
1401 | // InternalCftLanguage.g:1:82: T__24 | ||
1402 | { | ||
1403 | mT__24(); | ||
1404 | |||
1405 | } | ||
1406 | break; | ||
1407 | case 14 : | ||
1408 | // InternalCftLanguage.g:1:88: T__25 | ||
1409 | { | ||
1410 | mT__25(); | ||
1411 | |||
1412 | } | ||
1413 | break; | ||
1414 | case 15 : | ||
1415 | // InternalCftLanguage.g:1:94: T__26 | ||
1416 | { | ||
1417 | mT__26(); | ||
1418 | |||
1419 | } | ||
1420 | break; | ||
1421 | case 16 : | ||
1422 | // InternalCftLanguage.g:1:100: T__27 | ||
1423 | { | ||
1424 | mT__27(); | ||
1425 | |||
1426 | } | ||
1427 | break; | ||
1428 | case 17 : | ||
1429 | // InternalCftLanguage.g:1:106: T__28 | ||
1430 | { | ||
1431 | mT__28(); | ||
1432 | |||
1433 | } | ||
1434 | break; | ||
1435 | case 18 : | ||
1436 | // InternalCftLanguage.g:1:112: T__29 | ||
1437 | { | ||
1438 | mT__29(); | ||
1439 | |||
1440 | } | ||
1441 | break; | ||
1442 | case 19 : | ||
1443 | // InternalCftLanguage.g:1:118: T__30 | ||
1444 | { | ||
1445 | mT__30(); | ||
1446 | |||
1447 | } | ||
1448 | break; | ||
1449 | case 20 : | ||
1450 | // InternalCftLanguage.g:1:124: T__31 | ||
1451 | { | ||
1452 | mT__31(); | ||
1453 | |||
1454 | } | ||
1455 | break; | ||
1456 | case 21 : | ||
1457 | // InternalCftLanguage.g:1:130: T__32 | ||
1458 | { | ||
1459 | mT__32(); | ||
1460 | |||
1461 | } | ||
1462 | break; | ||
1463 | case 22 : | ||
1464 | // InternalCftLanguage.g:1:136: T__33 | ||
1465 | { | ||
1466 | mT__33(); | ||
1467 | |||
1468 | } | ||
1469 | break; | ||
1470 | case 23 : | ||
1471 | // InternalCftLanguage.g:1:142: T__34 | ||
1472 | { | ||
1473 | mT__34(); | ||
1474 | |||
1475 | } | ||
1476 | break; | ||
1477 | case 24 : | ||
1478 | // InternalCftLanguage.g:1:148: T__35 | ||
1479 | { | ||
1480 | mT__35(); | ||
1481 | |||
1482 | } | ||
1483 | break; | ||
1484 | case 25 : | ||
1485 | // InternalCftLanguage.g:1:154: T__36 | ||
1486 | { | ||
1487 | mT__36(); | ||
1488 | |||
1489 | } | ||
1490 | break; | ||
1491 | case 26 : | ||
1492 | // InternalCftLanguage.g:1:160: T__37 | ||
1493 | { | ||
1494 | mT__37(); | ||
1495 | |||
1496 | } | ||
1497 | break; | ||
1498 | case 27 : | ||
1499 | // InternalCftLanguage.g:1:166: RULE_DOULBE | ||
1500 | { | ||
1501 | mRULE_DOULBE(); | ||
1502 | |||
1503 | } | ||
1504 | break; | ||
1505 | case 28 : | ||
1506 | // InternalCftLanguage.g:1:178: RULE_ID | ||
1507 | { | ||
1508 | mRULE_ID(); | ||
1509 | |||
1510 | } | ||
1511 | break; | ||
1512 | case 29 : | ||
1513 | // InternalCftLanguage.g:1:186: RULE_INT | ||
1514 | { | ||
1515 | mRULE_INT(); | ||
1516 | |||
1517 | } | ||
1518 | break; | ||
1519 | case 30 : | ||
1520 | // InternalCftLanguage.g:1:195: RULE_STRING | ||
1521 | { | ||
1522 | mRULE_STRING(); | ||
1523 | |||
1524 | } | ||
1525 | break; | ||
1526 | case 31 : | ||
1527 | // InternalCftLanguage.g:1:207: RULE_ML_COMMENT | ||
1528 | { | ||
1529 | mRULE_ML_COMMENT(); | ||
1530 | |||
1531 | } | ||
1532 | break; | ||
1533 | case 32 : | ||
1534 | // InternalCftLanguage.g:1:223: RULE_SL_COMMENT | ||
1535 | { | ||
1536 | mRULE_SL_COMMENT(); | ||
1537 | |||
1538 | } | ||
1539 | break; | ||
1540 | case 33 : | ||
1541 | // InternalCftLanguage.g:1:239: RULE_WS | ||
1542 | { | ||
1543 | mRULE_WS(); | ||
1544 | |||
1545 | } | ||
1546 | break; | ||
1547 | case 34 : | ||
1548 | // InternalCftLanguage.g:1:247: RULE_ANY_OTHER | ||
1549 | { | ||
1550 | mRULE_ANY_OTHER(); | ||
1551 | |||
1552 | } | ||
1553 | break; | ||
1554 | |||
1555 | } | ||
1556 | |||
1557 | } | ||
1558 | |||
1559 | |||
1560 | protected DFA7 dfa7 = new DFA7(this); | ||
1561 | protected DFA19 dfa19 = new DFA19(this); | ||
1562 | static final String DFA7_eotS = | ||
1563 | "\3\uffff\1\4\1\uffff"; | ||
1564 | static final String DFA7_eofS = | ||
1565 | "\5\uffff"; | ||
1566 | static final String DFA7_minS = | ||
1567 | "\1\56\1\60\1\uffff\1\60\1\uffff"; | ||
1568 | static final String DFA7_maxS = | ||
1569 | "\1\145\1\71\1\uffff\1\145\1\uffff"; | ||
1570 | static final String DFA7_acceptS = | ||
1571 | "\2\uffff\1\2\1\uffff\1\1"; | ||
1572 | static final String DFA7_specialS = | ||
1573 | "\5\uffff}>"; | ||
1574 | static final String[] DFA7_transitionS = { | ||
1575 | "\1\1\26\uffff\1\2\37\uffff\1\2", | ||
1576 | "\12\3", | ||
1577 | "", | ||
1578 | "\12\3\13\uffff\1\2\37\uffff\1\2", | ||
1579 | "" | ||
1580 | }; | ||
1581 | |||
1582 | static final short[] DFA7_eot = DFA.unpackEncodedString(DFA7_eotS); | ||
1583 | static final short[] DFA7_eof = DFA.unpackEncodedString(DFA7_eofS); | ||
1584 | static final char[] DFA7_min = DFA.unpackEncodedStringToUnsignedChars(DFA7_minS); | ||
1585 | static final char[] DFA7_max = DFA.unpackEncodedStringToUnsignedChars(DFA7_maxS); | ||
1586 | static final short[] DFA7_accept = DFA.unpackEncodedString(DFA7_acceptS); | ||
1587 | static final short[] DFA7_special = DFA.unpackEncodedString(DFA7_specialS); | ||
1588 | static final short[][] DFA7_transition; | ||
1589 | |||
1590 | static { | ||
1591 | int numStates = DFA7_transitionS.length; | ||
1592 | DFA7_transition = new short[numStates][]; | ||
1593 | for (int i=0; i<numStates; i++) { | ||
1594 | DFA7_transition[i] = DFA.unpackEncodedString(DFA7_transitionS[i]); | ||
1595 | } | ||
1596 | } | ||
1597 | |||
1598 | class DFA7 extends DFA { | ||
1599 | |||
1600 | public DFA7(BaseRecognizer recognizer) { | ||
1601 | this.recognizer = recognizer; | ||
1602 | this.decisionNumber = 7; | ||
1603 | this.eot = DFA7_eot; | ||
1604 | this.eof = DFA7_eof; | ||
1605 | this.min = DFA7_min; | ||
1606 | this.max = DFA7_max; | ||
1607 | this.accept = DFA7_accept; | ||
1608 | this.special = DFA7_special; | ||
1609 | this.transition = DFA7_transition; | ||
1610 | } | ||
1611 | public String getDescription() { | ||
1612 | return "1318:27: ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ )"; | ||
1613 | } | ||
1614 | } | ||
1615 | static final String DFA19_eotS = | ||
1616 | "\1\uffff\1\36\1\uffff\2\36\1\uffff\1\36\1\uffff\1\34\1\36\1\53\3\36\3\uffff\2\34\2\uffff\1\72\1\34\1\uffff\3\34\2\uffff\1\36\2\uffff\1\36\1\101\1\36\1\uffff\1\36\1\104\2\uffff\2\36\2\uffff\1\36\1\110\3\36\10\uffff\1\72\5\uffff\2\36\1\uffff\1\116\1\117\1\uffff\2\36\1\122\1\uffff\5\36\2\uffff\2\36\1\uffff\13\36\1\145\1\146\1\147\3\36\1\153\3\uffff\2\36\1\156\1\uffff\1\36\1\160\1\uffff\1\36\1\uffff\4\36\1\166\1\uffff"; | ||
1617 | static final String DFA19_eofS = | ||
1618 | "\167\uffff"; | ||
1619 | static final String DFA19_minS = | ||
1620 | "\1\0\1\141\1\uffff\1\155\1\146\1\uffff\1\162\1\uffff\1\135\1\141\1\76\1\156\1\157\1\141\3\uffff\2\75\2\uffff\1\56\1\101\1\uffff\2\0\1\52\2\uffff\1\143\2\uffff\1\160\1\60\1\164\1\uffff\1\164\1\60\2\uffff\1\155\1\157\2\uffff\1\144\1\60\1\141\2\160\10\uffff\1\56\5\uffff\1\153\1\157\1\uffff\2\60\1\uffff\1\142\1\153\1\60\1\uffff\1\156\1\154\1\160\1\141\1\162\2\uffff\1\144\1\165\1\uffff\1\163\1\145\1\151\1\147\1\164\1\141\1\160\1\146\1\166\1\156\1\145\3\60\1\157\1\145\1\147\1\60\3\uffff\1\162\1\154\1\60\1\uffff\1\155\1\60\1\uffff\1\141\1\uffff\1\164\1\151\1\157\1\156\1\60\1\uffff"; | ||
1621 | static final String DFA19_maxS = | ||
1622 | "\1\uffff\1\141\1\uffff\1\156\1\146\1\uffff\1\165\1\uffff\1\135\1\157\1\76\1\163\1\162\1\141\3\uffff\2\75\2\uffff\1\145\1\172\1\uffff\2\uffff\1\57\2\uffff\1\143\2\uffff\1\160\1\172\1\164\1\uffff\1\164\1\172\2\uffff\1\155\1\157\2\uffff\1\144\1\172\1\141\2\160\10\uffff\1\145\5\uffff\1\153\1\157\1\uffff\2\172\1\uffff\1\142\1\153\1\172\1\uffff\1\156\1\154\1\160\1\141\1\162\2\uffff\1\144\1\165\1\uffff\1\163\1\145\1\151\1\147\1\164\1\141\1\160\1\146\1\166\1\156\1\145\3\172\1\157\1\145\1\147\1\172\3\uffff\1\162\1\154\1\172\1\uffff\1\155\1\172\1\uffff\1\141\1\uffff\1\164\1\151\1\157\1\156\1\172\1\uffff"; | ||
1623 | static final String DFA19_acceptS = | ||
1624 | "\2\uffff\1\2\2\uffff\1\5\1\uffff\1\10\6\uffff\1\21\1\22\1\23\2\uffff\1\30\1\32\2\uffff\1\34\3\uffff\1\41\1\42\1\uffff\1\34\1\2\3\uffff\1\5\2\uffff\1\10\1\11\2\uffff\1\31\1\13\5\uffff\1\21\1\22\1\23\1\26\1\27\1\30\1\32\1\33\1\uffff\1\35\1\36\1\37\1\40\1\41\2\uffff\1\6\2\uffff\1\15\3\uffff\1\25\5\uffff\1\4\1\7\2\uffff\1\14\22\uffff\1\3\1\12\1\24\3\uffff\1\1\2\uffff\1\20\1\uffff\1\17\5\uffff\1\16"; | ||
1625 | static final String DFA19_specialS = | ||
1626 | "\1\0\27\uffff\1\2\1\1\135\uffff}>"; | ||
1627 | static final String[] DFA19_transitionS = { | ||
1628 | "\11\34\2\33\2\34\1\33\22\34\1\33\1\34\1\30\4\34\1\31\1\16\1\20\1\24\1\21\1\17\1\34\1\23\1\32\12\25\1\22\1\2\1\34\1\12\3\34\32\27\1\10\2\34\1\26\1\27\1\34\1\13\1\27\1\4\5\27\1\3\2\27\1\11\1\15\1\27\1\6\1\1\3\27\1\14\6\27\1\5\1\34\1\7\uff82\34", | ||
1629 | "\1\35", | ||
1630 | "", | ||
1631 | "\1\40\1\41", | ||
1632 | "\1\42", | ||
1633 | "", | ||
1634 | "\1\45\2\uffff\1\44", | ||
1635 | "", | ||
1636 | "\1\47", | ||
1637 | "\1\50\15\uffff\1\51", | ||
1638 | "\1\52", | ||
1639 | "\1\54\4\uffff\1\55", | ||
1640 | "\1\57\2\uffff\1\56", | ||
1641 | "\1\60", | ||
1642 | "", | ||
1643 | "", | ||
1644 | "", | ||
1645 | "\1\64", | ||
1646 | "\1\65", | ||
1647 | "", | ||
1648 | "", | ||
1649 | "\1\70\1\uffff\12\71\13\uffff\1\70\37\uffff\1\70", | ||
1650 | "\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1651 | "", | ||
1652 | "\0\73", | ||
1653 | "\0\73", | ||
1654 | "\1\74\4\uffff\1\75", | ||
1655 | "", | ||
1656 | "", | ||
1657 | "\1\77", | ||
1658 | "", | ||
1659 | "", | ||
1660 | "\1\100", | ||
1661 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1662 | "\1\102", | ||
1663 | "", | ||
1664 | "\1\103", | ||
1665 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1666 | "", | ||
1667 | "", | ||
1668 | "\1\105", | ||
1669 | "\1\106", | ||
1670 | "", | ||
1671 | "", | ||
1672 | "\1\107", | ||
1673 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1674 | "\1\111", | ||
1675 | "\1\112", | ||
1676 | "\1\113", | ||
1677 | "", | ||
1678 | "", | ||
1679 | "", | ||
1680 | "", | ||
1681 | "", | ||
1682 | "", | ||
1683 | "", | ||
1684 | "", | ||
1685 | "\1\70\1\uffff\12\71\13\uffff\1\70\37\uffff\1\70", | ||
1686 | "", | ||
1687 | "", | ||
1688 | "", | ||
1689 | "", | ||
1690 | "", | ||
1691 | "\1\114", | ||
1692 | "\1\115", | ||
1693 | "", | ||
1694 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1695 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1696 | "", | ||
1697 | "\1\120", | ||
1698 | "\1\121", | ||
1699 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1700 | "", | ||
1701 | "\1\123", | ||
1702 | "\1\124", | ||
1703 | "\1\125", | ||
1704 | "\1\126", | ||
1705 | "\1\127", | ||
1706 | "", | ||
1707 | "", | ||
1708 | "\1\130", | ||
1709 | "\1\131", | ||
1710 | "", | ||
1711 | "\1\132", | ||
1712 | "\1\133", | ||
1713 | "\1\134", | ||
1714 | "\1\135", | ||
1715 | "\1\136", | ||
1716 | "\1\137", | ||
1717 | "\1\140", | ||
1718 | "\1\141", | ||
1719 | "\1\142", | ||
1720 | "\1\143", | ||
1721 | "\1\144", | ||
1722 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1723 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1724 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1725 | "\1\150", | ||
1726 | "\1\151", | ||
1727 | "\1\152", | ||
1728 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1729 | "", | ||
1730 | "", | ||
1731 | "", | ||
1732 | "\1\154", | ||
1733 | "\1\155", | ||
1734 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1735 | "", | ||
1736 | "\1\157", | ||
1737 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1738 | "", | ||
1739 | "\1\161", | ||
1740 | "", | ||
1741 | "\1\162", | ||
1742 | "\1\163", | ||
1743 | "\1\164", | ||
1744 | "\1\165", | ||
1745 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1746 | "" | ||
1747 | }; | ||
1748 | |||
1749 | static final short[] DFA19_eot = DFA.unpackEncodedString(DFA19_eotS); | ||
1750 | static final short[] DFA19_eof = DFA.unpackEncodedString(DFA19_eofS); | ||
1751 | static final char[] DFA19_min = DFA.unpackEncodedStringToUnsignedChars(DFA19_minS); | ||
1752 | static final char[] DFA19_max = DFA.unpackEncodedStringToUnsignedChars(DFA19_maxS); | ||
1753 | static final short[] DFA19_accept = DFA.unpackEncodedString(DFA19_acceptS); | ||
1754 | static final short[] DFA19_special = DFA.unpackEncodedString(DFA19_specialS); | ||
1755 | static final short[][] DFA19_transition; | ||
1756 | |||
1757 | static { | ||
1758 | int numStates = DFA19_transitionS.length; | ||
1759 | DFA19_transition = new short[numStates][]; | ||
1760 | for (int i=0; i<numStates; i++) { | ||
1761 | DFA19_transition[i] = DFA.unpackEncodedString(DFA19_transitionS[i]); | ||
1762 | } | ||
1763 | } | ||
1764 | |||
1765 | class DFA19 extends DFA { | ||
1766 | |||
1767 | public DFA19(BaseRecognizer recognizer) { | ||
1768 | this.recognizer = recognizer; | ||
1769 | this.decisionNumber = 19; | ||
1770 | this.eot = DFA19_eot; | ||
1771 | this.eof = DFA19_eof; | ||
1772 | this.min = DFA19_min; | ||
1773 | this.max = DFA19_max; | ||
1774 | this.accept = DFA19_accept; | ||
1775 | this.special = DFA19_special; | ||
1776 | this.transition = DFA19_transition; | ||
1777 | } | ||
1778 | public String getDescription() { | ||
1779 | return "1:1: Tokens : ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | RULE_DOULBE | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER );"; | ||
1780 | } | ||
1781 | public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { | ||
1782 | IntStream input = _input; | ||
1783 | int _s = s; | ||
1784 | switch ( s ) { | ||
1785 | case 0 : | ||
1786 | int LA19_0 = input.LA(1); | ||
1787 | |||
1788 | s = -1; | ||
1789 | if ( (LA19_0=='p') ) {s = 1;} | ||
1790 | |||
1791 | else if ( (LA19_0==';') ) {s = 2;} | ||
1792 | |||
1793 | else if ( (LA19_0=='i') ) {s = 3;} | ||
1794 | |||
1795 | else if ( (LA19_0=='c') ) {s = 4;} | ||
1796 | |||
1797 | else if ( (LA19_0=='{') ) {s = 5;} | ||
1798 | |||
1799 | else if ( (LA19_0=='o') ) {s = 6;} | ||
1800 | |||
1801 | else if ( (LA19_0=='}') ) {s = 7;} | ||
1802 | |||
1803 | else if ( (LA19_0=='[') ) {s = 8;} | ||
1804 | |||
1805 | else if ( (LA19_0=='l') ) {s = 9;} | ||
1806 | |||
1807 | else if ( (LA19_0=='=') ) {s = 10;} | ||
1808 | |||
1809 | else if ( (LA19_0=='a') ) {s = 11;} | ||
1810 | |||
1811 | else if ( (LA19_0=='t') ) {s = 12;} | ||
1812 | |||
1813 | else if ( (LA19_0=='m') ) {s = 13;} | ||
1814 | |||
1815 | else if ( (LA19_0=='(') ) {s = 14;} | ||
1816 | |||
1817 | else if ( (LA19_0==',') ) {s = 15;} | ||
1818 | |||
1819 | else if ( (LA19_0==')') ) {s = 16;} | ||
1820 | |||
1821 | else if ( (LA19_0=='+') ) {s = 17;} | ||
1822 | |||
1823 | else if ( (LA19_0==':') ) {s = 18;} | ||
1824 | |||
1825 | else if ( (LA19_0=='.') ) {s = 19;} | ||
1826 | |||
1827 | else if ( (LA19_0=='*') ) {s = 20;} | ||
1828 | |||
1829 | else if ( ((LA19_0>='0' && LA19_0<='9')) ) {s = 21;} | ||
1830 | |||
1831 | else if ( (LA19_0=='^') ) {s = 22;} | ||
1832 | |||
1833 | else if ( ((LA19_0>='A' && LA19_0<='Z')||LA19_0=='_'||LA19_0=='b'||(LA19_0>='d' && LA19_0<='h')||(LA19_0>='j' && LA19_0<='k')||LA19_0=='n'||(LA19_0>='q' && LA19_0<='s')||(LA19_0>='u' && LA19_0<='z')) ) {s = 23;} | ||
1834 | |||
1835 | else if ( (LA19_0=='\"') ) {s = 24;} | ||
1836 | |||
1837 | else if ( (LA19_0=='\'') ) {s = 25;} | ||
1838 | |||
1839 | else if ( (LA19_0=='/') ) {s = 26;} | ||
1840 | |||
1841 | else if ( ((LA19_0>='\t' && LA19_0<='\n')||LA19_0=='\r'||LA19_0==' ') ) {s = 27;} | ||
1842 | |||
1843 | else if ( ((LA19_0>='\u0000' && LA19_0<='\b')||(LA19_0>='\u000B' && LA19_0<='\f')||(LA19_0>='\u000E' && LA19_0<='\u001F')||LA19_0=='!'||(LA19_0>='#' && LA19_0<='&')||LA19_0=='-'||LA19_0=='<'||(LA19_0>='>' && LA19_0<='@')||(LA19_0>='\\' && LA19_0<=']')||LA19_0=='`'||LA19_0=='|'||(LA19_0>='~' && LA19_0<='\uFFFF')) ) {s = 28;} | ||
1844 | |||
1845 | if ( s>=0 ) return s; | ||
1846 | break; | ||
1847 | case 1 : | ||
1848 | int LA19_25 = input.LA(1); | ||
1849 | |||
1850 | s = -1; | ||
1851 | if ( ((LA19_25>='\u0000' && LA19_25<='\uFFFF')) ) {s = 59;} | ||
1852 | |||
1853 | else s = 28; | ||
1854 | |||
1855 | if ( s>=0 ) return s; | ||
1856 | break; | ||
1857 | case 2 : | ||
1858 | int LA19_24 = input.LA(1); | ||
1859 | |||
1860 | s = -1; | ||
1861 | if ( ((LA19_24>='\u0000' && LA19_24<='\uFFFF')) ) {s = 59;} | ||
1862 | |||
1863 | else s = 28; | ||
1864 | |||
1865 | if ( s>=0 ) return s; | ||
1866 | break; | ||
1867 | } | ||
1868 | NoViableAltException nvae = | ||
1869 | new NoViableAltException(getDescription(), 19, _s, input); | ||
1870 | error(nvae); | ||
1871 | throw nvae; | ||
1872 | } | ||
1873 | } | ||
1874 | |||
1875 | |||
1876 | } \ No newline at end of file | ||
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 | } | ||