diff options
author | Kristóf Marussy <kris7topher@gmail.com> | 2019-08-01 14:49:53 +0200 |
---|---|---|
committer | Kristóf Marussy <kris7topher@gmail.com> | 2019-08-01 14:49:53 +0200 |
commit | 972baab642bd889d2c3476c0c9e17a6929e0c318 (patch) | |
tree | 8f724cb348c60e4fc45d446d8532988ed8e40748 /Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.g | |
parent | Counting scope propagator (simpler than BasicTypeHierarchy) (diff) | |
download | VIATRA-Generator-972baab642bd889d2c3476c0c9e17a6929e0c318.tar.gz VIATRA-Generator-972baab642bd889d2c3476c0c9e17a6929e0c318.tar.zst VIATRA-Generator-972baab642bd889d2c3476c0c9e17a6929e0c318.zip |
[Stochastic] Remove fault tree support for now
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.g')
-rw-r--r-- | Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.g | 1688 |
1 files changed, 0 insertions, 1688 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 deleted file mode 100644 index 51479ad3..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.g +++ /dev/null | |||
@@ -1,1688 +0,0 @@ | |||
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 | { | ||
242 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getNameValidIdParserRuleCall_1_0()); | ||
243 | } | ||
244 | lv_name_1_0=ruleValidId | ||
245 | { | ||
246 | if ($current==null) { | ||
247 | $current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); | ||
248 | } | ||
249 | set( | ||
250 | $current, | ||
251 | "name", | ||
252 | lv_name_1_0, | ||
253 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
254 | afterParserOrEnumRuleCall(); | ||
255 | } | ||
256 | ) | ||
257 | ) | ||
258 | otherlv_2='{' | ||
259 | { | ||
260 | newLeafNode(otherlv_2, grammarAccess.getComponentDefinitionAccess().getLeftCurlyBracketKeyword_2()); | ||
261 | } | ||
262 | ( | ||
263 | ( | ||
264 | { | ||
265 | getUnorderedGroupHelper().enter(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
266 | } | ||
267 | ( | ||
268 | ( | ||
269 | ( | ||
270 | {getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0)}?=>( | ||
271 | { | ||
272 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0); | ||
273 | } | ||
274 | ({true}?=>(otherlv_4='in' | ||
275 | { | ||
276 | newLeafNode(otherlv_4, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()); | ||
277 | } | ||
278 | ( | ||
279 | ( | ||
280 | { | ||
281 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getInputEventsInputEventParserRuleCall_3_0_1_0()); | ||
282 | } | ||
283 | lv_inputEvents_5_0=ruleInputEvent | ||
284 | { | ||
285 | if ($current==null) { | ||
286 | $current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); | ||
287 | } | ||
288 | add( | ||
289 | $current, | ||
290 | "inputEvents", | ||
291 | lv_inputEvents_5_0, | ||
292 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.InputEvent"); | ||
293 | afterParserOrEnumRuleCall(); | ||
294 | } | ||
295 | ) | ||
296 | )* | ||
297 | otherlv_6=';' | ||
298 | { | ||
299 | newLeafNode(otherlv_6, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()); | ||
300 | } | ||
301 | )) | ||
302 | { | ||
303 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
304 | } | ||
305 | ) | ||
306 | )| | ||
307 | ( | ||
308 | {getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1)}?=>( | ||
309 | { | ||
310 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1); | ||
311 | } | ||
312 | ({true}?=>(otherlv_7='out' | ||
313 | { | ||
314 | newLeafNode(otherlv_7, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()); | ||
315 | } | ||
316 | ( | ||
317 | ( | ||
318 | { | ||
319 | if ($current==null) { | ||
320 | $current = createModelElement(grammarAccess.getComponentDefinitionRule()); | ||
321 | } | ||
322 | } | ||
323 | { | ||
324 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getOutputEventsEventDeclarationCrossReference_3_1_1_0()); | ||
325 | } | ||
326 | ruleValidId | ||
327 | { | ||
328 | afterParserOrEnumRuleCall(); | ||
329 | } | ||
330 | ) | ||
331 | )* | ||
332 | otherlv_9=';' | ||
333 | { | ||
334 | newLeafNode(otherlv_9, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()); | ||
335 | } | ||
336 | )) | ||
337 | { | ||
338 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
339 | } | ||
340 | ) | ||
341 | ) | ||
342 | )* | ||
343 | ) | ||
344 | ) | ||
345 | { | ||
346 | getUnorderedGroupHelper().leave(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
347 | } | ||
348 | ) | ||
349 | ( | ||
350 | ( | ||
351 | ( | ||
352 | { | ||
353 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getEventDefinitionsEventDefinitionParserRuleCall_4_0_0()); | ||
354 | } | ||
355 | lv_eventDefinitions_10_0=ruleEventDefinition | ||
356 | { | ||
357 | if ($current==null) { | ||
358 | $current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); | ||
359 | } | ||
360 | add( | ||
361 | $current, | ||
362 | "eventDefinitions", | ||
363 | lv_eventDefinitions_10_0, | ||
364 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventDefinition"); | ||
365 | afterParserOrEnumRuleCall(); | ||
366 | } | ||
367 | ) | ||
368 | ) | ||
369 | otherlv_11=';' | ||
370 | { | ||
371 | newLeafNode(otherlv_11, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_4_1()); | ||
372 | } | ||
373 | )* | ||
374 | otherlv_12='}' | ||
375 | { | ||
376 | newLeafNode(otherlv_12, grammarAccess.getComponentDefinitionAccess().getRightCurlyBracketKeyword_5()); | ||
377 | } | ||
378 | ) | ||
379 | ; | ||
380 | |||
381 | // Entry rule entryRuleInputEvent | ||
382 | entryRuleInputEvent returns [EObject current=null]: | ||
383 | { newCompositeNode(grammarAccess.getInputEventRule()); } | ||
384 | iv_ruleInputEvent=ruleInputEvent | ||
385 | { $current=$iv_ruleInputEvent.current; } | ||
386 | EOF; | ||
387 | |||
388 | // Rule InputEvent | ||
389 | ruleInputEvent returns [EObject current=null] | ||
390 | @init { | ||
391 | enterRule(); | ||
392 | } | ||
393 | @after { | ||
394 | leaveRule(); | ||
395 | }: | ||
396 | ( | ||
397 | ( | ||
398 | ( | ||
399 | { | ||
400 | newCompositeNode(grammarAccess.getInputEventAccess().getNameValidIdParserRuleCall_0_0()); | ||
401 | } | ||
402 | lv_name_0_0=ruleValidId | ||
403 | { | ||
404 | if ($current==null) { | ||
405 | $current = createModelElementForParent(grammarAccess.getInputEventRule()); | ||
406 | } | ||
407 | set( | ||
408 | $current, | ||
409 | "name", | ||
410 | lv_name_0_0, | ||
411 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
412 | afterParserOrEnumRuleCall(); | ||
413 | } | ||
414 | ) | ||
415 | ) | ||
416 | ( | ||
417 | ( | ||
418 | lv_multiple_1_0='[]' | ||
419 | { | ||
420 | newLeafNode(lv_multiple_1_0, grammarAccess.getInputEventAccess().getMultipleLeftSquareBracketRightSquareBracketKeyword_1_0()); | ||
421 | } | ||
422 | { | ||
423 | if ($current==null) { | ||
424 | $current = createModelElement(grammarAccess.getInputEventRule()); | ||
425 | } | ||
426 | setWithLastConsumed($current, "multiple", true, "[]"); | ||
427 | } | ||
428 | ) | ||
429 | )? | ||
430 | ) | ||
431 | ; | ||
432 | |||
433 | // Entry rule entryRuleEventDefinition | ||
434 | entryRuleEventDefinition returns [EObject current=null]: | ||
435 | { newCompositeNode(grammarAccess.getEventDefinitionRule()); } | ||
436 | iv_ruleEventDefinition=ruleEventDefinition | ||
437 | { $current=$iv_ruleEventDefinition.current; } | ||
438 | EOF; | ||
439 | |||
440 | // Rule EventDefinition | ||
441 | ruleEventDefinition returns [EObject current=null] | ||
442 | @init { | ||
443 | enterRule(); | ||
444 | } | ||
445 | @after { | ||
446 | leaveRule(); | ||
447 | }: | ||
448 | ( | ||
449 | { | ||
450 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getBasicEventDefinitionParserRuleCall_0()); | ||
451 | } | ||
452 | this_BasicEventDefinition_0=ruleBasicEventDefinition | ||
453 | { | ||
454 | $current = $this_BasicEventDefinition_0.current; | ||
455 | afterParserOrEnumRuleCall(); | ||
456 | } | ||
457 | | | ||
458 | { | ||
459 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getGateDefinitionParserRuleCall_1()); | ||
460 | } | ||
461 | this_GateDefinition_1=ruleGateDefinition | ||
462 | { | ||
463 | $current = $this_GateDefinition_1.current; | ||
464 | afterParserOrEnumRuleCall(); | ||
465 | } | ||
466 | ) | ||
467 | ; | ||
468 | |||
469 | // Entry rule entryRuleBasicEventDefinition | ||
470 | entryRuleBasicEventDefinition returns [EObject current=null]: | ||
471 | { newCompositeNode(grammarAccess.getBasicEventDefinitionRule()); } | ||
472 | iv_ruleBasicEventDefinition=ruleBasicEventDefinition | ||
473 | { $current=$iv_ruleBasicEventDefinition.current; } | ||
474 | EOF; | ||
475 | |||
476 | // Rule BasicEventDefinition | ||
477 | ruleBasicEventDefinition returns [EObject current=null] | ||
478 | @init { | ||
479 | enterRule(); | ||
480 | } | ||
481 | @after { | ||
482 | leaveRule(); | ||
483 | }: | ||
484 | ( | ||
485 | ( | ||
486 | ( | ||
487 | { | ||
488 | newCompositeNode(grammarAccess.getBasicEventDefinitionAccess().getNameValidIdParserRuleCall_0_0()); | ||
489 | } | ||
490 | lv_name_0_0=ruleValidId | ||
491 | { | ||
492 | if ($current==null) { | ||
493 | $current = createModelElementForParent(grammarAccess.getBasicEventDefinitionRule()); | ||
494 | } | ||
495 | set( | ||
496 | $current, | ||
497 | "name", | ||
498 | lv_name_0_0, | ||
499 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
500 | afterParserOrEnumRuleCall(); | ||
501 | } | ||
502 | ) | ||
503 | ) | ||
504 | ( | ||
505 | ( | ||
506 | { | ||
507 | newCompositeNode(grammarAccess.getBasicEventDefinitionAccess().getDistributionDistributionParserRuleCall_1_0()); | ||
508 | } | ||
509 | lv_distribution_1_0=ruleDistribution | ||
510 | { | ||
511 | if ($current==null) { | ||
512 | $current = createModelElementForParent(grammarAccess.getBasicEventDefinitionRule()); | ||
513 | } | ||
514 | set( | ||
515 | $current, | ||
516 | "distribution", | ||
517 | lv_distribution_1_0, | ||
518 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Distribution"); | ||
519 | afterParserOrEnumRuleCall(); | ||
520 | } | ||
521 | ) | ||
522 | ) | ||
523 | ) | ||
524 | ; | ||
525 | |||
526 | // Entry rule entryRuleDistribution | ||
527 | entryRuleDistribution returns [EObject current=null]: | ||
528 | { newCompositeNode(grammarAccess.getDistributionRule()); } | ||
529 | iv_ruleDistribution=ruleDistribution | ||
530 | { $current=$iv_ruleDistribution.current; } | ||
531 | EOF; | ||
532 | |||
533 | // Rule Distribution | ||
534 | ruleDistribution returns [EObject current=null] | ||
535 | @init { | ||
536 | enterRule(); | ||
537 | } | ||
538 | @after { | ||
539 | leaveRule(); | ||
540 | }: | ||
541 | ( | ||
542 | { | ||
543 | newCompositeNode(grammarAccess.getDistributionAccess().getConstantDistributionParserRuleCall_0()); | ||
544 | } | ||
545 | this_ConstantDistribution_0=ruleConstantDistribution | ||
546 | { | ||
547 | $current = $this_ConstantDistribution_0.current; | ||
548 | afterParserOrEnumRuleCall(); | ||
549 | } | ||
550 | | | ||
551 | { | ||
552 | newCompositeNode(grammarAccess.getDistributionAccess().getExponentialDistributionParserRuleCall_1()); | ||
553 | } | ||
554 | this_ExponentialDistribution_1=ruleExponentialDistribution | ||
555 | { | ||
556 | $current = $this_ExponentialDistribution_1.current; | ||
557 | afterParserOrEnumRuleCall(); | ||
558 | } | ||
559 | ) | ||
560 | ; | ||
561 | |||
562 | // Entry rule entryRuleConstantDistribution | ||
563 | entryRuleConstantDistribution returns [EObject current=null]: | ||
564 | { newCompositeNode(grammarAccess.getConstantDistributionRule()); } | ||
565 | iv_ruleConstantDistribution=ruleConstantDistribution | ||
566 | { $current=$iv_ruleConstantDistribution.current; } | ||
567 | EOF; | ||
568 | |||
569 | // Rule ConstantDistribution | ||
570 | ruleConstantDistribution returns [EObject current=null] | ||
571 | @init { | ||
572 | enterRule(); | ||
573 | } | ||
574 | @after { | ||
575 | leaveRule(); | ||
576 | }: | ||
577 | ( | ||
578 | otherlv_0='prob' | ||
579 | { | ||
580 | newLeafNode(otherlv_0, grammarAccess.getConstantDistributionAccess().getProbKeyword_0()); | ||
581 | } | ||
582 | otherlv_1='=' | ||
583 | { | ||
584 | newLeafNode(otherlv_1, grammarAccess.getConstantDistributionAccess().getEqualsSignKeyword_1()); | ||
585 | } | ||
586 | ( | ||
587 | ( | ||
588 | { | ||
589 | newCompositeNode(grammarAccess.getConstantDistributionAccess().getPDoubleParserRuleCall_2_0()); | ||
590 | } | ||
591 | lv_p_2_0=ruleDouble | ||
592 | { | ||
593 | if ($current==null) { | ||
594 | $current = createModelElementForParent(grammarAccess.getConstantDistributionRule()); | ||
595 | } | ||
596 | set( | ||
597 | $current, | ||
598 | "p", | ||
599 | lv_p_2_0, | ||
600 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Double"); | ||
601 | afterParserOrEnumRuleCall(); | ||
602 | } | ||
603 | ) | ||
604 | ) | ||
605 | ) | ||
606 | ; | ||
607 | |||
608 | // Entry rule entryRuleExponentialDistribution | ||
609 | entryRuleExponentialDistribution returns [EObject current=null]: | ||
610 | { newCompositeNode(grammarAccess.getExponentialDistributionRule()); } | ||
611 | iv_ruleExponentialDistribution=ruleExponentialDistribution | ||
612 | { $current=$iv_ruleExponentialDistribution.current; } | ||
613 | EOF; | ||
614 | |||
615 | // Rule ExponentialDistribution | ||
616 | ruleExponentialDistribution returns [EObject current=null] | ||
617 | @init { | ||
618 | enterRule(); | ||
619 | } | ||
620 | @after { | ||
621 | leaveRule(); | ||
622 | }: | ||
623 | ( | ||
624 | otherlv_0='lambda' | ||
625 | { | ||
626 | newLeafNode(otherlv_0, grammarAccess.getExponentialDistributionAccess().getLambdaKeyword_0()); | ||
627 | } | ||
628 | otherlv_1='=' | ||
629 | { | ||
630 | newLeafNode(otherlv_1, grammarAccess.getExponentialDistributionAccess().getEqualsSignKeyword_1()); | ||
631 | } | ||
632 | ( | ||
633 | ( | ||
634 | { | ||
635 | newCompositeNode(grammarAccess.getExponentialDistributionAccess().getLambdaDoubleParserRuleCall_2_0()); | ||
636 | } | ||
637 | lv_lambda_2_0=ruleDouble | ||
638 | { | ||
639 | if ($current==null) { | ||
640 | $current = createModelElementForParent(grammarAccess.getExponentialDistributionRule()); | ||
641 | } | ||
642 | set( | ||
643 | $current, | ||
644 | "lambda", | ||
645 | lv_lambda_2_0, | ||
646 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Double"); | ||
647 | afterParserOrEnumRuleCall(); | ||
648 | } | ||
649 | ) | ||
650 | ) | ||
651 | ) | ||
652 | ; | ||
653 | |||
654 | // Entry rule entryRuleGateDefinition | ||
655 | entryRuleGateDefinition returns [EObject current=null]: | ||
656 | { newCompositeNode(grammarAccess.getGateDefinitionRule()); } | ||
657 | iv_ruleGateDefinition=ruleGateDefinition | ||
658 | { $current=$iv_ruleGateDefinition.current; } | ||
659 | EOF; | ||
660 | |||
661 | // Rule GateDefinition | ||
662 | ruleGateDefinition returns [EObject current=null] | ||
663 | @init { | ||
664 | enterRule(); | ||
665 | } | ||
666 | @after { | ||
667 | leaveRule(); | ||
668 | }: | ||
669 | ( | ||
670 | { | ||
671 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getAndGateDefinitionParserRuleCall_0()); | ||
672 | } | ||
673 | this_AndGateDefinition_0=ruleAndGateDefinition | ||
674 | { | ||
675 | $current = $this_AndGateDefinition_0.current; | ||
676 | afterParserOrEnumRuleCall(); | ||
677 | } | ||
678 | | | ||
679 | { | ||
680 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getOrGateDefinitionParserRuleCall_1()); | ||
681 | } | ||
682 | this_OrGateDefinition_1=ruleOrGateDefinition | ||
683 | { | ||
684 | $current = $this_OrGateDefinition_1.current; | ||
685 | afterParserOrEnumRuleCall(); | ||
686 | } | ||
687 | | | ||
688 | { | ||
689 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getKOfMGateDefinitionParserRuleCall_2()); | ||
690 | } | ||
691 | this_KOfMGateDefinition_2=ruleKOfMGateDefinition | ||
692 | { | ||
693 | $current = $this_KOfMGateDefinition_2.current; | ||
694 | afterParserOrEnumRuleCall(); | ||
695 | } | ||
696 | ) | ||
697 | ; | ||
698 | |||
699 | // Entry rule entryRuleAndGateDefinition | ||
700 | entryRuleAndGateDefinition returns [EObject current=null]: | ||
701 | { newCompositeNode(grammarAccess.getAndGateDefinitionRule()); } | ||
702 | iv_ruleAndGateDefinition=ruleAndGateDefinition | ||
703 | { $current=$iv_ruleAndGateDefinition.current; } | ||
704 | EOF; | ||
705 | |||
706 | // Rule AndGateDefinition | ||
707 | ruleAndGateDefinition returns [EObject current=null] | ||
708 | @init { | ||
709 | enterRule(); | ||
710 | } | ||
711 | @after { | ||
712 | leaveRule(); | ||
713 | }: | ||
714 | ( | ||
715 | ( | ||
716 | ( | ||
717 | { | ||
718 | newCompositeNode(grammarAccess.getAndGateDefinitionAccess().getNameValidIdParserRuleCall_0_0()); | ||
719 | } | ||
720 | lv_name_0_0=ruleValidId | ||
721 | { | ||
722 | if ($current==null) { | ||
723 | $current = createModelElementForParent(grammarAccess.getAndGateDefinitionRule()); | ||
724 | } | ||
725 | set( | ||
726 | $current, | ||
727 | "name", | ||
728 | lv_name_0_0, | ||
729 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
730 | afterParserOrEnumRuleCall(); | ||
731 | } | ||
732 | ) | ||
733 | ) | ||
734 | otherlv_1='and' | ||
735 | { | ||
736 | newLeafNode(otherlv_1, grammarAccess.getAndGateDefinitionAccess().getAndKeyword_1()); | ||
737 | } | ||
738 | ( | ||
739 | ( | ||
740 | { | ||
741 | if ($current==null) { | ||
742 | $current = createModelElement(grammarAccess.getAndGateDefinitionRule()); | ||
743 | } | ||
744 | } | ||
745 | { | ||
746 | newCompositeNode(grammarAccess.getAndGateDefinitionAccess().getInputEventsEventDeclarationCrossReference_2_0()); | ||
747 | } | ||
748 | ruleValidId | ||
749 | { | ||
750 | afterParserOrEnumRuleCall(); | ||
751 | } | ||
752 | ) | ||
753 | )* | ||
754 | ) | ||
755 | ; | ||
756 | |||
757 | // Entry rule entryRuleOrGateDefinition | ||
758 | entryRuleOrGateDefinition returns [EObject current=null]: | ||
759 | { newCompositeNode(grammarAccess.getOrGateDefinitionRule()); } | ||
760 | iv_ruleOrGateDefinition=ruleOrGateDefinition | ||
761 | { $current=$iv_ruleOrGateDefinition.current; } | ||
762 | EOF; | ||
763 | |||
764 | // Rule OrGateDefinition | ||
765 | ruleOrGateDefinition returns [EObject current=null] | ||
766 | @init { | ||
767 | enterRule(); | ||
768 | } | ||
769 | @after { | ||
770 | leaveRule(); | ||
771 | }: | ||
772 | ( | ||
773 | ( | ||
774 | ( | ||
775 | { | ||
776 | newCompositeNode(grammarAccess.getOrGateDefinitionAccess().getNameValidIdParserRuleCall_0_0()); | ||
777 | } | ||
778 | lv_name_0_0=ruleValidId | ||
779 | { | ||
780 | if ($current==null) { | ||
781 | $current = createModelElementForParent(grammarAccess.getOrGateDefinitionRule()); | ||
782 | } | ||
783 | set( | ||
784 | $current, | ||
785 | "name", | ||
786 | lv_name_0_0, | ||
787 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
788 | afterParserOrEnumRuleCall(); | ||
789 | } | ||
790 | ) | ||
791 | ) | ||
792 | otherlv_1='or' | ||
793 | { | ||
794 | newLeafNode(otherlv_1, grammarAccess.getOrGateDefinitionAccess().getOrKeyword_1()); | ||
795 | } | ||
796 | ( | ||
797 | ( | ||
798 | { | ||
799 | if ($current==null) { | ||
800 | $current = createModelElement(grammarAccess.getOrGateDefinitionRule()); | ||
801 | } | ||
802 | } | ||
803 | { | ||
804 | newCompositeNode(grammarAccess.getOrGateDefinitionAccess().getInputEventsEventDeclarationCrossReference_2_0()); | ||
805 | } | ||
806 | ruleValidId | ||
807 | { | ||
808 | afterParserOrEnumRuleCall(); | ||
809 | } | ||
810 | ) | ||
811 | )* | ||
812 | ) | ||
813 | ; | ||
814 | |||
815 | // Entry rule entryRuleKOfMGateDefinition | ||
816 | entryRuleKOfMGateDefinition returns [EObject current=null]: | ||
817 | { newCompositeNode(grammarAccess.getKOfMGateDefinitionRule()); } | ||
818 | iv_ruleKOfMGateDefinition=ruleKOfMGateDefinition | ||
819 | { $current=$iv_ruleKOfMGateDefinition.current; } | ||
820 | EOF; | ||
821 | |||
822 | // Rule KOfMGateDefinition | ||
823 | ruleKOfMGateDefinition returns [EObject current=null] | ||
824 | @init { | ||
825 | enterRule(); | ||
826 | } | ||
827 | @after { | ||
828 | leaveRule(); | ||
829 | }: | ||
830 | ( | ||
831 | ( | ||
832 | ( | ||
833 | { | ||
834 | newCompositeNode(grammarAccess.getKOfMGateDefinitionAccess().getNameValidIdParserRuleCall_0_0()); | ||
835 | } | ||
836 | lv_name_0_0=ruleValidId | ||
837 | { | ||
838 | if ($current==null) { | ||
839 | $current = createModelElementForParent(grammarAccess.getKOfMGateDefinitionRule()); | ||
840 | } | ||
841 | set( | ||
842 | $current, | ||
843 | "name", | ||
844 | lv_name_0_0, | ||
845 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
846 | afterParserOrEnumRuleCall(); | ||
847 | } | ||
848 | ) | ||
849 | ) | ||
850 | ( | ||
851 | ( | ||
852 | lv_k_1_0=RULE_INT | ||
853 | { | ||
854 | newLeafNode(lv_k_1_0, grammarAccess.getKOfMGateDefinitionAccess().getKINTTerminalRuleCall_1_0()); | ||
855 | } | ||
856 | { | ||
857 | if ($current==null) { | ||
858 | $current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
859 | } | ||
860 | setWithLastConsumed( | ||
861 | $current, | ||
862 | "k", | ||
863 | lv_k_1_0, | ||
864 | "org.eclipse.xtext.common.Terminals.INT"); | ||
865 | } | ||
866 | ) | ||
867 | ) | ||
868 | ( | ||
869 | ( | ||
870 | otherlv_2='of' | ||
871 | { | ||
872 | newLeafNode(otherlv_2, grammarAccess.getKOfMGateDefinitionAccess().getOfKeyword_2_0_0()); | ||
873 | } | ||
874 | ( | ||
875 | ( | ||
876 | lv_m_3_0=RULE_INT | ||
877 | { | ||
878 | newLeafNode(lv_m_3_0, grammarAccess.getKOfMGateDefinitionAccess().getMINTTerminalRuleCall_2_0_1_0()); | ||
879 | } | ||
880 | { | ||
881 | if ($current==null) { | ||
882 | $current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
883 | } | ||
884 | setWithLastConsumed( | ||
885 | $current, | ||
886 | "m", | ||
887 | lv_m_3_0, | ||
888 | "org.eclipse.xtext.common.Terminals.INT"); | ||
889 | } | ||
890 | ) | ||
891 | ) | ||
892 | ) | ||
893 | | | ||
894 | ( | ||
895 | ( | ||
896 | lv_m_4_0=RULE_OF_INT | ||
897 | { | ||
898 | newLeafNode(lv_m_4_0, grammarAccess.getKOfMGateDefinitionAccess().getMOF_INTTerminalRuleCall_2_1_0()); | ||
899 | } | ||
900 | { | ||
901 | if ($current==null) { | ||
902 | $current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
903 | } | ||
904 | setWithLastConsumed( | ||
905 | $current, | ||
906 | "m", | ||
907 | lv_m_4_0, | ||
908 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.OF_INT"); | ||
909 | } | ||
910 | ) | ||
911 | ) | ||
912 | ) | ||
913 | ( | ||
914 | ( | ||
915 | { | ||
916 | if ($current==null) { | ||
917 | $current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
918 | } | ||
919 | } | ||
920 | { | ||
921 | newCompositeNode(grammarAccess.getKOfMGateDefinitionAccess().getInputEventsEventDeclarationCrossReference_3_0()); | ||
922 | } | ||
923 | ruleValidId | ||
924 | { | ||
925 | afterParserOrEnumRuleCall(); | ||
926 | } | ||
927 | ) | ||
928 | )* | ||
929 | ) | ||
930 | ; | ||
931 | |||
932 | // Entry rule entryRuleTransformationDefinition | ||
933 | entryRuleTransformationDefinition returns [EObject current=null]: | ||
934 | { newCompositeNode(grammarAccess.getTransformationDefinitionRule()); } | ||
935 | iv_ruleTransformationDefinition=ruleTransformationDefinition | ||
936 | { $current=$iv_ruleTransformationDefinition.current; } | ||
937 | EOF; | ||
938 | |||
939 | // Rule TransformationDefinition | ||
940 | ruleTransformationDefinition returns [EObject current=null] | ||
941 | @init { | ||
942 | enterRule(); | ||
943 | } | ||
944 | @after { | ||
945 | leaveRule(); | ||
946 | }: | ||
947 | ( | ||
948 | otherlv_0='transformation' | ||
949 | { | ||
950 | newLeafNode(otherlv_0, grammarAccess.getTransformationDefinitionAccess().getTransformationKeyword_0()); | ||
951 | } | ||
952 | ( | ||
953 | ( | ||
954 | { | ||
955 | newCompositeNode(grammarAccess.getTransformationDefinitionAccess().getNameValidIdParserRuleCall_1_0()); | ||
956 | } | ||
957 | lv_name_1_0=ruleValidId | ||
958 | { | ||
959 | if ($current==null) { | ||
960 | $current = createModelElementForParent(grammarAccess.getTransformationDefinitionRule()); | ||
961 | } | ||
962 | set( | ||
963 | $current, | ||
964 | "name", | ||
965 | lv_name_1_0, | ||
966 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
967 | afterParserOrEnumRuleCall(); | ||
968 | } | ||
969 | ) | ||
970 | ) | ||
971 | otherlv_2='{' | ||
972 | { | ||
973 | newLeafNode(otherlv_2, grammarAccess.getTransformationDefinitionAccess().getLeftCurlyBracketKeyword_2()); | ||
974 | } | ||
975 | ( | ||
976 | ( | ||
977 | { | ||
978 | newCompositeNode(grammarAccess.getTransformationDefinitionAccess().getMappingDefinitionsMappingDefinitionParserRuleCall_3_0()); | ||
979 | } | ||
980 | lv_mappingDefinitions_3_0=ruleMappingDefinition | ||
981 | { | ||
982 | if ($current==null) { | ||
983 | $current = createModelElementForParent(grammarAccess.getTransformationDefinitionRule()); | ||
984 | } | ||
985 | add( | ||
986 | $current, | ||
987 | "mappingDefinitions", | ||
988 | lv_mappingDefinitions_3_0, | ||
989 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingDefinition"); | ||
990 | afterParserOrEnumRuleCall(); | ||
991 | } | ||
992 | ) | ||
993 | )* | ||
994 | otherlv_4='}' | ||
995 | { | ||
996 | newLeafNode(otherlv_4, grammarAccess.getTransformationDefinitionAccess().getRightCurlyBracketKeyword_4()); | ||
997 | } | ||
998 | ) | ||
999 | ; | ||
1000 | |||
1001 | // Entry rule entryRuleMappingDefinition | ||
1002 | entryRuleMappingDefinition returns [EObject current=null]: | ||
1003 | { newCompositeNode(grammarAccess.getMappingDefinitionRule()); } | ||
1004 | iv_ruleMappingDefinition=ruleMappingDefinition | ||
1005 | { $current=$iv_ruleMappingDefinition.current; } | ||
1006 | EOF; | ||
1007 | |||
1008 | // Rule MappingDefinition | ||
1009 | ruleMappingDefinition returns [EObject current=null] | ||
1010 | @init { | ||
1011 | enterRule(); | ||
1012 | } | ||
1013 | @after { | ||
1014 | leaveRule(); | ||
1015 | }: | ||
1016 | ( | ||
1017 | ( | ||
1018 | ( | ||
1019 | lv_topLevel_0_0='toplevel' | ||
1020 | { | ||
1021 | newLeafNode(lv_topLevel_0_0, grammarAccess.getMappingDefinitionAccess().getTopLevelToplevelKeyword_0_0()); | ||
1022 | } | ||
1023 | { | ||
1024 | if ($current==null) { | ||
1025 | $current = createModelElement(grammarAccess.getMappingDefinitionRule()); | ||
1026 | } | ||
1027 | setWithLastConsumed($current, "topLevel", true, "toplevel"); | ||
1028 | } | ||
1029 | ) | ||
1030 | )? | ||
1031 | otherlv_1='mapping' | ||
1032 | { | ||
1033 | newLeafNode(otherlv_1, grammarAccess.getMappingDefinitionAccess().getMappingKeyword_1()); | ||
1034 | } | ||
1035 | ( | ||
1036 | ( | ||
1037 | { | ||
1038 | if ($current==null) { | ||
1039 | $current = createModelElement(grammarAccess.getMappingDefinitionRule()); | ||
1040 | } | ||
1041 | } | ||
1042 | { | ||
1043 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getPatternPatternCrossReference_2_0()); | ||
1044 | } | ||
1045 | ruleQualifiedName | ||
1046 | { | ||
1047 | afterParserOrEnumRuleCall(); | ||
1048 | } | ||
1049 | ) | ||
1050 | ) | ||
1051 | otherlv_3='(' | ||
1052 | { | ||
1053 | newLeafNode(otherlv_3, grammarAccess.getMappingDefinitionAccess().getLeftParenthesisKeyword_3()); | ||
1054 | } | ||
1055 | ( | ||
1056 | ( | ||
1057 | { | ||
1058 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_4_0()); | ||
1059 | } | ||
1060 | lv_parameters_4_0=ruleMappingParameter | ||
1061 | { | ||
1062 | if ($current==null) { | ||
1063 | $current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
1064 | } | ||
1065 | add( | ||
1066 | $current, | ||
1067 | "parameters", | ||
1068 | lv_parameters_4_0, | ||
1069 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingParameter"); | ||
1070 | afterParserOrEnumRuleCall(); | ||
1071 | } | ||
1072 | ) | ||
1073 | ) | ||
1074 | ( | ||
1075 | otherlv_5=',' | ||
1076 | { | ||
1077 | newLeafNode(otherlv_5, grammarAccess.getMappingDefinitionAccess().getCommaKeyword_5_0()); | ||
1078 | } | ||
1079 | ( | ||
1080 | ( | ||
1081 | { | ||
1082 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_5_1_0()); | ||
1083 | } | ||
1084 | lv_parameters_6_0=ruleMappingParameter | ||
1085 | { | ||
1086 | if ($current==null) { | ||
1087 | $current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
1088 | } | ||
1089 | add( | ||
1090 | $current, | ||
1091 | "parameters", | ||
1092 | lv_parameters_6_0, | ||
1093 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingParameter"); | ||
1094 | afterParserOrEnumRuleCall(); | ||
1095 | } | ||
1096 | ) | ||
1097 | ) | ||
1098 | )* | ||
1099 | otherlv_7=')' | ||
1100 | { | ||
1101 | newLeafNode(otherlv_7, grammarAccess.getMappingDefinitionAccess().getRightParenthesisKeyword_6()); | ||
1102 | } | ||
1103 | ( | ||
1104 | ( | ||
1105 | { | ||
1106 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getComponentInstanceComponentInstanceParserRuleCall_7_0()); | ||
1107 | } | ||
1108 | lv_componentInstance_8_0=ruleComponentInstance | ||
1109 | { | ||
1110 | if ($current==null) { | ||
1111 | $current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
1112 | } | ||
1113 | set( | ||
1114 | $current, | ||
1115 | "componentInstance", | ||
1116 | lv_componentInstance_8_0, | ||
1117 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ComponentInstance"); | ||
1118 | afterParserOrEnumRuleCall(); | ||
1119 | } | ||
1120 | ) | ||
1121 | )? | ||
1122 | ( | ||
1123 | otherlv_9='{' | ||
1124 | { | ||
1125 | newLeafNode(otherlv_9, grammarAccess.getMappingDefinitionAccess().getLeftCurlyBracketKeyword_8_0()); | ||
1126 | } | ||
1127 | ( | ||
1128 | ( | ||
1129 | ( | ||
1130 | ( | ||
1131 | { | ||
1132 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0()); | ||
1133 | } | ||
1134 | lv_lookupDefinitions_10_0=ruleLookupDefinition | ||
1135 | { | ||
1136 | if ($current==null) { | ||
1137 | $current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
1138 | } | ||
1139 | add( | ||
1140 | $current, | ||
1141 | "lookupDefinitions", | ||
1142 | lv_lookupDefinitions_10_0, | ||
1143 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.LookupDefinition"); | ||
1144 | afterParserOrEnumRuleCall(); | ||
1145 | } | ||
1146 | ) | ||
1147 | ) | ||
1148 | | | ||
1149 | ( | ||
1150 | ( | ||
1151 | { | ||
1152 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getAssignmentsAssignmentParserRuleCall_8_1_0_1_0()); | ||
1153 | } | ||
1154 | lv_assignments_11_0=ruleAssignment | ||
1155 | { | ||
1156 | if ($current==null) { | ||
1157 | $current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
1158 | } | ||
1159 | add( | ||
1160 | $current, | ||
1161 | "assignments", | ||
1162 | lv_assignments_11_0, | ||
1163 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Assignment"); | ||
1164 | afterParserOrEnumRuleCall(); | ||
1165 | } | ||
1166 | ) | ||
1167 | ) | ||
1168 | ) | ||
1169 | otherlv_12=';' | ||
1170 | { | ||
1171 | newLeafNode(otherlv_12, grammarAccess.getMappingDefinitionAccess().getSemicolonKeyword_8_1_1()); | ||
1172 | } | ||
1173 | )* | ||
1174 | otherlv_13='}' | ||
1175 | { | ||
1176 | newLeafNode(otherlv_13, grammarAccess.getMappingDefinitionAccess().getRightCurlyBracketKeyword_8_2()); | ||
1177 | } | ||
1178 | )? | ||
1179 | ) | ||
1180 | ; | ||
1181 | |||
1182 | // Entry rule entryRuleMappingParameter | ||
1183 | entryRuleMappingParameter returns [EObject current=null]: | ||
1184 | { newCompositeNode(grammarAccess.getMappingParameterRule()); } | ||
1185 | iv_ruleMappingParameter=ruleMappingParameter | ||
1186 | { $current=$iv_ruleMappingParameter.current; } | ||
1187 | EOF; | ||
1188 | |||
1189 | // Rule MappingParameter | ||
1190 | ruleMappingParameter returns [EObject current=null] | ||
1191 | @init { | ||
1192 | enterRule(); | ||
1193 | } | ||
1194 | @after { | ||
1195 | leaveRule(); | ||
1196 | }: | ||
1197 | ( | ||
1198 | ( | ||
1199 | { | ||
1200 | newCompositeNode(grammarAccess.getMappingParameterAccess().getNameValidIdParserRuleCall_0()); | ||
1201 | } | ||
1202 | lv_name_0_0=ruleValidId | ||
1203 | { | ||
1204 | if ($current==null) { | ||
1205 | $current = createModelElementForParent(grammarAccess.getMappingParameterRule()); | ||
1206 | } | ||
1207 | set( | ||
1208 | $current, | ||
1209 | "name", | ||
1210 | lv_name_0_0, | ||
1211 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
1212 | afterParserOrEnumRuleCall(); | ||
1213 | } | ||
1214 | ) | ||
1215 | ) | ||
1216 | ; | ||
1217 | |||
1218 | // Entry rule entryRuleLookupDefinition | ||
1219 | entryRuleLookupDefinition returns [EObject current=null]: | ||
1220 | { newCompositeNode(grammarAccess.getLookupDefinitionRule()); } | ||
1221 | iv_ruleLookupDefinition=ruleLookupDefinition | ||
1222 | { $current=$iv_ruleLookupDefinition.current; } | ||
1223 | EOF; | ||
1224 | |||
1225 | // Rule LookupDefinition | ||
1226 | ruleLookupDefinition returns [EObject current=null] | ||
1227 | @init { | ||
1228 | enterRule(); | ||
1229 | } | ||
1230 | @after { | ||
1231 | leaveRule(); | ||
1232 | }: | ||
1233 | ( | ||
1234 | otherlv_0='lookup' | ||
1235 | { | ||
1236 | newLeafNode(otherlv_0, grammarAccess.getLookupDefinitionAccess().getLookupKeyword_0()); | ||
1237 | } | ||
1238 | ( | ||
1239 | ( | ||
1240 | { | ||
1241 | if ($current==null) { | ||
1242 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
1243 | } | ||
1244 | } | ||
1245 | { | ||
1246 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getMappingMappingDefinitionCrossReference_1_0()); | ||
1247 | } | ||
1248 | ruleQualifiedName | ||
1249 | { | ||
1250 | afterParserOrEnumRuleCall(); | ||
1251 | } | ||
1252 | ) | ||
1253 | ) | ||
1254 | otherlv_2='(' | ||
1255 | { | ||
1256 | newLeafNode(otherlv_2, grammarAccess.getLookupDefinitionAccess().getLeftParenthesisKeyword_2()); | ||
1257 | } | ||
1258 | ( | ||
1259 | ( | ||
1260 | { | ||
1261 | if ($current==null) { | ||
1262 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
1263 | } | ||
1264 | } | ||
1265 | { | ||
1266 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_3_0()); | ||
1267 | } | ||
1268 | ruleValidId | ||
1269 | { | ||
1270 | afterParserOrEnumRuleCall(); | ||
1271 | } | ||
1272 | ) | ||
1273 | ) | ||
1274 | ( | ||
1275 | otherlv_4=',' | ||
1276 | { | ||
1277 | newLeafNode(otherlv_4, grammarAccess.getLookupDefinitionAccess().getCommaKeyword_4_0()); | ||
1278 | } | ||
1279 | ( | ||
1280 | ( | ||
1281 | { | ||
1282 | if ($current==null) { | ||
1283 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
1284 | } | ||
1285 | } | ||
1286 | { | ||
1287 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_4_1_0()); | ||
1288 | } | ||
1289 | ruleValidId | ||
1290 | { | ||
1291 | afterParserOrEnumRuleCall(); | ||
1292 | } | ||
1293 | ) | ||
1294 | ) | ||
1295 | )* | ||
1296 | otherlv_6=')' | ||
1297 | { | ||
1298 | newLeafNode(otherlv_6, grammarAccess.getLookupDefinitionAccess().getRightParenthesisKeyword_5()); | ||
1299 | } | ||
1300 | otherlv_7='as' | ||
1301 | { | ||
1302 | newLeafNode(otherlv_7, grammarAccess.getLookupDefinitionAccess().getAsKeyword_6()); | ||
1303 | } | ||
1304 | ( | ||
1305 | ( | ||
1306 | { | ||
1307 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getNameValidIdParserRuleCall_7_0()); | ||
1308 | } | ||
1309 | lv_name_8_0=ruleValidId | ||
1310 | { | ||
1311 | if ($current==null) { | ||
1312 | $current = createModelElementForParent(grammarAccess.getLookupDefinitionRule()); | ||
1313 | } | ||
1314 | set( | ||
1315 | $current, | ||
1316 | "name", | ||
1317 | lv_name_8_0, | ||
1318 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
1319 | afterParserOrEnumRuleCall(); | ||
1320 | } | ||
1321 | ) | ||
1322 | ) | ||
1323 | ) | ||
1324 | ; | ||
1325 | |||
1326 | // Entry rule entryRuleAssignment | ||
1327 | entryRuleAssignment returns [EObject current=null]: | ||
1328 | { newCompositeNode(grammarAccess.getAssignmentRule()); } | ||
1329 | iv_ruleAssignment=ruleAssignment | ||
1330 | { $current=$iv_ruleAssignment.current; } | ||
1331 | EOF; | ||
1332 | |||
1333 | // Rule Assignment | ||
1334 | ruleAssignment returns [EObject current=null] | ||
1335 | @init { | ||
1336 | enterRule(); | ||
1337 | } | ||
1338 | @after { | ||
1339 | leaveRule(); | ||
1340 | }: | ||
1341 | ( | ||
1342 | ( | ||
1343 | ( | ||
1344 | { | ||
1345 | newCompositeNode(grammarAccess.getAssignmentAccess().getInputEventReferenceParserRuleCall_0_0()); | ||
1346 | } | ||
1347 | lv_input_0_0=ruleEventReference | ||
1348 | { | ||
1349 | if ($current==null) { | ||
1350 | $current = createModelElementForParent(grammarAccess.getAssignmentRule()); | ||
1351 | } | ||
1352 | set( | ||
1353 | $current, | ||
1354 | "input", | ||
1355 | lv_input_0_0, | ||
1356 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventReference"); | ||
1357 | afterParserOrEnumRuleCall(); | ||
1358 | } | ||
1359 | ) | ||
1360 | ) | ||
1361 | ( | ||
1362 | ( | ||
1363 | ( | ||
1364 | lv_multiple_1_0='+=' | ||
1365 | { | ||
1366 | newLeafNode(lv_multiple_1_0, grammarAccess.getAssignmentAccess().getMultiplePlusSignEqualsSignKeyword_1_0_0()); | ||
1367 | } | ||
1368 | { | ||
1369 | if ($current==null) { | ||
1370 | $current = createModelElement(grammarAccess.getAssignmentRule()); | ||
1371 | } | ||
1372 | setWithLastConsumed($current, "multiple", true, "+="); | ||
1373 | } | ||
1374 | ) | ||
1375 | ) | ||
1376 | | | ||
1377 | otherlv_2=':=' | ||
1378 | { | ||
1379 | newLeafNode(otherlv_2, grammarAccess.getAssignmentAccess().getColonEqualsSignKeyword_1_1()); | ||
1380 | } | ||
1381 | ) | ||
1382 | ( | ||
1383 | ( | ||
1384 | { | ||
1385 | newCompositeNode(grammarAccess.getAssignmentAccess().getOutputEventReferenceParserRuleCall_2_0()); | ||
1386 | } | ||
1387 | lv_output_3_0=ruleEventReference | ||
1388 | { | ||
1389 | if ($current==null) { | ||
1390 | $current = createModelElementForParent(grammarAccess.getAssignmentRule()); | ||
1391 | } | ||
1392 | set( | ||
1393 | $current, | ||
1394 | "output", | ||
1395 | lv_output_3_0, | ||
1396 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventReference"); | ||
1397 | afterParserOrEnumRuleCall(); | ||
1398 | } | ||
1399 | ) | ||
1400 | ) | ||
1401 | ) | ||
1402 | ; | ||
1403 | |||
1404 | // Entry rule entryRuleEventReference | ||
1405 | entryRuleEventReference returns [EObject current=null]: | ||
1406 | { newCompositeNode(grammarAccess.getEventReferenceRule()); } | ||
1407 | iv_ruleEventReference=ruleEventReference | ||
1408 | { $current=$iv_ruleEventReference.current; } | ||
1409 | EOF; | ||
1410 | |||
1411 | // Rule EventReference | ||
1412 | ruleEventReference returns [EObject current=null] | ||
1413 | @init { | ||
1414 | enterRule(); | ||
1415 | } | ||
1416 | @after { | ||
1417 | leaveRule(); | ||
1418 | }: | ||
1419 | ( | ||
1420 | ( | ||
1421 | ( | ||
1422 | { | ||
1423 | if ($current==null) { | ||
1424 | $current = createModelElement(grammarAccess.getEventReferenceRule()); | ||
1425 | } | ||
1426 | } | ||
1427 | { | ||
1428 | newCompositeNode(grammarAccess.getEventReferenceAccess().getComponentVariableCrossReference_0_0()); | ||
1429 | } | ||
1430 | ruleValidId | ||
1431 | { | ||
1432 | afterParserOrEnumRuleCall(); | ||
1433 | } | ||
1434 | ) | ||
1435 | ) | ||
1436 | otherlv_1='.' | ||
1437 | { | ||
1438 | newLeafNode(otherlv_1, grammarAccess.getEventReferenceAccess().getFullStopKeyword_1()); | ||
1439 | } | ||
1440 | ( | ||
1441 | ( | ||
1442 | { | ||
1443 | if ($current==null) { | ||
1444 | $current = createModelElement(grammarAccess.getEventReferenceRule()); | ||
1445 | } | ||
1446 | } | ||
1447 | { | ||
1448 | newCompositeNode(grammarAccess.getEventReferenceAccess().getEventEventDeclarationCrossReference_2_0()); | ||
1449 | } | ||
1450 | ruleValidId | ||
1451 | { | ||
1452 | afterParserOrEnumRuleCall(); | ||
1453 | } | ||
1454 | ) | ||
1455 | ) | ||
1456 | ) | ||
1457 | ; | ||
1458 | |||
1459 | // Entry rule entryRuleComponentInstance | ||
1460 | entryRuleComponentInstance returns [EObject current=null]: | ||
1461 | { newCompositeNode(grammarAccess.getComponentInstanceRule()); } | ||
1462 | iv_ruleComponentInstance=ruleComponentInstance | ||
1463 | { $current=$iv_ruleComponentInstance.current; } | ||
1464 | EOF; | ||
1465 | |||
1466 | // Rule ComponentInstance | ||
1467 | ruleComponentInstance returns [EObject current=null] | ||
1468 | @init { | ||
1469 | enterRule(); | ||
1470 | } | ||
1471 | @after { | ||
1472 | leaveRule(); | ||
1473 | }: | ||
1474 | ( | ||
1475 | otherlv_0='=>' | ||
1476 | { | ||
1477 | newLeafNode(otherlv_0, grammarAccess.getComponentInstanceAccess().getEqualsSignGreaterThanSignKeyword_0()); | ||
1478 | } | ||
1479 | ( | ||
1480 | ( | ||
1481 | { | ||
1482 | if ($current==null) { | ||
1483 | $current = createModelElement(grammarAccess.getComponentInstanceRule()); | ||
1484 | } | ||
1485 | } | ||
1486 | { | ||
1487 | newCompositeNode(grammarAccess.getComponentInstanceAccess().getComponentTypeComponentDefinitionCrossReference_1_0()); | ||
1488 | } | ||
1489 | ruleQualifiedName | ||
1490 | { | ||
1491 | afterParserOrEnumRuleCall(); | ||
1492 | } | ||
1493 | ) | ||
1494 | ) | ||
1495 | ( | ||
1496 | ( | ||
1497 | { | ||
1498 | newCompositeNode(grammarAccess.getComponentInstanceAccess().getNameValidIdParserRuleCall_2_0()); | ||
1499 | } | ||
1500 | lv_name_2_0=ruleValidId | ||
1501 | { | ||
1502 | if ($current==null) { | ||
1503 | $current = createModelElementForParent(grammarAccess.getComponentInstanceRule()); | ||
1504 | } | ||
1505 | set( | ||
1506 | $current, | ||
1507 | "name", | ||
1508 | lv_name_2_0, | ||
1509 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
1510 | afterParserOrEnumRuleCall(); | ||
1511 | } | ||
1512 | ) | ||
1513 | )? | ||
1514 | ) | ||
1515 | ; | ||
1516 | |||
1517 | // Entry rule entryRuleQualifiedName | ||
1518 | entryRuleQualifiedName returns [String current=null]: | ||
1519 | { newCompositeNode(grammarAccess.getQualifiedNameRule()); } | ||
1520 | iv_ruleQualifiedName=ruleQualifiedName | ||
1521 | { $current=$iv_ruleQualifiedName.current.getText(); } | ||
1522 | EOF; | ||
1523 | |||
1524 | // Rule QualifiedName | ||
1525 | ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] | ||
1526 | @init { | ||
1527 | enterRule(); | ||
1528 | } | ||
1529 | @after { | ||
1530 | leaveRule(); | ||
1531 | }: | ||
1532 | ( | ||
1533 | { | ||
1534 | newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIdParserRuleCall_0()); | ||
1535 | } | ||
1536 | this_ValidId_0=ruleValidId | ||
1537 | { | ||
1538 | $current.merge(this_ValidId_0); | ||
1539 | } | ||
1540 | { | ||
1541 | afterParserOrEnumRuleCall(); | ||
1542 | } | ||
1543 | ( | ||
1544 | kw='.' | ||
1545 | { | ||
1546 | $current.merge(kw); | ||
1547 | newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); | ||
1548 | } | ||
1549 | { | ||
1550 | newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIdParserRuleCall_1_1()); | ||
1551 | } | ||
1552 | this_ValidId_2=ruleValidId | ||
1553 | { | ||
1554 | $current.merge(this_ValidId_2); | ||
1555 | } | ||
1556 | { | ||
1557 | afterParserOrEnumRuleCall(); | ||
1558 | } | ||
1559 | )* | ||
1560 | ) | ||
1561 | ; | ||
1562 | |||
1563 | // Entry rule entryRuleQualifiedNameWithWildcard | ||
1564 | entryRuleQualifiedNameWithWildcard returns [String current=null]: | ||
1565 | { newCompositeNode(grammarAccess.getQualifiedNameWithWildcardRule()); } | ||
1566 | iv_ruleQualifiedNameWithWildcard=ruleQualifiedNameWithWildcard | ||
1567 | { $current=$iv_ruleQualifiedNameWithWildcard.current.getText(); } | ||
1568 | EOF; | ||
1569 | |||
1570 | // Rule QualifiedNameWithWildcard | ||
1571 | ruleQualifiedNameWithWildcard returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] | ||
1572 | @init { | ||
1573 | enterRule(); | ||
1574 | } | ||
1575 | @after { | ||
1576 | leaveRule(); | ||
1577 | }: | ||
1578 | ( | ||
1579 | { | ||
1580 | newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); | ||
1581 | } | ||
1582 | this_QualifiedName_0=ruleQualifiedName | ||
1583 | { | ||
1584 | $current.merge(this_QualifiedName_0); | ||
1585 | } | ||
1586 | { | ||
1587 | afterParserOrEnumRuleCall(); | ||
1588 | } | ||
1589 | ( | ||
1590 | kw='.' | ||
1591 | { | ||
1592 | $current.merge(kw); | ||
1593 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1_0()); | ||
1594 | } | ||
1595 | kw='*' | ||
1596 | { | ||
1597 | $current.merge(kw); | ||
1598 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_1_1()); | ||
1599 | } | ||
1600 | )? | ||
1601 | ) | ||
1602 | ; | ||
1603 | |||
1604 | // Entry rule entryRuleValidId | ||
1605 | entryRuleValidId returns [String current=null]: | ||
1606 | { newCompositeNode(grammarAccess.getValidIdRule()); } | ||
1607 | iv_ruleValidId=ruleValidId | ||
1608 | { $current=$iv_ruleValidId.current.getText(); } | ||
1609 | EOF; | ||
1610 | |||
1611 | // Rule ValidId | ||
1612 | ruleValidId returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] | ||
1613 | @init { | ||
1614 | enterRule(); | ||
1615 | } | ||
1616 | @after { | ||
1617 | leaveRule(); | ||
1618 | }: | ||
1619 | ( | ||
1620 | this_ID_0=RULE_ID | ||
1621 | { | ||
1622 | $current.merge(this_ID_0); | ||
1623 | } | ||
1624 | { | ||
1625 | newLeafNode(this_ID_0, grammarAccess.getValidIdAccess().getIDTerminalRuleCall_0()); | ||
1626 | } | ||
1627 | | | ||
1628 | this_OF_INT_1=RULE_OF_INT | ||
1629 | { | ||
1630 | $current.merge(this_OF_INT_1); | ||
1631 | } | ||
1632 | { | ||
1633 | newLeafNode(this_OF_INT_1, grammarAccess.getValidIdAccess().getOF_INTTerminalRuleCall_1()); | ||
1634 | } | ||
1635 | ) | ||
1636 | ; | ||
1637 | |||
1638 | // Entry rule entryRuleDouble | ||
1639 | entryRuleDouble returns [String current=null]: | ||
1640 | { newCompositeNode(grammarAccess.getDoubleRule()); } | ||
1641 | iv_ruleDouble=ruleDouble | ||
1642 | { $current=$iv_ruleDouble.current.getText(); } | ||
1643 | EOF; | ||
1644 | |||
1645 | // Rule Double | ||
1646 | ruleDouble returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] | ||
1647 | @init { | ||
1648 | enterRule(); | ||
1649 | } | ||
1650 | @after { | ||
1651 | leaveRule(); | ||
1652 | }: | ||
1653 | ( | ||
1654 | this_INT_0=RULE_INT | ||
1655 | { | ||
1656 | $current.merge(this_INT_0); | ||
1657 | } | ||
1658 | { | ||
1659 | newLeafNode(this_INT_0, grammarAccess.getDoubleAccess().getINTTerminalRuleCall_0()); | ||
1660 | } | ||
1661 | | | ||
1662 | this_T_DOUBLE_1=RULE_T_DOUBLE | ||
1663 | { | ||
1664 | $current.merge(this_T_DOUBLE_1); | ||
1665 | } | ||
1666 | { | ||
1667 | newLeafNode(this_T_DOUBLE_1, grammarAccess.getDoubleAccess().getT_DOUBLETerminalRuleCall_1()); | ||
1668 | } | ||
1669 | ) | ||
1670 | ; | ||
1671 | |||
1672 | RULE_OF_INT : 'o' 'f' ('0'..'9')+; | ||
1673 | |||
1674 | RULE_T_DOUBLE : ('0'..'9')+ ('.' ('0'..'9')+|('.' ('0'..'9')+)? ('e'|'E') ('+'|'-')? ('0'..'9')+); | ||
1675 | |||
1676 | RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; | ||
1677 | |||
1678 | RULE_INT : ('0'..'9')+; | ||
1679 | |||
1680 | RULE_STRING : ('"' ('\\' .|~(('\\'|'"')))* '"'|'\'' ('\\' .|~(('\\'|'\'')))* '\''); | ||
1681 | |||
1682 | RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/'; | ||
1683 | |||
1684 | RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?; | ||
1685 | |||
1686 | RULE_WS : (' '|'\t'|'\r'|'\n')+; | ||
1687 | |||
1688 | RULE_ANY_OTHER : .; | ||