diff options
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr')
6 files changed, 0 insertions, 8319 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/CftLanguageAntlrTokenFileProvider.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/CftLanguageAntlrTokenFileProvider.java deleted file mode 100644 index 14a64042..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/CftLanguageAntlrTokenFileProvider.java +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.parser.antlr; | ||
5 | |||
6 | import java.io.InputStream; | ||
7 | import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider; | ||
8 | |||
9 | public class CftLanguageAntlrTokenFileProvider implements IAntlrTokenFileProvider { | ||
10 | |||
11 | @Override | ||
12 | public InputStream getAntlrTokenFile() { | ||
13 | ClassLoader classLoader = getClass().getClassLoader(); | ||
14 | return classLoader.getResourceAsStream("hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.tokens"); | ||
15 | } | ||
16 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/CftLanguageParser.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/CftLanguageParser.java deleted file mode 100644 index 602ea50d..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/CftLanguageParser.java +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.parser.antlr; | ||
5 | |||
6 | import com.google.inject.Inject; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.parser.antlr.internal.InternalCftLanguageParser; | ||
8 | import hu.bme.mit.inf.dslreasoner.faulttree.components.services.CftLanguageGrammarAccess; | ||
9 | import org.eclipse.xtext.parser.antlr.AbstractAntlrParser; | ||
10 | import org.eclipse.xtext.parser.antlr.XtextTokenStream; | ||
11 | |||
12 | public class CftLanguageParser extends AbstractAntlrParser { | ||
13 | |||
14 | @Inject | ||
15 | private CftLanguageGrammarAccess grammarAccess; | ||
16 | |||
17 | @Override | ||
18 | protected void setInitialHiddenTokens(XtextTokenStream tokenStream) { | ||
19 | tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT"); | ||
20 | } | ||
21 | |||
22 | |||
23 | @Override | ||
24 | protected InternalCftLanguageParser createParser(XtextTokenStream stream) { | ||
25 | return new InternalCftLanguageParser(stream, getGrammarAccess()); | ||
26 | } | ||
27 | |||
28 | @Override | ||
29 | protected String getDefaultRuleName() { | ||
30 | return "CftModel"; | ||
31 | } | ||
32 | |||
33 | public CftLanguageGrammarAccess getGrammarAccess() { | ||
34 | return this.grammarAccess; | ||
35 | } | ||
36 | |||
37 | public void setGrammarAccess(CftLanguageGrammarAccess grammarAccess) { | ||
38 | this.grammarAccess = grammarAccess; | ||
39 | } | ||
40 | } | ||
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 : .; | ||
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 deleted file mode 100644 index 24a3b0ab..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.tokens +++ /dev/null | |||
@@ -1,65 +0,0 @@ | |||
1 | '('=31 | ||
2 | ')'=33 | ||
3 | '*'=40 | ||
4 | '+='=36 | ||
5 | ','=32 | ||
6 | '.'=38 | ||
7 | ':='=37 | ||
8 | ';'=14 | ||
9 | '='=23 | ||
10 | '=>'=39 | ||
11 | '[]'=21 | ||
12 | 'and'=25 | ||
13 | 'as'=35 | ||
14 | 'cft'=16 | ||
15 | 'import'=15 | ||
16 | 'in'=18 | ||
17 | 'lambda'=24 | ||
18 | 'lookup'=34 | ||
19 | 'mapping'=30 | ||
20 | 'of'=27 | ||
21 | 'or'=26 | ||
22 | 'out'=19 | ||
23 | 'package'=13 | ||
24 | 'prob'=22 | ||
25 | 'toplevel'=29 | ||
26 | 'transformation'=28 | ||
27 | '{'=17 | ||
28 | '}'=20 | ||
29 | RULE_ANY_OTHER=12 | ||
30 | RULE_ID=6 | ||
31 | RULE_INT=4 | ||
32 | RULE_ML_COMMENT=9 | ||
33 | RULE_OF_INT=5 | ||
34 | RULE_SL_COMMENT=10 | ||
35 | RULE_STRING=8 | ||
36 | RULE_T_DOUBLE=7 | ||
37 | RULE_WS=11 | ||
38 | T__13=13 | ||
39 | T__14=14 | ||
40 | T__15=15 | ||
41 | T__16=16 | ||
42 | T__17=17 | ||
43 | T__18=18 | ||
44 | T__19=19 | ||
45 | T__20=20 | ||
46 | T__21=21 | ||
47 | T__22=22 | ||
48 | T__23=23 | ||
49 | T__24=24 | ||
50 | T__25=25 | ||
51 | T__26=26 | ||
52 | T__27=27 | ||
53 | T__28=28 | ||
54 | T__29=29 | ||
55 | T__30=30 | ||
56 | T__31=31 | ||
57 | T__32=32 | ||
58 | T__33=33 | ||
59 | T__34=34 | ||
60 | T__35=35 | ||
61 | T__36=36 | ||
62 | T__37=37 | ||
63 | T__38=38 | ||
64 | T__39=39 | ||
65 | T__40=40 | ||
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 deleted file mode 100644 index c15c826a..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageLexer.java +++ /dev/null | |||
@@ -1,2001 +0,0 @@ | |||
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=8; | ||
16 | public static final int RULE_SL_COMMENT=10; | ||
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__38=38; | ||
22 | public static final int T__17=17; | ||
23 | public static final int T__39=39; | ||
24 | public static final int T__18=18; | ||
25 | public static final int T__33=33; | ||
26 | public static final int T__34=34; | ||
27 | public static final int RULE_T_DOUBLE=7; | ||
28 | public static final int T__13=13; | ||
29 | public static final int T__35=35; | ||
30 | public static final int T__14=14; | ||
31 | public static final int T__36=36; | ||
32 | public static final int EOF=-1; | ||
33 | public static final int T__30=30; | ||
34 | public static final int T__31=31; | ||
35 | public static final int T__32=32; | ||
36 | public static final int RULE_OF_INT=5; | ||
37 | public static final int RULE_ID=6; | ||
38 | public static final int RULE_WS=11; | ||
39 | public static final int RULE_ANY_OTHER=12; | ||
40 | public static final int T__26=26; | ||
41 | public static final int T__27=27; | ||
42 | public static final int T__28=28; | ||
43 | public static final int RULE_INT=4; | ||
44 | public static final int T__29=29; | ||
45 | public static final int T__22=22; | ||
46 | public static final int RULE_ML_COMMENT=9; | ||
47 | public static final int T__23=23; | ||
48 | public static final int T__24=24; | ||
49 | public static final int T__25=25; | ||
50 | public static final int T__40=40; | ||
51 | public static final int T__20=20; | ||
52 | public static final int T__21=21; | ||
53 | |||
54 | // delegates | ||
55 | // delegators | ||
56 | |||
57 | public InternalCftLanguageLexer() {;} | ||
58 | public InternalCftLanguageLexer(CharStream input) { | ||
59 | this(input, new RecognizerSharedState()); | ||
60 | } | ||
61 | public InternalCftLanguageLexer(CharStream input, RecognizerSharedState state) { | ||
62 | super(input,state); | ||
63 | |||
64 | } | ||
65 | public String getGrammarFileName() { return "InternalCftLanguage.g"; } | ||
66 | |||
67 | // $ANTLR start "T__13" | ||
68 | public final void mT__13() throws RecognitionException { | ||
69 | try { | ||
70 | int _type = T__13; | ||
71 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
72 | // InternalCftLanguage.g:11:7: ( 'package' ) | ||
73 | // InternalCftLanguage.g:11:9: 'package' | ||
74 | { | ||
75 | match("package"); | ||
76 | |||
77 | |||
78 | } | ||
79 | |||
80 | state.type = _type; | ||
81 | state.channel = _channel; | ||
82 | } | ||
83 | finally { | ||
84 | } | ||
85 | } | ||
86 | // $ANTLR end "T__13" | ||
87 | |||
88 | // $ANTLR start "T__14" | ||
89 | public final void mT__14() throws RecognitionException { | ||
90 | try { | ||
91 | int _type = T__14; | ||
92 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
93 | // InternalCftLanguage.g:12:7: ( ';' ) | ||
94 | // InternalCftLanguage.g:12:9: ';' | ||
95 | { | ||
96 | match(';'); | ||
97 | |||
98 | } | ||
99 | |||
100 | state.type = _type; | ||
101 | state.channel = _channel; | ||
102 | } | ||
103 | finally { | ||
104 | } | ||
105 | } | ||
106 | // $ANTLR end "T__14" | ||
107 | |||
108 | // $ANTLR start "T__15" | ||
109 | public final void mT__15() throws RecognitionException { | ||
110 | try { | ||
111 | int _type = T__15; | ||
112 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
113 | // InternalCftLanguage.g:13:7: ( 'import' ) | ||
114 | // InternalCftLanguage.g:13:9: 'import' | ||
115 | { | ||
116 | match("import"); | ||
117 | |||
118 | |||
119 | } | ||
120 | |||
121 | state.type = _type; | ||
122 | state.channel = _channel; | ||
123 | } | ||
124 | finally { | ||
125 | } | ||
126 | } | ||
127 | // $ANTLR end "T__15" | ||
128 | |||
129 | // $ANTLR start "T__16" | ||
130 | public final void mT__16() throws RecognitionException { | ||
131 | try { | ||
132 | int _type = T__16; | ||
133 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
134 | // InternalCftLanguage.g:14:7: ( 'cft' ) | ||
135 | // InternalCftLanguage.g:14:9: 'cft' | ||
136 | { | ||
137 | match("cft"); | ||
138 | |||
139 | |||
140 | } | ||
141 | |||
142 | state.type = _type; | ||
143 | state.channel = _channel; | ||
144 | } | ||
145 | finally { | ||
146 | } | ||
147 | } | ||
148 | // $ANTLR end "T__16" | ||
149 | |||
150 | // $ANTLR start "T__17" | ||
151 | public final void mT__17() throws RecognitionException { | ||
152 | try { | ||
153 | int _type = T__17; | ||
154 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
155 | // InternalCftLanguage.g:15:7: ( '{' ) | ||
156 | // InternalCftLanguage.g:15:9: '{' | ||
157 | { | ||
158 | match('{'); | ||
159 | |||
160 | } | ||
161 | |||
162 | state.type = _type; | ||
163 | state.channel = _channel; | ||
164 | } | ||
165 | finally { | ||
166 | } | ||
167 | } | ||
168 | // $ANTLR end "T__17" | ||
169 | |||
170 | // $ANTLR start "T__18" | ||
171 | public final void mT__18() throws RecognitionException { | ||
172 | try { | ||
173 | int _type = T__18; | ||
174 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
175 | // InternalCftLanguage.g:16:7: ( 'in' ) | ||
176 | // InternalCftLanguage.g:16:9: 'in' | ||
177 | { | ||
178 | match("in"); | ||
179 | |||
180 | |||
181 | } | ||
182 | |||
183 | state.type = _type; | ||
184 | state.channel = _channel; | ||
185 | } | ||
186 | finally { | ||
187 | } | ||
188 | } | ||
189 | // $ANTLR end "T__18" | ||
190 | |||
191 | // $ANTLR start "T__19" | ||
192 | public final void mT__19() throws RecognitionException { | ||
193 | try { | ||
194 | int _type = T__19; | ||
195 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
196 | // InternalCftLanguage.g:17:7: ( 'out' ) | ||
197 | // InternalCftLanguage.g:17:9: 'out' | ||
198 | { | ||
199 | match("out"); | ||
200 | |||
201 | |||
202 | } | ||
203 | |||
204 | state.type = _type; | ||
205 | state.channel = _channel; | ||
206 | } | ||
207 | finally { | ||
208 | } | ||
209 | } | ||
210 | // $ANTLR end "T__19" | ||
211 | |||
212 | // $ANTLR start "T__20" | ||
213 | public final void mT__20() throws RecognitionException { | ||
214 | try { | ||
215 | int _type = T__20; | ||
216 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
217 | // InternalCftLanguage.g:18:7: ( '}' ) | ||
218 | // InternalCftLanguage.g:18:9: '}' | ||
219 | { | ||
220 | match('}'); | ||
221 | |||
222 | } | ||
223 | |||
224 | state.type = _type; | ||
225 | state.channel = _channel; | ||
226 | } | ||
227 | finally { | ||
228 | } | ||
229 | } | ||
230 | // $ANTLR end "T__20" | ||
231 | |||
232 | // $ANTLR start "T__21" | ||
233 | public final void mT__21() throws RecognitionException { | ||
234 | try { | ||
235 | int _type = T__21; | ||
236 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
237 | // InternalCftLanguage.g:19:7: ( '[]' ) | ||
238 | // InternalCftLanguage.g:19:9: '[]' | ||
239 | { | ||
240 | match("[]"); | ||
241 | |||
242 | |||
243 | } | ||
244 | |||
245 | state.type = _type; | ||
246 | state.channel = _channel; | ||
247 | } | ||
248 | finally { | ||
249 | } | ||
250 | } | ||
251 | // $ANTLR end "T__21" | ||
252 | |||
253 | // $ANTLR start "T__22" | ||
254 | public final void mT__22() throws RecognitionException { | ||
255 | try { | ||
256 | int _type = T__22; | ||
257 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
258 | // InternalCftLanguage.g:20:7: ( 'prob' ) | ||
259 | // InternalCftLanguage.g:20:9: 'prob' | ||
260 | { | ||
261 | match("prob"); | ||
262 | |||
263 | |||
264 | } | ||
265 | |||
266 | state.type = _type; | ||
267 | state.channel = _channel; | ||
268 | } | ||
269 | finally { | ||
270 | } | ||
271 | } | ||
272 | // $ANTLR end "T__22" | ||
273 | |||
274 | // $ANTLR start "T__23" | ||
275 | public final void mT__23() throws RecognitionException { | ||
276 | try { | ||
277 | int _type = T__23; | ||
278 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
279 | // InternalCftLanguage.g:21:7: ( '=' ) | ||
280 | // InternalCftLanguage.g:21:9: '=' | ||
281 | { | ||
282 | match('='); | ||
283 | |||
284 | } | ||
285 | |||
286 | state.type = _type; | ||
287 | state.channel = _channel; | ||
288 | } | ||
289 | finally { | ||
290 | } | ||
291 | } | ||
292 | // $ANTLR end "T__23" | ||
293 | |||
294 | // $ANTLR start "T__24" | ||
295 | public final void mT__24() throws RecognitionException { | ||
296 | try { | ||
297 | int _type = T__24; | ||
298 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
299 | // InternalCftLanguage.g:22:7: ( 'lambda' ) | ||
300 | // InternalCftLanguage.g:22:9: 'lambda' | ||
301 | { | ||
302 | match("lambda"); | ||
303 | |||
304 | |||
305 | } | ||
306 | |||
307 | state.type = _type; | ||
308 | state.channel = _channel; | ||
309 | } | ||
310 | finally { | ||
311 | } | ||
312 | } | ||
313 | // $ANTLR end "T__24" | ||
314 | |||
315 | // $ANTLR start "T__25" | ||
316 | public final void mT__25() throws RecognitionException { | ||
317 | try { | ||
318 | int _type = T__25; | ||
319 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
320 | // InternalCftLanguage.g:23:7: ( 'and' ) | ||
321 | // InternalCftLanguage.g:23:9: 'and' | ||
322 | { | ||
323 | match("and"); | ||
324 | |||
325 | |||
326 | } | ||
327 | |||
328 | state.type = _type; | ||
329 | state.channel = _channel; | ||
330 | } | ||
331 | finally { | ||
332 | } | ||
333 | } | ||
334 | // $ANTLR end "T__25" | ||
335 | |||
336 | // $ANTLR start "T__26" | ||
337 | public final void mT__26() throws RecognitionException { | ||
338 | try { | ||
339 | int _type = T__26; | ||
340 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
341 | // InternalCftLanguage.g:24:7: ( 'or' ) | ||
342 | // InternalCftLanguage.g:24:9: 'or' | ||
343 | { | ||
344 | match("or"); | ||
345 | |||
346 | |||
347 | } | ||
348 | |||
349 | state.type = _type; | ||
350 | state.channel = _channel; | ||
351 | } | ||
352 | finally { | ||
353 | } | ||
354 | } | ||
355 | // $ANTLR end "T__26" | ||
356 | |||
357 | // $ANTLR start "T__27" | ||
358 | public final void mT__27() throws RecognitionException { | ||
359 | try { | ||
360 | int _type = T__27; | ||
361 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
362 | // InternalCftLanguage.g:25:7: ( 'of' ) | ||
363 | // InternalCftLanguage.g:25:9: 'of' | ||
364 | { | ||
365 | match("of"); | ||
366 | |||
367 | |||
368 | } | ||
369 | |||
370 | state.type = _type; | ||
371 | state.channel = _channel; | ||
372 | } | ||
373 | finally { | ||
374 | } | ||
375 | } | ||
376 | // $ANTLR end "T__27" | ||
377 | |||
378 | // $ANTLR start "T__28" | ||
379 | public final void mT__28() throws RecognitionException { | ||
380 | try { | ||
381 | int _type = T__28; | ||
382 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
383 | // InternalCftLanguage.g:26:7: ( 'transformation' ) | ||
384 | // InternalCftLanguage.g:26:9: 'transformation' | ||
385 | { | ||
386 | match("transformation"); | ||
387 | |||
388 | |||
389 | } | ||
390 | |||
391 | state.type = _type; | ||
392 | state.channel = _channel; | ||
393 | } | ||
394 | finally { | ||
395 | } | ||
396 | } | ||
397 | // $ANTLR end "T__28" | ||
398 | |||
399 | // $ANTLR start "T__29" | ||
400 | public final void mT__29() throws RecognitionException { | ||
401 | try { | ||
402 | int _type = T__29; | ||
403 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
404 | // InternalCftLanguage.g:27:7: ( 'toplevel' ) | ||
405 | // InternalCftLanguage.g:27:9: 'toplevel' | ||
406 | { | ||
407 | match("toplevel"); | ||
408 | |||
409 | |||
410 | } | ||
411 | |||
412 | state.type = _type; | ||
413 | state.channel = _channel; | ||
414 | } | ||
415 | finally { | ||
416 | } | ||
417 | } | ||
418 | // $ANTLR end "T__29" | ||
419 | |||
420 | // $ANTLR start "T__30" | ||
421 | public final void mT__30() throws RecognitionException { | ||
422 | try { | ||
423 | int _type = T__30; | ||
424 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
425 | // InternalCftLanguage.g:28:7: ( 'mapping' ) | ||
426 | // InternalCftLanguage.g:28:9: 'mapping' | ||
427 | { | ||
428 | match("mapping"); | ||
429 | |||
430 | |||
431 | } | ||
432 | |||
433 | state.type = _type; | ||
434 | state.channel = _channel; | ||
435 | } | ||
436 | finally { | ||
437 | } | ||
438 | } | ||
439 | // $ANTLR end "T__30" | ||
440 | |||
441 | // $ANTLR start "T__31" | ||
442 | public final void mT__31() throws RecognitionException { | ||
443 | try { | ||
444 | int _type = T__31; | ||
445 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
446 | // InternalCftLanguage.g:29:7: ( '(' ) | ||
447 | // InternalCftLanguage.g:29:9: '(' | ||
448 | { | ||
449 | match('('); | ||
450 | |||
451 | } | ||
452 | |||
453 | state.type = _type; | ||
454 | state.channel = _channel; | ||
455 | } | ||
456 | finally { | ||
457 | } | ||
458 | } | ||
459 | // $ANTLR end "T__31" | ||
460 | |||
461 | // $ANTLR start "T__32" | ||
462 | public final void mT__32() throws RecognitionException { | ||
463 | try { | ||
464 | int _type = T__32; | ||
465 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
466 | // InternalCftLanguage.g:30:7: ( ',' ) | ||
467 | // InternalCftLanguage.g:30:9: ',' | ||
468 | { | ||
469 | match(','); | ||
470 | |||
471 | } | ||
472 | |||
473 | state.type = _type; | ||
474 | state.channel = _channel; | ||
475 | } | ||
476 | finally { | ||
477 | } | ||
478 | } | ||
479 | // $ANTLR end "T__32" | ||
480 | |||
481 | // $ANTLR start "T__33" | ||
482 | public final void mT__33() throws RecognitionException { | ||
483 | try { | ||
484 | int _type = T__33; | ||
485 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
486 | // InternalCftLanguage.g:31:7: ( ')' ) | ||
487 | // InternalCftLanguage.g:31:9: ')' | ||
488 | { | ||
489 | match(')'); | ||
490 | |||
491 | } | ||
492 | |||
493 | state.type = _type; | ||
494 | state.channel = _channel; | ||
495 | } | ||
496 | finally { | ||
497 | } | ||
498 | } | ||
499 | // $ANTLR end "T__33" | ||
500 | |||
501 | // $ANTLR start "T__34" | ||
502 | public final void mT__34() throws RecognitionException { | ||
503 | try { | ||
504 | int _type = T__34; | ||
505 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
506 | // InternalCftLanguage.g:32:7: ( 'lookup' ) | ||
507 | // InternalCftLanguage.g:32:9: 'lookup' | ||
508 | { | ||
509 | match("lookup"); | ||
510 | |||
511 | |||
512 | } | ||
513 | |||
514 | state.type = _type; | ||
515 | state.channel = _channel; | ||
516 | } | ||
517 | finally { | ||
518 | } | ||
519 | } | ||
520 | // $ANTLR end "T__34" | ||
521 | |||
522 | // $ANTLR start "T__35" | ||
523 | public final void mT__35() throws RecognitionException { | ||
524 | try { | ||
525 | int _type = T__35; | ||
526 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
527 | // InternalCftLanguage.g:33:7: ( 'as' ) | ||
528 | // InternalCftLanguage.g:33:9: 'as' | ||
529 | { | ||
530 | match("as"); | ||
531 | |||
532 | |||
533 | } | ||
534 | |||
535 | state.type = _type; | ||
536 | state.channel = _channel; | ||
537 | } | ||
538 | finally { | ||
539 | } | ||
540 | } | ||
541 | // $ANTLR end "T__35" | ||
542 | |||
543 | // $ANTLR start "T__36" | ||
544 | public final void mT__36() throws RecognitionException { | ||
545 | try { | ||
546 | int _type = T__36; | ||
547 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
548 | // InternalCftLanguage.g:34:7: ( '+=' ) | ||
549 | // InternalCftLanguage.g:34:9: '+=' | ||
550 | { | ||
551 | match("+="); | ||
552 | |||
553 | |||
554 | } | ||
555 | |||
556 | state.type = _type; | ||
557 | state.channel = _channel; | ||
558 | } | ||
559 | finally { | ||
560 | } | ||
561 | } | ||
562 | // $ANTLR end "T__36" | ||
563 | |||
564 | // $ANTLR start "T__37" | ||
565 | public final void mT__37() throws RecognitionException { | ||
566 | try { | ||
567 | int _type = T__37; | ||
568 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
569 | // InternalCftLanguage.g:35:7: ( ':=' ) | ||
570 | // InternalCftLanguage.g:35:9: ':=' | ||
571 | { | ||
572 | match(":="); | ||
573 | |||
574 | |||
575 | } | ||
576 | |||
577 | state.type = _type; | ||
578 | state.channel = _channel; | ||
579 | } | ||
580 | finally { | ||
581 | } | ||
582 | } | ||
583 | // $ANTLR end "T__37" | ||
584 | |||
585 | // $ANTLR start "T__38" | ||
586 | public final void mT__38() throws RecognitionException { | ||
587 | try { | ||
588 | int _type = T__38; | ||
589 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
590 | // InternalCftLanguage.g:36:7: ( '.' ) | ||
591 | // InternalCftLanguage.g:36:9: '.' | ||
592 | { | ||
593 | match('.'); | ||
594 | |||
595 | } | ||
596 | |||
597 | state.type = _type; | ||
598 | state.channel = _channel; | ||
599 | } | ||
600 | finally { | ||
601 | } | ||
602 | } | ||
603 | // $ANTLR end "T__38" | ||
604 | |||
605 | // $ANTLR start "T__39" | ||
606 | public final void mT__39() throws RecognitionException { | ||
607 | try { | ||
608 | int _type = T__39; | ||
609 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
610 | // InternalCftLanguage.g:37:7: ( '=>' ) | ||
611 | // InternalCftLanguage.g:37:9: '=>' | ||
612 | { | ||
613 | match("=>"); | ||
614 | |||
615 | |||
616 | } | ||
617 | |||
618 | state.type = _type; | ||
619 | state.channel = _channel; | ||
620 | } | ||
621 | finally { | ||
622 | } | ||
623 | } | ||
624 | // $ANTLR end "T__39" | ||
625 | |||
626 | // $ANTLR start "T__40" | ||
627 | public final void mT__40() throws RecognitionException { | ||
628 | try { | ||
629 | int _type = T__40; | ||
630 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
631 | // InternalCftLanguage.g:38:7: ( '*' ) | ||
632 | // InternalCftLanguage.g:38:9: '*' | ||
633 | { | ||
634 | match('*'); | ||
635 | |||
636 | } | ||
637 | |||
638 | state.type = _type; | ||
639 | state.channel = _channel; | ||
640 | } | ||
641 | finally { | ||
642 | } | ||
643 | } | ||
644 | // $ANTLR end "T__40" | ||
645 | |||
646 | // $ANTLR start "RULE_OF_INT" | ||
647 | public final void mRULE_OF_INT() throws RecognitionException { | ||
648 | try { | ||
649 | int _type = RULE_OF_INT; | ||
650 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
651 | // InternalCftLanguage.g:1672:13: ( 'o' 'f' ( '0' .. '9' )+ ) | ||
652 | // InternalCftLanguage.g:1672:15: 'o' 'f' ( '0' .. '9' )+ | ||
653 | { | ||
654 | match('o'); | ||
655 | match('f'); | ||
656 | // InternalCftLanguage.g:1672:23: ( '0' .. '9' )+ | ||
657 | int cnt1=0; | ||
658 | loop1: | ||
659 | do { | ||
660 | int alt1=2; | ||
661 | int LA1_0 = input.LA(1); | ||
662 | |||
663 | if ( ((LA1_0>='0' && LA1_0<='9')) ) { | ||
664 | alt1=1; | ||
665 | } | ||
666 | |||
667 | |||
668 | switch (alt1) { | ||
669 | case 1 : | ||
670 | // InternalCftLanguage.g:1672:24: '0' .. '9' | ||
671 | { | ||
672 | matchRange('0','9'); | ||
673 | |||
674 | } | ||
675 | break; | ||
676 | |||
677 | default : | ||
678 | if ( cnt1 >= 1 ) break loop1; | ||
679 | EarlyExitException eee = | ||
680 | new EarlyExitException(1, input); | ||
681 | throw eee; | ||
682 | } | ||
683 | cnt1++; | ||
684 | } while (true); | ||
685 | |||
686 | |||
687 | } | ||
688 | |||
689 | state.type = _type; | ||
690 | state.channel = _channel; | ||
691 | } | ||
692 | finally { | ||
693 | } | ||
694 | } | ||
695 | // $ANTLR end "RULE_OF_INT" | ||
696 | |||
697 | // $ANTLR start "RULE_T_DOUBLE" | ||
698 | public final void mRULE_T_DOUBLE() throws RecognitionException { | ||
699 | try { | ||
700 | int _type = RULE_T_DOUBLE; | ||
701 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
702 | // InternalCftLanguage.g:1674:15: ( ( '0' .. '9' )+ ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) ) | ||
703 | // InternalCftLanguage.g:1674:17: ( '0' .. '9' )+ ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) | ||
704 | { | ||
705 | // InternalCftLanguage.g:1674:17: ( '0' .. '9' )+ | ||
706 | int cnt2=0; | ||
707 | loop2: | ||
708 | do { | ||
709 | int alt2=2; | ||
710 | int LA2_0 = input.LA(1); | ||
711 | |||
712 | if ( ((LA2_0>='0' && LA2_0<='9')) ) { | ||
713 | alt2=1; | ||
714 | } | ||
715 | |||
716 | |||
717 | switch (alt2) { | ||
718 | case 1 : | ||
719 | // InternalCftLanguage.g:1674:18: '0' .. '9' | ||
720 | { | ||
721 | matchRange('0','9'); | ||
722 | |||
723 | } | ||
724 | break; | ||
725 | |||
726 | default : | ||
727 | if ( cnt2 >= 1 ) break loop2; | ||
728 | EarlyExitException eee = | ||
729 | new EarlyExitException(2, input); | ||
730 | throw eee; | ||
731 | } | ||
732 | cnt2++; | ||
733 | } while (true); | ||
734 | |||
735 | // InternalCftLanguage.g:1674:29: ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) | ||
736 | int alt8=2; | ||
737 | alt8 = dfa8.predict(input); | ||
738 | switch (alt8) { | ||
739 | case 1 : | ||
740 | // InternalCftLanguage.g:1674:30: '.' ( '0' .. '9' )+ | ||
741 | { | ||
742 | match('.'); | ||
743 | // InternalCftLanguage.g:1674:34: ( '0' .. '9' )+ | ||
744 | int cnt3=0; | ||
745 | loop3: | ||
746 | do { | ||
747 | int alt3=2; | ||
748 | int LA3_0 = input.LA(1); | ||
749 | |||
750 | if ( ((LA3_0>='0' && LA3_0<='9')) ) { | ||
751 | alt3=1; | ||
752 | } | ||
753 | |||
754 | |||
755 | switch (alt3) { | ||
756 | case 1 : | ||
757 | // InternalCftLanguage.g:1674:35: '0' .. '9' | ||
758 | { | ||
759 | matchRange('0','9'); | ||
760 | |||
761 | } | ||
762 | break; | ||
763 | |||
764 | default : | ||
765 | if ( cnt3 >= 1 ) break loop3; | ||
766 | EarlyExitException eee = | ||
767 | new EarlyExitException(3, input); | ||
768 | throw eee; | ||
769 | } | ||
770 | cnt3++; | ||
771 | } while (true); | ||
772 | |||
773 | |||
774 | } | ||
775 | break; | ||
776 | case 2 : | ||
777 | // InternalCftLanguage.g:1674:46: ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ | ||
778 | { | ||
779 | // InternalCftLanguage.g:1674:46: ( '.' ( '0' .. '9' )+ )? | ||
780 | int alt5=2; | ||
781 | int LA5_0 = input.LA(1); | ||
782 | |||
783 | if ( (LA5_0=='.') ) { | ||
784 | alt5=1; | ||
785 | } | ||
786 | switch (alt5) { | ||
787 | case 1 : | ||
788 | // InternalCftLanguage.g:1674:47: '.' ( '0' .. '9' )+ | ||
789 | { | ||
790 | match('.'); | ||
791 | // InternalCftLanguage.g:1674:51: ( '0' .. '9' )+ | ||
792 | int cnt4=0; | ||
793 | loop4: | ||
794 | do { | ||
795 | int alt4=2; | ||
796 | int LA4_0 = input.LA(1); | ||
797 | |||
798 | if ( ((LA4_0>='0' && LA4_0<='9')) ) { | ||
799 | alt4=1; | ||
800 | } | ||
801 | |||
802 | |||
803 | switch (alt4) { | ||
804 | case 1 : | ||
805 | // InternalCftLanguage.g:1674:52: '0' .. '9' | ||
806 | { | ||
807 | matchRange('0','9'); | ||
808 | |||
809 | } | ||
810 | break; | ||
811 | |||
812 | default : | ||
813 | if ( cnt4 >= 1 ) break loop4; | ||
814 | EarlyExitException eee = | ||
815 | new EarlyExitException(4, input); | ||
816 | throw eee; | ||
817 | } | ||
818 | cnt4++; | ||
819 | } while (true); | ||
820 | |||
821 | |||
822 | } | ||
823 | break; | ||
824 | |||
825 | } | ||
826 | |||
827 | if ( input.LA(1)=='E'||input.LA(1)=='e' ) { | ||
828 | input.consume(); | ||
829 | |||
830 | } | ||
831 | else { | ||
832 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
833 | recover(mse); | ||
834 | throw mse;} | ||
835 | |||
836 | // InternalCftLanguage.g:1674:75: ( '+' | '-' )? | ||
837 | int alt6=2; | ||
838 | int LA6_0 = input.LA(1); | ||
839 | |||
840 | if ( (LA6_0=='+'||LA6_0=='-') ) { | ||
841 | alt6=1; | ||
842 | } | ||
843 | switch (alt6) { | ||
844 | case 1 : | ||
845 | // InternalCftLanguage.g: | ||
846 | { | ||
847 | if ( input.LA(1)=='+'||input.LA(1)=='-' ) { | ||
848 | input.consume(); | ||
849 | |||
850 | } | ||
851 | else { | ||
852 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
853 | recover(mse); | ||
854 | throw mse;} | ||
855 | |||
856 | |||
857 | } | ||
858 | break; | ||
859 | |||
860 | } | ||
861 | |||
862 | // InternalCftLanguage.g:1674:86: ( '0' .. '9' )+ | ||
863 | int cnt7=0; | ||
864 | loop7: | ||
865 | do { | ||
866 | int alt7=2; | ||
867 | int LA7_0 = input.LA(1); | ||
868 | |||
869 | if ( ((LA7_0>='0' && LA7_0<='9')) ) { | ||
870 | alt7=1; | ||
871 | } | ||
872 | |||
873 | |||
874 | switch (alt7) { | ||
875 | case 1 : | ||
876 | // InternalCftLanguage.g:1674:87: '0' .. '9' | ||
877 | { | ||
878 | matchRange('0','9'); | ||
879 | |||
880 | } | ||
881 | break; | ||
882 | |||
883 | default : | ||
884 | if ( cnt7 >= 1 ) break loop7; | ||
885 | EarlyExitException eee = | ||
886 | new EarlyExitException(7, input); | ||
887 | throw eee; | ||
888 | } | ||
889 | cnt7++; | ||
890 | } while (true); | ||
891 | |||
892 | |||
893 | } | ||
894 | break; | ||
895 | |||
896 | } | ||
897 | |||
898 | |||
899 | } | ||
900 | |||
901 | state.type = _type; | ||
902 | state.channel = _channel; | ||
903 | } | ||
904 | finally { | ||
905 | } | ||
906 | } | ||
907 | // $ANTLR end "RULE_T_DOUBLE" | ||
908 | |||
909 | // $ANTLR start "RULE_ID" | ||
910 | public final void mRULE_ID() throws RecognitionException { | ||
911 | try { | ||
912 | int _type = RULE_ID; | ||
913 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
914 | // InternalCftLanguage.g:1676:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) | ||
915 | // InternalCftLanguage.g:1676:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | ||
916 | { | ||
917 | // InternalCftLanguage.g:1676:11: ( '^' )? | ||
918 | int alt9=2; | ||
919 | int LA9_0 = input.LA(1); | ||
920 | |||
921 | if ( (LA9_0=='^') ) { | ||
922 | alt9=1; | ||
923 | } | ||
924 | switch (alt9) { | ||
925 | case 1 : | ||
926 | // InternalCftLanguage.g:1676:11: '^' | ||
927 | { | ||
928 | match('^'); | ||
929 | |||
930 | } | ||
931 | break; | ||
932 | |||
933 | } | ||
934 | |||
935 | if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { | ||
936 | input.consume(); | ||
937 | |||
938 | } | ||
939 | else { | ||
940 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
941 | recover(mse); | ||
942 | throw mse;} | ||
943 | |||
944 | // InternalCftLanguage.g:1676:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | ||
945 | loop10: | ||
946 | do { | ||
947 | int alt10=2; | ||
948 | int LA10_0 = input.LA(1); | ||
949 | |||
950 | if ( ((LA10_0>='0' && LA10_0<='9')||(LA10_0>='A' && LA10_0<='Z')||LA10_0=='_'||(LA10_0>='a' && LA10_0<='z')) ) { | ||
951 | alt10=1; | ||
952 | } | ||
953 | |||
954 | |||
955 | switch (alt10) { | ||
956 | case 1 : | ||
957 | // InternalCftLanguage.g: | ||
958 | { | ||
959 | 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') ) { | ||
960 | input.consume(); | ||
961 | |||
962 | } | ||
963 | else { | ||
964 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
965 | recover(mse); | ||
966 | throw mse;} | ||
967 | |||
968 | |||
969 | } | ||
970 | break; | ||
971 | |||
972 | default : | ||
973 | break loop10; | ||
974 | } | ||
975 | } while (true); | ||
976 | |||
977 | |||
978 | } | ||
979 | |||
980 | state.type = _type; | ||
981 | state.channel = _channel; | ||
982 | } | ||
983 | finally { | ||
984 | } | ||
985 | } | ||
986 | // $ANTLR end "RULE_ID" | ||
987 | |||
988 | // $ANTLR start "RULE_INT" | ||
989 | public final void mRULE_INT() throws RecognitionException { | ||
990 | try { | ||
991 | int _type = RULE_INT; | ||
992 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
993 | // InternalCftLanguage.g:1678:10: ( ( '0' .. '9' )+ ) | ||
994 | // InternalCftLanguage.g:1678:12: ( '0' .. '9' )+ | ||
995 | { | ||
996 | // InternalCftLanguage.g:1678:12: ( '0' .. '9' )+ | ||
997 | int cnt11=0; | ||
998 | loop11: | ||
999 | do { | ||
1000 | int alt11=2; | ||
1001 | int LA11_0 = input.LA(1); | ||
1002 | |||
1003 | if ( ((LA11_0>='0' && LA11_0<='9')) ) { | ||
1004 | alt11=1; | ||
1005 | } | ||
1006 | |||
1007 | |||
1008 | switch (alt11) { | ||
1009 | case 1 : | ||
1010 | // InternalCftLanguage.g:1678:13: '0' .. '9' | ||
1011 | { | ||
1012 | matchRange('0','9'); | ||
1013 | |||
1014 | } | ||
1015 | break; | ||
1016 | |||
1017 | default : | ||
1018 | if ( cnt11 >= 1 ) break loop11; | ||
1019 | EarlyExitException eee = | ||
1020 | new EarlyExitException(11, input); | ||
1021 | throw eee; | ||
1022 | } | ||
1023 | cnt11++; | ||
1024 | } while (true); | ||
1025 | |||
1026 | |||
1027 | } | ||
1028 | |||
1029 | state.type = _type; | ||
1030 | state.channel = _channel; | ||
1031 | } | ||
1032 | finally { | ||
1033 | } | ||
1034 | } | ||
1035 | // $ANTLR end "RULE_INT" | ||
1036 | |||
1037 | // $ANTLR start "RULE_STRING" | ||
1038 | public final void mRULE_STRING() throws RecognitionException { | ||
1039 | try { | ||
1040 | int _type = RULE_STRING; | ||
1041 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1042 | // InternalCftLanguage.g:1680:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) ) | ||
1043 | // InternalCftLanguage.g:1680:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) | ||
1044 | { | ||
1045 | // InternalCftLanguage.g:1680:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) | ||
1046 | int alt14=2; | ||
1047 | int LA14_0 = input.LA(1); | ||
1048 | |||
1049 | if ( (LA14_0=='\"') ) { | ||
1050 | alt14=1; | ||
1051 | } | ||
1052 | else if ( (LA14_0=='\'') ) { | ||
1053 | alt14=2; | ||
1054 | } | ||
1055 | else { | ||
1056 | NoViableAltException nvae = | ||
1057 | new NoViableAltException("", 14, 0, input); | ||
1058 | |||
1059 | throw nvae; | ||
1060 | } | ||
1061 | switch (alt14) { | ||
1062 | case 1 : | ||
1063 | // InternalCftLanguage.g:1680:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | ||
1064 | { | ||
1065 | match('\"'); | ||
1066 | // InternalCftLanguage.g:1680:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* | ||
1067 | loop12: | ||
1068 | do { | ||
1069 | int alt12=3; | ||
1070 | int LA12_0 = input.LA(1); | ||
1071 | |||
1072 | if ( (LA12_0=='\\') ) { | ||
1073 | alt12=1; | ||
1074 | } | ||
1075 | else if ( ((LA12_0>='\u0000' && LA12_0<='!')||(LA12_0>='#' && LA12_0<='[')||(LA12_0>=']' && LA12_0<='\uFFFF')) ) { | ||
1076 | alt12=2; | ||
1077 | } | ||
1078 | |||
1079 | |||
1080 | switch (alt12) { | ||
1081 | case 1 : | ||
1082 | // InternalCftLanguage.g:1680:21: '\\\\' . | ||
1083 | { | ||
1084 | match('\\'); | ||
1085 | matchAny(); | ||
1086 | |||
1087 | } | ||
1088 | break; | ||
1089 | case 2 : | ||
1090 | // InternalCftLanguage.g:1680:28: ~ ( ( '\\\\' | '\"' ) ) | ||
1091 | { | ||
1092 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { | ||
1093 | input.consume(); | ||
1094 | |||
1095 | } | ||
1096 | else { | ||
1097 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
1098 | recover(mse); | ||
1099 | throw mse;} | ||
1100 | |||
1101 | |||
1102 | } | ||
1103 | break; | ||
1104 | |||
1105 | default : | ||
1106 | break loop12; | ||
1107 | } | ||
1108 | } while (true); | ||
1109 | |||
1110 | match('\"'); | ||
1111 | |||
1112 | } | ||
1113 | break; | ||
1114 | case 2 : | ||
1115 | // InternalCftLanguage.g:1680:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' | ||
1116 | { | ||
1117 | match('\''); | ||
1118 | // InternalCftLanguage.g:1680:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* | ||
1119 | loop13: | ||
1120 | do { | ||
1121 | int alt13=3; | ||
1122 | int LA13_0 = input.LA(1); | ||
1123 | |||
1124 | if ( (LA13_0=='\\') ) { | ||
1125 | alt13=1; | ||
1126 | } | ||
1127 | else if ( ((LA13_0>='\u0000' && LA13_0<='&')||(LA13_0>='(' && LA13_0<='[')||(LA13_0>=']' && LA13_0<='\uFFFF')) ) { | ||
1128 | alt13=2; | ||
1129 | } | ||
1130 | |||
1131 | |||
1132 | switch (alt13) { | ||
1133 | case 1 : | ||
1134 | // InternalCftLanguage.g:1680:54: '\\\\' . | ||
1135 | { | ||
1136 | match('\\'); | ||
1137 | matchAny(); | ||
1138 | |||
1139 | } | ||
1140 | break; | ||
1141 | case 2 : | ||
1142 | // InternalCftLanguage.g:1680:61: ~ ( ( '\\\\' | '\\'' ) ) | ||
1143 | { | ||
1144 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { | ||
1145 | input.consume(); | ||
1146 | |||
1147 | } | ||
1148 | else { | ||
1149 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
1150 | recover(mse); | ||
1151 | throw mse;} | ||
1152 | |||
1153 | |||
1154 | } | ||
1155 | break; | ||
1156 | |||
1157 | default : | ||
1158 | break loop13; | ||
1159 | } | ||
1160 | } while (true); | ||
1161 | |||
1162 | match('\''); | ||
1163 | |||
1164 | } | ||
1165 | break; | ||
1166 | |||
1167 | } | ||
1168 | |||
1169 | |||
1170 | } | ||
1171 | |||
1172 | state.type = _type; | ||
1173 | state.channel = _channel; | ||
1174 | } | ||
1175 | finally { | ||
1176 | } | ||
1177 | } | ||
1178 | // $ANTLR end "RULE_STRING" | ||
1179 | |||
1180 | // $ANTLR start "RULE_ML_COMMENT" | ||
1181 | public final void mRULE_ML_COMMENT() throws RecognitionException { | ||
1182 | try { | ||
1183 | int _type = RULE_ML_COMMENT; | ||
1184 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1185 | // InternalCftLanguage.g:1682:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) | ||
1186 | // InternalCftLanguage.g:1682:19: '/*' ( options {greedy=false; } : . )* '*/' | ||
1187 | { | ||
1188 | match("/*"); | ||
1189 | |||
1190 | // InternalCftLanguage.g:1682:24: ( options {greedy=false; } : . )* | ||
1191 | loop15: | ||
1192 | do { | ||
1193 | int alt15=2; | ||
1194 | int LA15_0 = input.LA(1); | ||
1195 | |||
1196 | if ( (LA15_0=='*') ) { | ||
1197 | int LA15_1 = input.LA(2); | ||
1198 | |||
1199 | if ( (LA15_1=='/') ) { | ||
1200 | alt15=2; | ||
1201 | } | ||
1202 | else if ( ((LA15_1>='\u0000' && LA15_1<='.')||(LA15_1>='0' && LA15_1<='\uFFFF')) ) { | ||
1203 | alt15=1; | ||
1204 | } | ||
1205 | |||
1206 | |||
1207 | } | ||
1208 | else if ( ((LA15_0>='\u0000' && LA15_0<=')')||(LA15_0>='+' && LA15_0<='\uFFFF')) ) { | ||
1209 | alt15=1; | ||
1210 | } | ||
1211 | |||
1212 | |||
1213 | switch (alt15) { | ||
1214 | case 1 : | ||
1215 | // InternalCftLanguage.g:1682:52: . | ||
1216 | { | ||
1217 | matchAny(); | ||
1218 | |||
1219 | } | ||
1220 | break; | ||
1221 | |||
1222 | default : | ||
1223 | break loop15; | ||
1224 | } | ||
1225 | } while (true); | ||
1226 | |||
1227 | match("*/"); | ||
1228 | |||
1229 | |||
1230 | } | ||
1231 | |||
1232 | state.type = _type; | ||
1233 | state.channel = _channel; | ||
1234 | } | ||
1235 | finally { | ||
1236 | } | ||
1237 | } | ||
1238 | // $ANTLR end "RULE_ML_COMMENT" | ||
1239 | |||
1240 | // $ANTLR start "RULE_SL_COMMENT" | ||
1241 | public final void mRULE_SL_COMMENT() throws RecognitionException { | ||
1242 | try { | ||
1243 | int _type = RULE_SL_COMMENT; | ||
1244 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1245 | // InternalCftLanguage.g:1684:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) | ||
1246 | // InternalCftLanguage.g:1684:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? | ||
1247 | { | ||
1248 | match("//"); | ||
1249 | |||
1250 | // InternalCftLanguage.g:1684:24: (~ ( ( '\\n' | '\\r' ) ) )* | ||
1251 | loop16: | ||
1252 | do { | ||
1253 | int alt16=2; | ||
1254 | int LA16_0 = input.LA(1); | ||
1255 | |||
1256 | if ( ((LA16_0>='\u0000' && LA16_0<='\t')||(LA16_0>='\u000B' && LA16_0<='\f')||(LA16_0>='\u000E' && LA16_0<='\uFFFF')) ) { | ||
1257 | alt16=1; | ||
1258 | } | ||
1259 | |||
1260 | |||
1261 | switch (alt16) { | ||
1262 | case 1 : | ||
1263 | // InternalCftLanguage.g:1684:24: ~ ( ( '\\n' | '\\r' ) ) | ||
1264 | { | ||
1265 | 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') ) { | ||
1266 | input.consume(); | ||
1267 | |||
1268 | } | ||
1269 | else { | ||
1270 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
1271 | recover(mse); | ||
1272 | throw mse;} | ||
1273 | |||
1274 | |||
1275 | } | ||
1276 | break; | ||
1277 | |||
1278 | default : | ||
1279 | break loop16; | ||
1280 | } | ||
1281 | } while (true); | ||
1282 | |||
1283 | // InternalCftLanguage.g:1684:40: ( ( '\\r' )? '\\n' )? | ||
1284 | int alt18=2; | ||
1285 | int LA18_0 = input.LA(1); | ||
1286 | |||
1287 | if ( (LA18_0=='\n'||LA18_0=='\r') ) { | ||
1288 | alt18=1; | ||
1289 | } | ||
1290 | switch (alt18) { | ||
1291 | case 1 : | ||
1292 | // InternalCftLanguage.g:1684:41: ( '\\r' )? '\\n' | ||
1293 | { | ||
1294 | // InternalCftLanguage.g:1684:41: ( '\\r' )? | ||
1295 | int alt17=2; | ||
1296 | int LA17_0 = input.LA(1); | ||
1297 | |||
1298 | if ( (LA17_0=='\r') ) { | ||
1299 | alt17=1; | ||
1300 | } | ||
1301 | switch (alt17) { | ||
1302 | case 1 : | ||
1303 | // InternalCftLanguage.g:1684:41: '\\r' | ||
1304 | { | ||
1305 | match('\r'); | ||
1306 | |||
1307 | } | ||
1308 | break; | ||
1309 | |||
1310 | } | ||
1311 | |||
1312 | match('\n'); | ||
1313 | |||
1314 | } | ||
1315 | break; | ||
1316 | |||
1317 | } | ||
1318 | |||
1319 | |||
1320 | } | ||
1321 | |||
1322 | state.type = _type; | ||
1323 | state.channel = _channel; | ||
1324 | } | ||
1325 | finally { | ||
1326 | } | ||
1327 | } | ||
1328 | // $ANTLR end "RULE_SL_COMMENT" | ||
1329 | |||
1330 | // $ANTLR start "RULE_WS" | ||
1331 | public final void mRULE_WS() throws RecognitionException { | ||
1332 | try { | ||
1333 | int _type = RULE_WS; | ||
1334 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1335 | // InternalCftLanguage.g:1686:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) | ||
1336 | // InternalCftLanguage.g:1686:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ | ||
1337 | { | ||
1338 | // InternalCftLanguage.g:1686:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ | ||
1339 | int cnt19=0; | ||
1340 | loop19: | ||
1341 | do { | ||
1342 | int alt19=2; | ||
1343 | int LA19_0 = input.LA(1); | ||
1344 | |||
1345 | if ( ((LA19_0>='\t' && LA19_0<='\n')||LA19_0=='\r'||LA19_0==' ') ) { | ||
1346 | alt19=1; | ||
1347 | } | ||
1348 | |||
1349 | |||
1350 | switch (alt19) { | ||
1351 | case 1 : | ||
1352 | // InternalCftLanguage.g: | ||
1353 | { | ||
1354 | if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) { | ||
1355 | input.consume(); | ||
1356 | |||
1357 | } | ||
1358 | else { | ||
1359 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
1360 | recover(mse); | ||
1361 | throw mse;} | ||
1362 | |||
1363 | |||
1364 | } | ||
1365 | break; | ||
1366 | |||
1367 | default : | ||
1368 | if ( cnt19 >= 1 ) break loop19; | ||
1369 | EarlyExitException eee = | ||
1370 | new EarlyExitException(19, input); | ||
1371 | throw eee; | ||
1372 | } | ||
1373 | cnt19++; | ||
1374 | } while (true); | ||
1375 | |||
1376 | |||
1377 | } | ||
1378 | |||
1379 | state.type = _type; | ||
1380 | state.channel = _channel; | ||
1381 | } | ||
1382 | finally { | ||
1383 | } | ||
1384 | } | ||
1385 | // $ANTLR end "RULE_WS" | ||
1386 | |||
1387 | // $ANTLR start "RULE_ANY_OTHER" | ||
1388 | public final void mRULE_ANY_OTHER() throws RecognitionException { | ||
1389 | try { | ||
1390 | int _type = RULE_ANY_OTHER; | ||
1391 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
1392 | // InternalCftLanguage.g:1688:16: ( . ) | ||
1393 | // InternalCftLanguage.g:1688:18: . | ||
1394 | { | ||
1395 | matchAny(); | ||
1396 | |||
1397 | } | ||
1398 | |||
1399 | state.type = _type; | ||
1400 | state.channel = _channel; | ||
1401 | } | ||
1402 | finally { | ||
1403 | } | ||
1404 | } | ||
1405 | // $ANTLR end "RULE_ANY_OTHER" | ||
1406 | |||
1407 | public void mTokens() throws RecognitionException { | ||
1408 | // InternalCftLanguage.g:1:8: ( 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 | T__38 | T__39 | T__40 | RULE_OF_INT | RULE_T_DOUBLE | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER ) | ||
1409 | int alt20=37; | ||
1410 | alt20 = dfa20.predict(input); | ||
1411 | switch (alt20) { | ||
1412 | case 1 : | ||
1413 | // InternalCftLanguage.g:1:10: T__13 | ||
1414 | { | ||
1415 | mT__13(); | ||
1416 | |||
1417 | } | ||
1418 | break; | ||
1419 | case 2 : | ||
1420 | // InternalCftLanguage.g:1:16: T__14 | ||
1421 | { | ||
1422 | mT__14(); | ||
1423 | |||
1424 | } | ||
1425 | break; | ||
1426 | case 3 : | ||
1427 | // InternalCftLanguage.g:1:22: T__15 | ||
1428 | { | ||
1429 | mT__15(); | ||
1430 | |||
1431 | } | ||
1432 | break; | ||
1433 | case 4 : | ||
1434 | // InternalCftLanguage.g:1:28: T__16 | ||
1435 | { | ||
1436 | mT__16(); | ||
1437 | |||
1438 | } | ||
1439 | break; | ||
1440 | case 5 : | ||
1441 | // InternalCftLanguage.g:1:34: T__17 | ||
1442 | { | ||
1443 | mT__17(); | ||
1444 | |||
1445 | } | ||
1446 | break; | ||
1447 | case 6 : | ||
1448 | // InternalCftLanguage.g:1:40: T__18 | ||
1449 | { | ||
1450 | mT__18(); | ||
1451 | |||
1452 | } | ||
1453 | break; | ||
1454 | case 7 : | ||
1455 | // InternalCftLanguage.g:1:46: T__19 | ||
1456 | { | ||
1457 | mT__19(); | ||
1458 | |||
1459 | } | ||
1460 | break; | ||
1461 | case 8 : | ||
1462 | // InternalCftLanguage.g:1:52: T__20 | ||
1463 | { | ||
1464 | mT__20(); | ||
1465 | |||
1466 | } | ||
1467 | break; | ||
1468 | case 9 : | ||
1469 | // InternalCftLanguage.g:1:58: T__21 | ||
1470 | { | ||
1471 | mT__21(); | ||
1472 | |||
1473 | } | ||
1474 | break; | ||
1475 | case 10 : | ||
1476 | // InternalCftLanguage.g:1:64: T__22 | ||
1477 | { | ||
1478 | mT__22(); | ||
1479 | |||
1480 | } | ||
1481 | break; | ||
1482 | case 11 : | ||
1483 | // InternalCftLanguage.g:1:70: T__23 | ||
1484 | { | ||
1485 | mT__23(); | ||
1486 | |||
1487 | } | ||
1488 | break; | ||
1489 | case 12 : | ||
1490 | // InternalCftLanguage.g:1:76: T__24 | ||
1491 | { | ||
1492 | mT__24(); | ||
1493 | |||
1494 | } | ||
1495 | break; | ||
1496 | case 13 : | ||
1497 | // InternalCftLanguage.g:1:82: T__25 | ||
1498 | { | ||
1499 | mT__25(); | ||
1500 | |||
1501 | } | ||
1502 | break; | ||
1503 | case 14 : | ||
1504 | // InternalCftLanguage.g:1:88: T__26 | ||
1505 | { | ||
1506 | mT__26(); | ||
1507 | |||
1508 | } | ||
1509 | break; | ||
1510 | case 15 : | ||
1511 | // InternalCftLanguage.g:1:94: T__27 | ||
1512 | { | ||
1513 | mT__27(); | ||
1514 | |||
1515 | } | ||
1516 | break; | ||
1517 | case 16 : | ||
1518 | // InternalCftLanguage.g:1:100: T__28 | ||
1519 | { | ||
1520 | mT__28(); | ||
1521 | |||
1522 | } | ||
1523 | break; | ||
1524 | case 17 : | ||
1525 | // InternalCftLanguage.g:1:106: T__29 | ||
1526 | { | ||
1527 | mT__29(); | ||
1528 | |||
1529 | } | ||
1530 | break; | ||
1531 | case 18 : | ||
1532 | // InternalCftLanguage.g:1:112: T__30 | ||
1533 | { | ||
1534 | mT__30(); | ||
1535 | |||
1536 | } | ||
1537 | break; | ||
1538 | case 19 : | ||
1539 | // InternalCftLanguage.g:1:118: T__31 | ||
1540 | { | ||
1541 | mT__31(); | ||
1542 | |||
1543 | } | ||
1544 | break; | ||
1545 | case 20 : | ||
1546 | // InternalCftLanguage.g:1:124: T__32 | ||
1547 | { | ||
1548 | mT__32(); | ||
1549 | |||
1550 | } | ||
1551 | break; | ||
1552 | case 21 : | ||
1553 | // InternalCftLanguage.g:1:130: T__33 | ||
1554 | { | ||
1555 | mT__33(); | ||
1556 | |||
1557 | } | ||
1558 | break; | ||
1559 | case 22 : | ||
1560 | // InternalCftLanguage.g:1:136: T__34 | ||
1561 | { | ||
1562 | mT__34(); | ||
1563 | |||
1564 | } | ||
1565 | break; | ||
1566 | case 23 : | ||
1567 | // InternalCftLanguage.g:1:142: T__35 | ||
1568 | { | ||
1569 | mT__35(); | ||
1570 | |||
1571 | } | ||
1572 | break; | ||
1573 | case 24 : | ||
1574 | // InternalCftLanguage.g:1:148: T__36 | ||
1575 | { | ||
1576 | mT__36(); | ||
1577 | |||
1578 | } | ||
1579 | break; | ||
1580 | case 25 : | ||
1581 | // InternalCftLanguage.g:1:154: T__37 | ||
1582 | { | ||
1583 | mT__37(); | ||
1584 | |||
1585 | } | ||
1586 | break; | ||
1587 | case 26 : | ||
1588 | // InternalCftLanguage.g:1:160: T__38 | ||
1589 | { | ||
1590 | mT__38(); | ||
1591 | |||
1592 | } | ||
1593 | break; | ||
1594 | case 27 : | ||
1595 | // InternalCftLanguage.g:1:166: T__39 | ||
1596 | { | ||
1597 | mT__39(); | ||
1598 | |||
1599 | } | ||
1600 | break; | ||
1601 | case 28 : | ||
1602 | // InternalCftLanguage.g:1:172: T__40 | ||
1603 | { | ||
1604 | mT__40(); | ||
1605 | |||
1606 | } | ||
1607 | break; | ||
1608 | case 29 : | ||
1609 | // InternalCftLanguage.g:1:178: RULE_OF_INT | ||
1610 | { | ||
1611 | mRULE_OF_INT(); | ||
1612 | |||
1613 | } | ||
1614 | break; | ||
1615 | case 30 : | ||
1616 | // InternalCftLanguage.g:1:190: RULE_T_DOUBLE | ||
1617 | { | ||
1618 | mRULE_T_DOUBLE(); | ||
1619 | |||
1620 | } | ||
1621 | break; | ||
1622 | case 31 : | ||
1623 | // InternalCftLanguage.g:1:204: RULE_ID | ||
1624 | { | ||
1625 | mRULE_ID(); | ||
1626 | |||
1627 | } | ||
1628 | break; | ||
1629 | case 32 : | ||
1630 | // InternalCftLanguage.g:1:212: RULE_INT | ||
1631 | { | ||
1632 | mRULE_INT(); | ||
1633 | |||
1634 | } | ||
1635 | break; | ||
1636 | case 33 : | ||
1637 | // InternalCftLanguage.g:1:221: RULE_STRING | ||
1638 | { | ||
1639 | mRULE_STRING(); | ||
1640 | |||
1641 | } | ||
1642 | break; | ||
1643 | case 34 : | ||
1644 | // InternalCftLanguage.g:1:233: RULE_ML_COMMENT | ||
1645 | { | ||
1646 | mRULE_ML_COMMENT(); | ||
1647 | |||
1648 | } | ||
1649 | break; | ||
1650 | case 35 : | ||
1651 | // InternalCftLanguage.g:1:249: RULE_SL_COMMENT | ||
1652 | { | ||
1653 | mRULE_SL_COMMENT(); | ||
1654 | |||
1655 | } | ||
1656 | break; | ||
1657 | case 36 : | ||
1658 | // InternalCftLanguage.g:1:265: RULE_WS | ||
1659 | { | ||
1660 | mRULE_WS(); | ||
1661 | |||
1662 | } | ||
1663 | break; | ||
1664 | case 37 : | ||
1665 | // InternalCftLanguage.g:1:273: RULE_ANY_OTHER | ||
1666 | { | ||
1667 | mRULE_ANY_OTHER(); | ||
1668 | |||
1669 | } | ||
1670 | break; | ||
1671 | |||
1672 | } | ||
1673 | |||
1674 | } | ||
1675 | |||
1676 | |||
1677 | protected DFA8 dfa8 = new DFA8(this); | ||
1678 | protected DFA20 dfa20 = new DFA20(this); | ||
1679 | static final String DFA8_eotS = | ||
1680 | "\3\uffff\1\4\1\uffff"; | ||
1681 | static final String DFA8_eofS = | ||
1682 | "\5\uffff"; | ||
1683 | static final String DFA8_minS = | ||
1684 | "\1\56\1\60\1\uffff\1\60\1\uffff"; | ||
1685 | static final String DFA8_maxS = | ||
1686 | "\1\145\1\71\1\uffff\1\145\1\uffff"; | ||
1687 | static final String DFA8_acceptS = | ||
1688 | "\2\uffff\1\2\1\uffff\1\1"; | ||
1689 | static final String DFA8_specialS = | ||
1690 | "\5\uffff}>"; | ||
1691 | static final String[] DFA8_transitionS = { | ||
1692 | "\1\1\26\uffff\1\2\37\uffff\1\2", | ||
1693 | "\12\3", | ||
1694 | "", | ||
1695 | "\12\3\13\uffff\1\2\37\uffff\1\2", | ||
1696 | "" | ||
1697 | }; | ||
1698 | |||
1699 | static final short[] DFA8_eot = DFA.unpackEncodedString(DFA8_eotS); | ||
1700 | static final short[] DFA8_eof = DFA.unpackEncodedString(DFA8_eofS); | ||
1701 | static final char[] DFA8_min = DFA.unpackEncodedStringToUnsignedChars(DFA8_minS); | ||
1702 | static final char[] DFA8_max = DFA.unpackEncodedStringToUnsignedChars(DFA8_maxS); | ||
1703 | static final short[] DFA8_accept = DFA.unpackEncodedString(DFA8_acceptS); | ||
1704 | static final short[] DFA8_special = DFA.unpackEncodedString(DFA8_specialS); | ||
1705 | static final short[][] DFA8_transition; | ||
1706 | |||
1707 | static { | ||
1708 | int numStates = DFA8_transitionS.length; | ||
1709 | DFA8_transition = new short[numStates][]; | ||
1710 | for (int i=0; i<numStates; i++) { | ||
1711 | DFA8_transition[i] = DFA.unpackEncodedString(DFA8_transitionS[i]); | ||
1712 | } | ||
1713 | } | ||
1714 | |||
1715 | class DFA8 extends DFA { | ||
1716 | |||
1717 | public DFA8(BaseRecognizer recognizer) { | ||
1718 | this.recognizer = recognizer; | ||
1719 | this.decisionNumber = 8; | ||
1720 | this.eot = DFA8_eot; | ||
1721 | this.eof = DFA8_eof; | ||
1722 | this.min = DFA8_min; | ||
1723 | this.max = DFA8_max; | ||
1724 | this.accept = DFA8_accept; | ||
1725 | this.special = DFA8_special; | ||
1726 | this.transition = DFA8_transition; | ||
1727 | } | ||
1728 | public String getDescription() { | ||
1729 | return "1674:29: ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ )"; | ||
1730 | } | ||
1731 | } | ||
1732 | static final String DFA20_eotS = | ||
1733 | "\1\uffff\1\37\1\uffff\2\37\1\uffff\1\37\1\uffff\1\34\1\53\4\37\3\uffff\2\34\2\uffff\1\74\1\34\1\uffff\3\34\2\uffff\2\37\2\uffff\1\37\1\104\1\37\1\uffff\1\37\1\107\1\110\4\uffff\3\37\1\115\3\37\10\uffff\1\74\5\uffff\3\37\1\uffff\1\124\1\125\2\uffff\1\126\2\37\1\131\1\uffff\4\37\1\136\1\37\3\uffff\2\37\1\uffff\4\37\1\uffff\7\37\1\155\1\156\1\157\3\37\1\163\3\uffff\2\37\1\166\1\uffff\1\37\1\170\1\uffff\1\37\1\uffff\4\37\1\176\1\uffff"; | ||
1734 | static final String DFA20_eofS = | ||
1735 | "\177\uffff"; | ||
1736 | static final String DFA20_minS = | ||
1737 | "\1\0\1\141\1\uffff\1\155\1\146\1\uffff\1\146\1\uffff\1\135\1\76\1\141\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\1\157\2\uffff\1\160\1\60\1\164\1\uffff\1\164\2\60\4\uffff\1\155\1\157\1\144\1\60\1\141\2\160\10\uffff\1\56\5\uffff\1\153\1\142\1\157\1\uffff\2\60\2\uffff\1\60\1\142\1\153\1\60\1\uffff\1\156\1\154\1\160\1\141\1\60\1\162\3\uffff\1\144\1\165\1\uffff\1\163\1\145\1\151\1\147\1\uffff\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"; | ||
1738 | static final String DFA20_maxS = | ||
1739 | "\1\uffff\1\162\1\uffff\1\156\1\146\1\uffff\1\165\1\uffff\1\135\1\76\1\157\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\1\157\2\uffff\1\160\1\172\1\164\1\uffff\1\164\2\172\4\uffff\1\155\1\157\1\144\1\172\1\141\2\160\10\uffff\1\145\5\uffff\1\153\1\142\1\157\1\uffff\2\172\2\uffff\1\172\1\142\1\153\1\172\1\uffff\1\156\1\154\1\160\1\141\1\172\1\162\3\uffff\1\144\1\165\1\uffff\1\163\1\145\1\151\1\147\1\uffff\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"; | ||
1740 | static final String DFA20_acceptS = | ||
1741 | "\2\uffff\1\2\2\uffff\1\5\1\uffff\1\10\6\uffff\1\23\1\24\1\25\2\uffff\1\32\1\34\2\uffff\1\37\3\uffff\1\44\1\45\2\uffff\1\37\1\2\3\uffff\1\5\3\uffff\1\10\1\11\1\33\1\13\7\uffff\1\23\1\24\1\25\1\30\1\31\1\32\1\34\1\36\1\uffff\1\40\1\41\1\42\1\43\1\44\3\uffff\1\6\2\uffff\1\16\1\17\4\uffff\1\27\6\uffff\1\4\1\7\1\35\2\uffff\1\15\4\uffff\1\12\16\uffff\1\3\1\14\1\26\3\uffff\1\1\2\uffff\1\22\1\uffff\1\21\5\uffff\1\20"; | ||
1742 | static final String DFA20_specialS = | ||
1743 | "\1\1\27\uffff\1\2\1\0\145\uffff}>"; | ||
1744 | static final String[] DFA20_transitionS = { | ||
1745 | "\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\11\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\12\1\15\1\27\1\6\1\1\3\27\1\14\6\27\1\5\1\34\1\7\uff82\34", | ||
1746 | "\1\35\20\uffff\1\36", | ||
1747 | "", | ||
1748 | "\1\41\1\42", | ||
1749 | "\1\43", | ||
1750 | "", | ||
1751 | "\1\47\13\uffff\1\46\2\uffff\1\45", | ||
1752 | "", | ||
1753 | "\1\51", | ||
1754 | "\1\52", | ||
1755 | "\1\54\15\uffff\1\55", | ||
1756 | "\1\56\4\uffff\1\57", | ||
1757 | "\1\61\2\uffff\1\60", | ||
1758 | "\1\62", | ||
1759 | "", | ||
1760 | "", | ||
1761 | "", | ||
1762 | "\1\66", | ||
1763 | "\1\67", | ||
1764 | "", | ||
1765 | "", | ||
1766 | "\1\72\1\uffff\12\73\13\uffff\1\72\37\uffff\1\72", | ||
1767 | "\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1768 | "", | ||
1769 | "\0\75", | ||
1770 | "\0\75", | ||
1771 | "\1\76\4\uffff\1\77", | ||
1772 | "", | ||
1773 | "", | ||
1774 | "\1\101", | ||
1775 | "\1\102", | ||
1776 | "", | ||
1777 | "", | ||
1778 | "\1\103", | ||
1779 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1780 | "\1\105", | ||
1781 | "", | ||
1782 | "\1\106", | ||
1783 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1784 | "\12\111\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1785 | "", | ||
1786 | "", | ||
1787 | "", | ||
1788 | "", | ||
1789 | "\1\112", | ||
1790 | "\1\113", | ||
1791 | "\1\114", | ||
1792 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1793 | "\1\116", | ||
1794 | "\1\117", | ||
1795 | "\1\120", | ||
1796 | "", | ||
1797 | "", | ||
1798 | "", | ||
1799 | "", | ||
1800 | "", | ||
1801 | "", | ||
1802 | "", | ||
1803 | "", | ||
1804 | "\1\72\1\uffff\12\73\13\uffff\1\72\37\uffff\1\72", | ||
1805 | "", | ||
1806 | "", | ||
1807 | "", | ||
1808 | "", | ||
1809 | "", | ||
1810 | "\1\121", | ||
1811 | "\1\122", | ||
1812 | "\1\123", | ||
1813 | "", | ||
1814 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1815 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1816 | "", | ||
1817 | "", | ||
1818 | "\12\111\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1819 | "\1\127", | ||
1820 | "\1\130", | ||
1821 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1822 | "", | ||
1823 | "\1\132", | ||
1824 | "\1\133", | ||
1825 | "\1\134", | ||
1826 | "\1\135", | ||
1827 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1828 | "\1\137", | ||
1829 | "", | ||
1830 | "", | ||
1831 | "", | ||
1832 | "\1\140", | ||
1833 | "\1\141", | ||
1834 | "", | ||
1835 | "\1\142", | ||
1836 | "\1\143", | ||
1837 | "\1\144", | ||
1838 | "\1\145", | ||
1839 | "", | ||
1840 | "\1\146", | ||
1841 | "\1\147", | ||
1842 | "\1\150", | ||
1843 | "\1\151", | ||
1844 | "\1\152", | ||
1845 | "\1\153", | ||
1846 | "\1\154", | ||
1847 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1848 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1849 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1850 | "\1\160", | ||
1851 | "\1\161", | ||
1852 | "\1\162", | ||
1853 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1854 | "", | ||
1855 | "", | ||
1856 | "", | ||
1857 | "\1\164", | ||
1858 | "\1\165", | ||
1859 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1860 | "", | ||
1861 | "\1\167", | ||
1862 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1863 | "", | ||
1864 | "\1\171", | ||
1865 | "", | ||
1866 | "\1\172", | ||
1867 | "\1\173", | ||
1868 | "\1\174", | ||
1869 | "\1\175", | ||
1870 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1871 | "" | ||
1872 | }; | ||
1873 | |||
1874 | static final short[] DFA20_eot = DFA.unpackEncodedString(DFA20_eotS); | ||
1875 | static final short[] DFA20_eof = DFA.unpackEncodedString(DFA20_eofS); | ||
1876 | static final char[] DFA20_min = DFA.unpackEncodedStringToUnsignedChars(DFA20_minS); | ||
1877 | static final char[] DFA20_max = DFA.unpackEncodedStringToUnsignedChars(DFA20_maxS); | ||
1878 | static final short[] DFA20_accept = DFA.unpackEncodedString(DFA20_acceptS); | ||
1879 | static final short[] DFA20_special = DFA.unpackEncodedString(DFA20_specialS); | ||
1880 | static final short[][] DFA20_transition; | ||
1881 | |||
1882 | static { | ||
1883 | int numStates = DFA20_transitionS.length; | ||
1884 | DFA20_transition = new short[numStates][]; | ||
1885 | for (int i=0; i<numStates; i++) { | ||
1886 | DFA20_transition[i] = DFA.unpackEncodedString(DFA20_transitionS[i]); | ||
1887 | } | ||
1888 | } | ||
1889 | |||
1890 | class DFA20 extends DFA { | ||
1891 | |||
1892 | public DFA20(BaseRecognizer recognizer) { | ||
1893 | this.recognizer = recognizer; | ||
1894 | this.decisionNumber = 20; | ||
1895 | this.eot = DFA20_eot; | ||
1896 | this.eof = DFA20_eof; | ||
1897 | this.min = DFA20_min; | ||
1898 | this.max = DFA20_max; | ||
1899 | this.accept = DFA20_accept; | ||
1900 | this.special = DFA20_special; | ||
1901 | this.transition = DFA20_transition; | ||
1902 | } | ||
1903 | public String getDescription() { | ||
1904 | return "1:1: Tokens : ( 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 | T__38 | T__39 | T__40 | RULE_OF_INT | RULE_T_DOUBLE | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER );"; | ||
1905 | } | ||
1906 | public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { | ||
1907 | IntStream input = _input; | ||
1908 | int _s = s; | ||
1909 | switch ( s ) { | ||
1910 | case 0 : | ||
1911 | int LA20_25 = input.LA(1); | ||
1912 | |||
1913 | s = -1; | ||
1914 | if ( ((LA20_25>='\u0000' && LA20_25<='\uFFFF')) ) {s = 61;} | ||
1915 | |||
1916 | else s = 28; | ||
1917 | |||
1918 | if ( s>=0 ) return s; | ||
1919 | break; | ||
1920 | case 1 : | ||
1921 | int LA20_0 = input.LA(1); | ||
1922 | |||
1923 | s = -1; | ||
1924 | if ( (LA20_0=='p') ) {s = 1;} | ||
1925 | |||
1926 | else if ( (LA20_0==';') ) {s = 2;} | ||
1927 | |||
1928 | else if ( (LA20_0=='i') ) {s = 3;} | ||
1929 | |||
1930 | else if ( (LA20_0=='c') ) {s = 4;} | ||
1931 | |||
1932 | else if ( (LA20_0=='{') ) {s = 5;} | ||
1933 | |||
1934 | else if ( (LA20_0=='o') ) {s = 6;} | ||
1935 | |||
1936 | else if ( (LA20_0=='}') ) {s = 7;} | ||
1937 | |||
1938 | else if ( (LA20_0=='[') ) {s = 8;} | ||
1939 | |||
1940 | else if ( (LA20_0=='=') ) {s = 9;} | ||
1941 | |||
1942 | else if ( (LA20_0=='l') ) {s = 10;} | ||
1943 | |||
1944 | else if ( (LA20_0=='a') ) {s = 11;} | ||
1945 | |||
1946 | else if ( (LA20_0=='t') ) {s = 12;} | ||
1947 | |||
1948 | else if ( (LA20_0=='m') ) {s = 13;} | ||
1949 | |||
1950 | else if ( (LA20_0=='(') ) {s = 14;} | ||
1951 | |||
1952 | else if ( (LA20_0==',') ) {s = 15;} | ||
1953 | |||
1954 | else if ( (LA20_0==')') ) {s = 16;} | ||
1955 | |||
1956 | else if ( (LA20_0=='+') ) {s = 17;} | ||
1957 | |||
1958 | else if ( (LA20_0==':') ) {s = 18;} | ||
1959 | |||
1960 | else if ( (LA20_0=='.') ) {s = 19;} | ||
1961 | |||
1962 | else if ( (LA20_0=='*') ) {s = 20;} | ||
1963 | |||
1964 | else if ( ((LA20_0>='0' && LA20_0<='9')) ) {s = 21;} | ||
1965 | |||
1966 | else if ( (LA20_0=='^') ) {s = 22;} | ||
1967 | |||
1968 | else if ( ((LA20_0>='A' && LA20_0<='Z')||LA20_0=='_'||LA20_0=='b'||(LA20_0>='d' && LA20_0<='h')||(LA20_0>='j' && LA20_0<='k')||LA20_0=='n'||(LA20_0>='q' && LA20_0<='s')||(LA20_0>='u' && LA20_0<='z')) ) {s = 23;} | ||
1969 | |||
1970 | else if ( (LA20_0=='\"') ) {s = 24;} | ||
1971 | |||
1972 | else if ( (LA20_0=='\'') ) {s = 25;} | ||
1973 | |||
1974 | else if ( (LA20_0=='/') ) {s = 26;} | ||
1975 | |||
1976 | else if ( ((LA20_0>='\t' && LA20_0<='\n')||LA20_0=='\r'||LA20_0==' ') ) {s = 27;} | ||
1977 | |||
1978 | else if ( ((LA20_0>='\u0000' && LA20_0<='\b')||(LA20_0>='\u000B' && LA20_0<='\f')||(LA20_0>='\u000E' && LA20_0<='\u001F')||LA20_0=='!'||(LA20_0>='#' && LA20_0<='&')||LA20_0=='-'||LA20_0=='<'||(LA20_0>='>' && LA20_0<='@')||(LA20_0>='\\' && LA20_0<=']')||LA20_0=='`'||LA20_0=='|'||(LA20_0>='~' && LA20_0<='\uFFFF')) ) {s = 28;} | ||
1979 | |||
1980 | if ( s>=0 ) return s; | ||
1981 | break; | ||
1982 | case 2 : | ||
1983 | int LA20_24 = input.LA(1); | ||
1984 | |||
1985 | s = -1; | ||
1986 | if ( ((LA20_24>='\u0000' && LA20_24<='\uFFFF')) ) {s = 61;} | ||
1987 | |||
1988 | else s = 28; | ||
1989 | |||
1990 | if ( s>=0 ) return s; | ||
1991 | break; | ||
1992 | } | ||
1993 | NoViableAltException nvae = | ||
1994 | new NoViableAltException(getDescription(), 20, _s, input); | ||
1995 | error(nvae); | ||
1996 | throw nvae; | ||
1997 | } | ||
1998 | } | ||
1999 | |||
2000 | |||
2001 | } \ 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 deleted file mode 100644 index 0da9c0f1..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java +++ /dev/null | |||
@@ -1,4509 +0,0 @@ | |||
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_INT", "RULE_OF_INT", "RULE_ID", "RULE_T_DOUBLE", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'package'", "';'", "'import'", "'cft'", "'{'", "'in'", "'out'", "'}'", "'[]'", "'prob'", "'='", "'lambda'", "'and'", "'or'", "'of'", "'transformation'", "'toplevel'", "'mapping'", "'('", "','", "')'", "'lookup'", "'as'", "'+='", "':='", "'.'", "'=>'", "'*'" | ||
25 | }; | ||
26 | public static final int RULE_STRING=8; | ||
27 | public static final int RULE_SL_COMMENT=10; | ||
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__38=38; | ||
33 | public static final int T__17=17; | ||
34 | public static final int T__39=39; | ||
35 | public static final int T__18=18; | ||
36 | public static final int T__33=33; | ||
37 | public static final int T__34=34; | ||
38 | public static final int RULE_T_DOUBLE=7; | ||
39 | public static final int T__13=13; | ||
40 | public static final int T__35=35; | ||
41 | public static final int T__14=14; | ||
42 | public static final int T__36=36; | ||
43 | public static final int EOF=-1; | ||
44 | public static final int T__30=30; | ||
45 | public static final int T__31=31; | ||
46 | public static final int T__32=32; | ||
47 | public static final int RULE_OF_INT=5; | ||
48 | public static final int RULE_ID=6; | ||
49 | public static final int RULE_WS=11; | ||
50 | public static final int RULE_ANY_OTHER=12; | ||
51 | public static final int T__26=26; | ||
52 | public static final int T__27=27; | ||
53 | public static final int T__28=28; | ||
54 | public static final int RULE_INT=4; | ||
55 | public static final int T__29=29; | ||
56 | public static final int T__22=22; | ||
57 | public static final int RULE_ML_COMMENT=9; | ||
58 | public static final int T__23=23; | ||
59 | public static final int T__24=24; | ||
60 | public static final int T__25=25; | ||
61 | public static final int T__40=40; | ||
62 | public static final int T__20=20; | ||
63 | public static final int T__21=21; | ||
64 | |||
65 | // delegates | ||
66 | // delegators | ||
67 | |||
68 | |||
69 | public InternalCftLanguageParser(TokenStream input) { | ||
70 | this(input, new RecognizerSharedState()); | ||
71 | } | ||
72 | public InternalCftLanguageParser(TokenStream input, RecognizerSharedState state) { | ||
73 | super(input, state); | ||
74 | |||
75 | } | ||
76 | |||
77 | |||
78 | public String[] getTokenNames() { return InternalCftLanguageParser.tokenNames; } | ||
79 | public String getGrammarFileName() { return "InternalCftLanguage.g"; } | ||
80 | |||
81 | |||
82 | |||
83 | private CftLanguageGrammarAccess grammarAccess; | ||
84 | |||
85 | public InternalCftLanguageParser(TokenStream input, CftLanguageGrammarAccess grammarAccess) { | ||
86 | this(input); | ||
87 | this.grammarAccess = grammarAccess; | ||
88 | registerRules(grammarAccess.getGrammar()); | ||
89 | } | ||
90 | |||
91 | @Override | ||
92 | protected String getFirstRuleName() { | ||
93 | return "CftModel"; | ||
94 | } | ||
95 | |||
96 | @Override | ||
97 | protected CftLanguageGrammarAccess getGrammarAccess() { | ||
98 | return grammarAccess; | ||
99 | } | ||
100 | |||
101 | |||
102 | |||
103 | |||
104 | // $ANTLR start "entryRuleCftModel" | ||
105 | // InternalCftLanguage.g:64:1: entryRuleCftModel returns [EObject current=null] : iv_ruleCftModel= ruleCftModel EOF ; | ||
106 | public final EObject entryRuleCftModel() throws RecognitionException { | ||
107 | EObject current = null; | ||
108 | |||
109 | EObject iv_ruleCftModel = null; | ||
110 | |||
111 | |||
112 | try { | ||
113 | // InternalCftLanguage.g:64:49: (iv_ruleCftModel= ruleCftModel EOF ) | ||
114 | // InternalCftLanguage.g:65:2: iv_ruleCftModel= ruleCftModel EOF | ||
115 | { | ||
116 | newCompositeNode(grammarAccess.getCftModelRule()); | ||
117 | pushFollow(FOLLOW_1); | ||
118 | iv_ruleCftModel=ruleCftModel(); | ||
119 | |||
120 | state._fsp--; | ||
121 | |||
122 | current =iv_ruleCftModel; | ||
123 | match(input,EOF,FOLLOW_2); | ||
124 | |||
125 | } | ||
126 | |||
127 | } | ||
128 | |||
129 | catch (RecognitionException re) { | ||
130 | recover(input,re); | ||
131 | appendSkippedTokens(); | ||
132 | } | ||
133 | finally { | ||
134 | } | ||
135 | return current; | ||
136 | } | ||
137 | // $ANTLR end "entryRuleCftModel" | ||
138 | |||
139 | |||
140 | // $ANTLR start "ruleCftModel" | ||
141 | // 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 ) ) )* ) ; | ||
142 | public final EObject ruleCftModel() throws RecognitionException { | ||
143 | EObject current = null; | ||
144 | |||
145 | Token otherlv_0=null; | ||
146 | Token otherlv_2=null; | ||
147 | AntlrDatatypeRuleToken lv_packageName_1_0 = null; | ||
148 | |||
149 | EObject lv_imports_3_0 = null; | ||
150 | |||
151 | EObject lv_componentDefinitions_4_0 = null; | ||
152 | |||
153 | EObject lv_transformationDefinitions_5_0 = null; | ||
154 | |||
155 | |||
156 | |||
157 | enterRule(); | ||
158 | |||
159 | try { | ||
160 | // 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 ) ) )* ) ) | ||
161 | // 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 ) ) )* ) | ||
162 | { | ||
163 | // InternalCftLanguage.g:78:2: (otherlv_0= 'package' ( (lv_packageName_1_0= ruleQualifiedName ) ) (otherlv_2= ';' )? ( (lv_imports_3_0= ruleImportDeclaration ) )* ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* ) | ||
164 | // InternalCftLanguage.g:79:3: otherlv_0= 'package' ( (lv_packageName_1_0= ruleQualifiedName ) ) (otherlv_2= ';' )? ( (lv_imports_3_0= ruleImportDeclaration ) )* ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* | ||
165 | { | ||
166 | otherlv_0=(Token)match(input,13,FOLLOW_3); | ||
167 | |||
168 | newLeafNode(otherlv_0, grammarAccess.getCftModelAccess().getPackageKeyword_0()); | ||
169 | |||
170 | // InternalCftLanguage.g:83:3: ( (lv_packageName_1_0= ruleQualifiedName ) ) | ||
171 | // InternalCftLanguage.g:84:4: (lv_packageName_1_0= ruleQualifiedName ) | ||
172 | { | ||
173 | // InternalCftLanguage.g:84:4: (lv_packageName_1_0= ruleQualifiedName ) | ||
174 | // InternalCftLanguage.g:85:5: lv_packageName_1_0= ruleQualifiedName | ||
175 | { | ||
176 | |||
177 | newCompositeNode(grammarAccess.getCftModelAccess().getPackageNameQualifiedNameParserRuleCall_1_0()); | ||
178 | |||
179 | pushFollow(FOLLOW_4); | ||
180 | lv_packageName_1_0=ruleQualifiedName(); | ||
181 | |||
182 | state._fsp--; | ||
183 | |||
184 | |||
185 | if (current==null) { | ||
186 | current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
187 | } | ||
188 | set( | ||
189 | current, | ||
190 | "packageName", | ||
191 | lv_packageName_1_0, | ||
192 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.QualifiedName"); | ||
193 | afterParserOrEnumRuleCall(); | ||
194 | |||
195 | |||
196 | } | ||
197 | |||
198 | |||
199 | } | ||
200 | |||
201 | // InternalCftLanguage.g:102:3: (otherlv_2= ';' )? | ||
202 | int alt1=2; | ||
203 | int LA1_0 = input.LA(1); | ||
204 | |||
205 | if ( (LA1_0==14) ) { | ||
206 | alt1=1; | ||
207 | } | ||
208 | switch (alt1) { | ||
209 | case 1 : | ||
210 | // InternalCftLanguage.g:103:4: otherlv_2= ';' | ||
211 | { | ||
212 | otherlv_2=(Token)match(input,14,FOLLOW_5); | ||
213 | |||
214 | newLeafNode(otherlv_2, grammarAccess.getCftModelAccess().getSemicolonKeyword_2()); | ||
215 | |||
216 | |||
217 | } | ||
218 | break; | ||
219 | |||
220 | } | ||
221 | |||
222 | // InternalCftLanguage.g:108:3: ( (lv_imports_3_0= ruleImportDeclaration ) )* | ||
223 | loop2: | ||
224 | do { | ||
225 | int alt2=2; | ||
226 | int LA2_0 = input.LA(1); | ||
227 | |||
228 | if ( (LA2_0==15) ) { | ||
229 | alt2=1; | ||
230 | } | ||
231 | |||
232 | |||
233 | switch (alt2) { | ||
234 | case 1 : | ||
235 | // InternalCftLanguage.g:109:4: (lv_imports_3_0= ruleImportDeclaration ) | ||
236 | { | ||
237 | // InternalCftLanguage.g:109:4: (lv_imports_3_0= ruleImportDeclaration ) | ||
238 | // InternalCftLanguage.g:110:5: lv_imports_3_0= ruleImportDeclaration | ||
239 | { | ||
240 | |||
241 | newCompositeNode(grammarAccess.getCftModelAccess().getImportsImportDeclarationParserRuleCall_3_0()); | ||
242 | |||
243 | pushFollow(FOLLOW_5); | ||
244 | lv_imports_3_0=ruleImportDeclaration(); | ||
245 | |||
246 | state._fsp--; | ||
247 | |||
248 | |||
249 | if (current==null) { | ||
250 | current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
251 | } | ||
252 | add( | ||
253 | current, | ||
254 | "imports", | ||
255 | lv_imports_3_0, | ||
256 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ImportDeclaration"); | ||
257 | afterParserOrEnumRuleCall(); | ||
258 | |||
259 | |||
260 | } | ||
261 | |||
262 | |||
263 | } | ||
264 | break; | ||
265 | |||
266 | default : | ||
267 | break loop2; | ||
268 | } | ||
269 | } while (true); | ||
270 | |||
271 | // InternalCftLanguage.g:127:3: ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* | ||
272 | loop3: | ||
273 | do { | ||
274 | int alt3=3; | ||
275 | int LA3_0 = input.LA(1); | ||
276 | |||
277 | if ( (LA3_0==16) ) { | ||
278 | alt3=1; | ||
279 | } | ||
280 | else if ( (LA3_0==28) ) { | ||
281 | alt3=2; | ||
282 | } | ||
283 | |||
284 | |||
285 | switch (alt3) { | ||
286 | case 1 : | ||
287 | // InternalCftLanguage.g:128:4: ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ||
288 | { | ||
289 | // InternalCftLanguage.g:128:4: ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ||
290 | // InternalCftLanguage.g:129:5: (lv_componentDefinitions_4_0= ruleComponentDefinition ) | ||
291 | { | ||
292 | // InternalCftLanguage.g:129:5: (lv_componentDefinitions_4_0= ruleComponentDefinition ) | ||
293 | // InternalCftLanguage.g:130:6: lv_componentDefinitions_4_0= ruleComponentDefinition | ||
294 | { | ||
295 | |||
296 | newCompositeNode(grammarAccess.getCftModelAccess().getComponentDefinitionsComponentDefinitionParserRuleCall_4_0_0()); | ||
297 | |||
298 | pushFollow(FOLLOW_6); | ||
299 | lv_componentDefinitions_4_0=ruleComponentDefinition(); | ||
300 | |||
301 | state._fsp--; | ||
302 | |||
303 | |||
304 | if (current==null) { | ||
305 | current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
306 | } | ||
307 | add( | ||
308 | current, | ||
309 | "componentDefinitions", | ||
310 | lv_componentDefinitions_4_0, | ||
311 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ComponentDefinition"); | ||
312 | afterParserOrEnumRuleCall(); | ||
313 | |||
314 | |||
315 | } | ||
316 | |||
317 | |||
318 | } | ||
319 | |||
320 | |||
321 | } | ||
322 | break; | ||
323 | case 2 : | ||
324 | // InternalCftLanguage.g:148:4: ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) | ||
325 | { | ||
326 | // InternalCftLanguage.g:148:4: ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) | ||
327 | // InternalCftLanguage.g:149:5: (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) | ||
328 | { | ||
329 | // InternalCftLanguage.g:149:5: (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) | ||
330 | // InternalCftLanguage.g:150:6: lv_transformationDefinitions_5_0= ruleTransformationDefinition | ||
331 | { | ||
332 | |||
333 | newCompositeNode(grammarAccess.getCftModelAccess().getTransformationDefinitionsTransformationDefinitionParserRuleCall_4_1_0()); | ||
334 | |||
335 | pushFollow(FOLLOW_6); | ||
336 | lv_transformationDefinitions_5_0=ruleTransformationDefinition(); | ||
337 | |||
338 | state._fsp--; | ||
339 | |||
340 | |||
341 | if (current==null) { | ||
342 | current = createModelElementForParent(grammarAccess.getCftModelRule()); | ||
343 | } | ||
344 | add( | ||
345 | current, | ||
346 | "transformationDefinitions", | ||
347 | lv_transformationDefinitions_5_0, | ||
348 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.TransformationDefinition"); | ||
349 | afterParserOrEnumRuleCall(); | ||
350 | |||
351 | |||
352 | } | ||
353 | |||
354 | |||
355 | } | ||
356 | |||
357 | |||
358 | } | ||
359 | break; | ||
360 | |||
361 | default : | ||
362 | break loop3; | ||
363 | } | ||
364 | } while (true); | ||
365 | |||
366 | |||
367 | } | ||
368 | |||
369 | |||
370 | } | ||
371 | |||
372 | |||
373 | leaveRule(); | ||
374 | |||
375 | } | ||
376 | |||
377 | catch (RecognitionException re) { | ||
378 | recover(input,re); | ||
379 | appendSkippedTokens(); | ||
380 | } | ||
381 | finally { | ||
382 | } | ||
383 | return current; | ||
384 | } | ||
385 | // $ANTLR end "ruleCftModel" | ||
386 | |||
387 | |||
388 | // $ANTLR start "entryRuleImportDeclaration" | ||
389 | // InternalCftLanguage.g:172:1: entryRuleImportDeclaration returns [EObject current=null] : iv_ruleImportDeclaration= ruleImportDeclaration EOF ; | ||
390 | public final EObject entryRuleImportDeclaration() throws RecognitionException { | ||
391 | EObject current = null; | ||
392 | |||
393 | EObject iv_ruleImportDeclaration = null; | ||
394 | |||
395 | |||
396 | try { | ||
397 | // InternalCftLanguage.g:172:58: (iv_ruleImportDeclaration= ruleImportDeclaration EOF ) | ||
398 | // InternalCftLanguage.g:173:2: iv_ruleImportDeclaration= ruleImportDeclaration EOF | ||
399 | { | ||
400 | newCompositeNode(grammarAccess.getImportDeclarationRule()); | ||
401 | pushFollow(FOLLOW_1); | ||
402 | iv_ruleImportDeclaration=ruleImportDeclaration(); | ||
403 | |||
404 | state._fsp--; | ||
405 | |||
406 | current =iv_ruleImportDeclaration; | ||
407 | match(input,EOF,FOLLOW_2); | ||
408 | |||
409 | } | ||
410 | |||
411 | } | ||
412 | |||
413 | catch (RecognitionException re) { | ||
414 | recover(input,re); | ||
415 | appendSkippedTokens(); | ||
416 | } | ||
417 | finally { | ||
418 | } | ||
419 | return current; | ||
420 | } | ||
421 | // $ANTLR end "entryRuleImportDeclaration" | ||
422 | |||
423 | |||
424 | // $ANTLR start "ruleImportDeclaration" | ||
425 | // InternalCftLanguage.g:179:1: ruleImportDeclaration returns [EObject current=null] : (otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? ) ; | ||
426 | public final EObject ruleImportDeclaration() throws RecognitionException { | ||
427 | EObject current = null; | ||
428 | |||
429 | Token otherlv_0=null; | ||
430 | Token otherlv_2=null; | ||
431 | AntlrDatatypeRuleToken lv_importedNamespace_1_0 = null; | ||
432 | |||
433 | |||
434 | |||
435 | enterRule(); | ||
436 | |||
437 | try { | ||
438 | // InternalCftLanguage.g:185:2: ( (otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? ) ) | ||
439 | // InternalCftLanguage.g:186:2: (otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? ) | ||
440 | { | ||
441 | // InternalCftLanguage.g:186:2: (otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? ) | ||
442 | // InternalCftLanguage.g:187:3: otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? | ||
443 | { | ||
444 | otherlv_0=(Token)match(input,15,FOLLOW_3); | ||
445 | |||
446 | newLeafNode(otherlv_0, grammarAccess.getImportDeclarationAccess().getImportKeyword_0()); | ||
447 | |||
448 | // InternalCftLanguage.g:191:3: ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) | ||
449 | // InternalCftLanguage.g:192:4: (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) | ||
450 | { | ||
451 | // InternalCftLanguage.g:192:4: (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) | ||
452 | // InternalCftLanguage.g:193:5: lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard | ||
453 | { | ||
454 | |||
455 | newCompositeNode(grammarAccess.getImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_0()); | ||
456 | |||
457 | pushFollow(FOLLOW_7); | ||
458 | lv_importedNamespace_1_0=ruleQualifiedNameWithWildcard(); | ||
459 | |||
460 | state._fsp--; | ||
461 | |||
462 | |||
463 | if (current==null) { | ||
464 | current = createModelElementForParent(grammarAccess.getImportDeclarationRule()); | ||
465 | } | ||
466 | set( | ||
467 | current, | ||
468 | "importedNamespace", | ||
469 | lv_importedNamespace_1_0, | ||
470 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.QualifiedNameWithWildcard"); | ||
471 | afterParserOrEnumRuleCall(); | ||
472 | |||
473 | |||
474 | } | ||
475 | |||
476 | |||
477 | } | ||
478 | |||
479 | // InternalCftLanguage.g:210:3: (otherlv_2= ';' )? | ||
480 | int alt4=2; | ||
481 | int LA4_0 = input.LA(1); | ||
482 | |||
483 | if ( (LA4_0==14) ) { | ||
484 | alt4=1; | ||
485 | } | ||
486 | switch (alt4) { | ||
487 | case 1 : | ||
488 | // InternalCftLanguage.g:211:4: otherlv_2= ';' | ||
489 | { | ||
490 | otherlv_2=(Token)match(input,14,FOLLOW_2); | ||
491 | |||
492 | newLeafNode(otherlv_2, grammarAccess.getImportDeclarationAccess().getSemicolonKeyword_2()); | ||
493 | |||
494 | |||
495 | } | ||
496 | break; | ||
497 | |||
498 | } | ||
499 | |||
500 | |||
501 | } | ||
502 | |||
503 | |||
504 | } | ||
505 | |||
506 | |||
507 | leaveRule(); | ||
508 | |||
509 | } | ||
510 | |||
511 | catch (RecognitionException re) { | ||
512 | recover(input,re); | ||
513 | appendSkippedTokens(); | ||
514 | } | ||
515 | finally { | ||
516 | } | ||
517 | return current; | ||
518 | } | ||
519 | // $ANTLR end "ruleImportDeclaration" | ||
520 | |||
521 | |||
522 | // $ANTLR start "entryRuleComponentDefinition" | ||
523 | // InternalCftLanguage.g:220:1: entryRuleComponentDefinition returns [EObject current=null] : iv_ruleComponentDefinition= ruleComponentDefinition EOF ; | ||
524 | public final EObject entryRuleComponentDefinition() throws RecognitionException { | ||
525 | EObject current = null; | ||
526 | |||
527 | EObject iv_ruleComponentDefinition = null; | ||
528 | |||
529 | |||
530 | try { | ||
531 | // InternalCftLanguage.g:220:60: (iv_ruleComponentDefinition= ruleComponentDefinition EOF ) | ||
532 | // InternalCftLanguage.g:221:2: iv_ruleComponentDefinition= ruleComponentDefinition EOF | ||
533 | { | ||
534 | newCompositeNode(grammarAccess.getComponentDefinitionRule()); | ||
535 | pushFollow(FOLLOW_1); | ||
536 | iv_ruleComponentDefinition=ruleComponentDefinition(); | ||
537 | |||
538 | state._fsp--; | ||
539 | |||
540 | current =iv_ruleComponentDefinition; | ||
541 | match(input,EOF,FOLLOW_2); | ||
542 | |||
543 | } | ||
544 | |||
545 | } | ||
546 | |||
547 | catch (RecognitionException re) { | ||
548 | recover(input,re); | ||
549 | appendSkippedTokens(); | ||
550 | } | ||
551 | finally { | ||
552 | } | ||
553 | return current; | ||
554 | } | ||
555 | // $ANTLR end "entryRuleComponentDefinition" | ||
556 | |||
557 | |||
558 | // $ANTLR start "ruleComponentDefinition" | ||
559 | // InternalCftLanguage.g:227:1: ruleComponentDefinition returns [EObject current=null] : (otherlv_0= 'cft' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) ; | ||
560 | public final EObject ruleComponentDefinition() throws RecognitionException { | ||
561 | EObject current = null; | ||
562 | |||
563 | Token otherlv_0=null; | ||
564 | Token otherlv_2=null; | ||
565 | Token otherlv_4=null; | ||
566 | Token otherlv_6=null; | ||
567 | Token otherlv_7=null; | ||
568 | Token otherlv_9=null; | ||
569 | Token otherlv_11=null; | ||
570 | Token otherlv_12=null; | ||
571 | AntlrDatatypeRuleToken lv_name_1_0 = null; | ||
572 | |||
573 | EObject lv_inputEvents_5_0 = null; | ||
574 | |||
575 | EObject lv_eventDefinitions_10_0 = null; | ||
576 | |||
577 | |||
578 | |||
579 | enterRule(); | ||
580 | |||
581 | try { | ||
582 | // InternalCftLanguage.g:233:2: ( (otherlv_0= 'cft' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) ) | ||
583 | // InternalCftLanguage.g:234:2: (otherlv_0= 'cft' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) | ||
584 | { | ||
585 | // InternalCftLanguage.g:234:2: (otherlv_0= 'cft' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) | ||
586 | // InternalCftLanguage.g:235:3: otherlv_0= 'cft' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' | ||
587 | { | ||
588 | otherlv_0=(Token)match(input,16,FOLLOW_3); | ||
589 | |||
590 | newLeafNode(otherlv_0, grammarAccess.getComponentDefinitionAccess().getCftKeyword_0()); | ||
591 | |||
592 | // InternalCftLanguage.g:239:3: ( (lv_name_1_0= ruleValidId ) ) | ||
593 | // InternalCftLanguage.g:240:4: (lv_name_1_0= ruleValidId ) | ||
594 | { | ||
595 | // InternalCftLanguage.g:240:4: (lv_name_1_0= ruleValidId ) | ||
596 | // InternalCftLanguage.g:241:5: lv_name_1_0= ruleValidId | ||
597 | { | ||
598 | |||
599 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getNameValidIdParserRuleCall_1_0()); | ||
600 | |||
601 | pushFollow(FOLLOW_8); | ||
602 | lv_name_1_0=ruleValidId(); | ||
603 | |||
604 | state._fsp--; | ||
605 | |||
606 | |||
607 | if (current==null) { | ||
608 | current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); | ||
609 | } | ||
610 | set( | ||
611 | current, | ||
612 | "name", | ||
613 | lv_name_1_0, | ||
614 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
615 | afterParserOrEnumRuleCall(); | ||
616 | |||
617 | |||
618 | } | ||
619 | |||
620 | |||
621 | } | ||
622 | |||
623 | otherlv_2=(Token)match(input,17,FOLLOW_9); | ||
624 | |||
625 | newLeafNode(otherlv_2, grammarAccess.getComponentDefinitionAccess().getLeftCurlyBracketKeyword_2()); | ||
626 | |||
627 | // InternalCftLanguage.g:262:3: ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) | ||
628 | // InternalCftLanguage.g:263:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) | ||
629 | { | ||
630 | // InternalCftLanguage.g:263:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) | ||
631 | // InternalCftLanguage.g:264:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) | ||
632 | { | ||
633 | |||
634 | getUnorderedGroupHelper().enter(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
635 | |||
636 | // InternalCftLanguage.g:267:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) | ||
637 | // InternalCftLanguage.g:268:6: ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* | ||
638 | { | ||
639 | // InternalCftLanguage.g:268:6: ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* | ||
640 | loop7: | ||
641 | do { | ||
642 | int alt7=3; | ||
643 | int LA7_0 = input.LA(1); | ||
644 | |||
645 | if ( LA7_0 == 18 && getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0) ) { | ||
646 | alt7=1; | ||
647 | } | ||
648 | else if ( LA7_0 == 19 && getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1) ) { | ||
649 | alt7=2; | ||
650 | } | ||
651 | |||
652 | |||
653 | switch (alt7) { | ||
654 | case 1 : | ||
655 | // InternalCftLanguage.g:269:4: ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ||
656 | { | ||
657 | // InternalCftLanguage.g:269:4: ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ||
658 | // InternalCftLanguage.g:270:5: {...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) | ||
659 | { | ||
660 | if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0) ) { | ||
661 | throw new FailedPredicateException(input, "ruleComponentDefinition", "getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0)"); | ||
662 | } | ||
663 | // InternalCftLanguage.g:270:116: ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) | ||
664 | // InternalCftLanguage.g:271:6: ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) | ||
665 | { | ||
666 | |||
667 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0); | ||
668 | |||
669 | // InternalCftLanguage.g:274:9: ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) | ||
670 | // InternalCftLanguage.g:274:10: {...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) | ||
671 | { | ||
672 | if ( !((true)) ) { | ||
673 | throw new FailedPredicateException(input, "ruleComponentDefinition", "true"); | ||
674 | } | ||
675 | // InternalCftLanguage.g:274:19: (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) | ||
676 | // InternalCftLanguage.g:274:20: otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' | ||
677 | { | ||
678 | otherlv_4=(Token)match(input,18,FOLLOW_10); | ||
679 | |||
680 | newLeafNode(otherlv_4, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()); | ||
681 | |||
682 | // InternalCftLanguage.g:278:9: ( (lv_inputEvents_5_0= ruleInputEvent ) )* | ||
683 | loop5: | ||
684 | do { | ||
685 | int alt5=2; | ||
686 | int LA5_0 = input.LA(1); | ||
687 | |||
688 | if ( ((LA5_0>=RULE_OF_INT && LA5_0<=RULE_ID)) ) { | ||
689 | alt5=1; | ||
690 | } | ||
691 | |||
692 | |||
693 | switch (alt5) { | ||
694 | case 1 : | ||
695 | // InternalCftLanguage.g:279:10: (lv_inputEvents_5_0= ruleInputEvent ) | ||
696 | { | ||
697 | // InternalCftLanguage.g:279:10: (lv_inputEvents_5_0= ruleInputEvent ) | ||
698 | // InternalCftLanguage.g:280:11: lv_inputEvents_5_0= ruleInputEvent | ||
699 | { | ||
700 | |||
701 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getInputEventsInputEventParserRuleCall_3_0_1_0()); | ||
702 | |||
703 | pushFollow(FOLLOW_10); | ||
704 | lv_inputEvents_5_0=ruleInputEvent(); | ||
705 | |||
706 | state._fsp--; | ||
707 | |||
708 | |||
709 | if (current==null) { | ||
710 | current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); | ||
711 | } | ||
712 | add( | ||
713 | current, | ||
714 | "inputEvents", | ||
715 | lv_inputEvents_5_0, | ||
716 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.InputEvent"); | ||
717 | afterParserOrEnumRuleCall(); | ||
718 | |||
719 | |||
720 | } | ||
721 | |||
722 | |||
723 | } | ||
724 | break; | ||
725 | |||
726 | default : | ||
727 | break loop5; | ||
728 | } | ||
729 | } while (true); | ||
730 | |||
731 | otherlv_6=(Token)match(input,14,FOLLOW_9); | ||
732 | |||
733 | newLeafNode(otherlv_6, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()); | ||
734 | |||
735 | |||
736 | } | ||
737 | |||
738 | |||
739 | } | ||
740 | |||
741 | |||
742 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
743 | |||
744 | |||
745 | } | ||
746 | |||
747 | |||
748 | } | ||
749 | |||
750 | |||
751 | } | ||
752 | break; | ||
753 | case 2 : | ||
754 | // InternalCftLanguage.g:307:4: ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) | ||
755 | { | ||
756 | // InternalCftLanguage.g:307:4: ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) | ||
757 | // InternalCftLanguage.g:308:5: {...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) | ||
758 | { | ||
759 | if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1) ) { | ||
760 | throw new FailedPredicateException(input, "ruleComponentDefinition", "getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1)"); | ||
761 | } | ||
762 | // InternalCftLanguage.g:308:116: ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) | ||
763 | // InternalCftLanguage.g:309:6: ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) | ||
764 | { | ||
765 | |||
766 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1); | ||
767 | |||
768 | // InternalCftLanguage.g:312:9: ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) | ||
769 | // InternalCftLanguage.g:312:10: {...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) | ||
770 | { | ||
771 | if ( !((true)) ) { | ||
772 | throw new FailedPredicateException(input, "ruleComponentDefinition", "true"); | ||
773 | } | ||
774 | // InternalCftLanguage.g:312:19: (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) | ||
775 | // InternalCftLanguage.g:312:20: otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' | ||
776 | { | ||
777 | otherlv_7=(Token)match(input,19,FOLLOW_10); | ||
778 | |||
779 | newLeafNode(otherlv_7, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()); | ||
780 | |||
781 | // InternalCftLanguage.g:316:9: ( ( ruleValidId ) )* | ||
782 | loop6: | ||
783 | do { | ||
784 | int alt6=2; | ||
785 | int LA6_0 = input.LA(1); | ||
786 | |||
787 | if ( ((LA6_0>=RULE_OF_INT && LA6_0<=RULE_ID)) ) { | ||
788 | alt6=1; | ||
789 | } | ||
790 | |||
791 | |||
792 | switch (alt6) { | ||
793 | case 1 : | ||
794 | // InternalCftLanguage.g:317:10: ( ruleValidId ) | ||
795 | { | ||
796 | // InternalCftLanguage.g:317:10: ( ruleValidId ) | ||
797 | // InternalCftLanguage.g:318:11: ruleValidId | ||
798 | { | ||
799 | |||
800 | if (current==null) { | ||
801 | current = createModelElement(grammarAccess.getComponentDefinitionRule()); | ||
802 | } | ||
803 | |||
804 | |||
805 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getOutputEventsEventDeclarationCrossReference_3_1_1_0()); | ||
806 | |||
807 | pushFollow(FOLLOW_10); | ||
808 | ruleValidId(); | ||
809 | |||
810 | state._fsp--; | ||
811 | |||
812 | |||
813 | afterParserOrEnumRuleCall(); | ||
814 | |||
815 | |||
816 | } | ||
817 | |||
818 | |||
819 | } | ||
820 | break; | ||
821 | |||
822 | default : | ||
823 | break loop6; | ||
824 | } | ||
825 | } while (true); | ||
826 | |||
827 | otherlv_9=(Token)match(input,14,FOLLOW_9); | ||
828 | |||
829 | newLeafNode(otherlv_9, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()); | ||
830 | |||
831 | |||
832 | } | ||
833 | |||
834 | |||
835 | } | ||
836 | |||
837 | |||
838 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
839 | |||
840 | |||
841 | } | ||
842 | |||
843 | |||
844 | } | ||
845 | |||
846 | |||
847 | } | ||
848 | break; | ||
849 | |||
850 | default : | ||
851 | break loop7; | ||
852 | } | ||
853 | } while (true); | ||
854 | |||
855 | |||
856 | } | ||
857 | |||
858 | |||
859 | } | ||
860 | |||
861 | |||
862 | getUnorderedGroupHelper().leave(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | ||
863 | |||
864 | |||
865 | } | ||
866 | |||
867 | // InternalCftLanguage.g:349:3: ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* | ||
868 | loop8: | ||
869 | do { | ||
870 | int alt8=2; | ||
871 | int LA8_0 = input.LA(1); | ||
872 | |||
873 | if ( ((LA8_0>=RULE_OF_INT && LA8_0<=RULE_ID)) ) { | ||
874 | alt8=1; | ||
875 | } | ||
876 | |||
877 | |||
878 | switch (alt8) { | ||
879 | case 1 : | ||
880 | // InternalCftLanguage.g:350:4: ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' | ||
881 | { | ||
882 | // InternalCftLanguage.g:350:4: ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) | ||
883 | // InternalCftLanguage.g:351:5: (lv_eventDefinitions_10_0= ruleEventDefinition ) | ||
884 | { | ||
885 | // InternalCftLanguage.g:351:5: (lv_eventDefinitions_10_0= ruleEventDefinition ) | ||
886 | // InternalCftLanguage.g:352:6: lv_eventDefinitions_10_0= ruleEventDefinition | ||
887 | { | ||
888 | |||
889 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getEventDefinitionsEventDefinitionParserRuleCall_4_0_0()); | ||
890 | |||
891 | pushFollow(FOLLOW_11); | ||
892 | lv_eventDefinitions_10_0=ruleEventDefinition(); | ||
893 | |||
894 | state._fsp--; | ||
895 | |||
896 | |||
897 | if (current==null) { | ||
898 | current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); | ||
899 | } | ||
900 | add( | ||
901 | current, | ||
902 | "eventDefinitions", | ||
903 | lv_eventDefinitions_10_0, | ||
904 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventDefinition"); | ||
905 | afterParserOrEnumRuleCall(); | ||
906 | |||
907 | |||
908 | } | ||
909 | |||
910 | |||
911 | } | ||
912 | |||
913 | otherlv_11=(Token)match(input,14,FOLLOW_12); | ||
914 | |||
915 | newLeafNode(otherlv_11, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_4_1()); | ||
916 | |||
917 | |||
918 | } | ||
919 | break; | ||
920 | |||
921 | default : | ||
922 | break loop8; | ||
923 | } | ||
924 | } while (true); | ||
925 | |||
926 | otherlv_12=(Token)match(input,20,FOLLOW_2); | ||
927 | |||
928 | newLeafNode(otherlv_12, grammarAccess.getComponentDefinitionAccess().getRightCurlyBracketKeyword_5()); | ||
929 | |||
930 | |||
931 | } | ||
932 | |||
933 | |||
934 | } | ||
935 | |||
936 | |||
937 | leaveRule(); | ||
938 | |||
939 | } | ||
940 | |||
941 | catch (RecognitionException re) { | ||
942 | recover(input,re); | ||
943 | appendSkippedTokens(); | ||
944 | } | ||
945 | finally { | ||
946 | } | ||
947 | return current; | ||
948 | } | ||
949 | // $ANTLR end "ruleComponentDefinition" | ||
950 | |||
951 | |||
952 | // $ANTLR start "entryRuleInputEvent" | ||
953 | // InternalCftLanguage.g:382:1: entryRuleInputEvent returns [EObject current=null] : iv_ruleInputEvent= ruleInputEvent EOF ; | ||
954 | public final EObject entryRuleInputEvent() throws RecognitionException { | ||
955 | EObject current = null; | ||
956 | |||
957 | EObject iv_ruleInputEvent = null; | ||
958 | |||
959 | |||
960 | try { | ||
961 | // InternalCftLanguage.g:382:51: (iv_ruleInputEvent= ruleInputEvent EOF ) | ||
962 | // InternalCftLanguage.g:383:2: iv_ruleInputEvent= ruleInputEvent EOF | ||
963 | { | ||
964 | newCompositeNode(grammarAccess.getInputEventRule()); | ||
965 | pushFollow(FOLLOW_1); | ||
966 | iv_ruleInputEvent=ruleInputEvent(); | ||
967 | |||
968 | state._fsp--; | ||
969 | |||
970 | current =iv_ruleInputEvent; | ||
971 | match(input,EOF,FOLLOW_2); | ||
972 | |||
973 | } | ||
974 | |||
975 | } | ||
976 | |||
977 | catch (RecognitionException re) { | ||
978 | recover(input,re); | ||
979 | appendSkippedTokens(); | ||
980 | } | ||
981 | finally { | ||
982 | } | ||
983 | return current; | ||
984 | } | ||
985 | // $ANTLR end "entryRuleInputEvent" | ||
986 | |||
987 | |||
988 | // $ANTLR start "ruleInputEvent" | ||
989 | // InternalCftLanguage.g:389:1: ruleInputEvent returns [EObject current=null] : ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_multiple_1_0= '[]' ) )? ) ; | ||
990 | public final EObject ruleInputEvent() throws RecognitionException { | ||
991 | EObject current = null; | ||
992 | |||
993 | Token lv_multiple_1_0=null; | ||
994 | AntlrDatatypeRuleToken lv_name_0_0 = null; | ||
995 | |||
996 | |||
997 | |||
998 | enterRule(); | ||
999 | |||
1000 | try { | ||
1001 | // InternalCftLanguage.g:395:2: ( ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_multiple_1_0= '[]' ) )? ) ) | ||
1002 | // InternalCftLanguage.g:396:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_multiple_1_0= '[]' ) )? ) | ||
1003 | { | ||
1004 | // InternalCftLanguage.g:396:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_multiple_1_0= '[]' ) )? ) | ||
1005 | // InternalCftLanguage.g:397:3: ( (lv_name_0_0= ruleValidId ) ) ( (lv_multiple_1_0= '[]' ) )? | ||
1006 | { | ||
1007 | // InternalCftLanguage.g:397:3: ( (lv_name_0_0= ruleValidId ) ) | ||
1008 | // InternalCftLanguage.g:398:4: (lv_name_0_0= ruleValidId ) | ||
1009 | { | ||
1010 | // InternalCftLanguage.g:398:4: (lv_name_0_0= ruleValidId ) | ||
1011 | // InternalCftLanguage.g:399:5: lv_name_0_0= ruleValidId | ||
1012 | { | ||
1013 | |||
1014 | newCompositeNode(grammarAccess.getInputEventAccess().getNameValidIdParserRuleCall_0_0()); | ||
1015 | |||
1016 | pushFollow(FOLLOW_13); | ||
1017 | lv_name_0_0=ruleValidId(); | ||
1018 | |||
1019 | state._fsp--; | ||
1020 | |||
1021 | |||
1022 | if (current==null) { | ||
1023 | current = createModelElementForParent(grammarAccess.getInputEventRule()); | ||
1024 | } | ||
1025 | set( | ||
1026 | current, | ||
1027 | "name", | ||
1028 | lv_name_0_0, | ||
1029 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
1030 | afterParserOrEnumRuleCall(); | ||
1031 | |||
1032 | |||
1033 | } | ||
1034 | |||
1035 | |||
1036 | } | ||
1037 | |||
1038 | // InternalCftLanguage.g:416:3: ( (lv_multiple_1_0= '[]' ) )? | ||
1039 | int alt9=2; | ||
1040 | int LA9_0 = input.LA(1); | ||
1041 | |||
1042 | if ( (LA9_0==21) ) { | ||
1043 | alt9=1; | ||
1044 | } | ||
1045 | switch (alt9) { | ||
1046 | case 1 : | ||
1047 | // InternalCftLanguage.g:417:4: (lv_multiple_1_0= '[]' ) | ||
1048 | { | ||
1049 | // InternalCftLanguage.g:417:4: (lv_multiple_1_0= '[]' ) | ||
1050 | // InternalCftLanguage.g:418:5: lv_multiple_1_0= '[]' | ||
1051 | { | ||
1052 | lv_multiple_1_0=(Token)match(input,21,FOLLOW_2); | ||
1053 | |||
1054 | newLeafNode(lv_multiple_1_0, grammarAccess.getInputEventAccess().getMultipleLeftSquareBracketRightSquareBracketKeyword_1_0()); | ||
1055 | |||
1056 | |||
1057 | if (current==null) { | ||
1058 | current = createModelElement(grammarAccess.getInputEventRule()); | ||
1059 | } | ||
1060 | setWithLastConsumed(current, "multiple", true, "[]"); | ||
1061 | |||
1062 | |||
1063 | } | ||
1064 | |||
1065 | |||
1066 | } | ||
1067 | break; | ||
1068 | |||
1069 | } | ||
1070 | |||
1071 | |||
1072 | } | ||
1073 | |||
1074 | |||
1075 | } | ||
1076 | |||
1077 | |||
1078 | leaveRule(); | ||
1079 | |||
1080 | } | ||
1081 | |||
1082 | catch (RecognitionException re) { | ||
1083 | recover(input,re); | ||
1084 | appendSkippedTokens(); | ||
1085 | } | ||
1086 | finally { | ||
1087 | } | ||
1088 | return current; | ||
1089 | } | ||
1090 | // $ANTLR end "ruleInputEvent" | ||
1091 | |||
1092 | |||
1093 | // $ANTLR start "entryRuleEventDefinition" | ||
1094 | // InternalCftLanguage.g:434:1: entryRuleEventDefinition returns [EObject current=null] : iv_ruleEventDefinition= ruleEventDefinition EOF ; | ||
1095 | public final EObject entryRuleEventDefinition() throws RecognitionException { | ||
1096 | EObject current = null; | ||
1097 | |||
1098 | EObject iv_ruleEventDefinition = null; | ||
1099 | |||
1100 | |||
1101 | try { | ||
1102 | // InternalCftLanguage.g:434:56: (iv_ruleEventDefinition= ruleEventDefinition EOF ) | ||
1103 | // InternalCftLanguage.g:435:2: iv_ruleEventDefinition= ruleEventDefinition EOF | ||
1104 | { | ||
1105 | newCompositeNode(grammarAccess.getEventDefinitionRule()); | ||
1106 | pushFollow(FOLLOW_1); | ||
1107 | iv_ruleEventDefinition=ruleEventDefinition(); | ||
1108 | |||
1109 | state._fsp--; | ||
1110 | |||
1111 | current =iv_ruleEventDefinition; | ||
1112 | match(input,EOF,FOLLOW_2); | ||
1113 | |||
1114 | } | ||
1115 | |||
1116 | } | ||
1117 | |||
1118 | catch (RecognitionException re) { | ||
1119 | recover(input,re); | ||
1120 | appendSkippedTokens(); | ||
1121 | } | ||
1122 | finally { | ||
1123 | } | ||
1124 | return current; | ||
1125 | } | ||
1126 | // $ANTLR end "entryRuleEventDefinition" | ||
1127 | |||
1128 | |||
1129 | // $ANTLR start "ruleEventDefinition" | ||
1130 | // InternalCftLanguage.g:441:1: ruleEventDefinition returns [EObject current=null] : (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) ; | ||
1131 | public final EObject ruleEventDefinition() throws RecognitionException { | ||
1132 | EObject current = null; | ||
1133 | |||
1134 | EObject this_BasicEventDefinition_0 = null; | ||
1135 | |||
1136 | EObject this_GateDefinition_1 = null; | ||
1137 | |||
1138 | |||
1139 | |||
1140 | enterRule(); | ||
1141 | |||
1142 | try { | ||
1143 | // InternalCftLanguage.g:447:2: ( (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) ) | ||
1144 | // InternalCftLanguage.g:448:2: (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) | ||
1145 | { | ||
1146 | // InternalCftLanguage.g:448:2: (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) | ||
1147 | int alt10=2; | ||
1148 | int LA10_0 = input.LA(1); | ||
1149 | |||
1150 | if ( (LA10_0==RULE_ID) ) { | ||
1151 | int LA10_1 = input.LA(2); | ||
1152 | |||
1153 | if ( (LA10_1==RULE_INT||(LA10_1>=25 && LA10_1<=26)) ) { | ||
1154 | alt10=2; | ||
1155 | } | ||
1156 | else if ( (LA10_1==22||LA10_1==24) ) { | ||
1157 | alt10=1; | ||
1158 | } | ||
1159 | else { | ||
1160 | NoViableAltException nvae = | ||
1161 | new NoViableAltException("", 10, 1, input); | ||
1162 | |||
1163 | throw nvae; | ||
1164 | } | ||
1165 | } | ||
1166 | else if ( (LA10_0==RULE_OF_INT) ) { | ||
1167 | int LA10_2 = input.LA(2); | ||
1168 | |||
1169 | if ( (LA10_2==22||LA10_2==24) ) { | ||
1170 | alt10=1; | ||
1171 | } | ||
1172 | else if ( (LA10_2==RULE_INT||(LA10_2>=25 && LA10_2<=26)) ) { | ||
1173 | alt10=2; | ||
1174 | } | ||
1175 | else { | ||
1176 | NoViableAltException nvae = | ||
1177 | new NoViableAltException("", 10, 2, input); | ||
1178 | |||
1179 | throw nvae; | ||
1180 | } | ||
1181 | } | ||
1182 | else { | ||
1183 | NoViableAltException nvae = | ||
1184 | new NoViableAltException("", 10, 0, input); | ||
1185 | |||
1186 | throw nvae; | ||
1187 | } | ||
1188 | switch (alt10) { | ||
1189 | case 1 : | ||
1190 | // InternalCftLanguage.g:449:3: this_BasicEventDefinition_0= ruleBasicEventDefinition | ||
1191 | { | ||
1192 | |||
1193 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getBasicEventDefinitionParserRuleCall_0()); | ||
1194 | |||
1195 | pushFollow(FOLLOW_2); | ||
1196 | this_BasicEventDefinition_0=ruleBasicEventDefinition(); | ||
1197 | |||
1198 | state._fsp--; | ||
1199 | |||
1200 | |||
1201 | current = this_BasicEventDefinition_0; | ||
1202 | afterParserOrEnumRuleCall(); | ||
1203 | |||
1204 | |||
1205 | } | ||
1206 | break; | ||
1207 | case 2 : | ||
1208 | // InternalCftLanguage.g:458:3: this_GateDefinition_1= ruleGateDefinition | ||
1209 | { | ||
1210 | |||
1211 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getGateDefinitionParserRuleCall_1()); | ||
1212 | |||
1213 | pushFollow(FOLLOW_2); | ||
1214 | this_GateDefinition_1=ruleGateDefinition(); | ||
1215 | |||
1216 | state._fsp--; | ||
1217 | |||
1218 | |||
1219 | current = this_GateDefinition_1; | ||
1220 | afterParserOrEnumRuleCall(); | ||
1221 | |||
1222 | |||
1223 | } | ||
1224 | break; | ||
1225 | |||
1226 | } | ||
1227 | |||
1228 | |||
1229 | } | ||
1230 | |||
1231 | |||
1232 | leaveRule(); | ||
1233 | |||
1234 | } | ||
1235 | |||
1236 | catch (RecognitionException re) { | ||
1237 | recover(input,re); | ||
1238 | appendSkippedTokens(); | ||
1239 | } | ||
1240 | finally { | ||
1241 | } | ||
1242 | return current; | ||
1243 | } | ||
1244 | // $ANTLR end "ruleEventDefinition" | ||
1245 | |||
1246 | |||
1247 | // $ANTLR start "entryRuleBasicEventDefinition" | ||
1248 | // InternalCftLanguage.g:470:1: entryRuleBasicEventDefinition returns [EObject current=null] : iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF ; | ||
1249 | public final EObject entryRuleBasicEventDefinition() throws RecognitionException { | ||
1250 | EObject current = null; | ||
1251 | |||
1252 | EObject iv_ruleBasicEventDefinition = null; | ||
1253 | |||
1254 | |||
1255 | try { | ||
1256 | // InternalCftLanguage.g:470:61: (iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF ) | ||
1257 | // InternalCftLanguage.g:471:2: iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF | ||
1258 | { | ||
1259 | newCompositeNode(grammarAccess.getBasicEventDefinitionRule()); | ||
1260 | pushFollow(FOLLOW_1); | ||
1261 | iv_ruleBasicEventDefinition=ruleBasicEventDefinition(); | ||
1262 | |||
1263 | state._fsp--; | ||
1264 | |||
1265 | current =iv_ruleBasicEventDefinition; | ||
1266 | match(input,EOF,FOLLOW_2); | ||
1267 | |||
1268 | } | ||
1269 | |||
1270 | } | ||
1271 | |||
1272 | catch (RecognitionException re) { | ||
1273 | recover(input,re); | ||
1274 | appendSkippedTokens(); | ||
1275 | } | ||
1276 | finally { | ||
1277 | } | ||
1278 | return current; | ||
1279 | } | ||
1280 | // $ANTLR end "entryRuleBasicEventDefinition" | ||
1281 | |||
1282 | |||
1283 | // $ANTLR start "ruleBasicEventDefinition" | ||
1284 | // InternalCftLanguage.g:477:1: ruleBasicEventDefinition returns [EObject current=null] : ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_distribution_1_0= ruleDistribution ) ) ) ; | ||
1285 | public final EObject ruleBasicEventDefinition() throws RecognitionException { | ||
1286 | EObject current = null; | ||
1287 | |||
1288 | AntlrDatatypeRuleToken lv_name_0_0 = null; | ||
1289 | |||
1290 | EObject lv_distribution_1_0 = null; | ||
1291 | |||
1292 | |||
1293 | |||
1294 | enterRule(); | ||
1295 | |||
1296 | try { | ||
1297 | // InternalCftLanguage.g:483:2: ( ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_distribution_1_0= ruleDistribution ) ) ) ) | ||
1298 | // InternalCftLanguage.g:484:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_distribution_1_0= ruleDistribution ) ) ) | ||
1299 | { | ||
1300 | // InternalCftLanguage.g:484:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_distribution_1_0= ruleDistribution ) ) ) | ||
1301 | // InternalCftLanguage.g:485:3: ( (lv_name_0_0= ruleValidId ) ) ( (lv_distribution_1_0= ruleDistribution ) ) | ||
1302 | { | ||
1303 | // InternalCftLanguage.g:485:3: ( (lv_name_0_0= ruleValidId ) ) | ||
1304 | // InternalCftLanguage.g:486:4: (lv_name_0_0= ruleValidId ) | ||
1305 | { | ||
1306 | // InternalCftLanguage.g:486:4: (lv_name_0_0= ruleValidId ) | ||
1307 | // InternalCftLanguage.g:487:5: lv_name_0_0= ruleValidId | ||
1308 | { | ||
1309 | |||
1310 | newCompositeNode(grammarAccess.getBasicEventDefinitionAccess().getNameValidIdParserRuleCall_0_0()); | ||
1311 | |||
1312 | pushFollow(FOLLOW_14); | ||
1313 | lv_name_0_0=ruleValidId(); | ||
1314 | |||
1315 | state._fsp--; | ||
1316 | |||
1317 | |||
1318 | if (current==null) { | ||
1319 | current = createModelElementForParent(grammarAccess.getBasicEventDefinitionRule()); | ||
1320 | } | ||
1321 | set( | ||
1322 | current, | ||
1323 | "name", | ||
1324 | lv_name_0_0, | ||
1325 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
1326 | afterParserOrEnumRuleCall(); | ||
1327 | |||
1328 | |||
1329 | } | ||
1330 | |||
1331 | |||
1332 | } | ||
1333 | |||
1334 | // InternalCftLanguage.g:504:3: ( (lv_distribution_1_0= ruleDistribution ) ) | ||
1335 | // InternalCftLanguage.g:505:4: (lv_distribution_1_0= ruleDistribution ) | ||
1336 | { | ||
1337 | // InternalCftLanguage.g:505:4: (lv_distribution_1_0= ruleDistribution ) | ||
1338 | // InternalCftLanguage.g:506:5: lv_distribution_1_0= ruleDistribution | ||
1339 | { | ||
1340 | |||
1341 | newCompositeNode(grammarAccess.getBasicEventDefinitionAccess().getDistributionDistributionParserRuleCall_1_0()); | ||
1342 | |||
1343 | pushFollow(FOLLOW_2); | ||
1344 | lv_distribution_1_0=ruleDistribution(); | ||
1345 | |||
1346 | state._fsp--; | ||
1347 | |||
1348 | |||
1349 | if (current==null) { | ||
1350 | current = createModelElementForParent(grammarAccess.getBasicEventDefinitionRule()); | ||
1351 | } | ||
1352 | set( | ||
1353 | current, | ||
1354 | "distribution", | ||
1355 | lv_distribution_1_0, | ||
1356 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Distribution"); | ||
1357 | afterParserOrEnumRuleCall(); | ||
1358 | |||
1359 | |||
1360 | } | ||
1361 | |||
1362 | |||
1363 | } | ||
1364 | |||
1365 | |||
1366 | } | ||
1367 | |||
1368 | |||
1369 | } | ||
1370 | |||
1371 | |||
1372 | leaveRule(); | ||
1373 | |||
1374 | } | ||
1375 | |||
1376 | catch (RecognitionException re) { | ||
1377 | recover(input,re); | ||
1378 | appendSkippedTokens(); | ||
1379 | } | ||
1380 | finally { | ||
1381 | } | ||
1382 | return current; | ||
1383 | } | ||
1384 | // $ANTLR end "ruleBasicEventDefinition" | ||
1385 | |||
1386 | |||
1387 | // $ANTLR start "entryRuleDistribution" | ||
1388 | // InternalCftLanguage.g:527:1: entryRuleDistribution returns [EObject current=null] : iv_ruleDistribution= ruleDistribution EOF ; | ||
1389 | public final EObject entryRuleDistribution() throws RecognitionException { | ||
1390 | EObject current = null; | ||
1391 | |||
1392 | EObject iv_ruleDistribution = null; | ||
1393 | |||
1394 | |||
1395 | try { | ||
1396 | // InternalCftLanguage.g:527:53: (iv_ruleDistribution= ruleDistribution EOF ) | ||
1397 | // InternalCftLanguage.g:528:2: iv_ruleDistribution= ruleDistribution EOF | ||
1398 | { | ||
1399 | newCompositeNode(grammarAccess.getDistributionRule()); | ||
1400 | pushFollow(FOLLOW_1); | ||
1401 | iv_ruleDistribution=ruleDistribution(); | ||
1402 | |||
1403 | state._fsp--; | ||
1404 | |||
1405 | current =iv_ruleDistribution; | ||
1406 | match(input,EOF,FOLLOW_2); | ||
1407 | |||
1408 | } | ||
1409 | |||
1410 | } | ||
1411 | |||
1412 | catch (RecognitionException re) { | ||
1413 | recover(input,re); | ||
1414 | appendSkippedTokens(); | ||
1415 | } | ||
1416 | finally { | ||
1417 | } | ||
1418 | return current; | ||
1419 | } | ||
1420 | // $ANTLR end "entryRuleDistribution" | ||
1421 | |||
1422 | |||
1423 | // $ANTLR start "ruleDistribution" | ||
1424 | // InternalCftLanguage.g:534:1: ruleDistribution returns [EObject current=null] : (this_ConstantDistribution_0= ruleConstantDistribution | this_ExponentialDistribution_1= ruleExponentialDistribution ) ; | ||
1425 | public final EObject ruleDistribution() throws RecognitionException { | ||
1426 | EObject current = null; | ||
1427 | |||
1428 | EObject this_ConstantDistribution_0 = null; | ||
1429 | |||
1430 | EObject this_ExponentialDistribution_1 = null; | ||
1431 | |||
1432 | |||
1433 | |||
1434 | enterRule(); | ||
1435 | |||
1436 | try { | ||
1437 | // InternalCftLanguage.g:540:2: ( (this_ConstantDistribution_0= ruleConstantDistribution | this_ExponentialDistribution_1= ruleExponentialDistribution ) ) | ||
1438 | // InternalCftLanguage.g:541:2: (this_ConstantDistribution_0= ruleConstantDistribution | this_ExponentialDistribution_1= ruleExponentialDistribution ) | ||
1439 | { | ||
1440 | // InternalCftLanguage.g:541:2: (this_ConstantDistribution_0= ruleConstantDistribution | this_ExponentialDistribution_1= ruleExponentialDistribution ) | ||
1441 | int alt11=2; | ||
1442 | int LA11_0 = input.LA(1); | ||
1443 | |||
1444 | if ( (LA11_0==22) ) { | ||
1445 | alt11=1; | ||
1446 | } | ||
1447 | else if ( (LA11_0==24) ) { | ||
1448 | alt11=2; | ||
1449 | } | ||
1450 | else { | ||
1451 | NoViableAltException nvae = | ||
1452 | new NoViableAltException("", 11, 0, input); | ||
1453 | |||
1454 | throw nvae; | ||
1455 | } | ||
1456 | switch (alt11) { | ||
1457 | case 1 : | ||
1458 | // InternalCftLanguage.g:542:3: this_ConstantDistribution_0= ruleConstantDistribution | ||
1459 | { | ||
1460 | |||
1461 | newCompositeNode(grammarAccess.getDistributionAccess().getConstantDistributionParserRuleCall_0()); | ||
1462 | |||
1463 | pushFollow(FOLLOW_2); | ||
1464 | this_ConstantDistribution_0=ruleConstantDistribution(); | ||
1465 | |||
1466 | state._fsp--; | ||
1467 | |||
1468 | |||
1469 | current = this_ConstantDistribution_0; | ||
1470 | afterParserOrEnumRuleCall(); | ||
1471 | |||
1472 | |||
1473 | } | ||
1474 | break; | ||
1475 | case 2 : | ||
1476 | // InternalCftLanguage.g:551:3: this_ExponentialDistribution_1= ruleExponentialDistribution | ||
1477 | { | ||
1478 | |||
1479 | newCompositeNode(grammarAccess.getDistributionAccess().getExponentialDistributionParserRuleCall_1()); | ||
1480 | |||
1481 | pushFollow(FOLLOW_2); | ||
1482 | this_ExponentialDistribution_1=ruleExponentialDistribution(); | ||
1483 | |||
1484 | state._fsp--; | ||
1485 | |||
1486 | |||
1487 | current = this_ExponentialDistribution_1; | ||
1488 | afterParserOrEnumRuleCall(); | ||
1489 | |||
1490 | |||
1491 | } | ||
1492 | break; | ||
1493 | |||
1494 | } | ||
1495 | |||
1496 | |||
1497 | } | ||
1498 | |||
1499 | |||
1500 | leaveRule(); | ||
1501 | |||
1502 | } | ||
1503 | |||
1504 | catch (RecognitionException re) { | ||
1505 | recover(input,re); | ||
1506 | appendSkippedTokens(); | ||
1507 | } | ||
1508 | finally { | ||
1509 | } | ||
1510 | return current; | ||
1511 | } | ||
1512 | // $ANTLR end "ruleDistribution" | ||
1513 | |||
1514 | |||
1515 | // $ANTLR start "entryRuleConstantDistribution" | ||
1516 | // InternalCftLanguage.g:563:1: entryRuleConstantDistribution returns [EObject current=null] : iv_ruleConstantDistribution= ruleConstantDistribution EOF ; | ||
1517 | public final EObject entryRuleConstantDistribution() throws RecognitionException { | ||
1518 | EObject current = null; | ||
1519 | |||
1520 | EObject iv_ruleConstantDistribution = null; | ||
1521 | |||
1522 | |||
1523 | try { | ||
1524 | // InternalCftLanguage.g:563:61: (iv_ruleConstantDistribution= ruleConstantDistribution EOF ) | ||
1525 | // InternalCftLanguage.g:564:2: iv_ruleConstantDistribution= ruleConstantDistribution EOF | ||
1526 | { | ||
1527 | newCompositeNode(grammarAccess.getConstantDistributionRule()); | ||
1528 | pushFollow(FOLLOW_1); | ||
1529 | iv_ruleConstantDistribution=ruleConstantDistribution(); | ||
1530 | |||
1531 | state._fsp--; | ||
1532 | |||
1533 | current =iv_ruleConstantDistribution; | ||
1534 | match(input,EOF,FOLLOW_2); | ||
1535 | |||
1536 | } | ||
1537 | |||
1538 | } | ||
1539 | |||
1540 | catch (RecognitionException re) { | ||
1541 | recover(input,re); | ||
1542 | appendSkippedTokens(); | ||
1543 | } | ||
1544 | finally { | ||
1545 | } | ||
1546 | return current; | ||
1547 | } | ||
1548 | // $ANTLR end "entryRuleConstantDistribution" | ||
1549 | |||
1550 | |||
1551 | // $ANTLR start "ruleConstantDistribution" | ||
1552 | // InternalCftLanguage.g:570:1: ruleConstantDistribution returns [EObject current=null] : (otherlv_0= 'prob' otherlv_1= '=' ( (lv_p_2_0= ruleDouble ) ) ) ; | ||
1553 | public final EObject ruleConstantDistribution() throws RecognitionException { | ||
1554 | EObject current = null; | ||
1555 | |||
1556 | Token otherlv_0=null; | ||
1557 | Token otherlv_1=null; | ||
1558 | AntlrDatatypeRuleToken lv_p_2_0 = null; | ||
1559 | |||
1560 | |||
1561 | |||
1562 | enterRule(); | ||
1563 | |||
1564 | try { | ||
1565 | // InternalCftLanguage.g:576:2: ( (otherlv_0= 'prob' otherlv_1= '=' ( (lv_p_2_0= ruleDouble ) ) ) ) | ||
1566 | // InternalCftLanguage.g:577:2: (otherlv_0= 'prob' otherlv_1= '=' ( (lv_p_2_0= ruleDouble ) ) ) | ||
1567 | { | ||
1568 | // InternalCftLanguage.g:577:2: (otherlv_0= 'prob' otherlv_1= '=' ( (lv_p_2_0= ruleDouble ) ) ) | ||
1569 | // InternalCftLanguage.g:578:3: otherlv_0= 'prob' otherlv_1= '=' ( (lv_p_2_0= ruleDouble ) ) | ||
1570 | { | ||
1571 | otherlv_0=(Token)match(input,22,FOLLOW_15); | ||
1572 | |||
1573 | newLeafNode(otherlv_0, grammarAccess.getConstantDistributionAccess().getProbKeyword_0()); | ||
1574 | |||
1575 | otherlv_1=(Token)match(input,23,FOLLOW_16); | ||
1576 | |||
1577 | newLeafNode(otherlv_1, grammarAccess.getConstantDistributionAccess().getEqualsSignKeyword_1()); | ||
1578 | |||
1579 | // InternalCftLanguage.g:586:3: ( (lv_p_2_0= ruleDouble ) ) | ||
1580 | // InternalCftLanguage.g:587:4: (lv_p_2_0= ruleDouble ) | ||
1581 | { | ||
1582 | // InternalCftLanguage.g:587:4: (lv_p_2_0= ruleDouble ) | ||
1583 | // InternalCftLanguage.g:588:5: lv_p_2_0= ruleDouble | ||
1584 | { | ||
1585 | |||
1586 | newCompositeNode(grammarAccess.getConstantDistributionAccess().getPDoubleParserRuleCall_2_0()); | ||
1587 | |||
1588 | pushFollow(FOLLOW_2); | ||
1589 | lv_p_2_0=ruleDouble(); | ||
1590 | |||
1591 | state._fsp--; | ||
1592 | |||
1593 | |||
1594 | if (current==null) { | ||
1595 | current = createModelElementForParent(grammarAccess.getConstantDistributionRule()); | ||
1596 | } | ||
1597 | set( | ||
1598 | current, | ||
1599 | "p", | ||
1600 | lv_p_2_0, | ||
1601 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Double"); | ||
1602 | afterParserOrEnumRuleCall(); | ||
1603 | |||
1604 | |||
1605 | } | ||
1606 | |||
1607 | |||
1608 | } | ||
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 "ruleConstantDistribution" | ||
1630 | |||
1631 | |||
1632 | // $ANTLR start "entryRuleExponentialDistribution" | ||
1633 | // InternalCftLanguage.g:609:1: entryRuleExponentialDistribution returns [EObject current=null] : iv_ruleExponentialDistribution= ruleExponentialDistribution EOF ; | ||
1634 | public final EObject entryRuleExponentialDistribution() throws RecognitionException { | ||
1635 | EObject current = null; | ||
1636 | |||
1637 | EObject iv_ruleExponentialDistribution = null; | ||
1638 | |||
1639 | |||
1640 | try { | ||
1641 | // InternalCftLanguage.g:609:64: (iv_ruleExponentialDistribution= ruleExponentialDistribution EOF ) | ||
1642 | // InternalCftLanguage.g:610:2: iv_ruleExponentialDistribution= ruleExponentialDistribution EOF | ||
1643 | { | ||
1644 | newCompositeNode(grammarAccess.getExponentialDistributionRule()); | ||
1645 | pushFollow(FOLLOW_1); | ||
1646 | iv_ruleExponentialDistribution=ruleExponentialDistribution(); | ||
1647 | |||
1648 | state._fsp--; | ||
1649 | |||
1650 | current =iv_ruleExponentialDistribution; | ||
1651 | match(input,EOF,FOLLOW_2); | ||
1652 | |||
1653 | } | ||
1654 | |||
1655 | } | ||
1656 | |||
1657 | catch (RecognitionException re) { | ||
1658 | recover(input,re); | ||
1659 | appendSkippedTokens(); | ||
1660 | } | ||
1661 | finally { | ||
1662 | } | ||
1663 | return current; | ||
1664 | } | ||
1665 | // $ANTLR end "entryRuleExponentialDistribution" | ||
1666 | |||
1667 | |||
1668 | // $ANTLR start "ruleExponentialDistribution" | ||
1669 | // InternalCftLanguage.g:616:1: ruleExponentialDistribution returns [EObject current=null] : (otherlv_0= 'lambda' otherlv_1= '=' ( (lv_lambda_2_0= ruleDouble ) ) ) ; | ||
1670 | public final EObject ruleExponentialDistribution() throws RecognitionException { | ||
1671 | EObject current = null; | ||
1672 | |||
1673 | Token otherlv_0=null; | ||
1674 | Token otherlv_1=null; | ||
1675 | AntlrDatatypeRuleToken lv_lambda_2_0 = null; | ||
1676 | |||
1677 | |||
1678 | |||
1679 | enterRule(); | ||
1680 | |||
1681 | try { | ||
1682 | // InternalCftLanguage.g:622:2: ( (otherlv_0= 'lambda' otherlv_1= '=' ( (lv_lambda_2_0= ruleDouble ) ) ) ) | ||
1683 | // InternalCftLanguage.g:623:2: (otherlv_0= 'lambda' otherlv_1= '=' ( (lv_lambda_2_0= ruleDouble ) ) ) | ||
1684 | { | ||
1685 | // InternalCftLanguage.g:623:2: (otherlv_0= 'lambda' otherlv_1= '=' ( (lv_lambda_2_0= ruleDouble ) ) ) | ||
1686 | // InternalCftLanguage.g:624:3: otherlv_0= 'lambda' otherlv_1= '=' ( (lv_lambda_2_0= ruleDouble ) ) | ||
1687 | { | ||
1688 | otherlv_0=(Token)match(input,24,FOLLOW_15); | ||
1689 | |||
1690 | newLeafNode(otherlv_0, grammarAccess.getExponentialDistributionAccess().getLambdaKeyword_0()); | ||
1691 | |||
1692 | otherlv_1=(Token)match(input,23,FOLLOW_16); | ||
1693 | |||
1694 | newLeafNode(otherlv_1, grammarAccess.getExponentialDistributionAccess().getEqualsSignKeyword_1()); | ||
1695 | |||
1696 | // InternalCftLanguage.g:632:3: ( (lv_lambda_2_0= ruleDouble ) ) | ||
1697 | // InternalCftLanguage.g:633:4: (lv_lambda_2_0= ruleDouble ) | ||
1698 | { | ||
1699 | // InternalCftLanguage.g:633:4: (lv_lambda_2_0= ruleDouble ) | ||
1700 | // InternalCftLanguage.g:634:5: lv_lambda_2_0= ruleDouble | ||
1701 | { | ||
1702 | |||
1703 | newCompositeNode(grammarAccess.getExponentialDistributionAccess().getLambdaDoubleParserRuleCall_2_0()); | ||
1704 | |||
1705 | pushFollow(FOLLOW_2); | ||
1706 | lv_lambda_2_0=ruleDouble(); | ||
1707 | |||
1708 | state._fsp--; | ||
1709 | |||
1710 | |||
1711 | if (current==null) { | ||
1712 | current = createModelElementForParent(grammarAccess.getExponentialDistributionRule()); | ||
1713 | } | ||
1714 | set( | ||
1715 | current, | ||
1716 | "lambda", | ||
1717 | lv_lambda_2_0, | ||
1718 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Double"); | ||
1719 | afterParserOrEnumRuleCall(); | ||
1720 | |||
1721 | |||
1722 | } | ||
1723 | |||
1724 | |||
1725 | } | ||
1726 | |||
1727 | |||
1728 | } | ||
1729 | |||
1730 | |||
1731 | } | ||
1732 | |||
1733 | |||
1734 | leaveRule(); | ||
1735 | |||
1736 | } | ||
1737 | |||
1738 | catch (RecognitionException re) { | ||
1739 | recover(input,re); | ||
1740 | appendSkippedTokens(); | ||
1741 | } | ||
1742 | finally { | ||
1743 | } | ||
1744 | return current; | ||
1745 | } | ||
1746 | // $ANTLR end "ruleExponentialDistribution" | ||
1747 | |||
1748 | |||
1749 | // $ANTLR start "entryRuleGateDefinition" | ||
1750 | // InternalCftLanguage.g:655:1: entryRuleGateDefinition returns [EObject current=null] : iv_ruleGateDefinition= ruleGateDefinition EOF ; | ||
1751 | public final EObject entryRuleGateDefinition() throws RecognitionException { | ||
1752 | EObject current = null; | ||
1753 | |||
1754 | EObject iv_ruleGateDefinition = null; | ||
1755 | |||
1756 | |||
1757 | try { | ||
1758 | // InternalCftLanguage.g:655:55: (iv_ruleGateDefinition= ruleGateDefinition EOF ) | ||
1759 | // InternalCftLanguage.g:656:2: iv_ruleGateDefinition= ruleGateDefinition EOF | ||
1760 | { | ||
1761 | newCompositeNode(grammarAccess.getGateDefinitionRule()); | ||
1762 | pushFollow(FOLLOW_1); | ||
1763 | iv_ruleGateDefinition=ruleGateDefinition(); | ||
1764 | |||
1765 | state._fsp--; | ||
1766 | |||
1767 | current =iv_ruleGateDefinition; | ||
1768 | match(input,EOF,FOLLOW_2); | ||
1769 | |||
1770 | } | ||
1771 | |||
1772 | } | ||
1773 | |||
1774 | catch (RecognitionException re) { | ||
1775 | recover(input,re); | ||
1776 | appendSkippedTokens(); | ||
1777 | } | ||
1778 | finally { | ||
1779 | } | ||
1780 | return current; | ||
1781 | } | ||
1782 | // $ANTLR end "entryRuleGateDefinition" | ||
1783 | |||
1784 | |||
1785 | // $ANTLR start "ruleGateDefinition" | ||
1786 | // InternalCftLanguage.g:662:1: ruleGateDefinition returns [EObject current=null] : (this_AndGateDefinition_0= ruleAndGateDefinition | this_OrGateDefinition_1= ruleOrGateDefinition | this_KOfMGateDefinition_2= ruleKOfMGateDefinition ) ; | ||
1787 | public final EObject ruleGateDefinition() throws RecognitionException { | ||
1788 | EObject current = null; | ||
1789 | |||
1790 | EObject this_AndGateDefinition_0 = null; | ||
1791 | |||
1792 | EObject this_OrGateDefinition_1 = null; | ||
1793 | |||
1794 | EObject this_KOfMGateDefinition_2 = null; | ||
1795 | |||
1796 | |||
1797 | |||
1798 | enterRule(); | ||
1799 | |||
1800 | try { | ||
1801 | // InternalCftLanguage.g:668:2: ( (this_AndGateDefinition_0= ruleAndGateDefinition | this_OrGateDefinition_1= ruleOrGateDefinition | this_KOfMGateDefinition_2= ruleKOfMGateDefinition ) ) | ||
1802 | // InternalCftLanguage.g:669:2: (this_AndGateDefinition_0= ruleAndGateDefinition | this_OrGateDefinition_1= ruleOrGateDefinition | this_KOfMGateDefinition_2= ruleKOfMGateDefinition ) | ||
1803 | { | ||
1804 | // InternalCftLanguage.g:669:2: (this_AndGateDefinition_0= ruleAndGateDefinition | this_OrGateDefinition_1= ruleOrGateDefinition | this_KOfMGateDefinition_2= ruleKOfMGateDefinition ) | ||
1805 | int alt12=3; | ||
1806 | int LA12_0 = input.LA(1); | ||
1807 | |||
1808 | if ( (LA12_0==RULE_ID) ) { | ||
1809 | switch ( input.LA(2) ) { | ||
1810 | case RULE_INT: | ||
1811 | { | ||
1812 | alt12=3; | ||
1813 | } | ||
1814 | break; | ||
1815 | case 26: | ||
1816 | { | ||
1817 | alt12=2; | ||
1818 | } | ||
1819 | break; | ||
1820 | case 25: | ||
1821 | { | ||
1822 | alt12=1; | ||
1823 | } | ||
1824 | break; | ||
1825 | default: | ||
1826 | NoViableAltException nvae = | ||
1827 | new NoViableAltException("", 12, 1, input); | ||
1828 | |||
1829 | throw nvae; | ||
1830 | } | ||
1831 | |||
1832 | } | ||
1833 | else if ( (LA12_0==RULE_OF_INT) ) { | ||
1834 | switch ( input.LA(2) ) { | ||
1835 | case RULE_INT: | ||
1836 | { | ||
1837 | alt12=3; | ||
1838 | } | ||
1839 | break; | ||
1840 | case 26: | ||
1841 | { | ||
1842 | alt12=2; | ||
1843 | } | ||
1844 | break; | ||
1845 | case 25: | ||
1846 | { | ||
1847 | alt12=1; | ||
1848 | } | ||
1849 | break; | ||
1850 | default: | ||
1851 | NoViableAltException nvae = | ||
1852 | new NoViableAltException("", 12, 2, input); | ||
1853 | |||
1854 | throw nvae; | ||
1855 | } | ||
1856 | |||
1857 | } | ||
1858 | else { | ||
1859 | NoViableAltException nvae = | ||
1860 | new NoViableAltException("", 12, 0, input); | ||
1861 | |||
1862 | throw nvae; | ||
1863 | } | ||
1864 | switch (alt12) { | ||
1865 | case 1 : | ||
1866 | // InternalCftLanguage.g:670:3: this_AndGateDefinition_0= ruleAndGateDefinition | ||
1867 | { | ||
1868 | |||
1869 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getAndGateDefinitionParserRuleCall_0()); | ||
1870 | |||
1871 | pushFollow(FOLLOW_2); | ||
1872 | this_AndGateDefinition_0=ruleAndGateDefinition(); | ||
1873 | |||
1874 | state._fsp--; | ||
1875 | |||
1876 | |||
1877 | current = this_AndGateDefinition_0; | ||
1878 | afterParserOrEnumRuleCall(); | ||
1879 | |||
1880 | |||
1881 | } | ||
1882 | break; | ||
1883 | case 2 : | ||
1884 | // InternalCftLanguage.g:679:3: this_OrGateDefinition_1= ruleOrGateDefinition | ||
1885 | { | ||
1886 | |||
1887 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getOrGateDefinitionParserRuleCall_1()); | ||
1888 | |||
1889 | pushFollow(FOLLOW_2); | ||
1890 | this_OrGateDefinition_1=ruleOrGateDefinition(); | ||
1891 | |||
1892 | state._fsp--; | ||
1893 | |||
1894 | |||
1895 | current = this_OrGateDefinition_1; | ||
1896 | afterParserOrEnumRuleCall(); | ||
1897 | |||
1898 | |||
1899 | } | ||
1900 | break; | ||
1901 | case 3 : | ||
1902 | // InternalCftLanguage.g:688:3: this_KOfMGateDefinition_2= ruleKOfMGateDefinition | ||
1903 | { | ||
1904 | |||
1905 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getKOfMGateDefinitionParserRuleCall_2()); | ||
1906 | |||
1907 | pushFollow(FOLLOW_2); | ||
1908 | this_KOfMGateDefinition_2=ruleKOfMGateDefinition(); | ||
1909 | |||
1910 | state._fsp--; | ||
1911 | |||
1912 | |||
1913 | current = this_KOfMGateDefinition_2; | ||
1914 | afterParserOrEnumRuleCall(); | ||
1915 | |||
1916 | |||
1917 | } | ||
1918 | break; | ||
1919 | |||
1920 | } | ||
1921 | |||
1922 | |||
1923 | } | ||
1924 | |||
1925 | |||
1926 | leaveRule(); | ||
1927 | |||
1928 | } | ||
1929 | |||
1930 | catch (RecognitionException re) { | ||
1931 | recover(input,re); | ||
1932 | appendSkippedTokens(); | ||
1933 | } | ||
1934 | finally { | ||
1935 | } | ||
1936 | return current; | ||
1937 | } | ||
1938 | // $ANTLR end "ruleGateDefinition" | ||
1939 | |||
1940 | |||
1941 | // $ANTLR start "entryRuleAndGateDefinition" | ||
1942 | // InternalCftLanguage.g:700:1: entryRuleAndGateDefinition returns [EObject current=null] : iv_ruleAndGateDefinition= ruleAndGateDefinition EOF ; | ||
1943 | public final EObject entryRuleAndGateDefinition() throws RecognitionException { | ||
1944 | EObject current = null; | ||
1945 | |||
1946 | EObject iv_ruleAndGateDefinition = null; | ||
1947 | |||
1948 | |||
1949 | try { | ||
1950 | // InternalCftLanguage.g:700:58: (iv_ruleAndGateDefinition= ruleAndGateDefinition EOF ) | ||
1951 | // InternalCftLanguage.g:701:2: iv_ruleAndGateDefinition= ruleAndGateDefinition EOF | ||
1952 | { | ||
1953 | newCompositeNode(grammarAccess.getAndGateDefinitionRule()); | ||
1954 | pushFollow(FOLLOW_1); | ||
1955 | iv_ruleAndGateDefinition=ruleAndGateDefinition(); | ||
1956 | |||
1957 | state._fsp--; | ||
1958 | |||
1959 | current =iv_ruleAndGateDefinition; | ||
1960 | match(input,EOF,FOLLOW_2); | ||
1961 | |||
1962 | } | ||
1963 | |||
1964 | } | ||
1965 | |||
1966 | catch (RecognitionException re) { | ||
1967 | recover(input,re); | ||
1968 | appendSkippedTokens(); | ||
1969 | } | ||
1970 | finally { | ||
1971 | } | ||
1972 | return current; | ||
1973 | } | ||
1974 | // $ANTLR end "entryRuleAndGateDefinition" | ||
1975 | |||
1976 | |||
1977 | // $ANTLR start "ruleAndGateDefinition" | ||
1978 | // InternalCftLanguage.g:707:1: ruleAndGateDefinition returns [EObject current=null] : ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'and' ( ( ruleValidId ) )* ) ; | ||
1979 | public final EObject ruleAndGateDefinition() throws RecognitionException { | ||
1980 | EObject current = null; | ||
1981 | |||
1982 | Token otherlv_1=null; | ||
1983 | AntlrDatatypeRuleToken lv_name_0_0 = null; | ||
1984 | |||
1985 | |||
1986 | |||
1987 | enterRule(); | ||
1988 | |||
1989 | try { | ||
1990 | // InternalCftLanguage.g:713:2: ( ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'and' ( ( ruleValidId ) )* ) ) | ||
1991 | // InternalCftLanguage.g:714:2: ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'and' ( ( ruleValidId ) )* ) | ||
1992 | { | ||
1993 | // InternalCftLanguage.g:714:2: ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'and' ( ( ruleValidId ) )* ) | ||
1994 | // InternalCftLanguage.g:715:3: ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'and' ( ( ruleValidId ) )* | ||
1995 | { | ||
1996 | // InternalCftLanguage.g:715:3: ( (lv_name_0_0= ruleValidId ) ) | ||
1997 | // InternalCftLanguage.g:716:4: (lv_name_0_0= ruleValidId ) | ||
1998 | { | ||
1999 | // InternalCftLanguage.g:716:4: (lv_name_0_0= ruleValidId ) | ||
2000 | // InternalCftLanguage.g:717:5: lv_name_0_0= ruleValidId | ||
2001 | { | ||
2002 | |||
2003 | newCompositeNode(grammarAccess.getAndGateDefinitionAccess().getNameValidIdParserRuleCall_0_0()); | ||
2004 | |||
2005 | pushFollow(FOLLOW_17); | ||
2006 | lv_name_0_0=ruleValidId(); | ||
2007 | |||
2008 | state._fsp--; | ||
2009 | |||
2010 | |||
2011 | if (current==null) { | ||
2012 | current = createModelElementForParent(grammarAccess.getAndGateDefinitionRule()); | ||
2013 | } | ||
2014 | set( | ||
2015 | current, | ||
2016 | "name", | ||
2017 | lv_name_0_0, | ||
2018 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
2019 | afterParserOrEnumRuleCall(); | ||
2020 | |||
2021 | |||
2022 | } | ||
2023 | |||
2024 | |||
2025 | } | ||
2026 | |||
2027 | otherlv_1=(Token)match(input,25,FOLLOW_18); | ||
2028 | |||
2029 | newLeafNode(otherlv_1, grammarAccess.getAndGateDefinitionAccess().getAndKeyword_1()); | ||
2030 | |||
2031 | // InternalCftLanguage.g:738:3: ( ( ruleValidId ) )* | ||
2032 | loop13: | ||
2033 | do { | ||
2034 | int alt13=2; | ||
2035 | int LA13_0 = input.LA(1); | ||
2036 | |||
2037 | if ( ((LA13_0>=RULE_OF_INT && LA13_0<=RULE_ID)) ) { | ||
2038 | alt13=1; | ||
2039 | } | ||
2040 | |||
2041 | |||
2042 | switch (alt13) { | ||
2043 | case 1 : | ||
2044 | // InternalCftLanguage.g:739:4: ( ruleValidId ) | ||
2045 | { | ||
2046 | // InternalCftLanguage.g:739:4: ( ruleValidId ) | ||
2047 | // InternalCftLanguage.g:740:5: ruleValidId | ||
2048 | { | ||
2049 | |||
2050 | if (current==null) { | ||
2051 | current = createModelElement(grammarAccess.getAndGateDefinitionRule()); | ||
2052 | } | ||
2053 | |||
2054 | |||
2055 | newCompositeNode(grammarAccess.getAndGateDefinitionAccess().getInputEventsEventDeclarationCrossReference_2_0()); | ||
2056 | |||
2057 | pushFollow(FOLLOW_18); | ||
2058 | ruleValidId(); | ||
2059 | |||
2060 | state._fsp--; | ||
2061 | |||
2062 | |||
2063 | afterParserOrEnumRuleCall(); | ||
2064 | |||
2065 | |||
2066 | } | ||
2067 | |||
2068 | |||
2069 | } | ||
2070 | break; | ||
2071 | |||
2072 | default : | ||
2073 | break loop13; | ||
2074 | } | ||
2075 | } while (true); | ||
2076 | |||
2077 | |||
2078 | } | ||
2079 | |||
2080 | |||
2081 | } | ||
2082 | |||
2083 | |||
2084 | leaveRule(); | ||
2085 | |||
2086 | } | ||
2087 | |||
2088 | catch (RecognitionException re) { | ||
2089 | recover(input,re); | ||
2090 | appendSkippedTokens(); | ||
2091 | } | ||
2092 | finally { | ||
2093 | } | ||
2094 | return current; | ||
2095 | } | ||
2096 | // $ANTLR end "ruleAndGateDefinition" | ||
2097 | |||
2098 | |||
2099 | // $ANTLR start "entryRuleOrGateDefinition" | ||
2100 | // InternalCftLanguage.g:758:1: entryRuleOrGateDefinition returns [EObject current=null] : iv_ruleOrGateDefinition= ruleOrGateDefinition EOF ; | ||
2101 | public final EObject entryRuleOrGateDefinition() throws RecognitionException { | ||
2102 | EObject current = null; | ||
2103 | |||
2104 | EObject iv_ruleOrGateDefinition = null; | ||
2105 | |||
2106 | |||
2107 | try { | ||
2108 | // InternalCftLanguage.g:758:57: (iv_ruleOrGateDefinition= ruleOrGateDefinition EOF ) | ||
2109 | // InternalCftLanguage.g:759:2: iv_ruleOrGateDefinition= ruleOrGateDefinition EOF | ||
2110 | { | ||
2111 | newCompositeNode(grammarAccess.getOrGateDefinitionRule()); | ||
2112 | pushFollow(FOLLOW_1); | ||
2113 | iv_ruleOrGateDefinition=ruleOrGateDefinition(); | ||
2114 | |||
2115 | state._fsp--; | ||
2116 | |||
2117 | current =iv_ruleOrGateDefinition; | ||
2118 | match(input,EOF,FOLLOW_2); | ||
2119 | |||
2120 | } | ||
2121 | |||
2122 | } | ||
2123 | |||
2124 | catch (RecognitionException re) { | ||
2125 | recover(input,re); | ||
2126 | appendSkippedTokens(); | ||
2127 | } | ||
2128 | finally { | ||
2129 | } | ||
2130 | return current; | ||
2131 | } | ||
2132 | // $ANTLR end "entryRuleOrGateDefinition" | ||
2133 | |||
2134 | |||
2135 | // $ANTLR start "ruleOrGateDefinition" | ||
2136 | // InternalCftLanguage.g:765:1: ruleOrGateDefinition returns [EObject current=null] : ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'or' ( ( ruleValidId ) )* ) ; | ||
2137 | public final EObject ruleOrGateDefinition() throws RecognitionException { | ||
2138 | EObject current = null; | ||
2139 | |||
2140 | Token otherlv_1=null; | ||
2141 | AntlrDatatypeRuleToken lv_name_0_0 = null; | ||
2142 | |||
2143 | |||
2144 | |||
2145 | enterRule(); | ||
2146 | |||
2147 | try { | ||
2148 | // InternalCftLanguage.g:771:2: ( ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'or' ( ( ruleValidId ) )* ) ) | ||
2149 | // InternalCftLanguage.g:772:2: ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'or' ( ( ruleValidId ) )* ) | ||
2150 | { | ||
2151 | // InternalCftLanguage.g:772:2: ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'or' ( ( ruleValidId ) )* ) | ||
2152 | // InternalCftLanguage.g:773:3: ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'or' ( ( ruleValidId ) )* | ||
2153 | { | ||
2154 | // InternalCftLanguage.g:773:3: ( (lv_name_0_0= ruleValidId ) ) | ||
2155 | // InternalCftLanguage.g:774:4: (lv_name_0_0= ruleValidId ) | ||
2156 | { | ||
2157 | // InternalCftLanguage.g:774:4: (lv_name_0_0= ruleValidId ) | ||
2158 | // InternalCftLanguage.g:775:5: lv_name_0_0= ruleValidId | ||
2159 | { | ||
2160 | |||
2161 | newCompositeNode(grammarAccess.getOrGateDefinitionAccess().getNameValidIdParserRuleCall_0_0()); | ||
2162 | |||
2163 | pushFollow(FOLLOW_19); | ||
2164 | lv_name_0_0=ruleValidId(); | ||
2165 | |||
2166 | state._fsp--; | ||
2167 | |||
2168 | |||
2169 | if (current==null) { | ||
2170 | current = createModelElementForParent(grammarAccess.getOrGateDefinitionRule()); | ||
2171 | } | ||
2172 | set( | ||
2173 | current, | ||
2174 | "name", | ||
2175 | lv_name_0_0, | ||
2176 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
2177 | afterParserOrEnumRuleCall(); | ||
2178 | |||
2179 | |||
2180 | } | ||
2181 | |||
2182 | |||
2183 | } | ||
2184 | |||
2185 | otherlv_1=(Token)match(input,26,FOLLOW_18); | ||
2186 | |||
2187 | newLeafNode(otherlv_1, grammarAccess.getOrGateDefinitionAccess().getOrKeyword_1()); | ||
2188 | |||
2189 | // InternalCftLanguage.g:796:3: ( ( ruleValidId ) )* | ||
2190 | loop14: | ||
2191 | do { | ||
2192 | int alt14=2; | ||
2193 | int LA14_0 = input.LA(1); | ||
2194 | |||
2195 | if ( ((LA14_0>=RULE_OF_INT && LA14_0<=RULE_ID)) ) { | ||
2196 | alt14=1; | ||
2197 | } | ||
2198 | |||
2199 | |||
2200 | switch (alt14) { | ||
2201 | case 1 : | ||
2202 | // InternalCftLanguage.g:797:4: ( ruleValidId ) | ||
2203 | { | ||
2204 | // InternalCftLanguage.g:797:4: ( ruleValidId ) | ||
2205 | // InternalCftLanguage.g:798:5: ruleValidId | ||
2206 | { | ||
2207 | |||
2208 | if (current==null) { | ||
2209 | current = createModelElement(grammarAccess.getOrGateDefinitionRule()); | ||
2210 | } | ||
2211 | |||
2212 | |||
2213 | newCompositeNode(grammarAccess.getOrGateDefinitionAccess().getInputEventsEventDeclarationCrossReference_2_0()); | ||
2214 | |||
2215 | pushFollow(FOLLOW_18); | ||
2216 | ruleValidId(); | ||
2217 | |||
2218 | state._fsp--; | ||
2219 | |||
2220 | |||
2221 | afterParserOrEnumRuleCall(); | ||
2222 | |||
2223 | |||
2224 | } | ||
2225 | |||
2226 | |||
2227 | } | ||
2228 | break; | ||
2229 | |||
2230 | default : | ||
2231 | break loop14; | ||
2232 | } | ||
2233 | } while (true); | ||
2234 | |||
2235 | |||
2236 | } | ||
2237 | |||
2238 | |||
2239 | } | ||
2240 | |||
2241 | |||
2242 | leaveRule(); | ||
2243 | |||
2244 | } | ||
2245 | |||
2246 | catch (RecognitionException re) { | ||
2247 | recover(input,re); | ||
2248 | appendSkippedTokens(); | ||
2249 | } | ||
2250 | finally { | ||
2251 | } | ||
2252 | return current; | ||
2253 | } | ||
2254 | // $ANTLR end "ruleOrGateDefinition" | ||
2255 | |||
2256 | |||
2257 | // $ANTLR start "entryRuleKOfMGateDefinition" | ||
2258 | // InternalCftLanguage.g:816:1: entryRuleKOfMGateDefinition returns [EObject current=null] : iv_ruleKOfMGateDefinition= ruleKOfMGateDefinition EOF ; | ||
2259 | public final EObject entryRuleKOfMGateDefinition() throws RecognitionException { | ||
2260 | EObject current = null; | ||
2261 | |||
2262 | EObject iv_ruleKOfMGateDefinition = null; | ||
2263 | |||
2264 | |||
2265 | try { | ||
2266 | // InternalCftLanguage.g:816:59: (iv_ruleKOfMGateDefinition= ruleKOfMGateDefinition EOF ) | ||
2267 | // InternalCftLanguage.g:817:2: iv_ruleKOfMGateDefinition= ruleKOfMGateDefinition EOF | ||
2268 | { | ||
2269 | newCompositeNode(grammarAccess.getKOfMGateDefinitionRule()); | ||
2270 | pushFollow(FOLLOW_1); | ||
2271 | iv_ruleKOfMGateDefinition=ruleKOfMGateDefinition(); | ||
2272 | |||
2273 | state._fsp--; | ||
2274 | |||
2275 | current =iv_ruleKOfMGateDefinition; | ||
2276 | match(input,EOF,FOLLOW_2); | ||
2277 | |||
2278 | } | ||
2279 | |||
2280 | } | ||
2281 | |||
2282 | catch (RecognitionException re) { | ||
2283 | recover(input,re); | ||
2284 | appendSkippedTokens(); | ||
2285 | } | ||
2286 | finally { | ||
2287 | } | ||
2288 | return current; | ||
2289 | } | ||
2290 | // $ANTLR end "entryRuleKOfMGateDefinition" | ||
2291 | |||
2292 | |||
2293 | // $ANTLR start "ruleKOfMGateDefinition" | ||
2294 | // InternalCftLanguage.g:823:1: ruleKOfMGateDefinition returns [EObject current=null] : ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_k_1_0= RULE_INT ) ) ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) ( ( ruleValidId ) )* ) ; | ||
2295 | public final EObject ruleKOfMGateDefinition() throws RecognitionException { | ||
2296 | EObject current = null; | ||
2297 | |||
2298 | Token lv_k_1_0=null; | ||
2299 | Token otherlv_2=null; | ||
2300 | Token lv_m_3_0=null; | ||
2301 | Token lv_m_4_0=null; | ||
2302 | AntlrDatatypeRuleToken lv_name_0_0 = null; | ||
2303 | |||
2304 | |||
2305 | |||
2306 | enterRule(); | ||
2307 | |||
2308 | try { | ||
2309 | // InternalCftLanguage.g:829:2: ( ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_k_1_0= RULE_INT ) ) ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) ( ( ruleValidId ) )* ) ) | ||
2310 | // InternalCftLanguage.g:830:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_k_1_0= RULE_INT ) ) ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) ( ( ruleValidId ) )* ) | ||
2311 | { | ||
2312 | // InternalCftLanguage.g:830:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_k_1_0= RULE_INT ) ) ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) ( ( ruleValidId ) )* ) | ||
2313 | // InternalCftLanguage.g:831:3: ( (lv_name_0_0= ruleValidId ) ) ( (lv_k_1_0= RULE_INT ) ) ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) ( ( ruleValidId ) )* | ||
2314 | { | ||
2315 | // InternalCftLanguage.g:831:3: ( (lv_name_0_0= ruleValidId ) ) | ||
2316 | // InternalCftLanguage.g:832:4: (lv_name_0_0= ruleValidId ) | ||
2317 | { | ||
2318 | // InternalCftLanguage.g:832:4: (lv_name_0_0= ruleValidId ) | ||
2319 | // InternalCftLanguage.g:833:5: lv_name_0_0= ruleValidId | ||
2320 | { | ||
2321 | |||
2322 | newCompositeNode(grammarAccess.getKOfMGateDefinitionAccess().getNameValidIdParserRuleCall_0_0()); | ||
2323 | |||
2324 | pushFollow(FOLLOW_20); | ||
2325 | lv_name_0_0=ruleValidId(); | ||
2326 | |||
2327 | state._fsp--; | ||
2328 | |||
2329 | |||
2330 | if (current==null) { | ||
2331 | current = createModelElementForParent(grammarAccess.getKOfMGateDefinitionRule()); | ||
2332 | } | ||
2333 | set( | ||
2334 | current, | ||
2335 | "name", | ||
2336 | lv_name_0_0, | ||
2337 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
2338 | afterParserOrEnumRuleCall(); | ||
2339 | |||
2340 | |||
2341 | } | ||
2342 | |||
2343 | |||
2344 | } | ||
2345 | |||
2346 | // InternalCftLanguage.g:850:3: ( (lv_k_1_0= RULE_INT ) ) | ||
2347 | // InternalCftLanguage.g:851:4: (lv_k_1_0= RULE_INT ) | ||
2348 | { | ||
2349 | // InternalCftLanguage.g:851:4: (lv_k_1_0= RULE_INT ) | ||
2350 | // InternalCftLanguage.g:852:5: lv_k_1_0= RULE_INT | ||
2351 | { | ||
2352 | lv_k_1_0=(Token)match(input,RULE_INT,FOLLOW_21); | ||
2353 | |||
2354 | newLeafNode(lv_k_1_0, grammarAccess.getKOfMGateDefinitionAccess().getKINTTerminalRuleCall_1_0()); | ||
2355 | |||
2356 | |||
2357 | if (current==null) { | ||
2358 | current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
2359 | } | ||
2360 | setWithLastConsumed( | ||
2361 | current, | ||
2362 | "k", | ||
2363 | lv_k_1_0, | ||
2364 | "org.eclipse.xtext.common.Terminals.INT"); | ||
2365 | |||
2366 | |||
2367 | } | ||
2368 | |||
2369 | |||
2370 | } | ||
2371 | |||
2372 | // InternalCftLanguage.g:868:3: ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) | ||
2373 | int alt15=2; | ||
2374 | int LA15_0 = input.LA(1); | ||
2375 | |||
2376 | if ( (LA15_0==27) ) { | ||
2377 | alt15=1; | ||
2378 | } | ||
2379 | else if ( (LA15_0==RULE_OF_INT) ) { | ||
2380 | alt15=2; | ||
2381 | } | ||
2382 | else { | ||
2383 | NoViableAltException nvae = | ||
2384 | new NoViableAltException("", 15, 0, input); | ||
2385 | |||
2386 | throw nvae; | ||
2387 | } | ||
2388 | switch (alt15) { | ||
2389 | case 1 : | ||
2390 | // InternalCftLanguage.g:869:4: (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ||
2391 | { | ||
2392 | // InternalCftLanguage.g:869:4: (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ||
2393 | // InternalCftLanguage.g:870:5: otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) | ||
2394 | { | ||
2395 | otherlv_2=(Token)match(input,27,FOLLOW_20); | ||
2396 | |||
2397 | newLeafNode(otherlv_2, grammarAccess.getKOfMGateDefinitionAccess().getOfKeyword_2_0_0()); | ||
2398 | |||
2399 | // InternalCftLanguage.g:874:5: ( (lv_m_3_0= RULE_INT ) ) | ||
2400 | // InternalCftLanguage.g:875:6: (lv_m_3_0= RULE_INT ) | ||
2401 | { | ||
2402 | // InternalCftLanguage.g:875:6: (lv_m_3_0= RULE_INT ) | ||
2403 | // InternalCftLanguage.g:876:7: lv_m_3_0= RULE_INT | ||
2404 | { | ||
2405 | lv_m_3_0=(Token)match(input,RULE_INT,FOLLOW_18); | ||
2406 | |||
2407 | newLeafNode(lv_m_3_0, grammarAccess.getKOfMGateDefinitionAccess().getMINTTerminalRuleCall_2_0_1_0()); | ||
2408 | |||
2409 | |||
2410 | if (current==null) { | ||
2411 | current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
2412 | } | ||
2413 | setWithLastConsumed( | ||
2414 | current, | ||
2415 | "m", | ||
2416 | lv_m_3_0, | ||
2417 | "org.eclipse.xtext.common.Terminals.INT"); | ||
2418 | |||
2419 | |||
2420 | } | ||
2421 | |||
2422 | |||
2423 | } | ||
2424 | |||
2425 | |||
2426 | } | ||
2427 | |||
2428 | |||
2429 | } | ||
2430 | break; | ||
2431 | case 2 : | ||
2432 | // InternalCftLanguage.g:894:4: ( (lv_m_4_0= RULE_OF_INT ) ) | ||
2433 | { | ||
2434 | // InternalCftLanguage.g:894:4: ( (lv_m_4_0= RULE_OF_INT ) ) | ||
2435 | // InternalCftLanguage.g:895:5: (lv_m_4_0= RULE_OF_INT ) | ||
2436 | { | ||
2437 | // InternalCftLanguage.g:895:5: (lv_m_4_0= RULE_OF_INT ) | ||
2438 | // InternalCftLanguage.g:896:6: lv_m_4_0= RULE_OF_INT | ||
2439 | { | ||
2440 | lv_m_4_0=(Token)match(input,RULE_OF_INT,FOLLOW_18); | ||
2441 | |||
2442 | newLeafNode(lv_m_4_0, grammarAccess.getKOfMGateDefinitionAccess().getMOF_INTTerminalRuleCall_2_1_0()); | ||
2443 | |||
2444 | |||
2445 | if (current==null) { | ||
2446 | current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
2447 | } | ||
2448 | setWithLastConsumed( | ||
2449 | current, | ||
2450 | "m", | ||
2451 | lv_m_4_0, | ||
2452 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.OF_INT"); | ||
2453 | |||
2454 | |||
2455 | } | ||
2456 | |||
2457 | |||
2458 | } | ||
2459 | |||
2460 | |||
2461 | } | ||
2462 | break; | ||
2463 | |||
2464 | } | ||
2465 | |||
2466 | // InternalCftLanguage.g:913:3: ( ( ruleValidId ) )* | ||
2467 | loop16: | ||
2468 | do { | ||
2469 | int alt16=2; | ||
2470 | int LA16_0 = input.LA(1); | ||
2471 | |||
2472 | if ( ((LA16_0>=RULE_OF_INT && LA16_0<=RULE_ID)) ) { | ||
2473 | alt16=1; | ||
2474 | } | ||
2475 | |||
2476 | |||
2477 | switch (alt16) { | ||
2478 | case 1 : | ||
2479 | // InternalCftLanguage.g:914:4: ( ruleValidId ) | ||
2480 | { | ||
2481 | // InternalCftLanguage.g:914:4: ( ruleValidId ) | ||
2482 | // InternalCftLanguage.g:915:5: ruleValidId | ||
2483 | { | ||
2484 | |||
2485 | if (current==null) { | ||
2486 | current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
2487 | } | ||
2488 | |||
2489 | |||
2490 | newCompositeNode(grammarAccess.getKOfMGateDefinitionAccess().getInputEventsEventDeclarationCrossReference_3_0()); | ||
2491 | |||
2492 | pushFollow(FOLLOW_18); | ||
2493 | ruleValidId(); | ||
2494 | |||
2495 | state._fsp--; | ||
2496 | |||
2497 | |||
2498 | afterParserOrEnumRuleCall(); | ||
2499 | |||
2500 | |||
2501 | } | ||
2502 | |||
2503 | |||
2504 | } | ||
2505 | break; | ||
2506 | |||
2507 | default : | ||
2508 | break loop16; | ||
2509 | } | ||
2510 | } while (true); | ||
2511 | |||
2512 | |||
2513 | } | ||
2514 | |||
2515 | |||
2516 | } | ||
2517 | |||
2518 | |||
2519 | leaveRule(); | ||
2520 | |||
2521 | } | ||
2522 | |||
2523 | catch (RecognitionException re) { | ||
2524 | recover(input,re); | ||
2525 | appendSkippedTokens(); | ||
2526 | } | ||
2527 | finally { | ||
2528 | } | ||
2529 | return current; | ||
2530 | } | ||
2531 | // $ANTLR end "ruleKOfMGateDefinition" | ||
2532 | |||
2533 | |||
2534 | // $ANTLR start "entryRuleTransformationDefinition" | ||
2535 | // InternalCftLanguage.g:933:1: entryRuleTransformationDefinition returns [EObject current=null] : iv_ruleTransformationDefinition= ruleTransformationDefinition EOF ; | ||
2536 | public final EObject entryRuleTransformationDefinition() throws RecognitionException { | ||
2537 | EObject current = null; | ||
2538 | |||
2539 | EObject iv_ruleTransformationDefinition = null; | ||
2540 | |||
2541 | |||
2542 | try { | ||
2543 | // InternalCftLanguage.g:933:65: (iv_ruleTransformationDefinition= ruleTransformationDefinition EOF ) | ||
2544 | // InternalCftLanguage.g:934:2: iv_ruleTransformationDefinition= ruleTransformationDefinition EOF | ||
2545 | { | ||
2546 | newCompositeNode(grammarAccess.getTransformationDefinitionRule()); | ||
2547 | pushFollow(FOLLOW_1); | ||
2548 | iv_ruleTransformationDefinition=ruleTransformationDefinition(); | ||
2549 | |||
2550 | state._fsp--; | ||
2551 | |||
2552 | current =iv_ruleTransformationDefinition; | ||
2553 | match(input,EOF,FOLLOW_2); | ||
2554 | |||
2555 | } | ||
2556 | |||
2557 | } | ||
2558 | |||
2559 | catch (RecognitionException re) { | ||
2560 | recover(input,re); | ||
2561 | appendSkippedTokens(); | ||
2562 | } | ||
2563 | finally { | ||
2564 | } | ||
2565 | return current; | ||
2566 | } | ||
2567 | // $ANTLR end "entryRuleTransformationDefinition" | ||
2568 | |||
2569 | |||
2570 | // $ANTLR start "ruleTransformationDefinition" | ||
2571 | // InternalCftLanguage.g:940:1: ruleTransformationDefinition returns [EObject current=null] : (otherlv_0= 'transformation' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) ; | ||
2572 | public final EObject ruleTransformationDefinition() throws RecognitionException { | ||
2573 | EObject current = null; | ||
2574 | |||
2575 | Token otherlv_0=null; | ||
2576 | Token otherlv_2=null; | ||
2577 | Token otherlv_4=null; | ||
2578 | AntlrDatatypeRuleToken lv_name_1_0 = null; | ||
2579 | |||
2580 | EObject lv_mappingDefinitions_3_0 = null; | ||
2581 | |||
2582 | |||
2583 | |||
2584 | enterRule(); | ||
2585 | |||
2586 | try { | ||
2587 | // InternalCftLanguage.g:946:2: ( (otherlv_0= 'transformation' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) ) | ||
2588 | // InternalCftLanguage.g:947:2: (otherlv_0= 'transformation' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) | ||
2589 | { | ||
2590 | // InternalCftLanguage.g:947:2: (otherlv_0= 'transformation' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) | ||
2591 | // InternalCftLanguage.g:948:3: otherlv_0= 'transformation' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' | ||
2592 | { | ||
2593 | otherlv_0=(Token)match(input,28,FOLLOW_3); | ||
2594 | |||
2595 | newLeafNode(otherlv_0, grammarAccess.getTransformationDefinitionAccess().getTransformationKeyword_0()); | ||
2596 | |||
2597 | // InternalCftLanguage.g:952:3: ( (lv_name_1_0= ruleValidId ) ) | ||
2598 | // InternalCftLanguage.g:953:4: (lv_name_1_0= ruleValidId ) | ||
2599 | { | ||
2600 | // InternalCftLanguage.g:953:4: (lv_name_1_0= ruleValidId ) | ||
2601 | // InternalCftLanguage.g:954:5: lv_name_1_0= ruleValidId | ||
2602 | { | ||
2603 | |||
2604 | newCompositeNode(grammarAccess.getTransformationDefinitionAccess().getNameValidIdParserRuleCall_1_0()); | ||
2605 | |||
2606 | pushFollow(FOLLOW_8); | ||
2607 | lv_name_1_0=ruleValidId(); | ||
2608 | |||
2609 | state._fsp--; | ||
2610 | |||
2611 | |||
2612 | if (current==null) { | ||
2613 | current = createModelElementForParent(grammarAccess.getTransformationDefinitionRule()); | ||
2614 | } | ||
2615 | set( | ||
2616 | current, | ||
2617 | "name", | ||
2618 | lv_name_1_0, | ||
2619 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
2620 | afterParserOrEnumRuleCall(); | ||
2621 | |||
2622 | |||
2623 | } | ||
2624 | |||
2625 | |||
2626 | } | ||
2627 | |||
2628 | otherlv_2=(Token)match(input,17,FOLLOW_22); | ||
2629 | |||
2630 | newLeafNode(otherlv_2, grammarAccess.getTransformationDefinitionAccess().getLeftCurlyBracketKeyword_2()); | ||
2631 | |||
2632 | // InternalCftLanguage.g:975:3: ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* | ||
2633 | loop17: | ||
2634 | do { | ||
2635 | int alt17=2; | ||
2636 | int LA17_0 = input.LA(1); | ||
2637 | |||
2638 | if ( ((LA17_0>=29 && LA17_0<=30)) ) { | ||
2639 | alt17=1; | ||
2640 | } | ||
2641 | |||
2642 | |||
2643 | switch (alt17) { | ||
2644 | case 1 : | ||
2645 | // InternalCftLanguage.g:976:4: (lv_mappingDefinitions_3_0= ruleMappingDefinition ) | ||
2646 | { | ||
2647 | // InternalCftLanguage.g:976:4: (lv_mappingDefinitions_3_0= ruleMappingDefinition ) | ||
2648 | // InternalCftLanguage.g:977:5: lv_mappingDefinitions_3_0= ruleMappingDefinition | ||
2649 | { | ||
2650 | |||
2651 | newCompositeNode(grammarAccess.getTransformationDefinitionAccess().getMappingDefinitionsMappingDefinitionParserRuleCall_3_0()); | ||
2652 | |||
2653 | pushFollow(FOLLOW_22); | ||
2654 | lv_mappingDefinitions_3_0=ruleMappingDefinition(); | ||
2655 | |||
2656 | state._fsp--; | ||
2657 | |||
2658 | |||
2659 | if (current==null) { | ||
2660 | current = createModelElementForParent(grammarAccess.getTransformationDefinitionRule()); | ||
2661 | } | ||
2662 | add( | ||
2663 | current, | ||
2664 | "mappingDefinitions", | ||
2665 | lv_mappingDefinitions_3_0, | ||
2666 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingDefinition"); | ||
2667 | afterParserOrEnumRuleCall(); | ||
2668 | |||
2669 | |||
2670 | } | ||
2671 | |||
2672 | |||
2673 | } | ||
2674 | break; | ||
2675 | |||
2676 | default : | ||
2677 | break loop17; | ||
2678 | } | ||
2679 | } while (true); | ||
2680 | |||
2681 | otherlv_4=(Token)match(input,20,FOLLOW_2); | ||
2682 | |||
2683 | newLeafNode(otherlv_4, grammarAccess.getTransformationDefinitionAccess().getRightCurlyBracketKeyword_4()); | ||
2684 | |||
2685 | |||
2686 | } | ||
2687 | |||
2688 | |||
2689 | } | ||
2690 | |||
2691 | |||
2692 | leaveRule(); | ||
2693 | |||
2694 | } | ||
2695 | |||
2696 | catch (RecognitionException re) { | ||
2697 | recover(input,re); | ||
2698 | appendSkippedTokens(); | ||
2699 | } | ||
2700 | finally { | ||
2701 | } | ||
2702 | return current; | ||
2703 | } | ||
2704 | // $ANTLR end "ruleTransformationDefinition" | ||
2705 | |||
2706 | |||
2707 | // $ANTLR start "entryRuleMappingDefinition" | ||
2708 | // InternalCftLanguage.g:1002:1: entryRuleMappingDefinition returns [EObject current=null] : iv_ruleMappingDefinition= ruleMappingDefinition EOF ; | ||
2709 | public final EObject entryRuleMappingDefinition() throws RecognitionException { | ||
2710 | EObject current = null; | ||
2711 | |||
2712 | EObject iv_ruleMappingDefinition = null; | ||
2713 | |||
2714 | |||
2715 | try { | ||
2716 | // InternalCftLanguage.g:1002:58: (iv_ruleMappingDefinition= ruleMappingDefinition EOF ) | ||
2717 | // InternalCftLanguage.g:1003:2: iv_ruleMappingDefinition= ruleMappingDefinition EOF | ||
2718 | { | ||
2719 | newCompositeNode(grammarAccess.getMappingDefinitionRule()); | ||
2720 | pushFollow(FOLLOW_1); | ||
2721 | iv_ruleMappingDefinition=ruleMappingDefinition(); | ||
2722 | |||
2723 | state._fsp--; | ||
2724 | |||
2725 | current =iv_ruleMappingDefinition; | ||
2726 | match(input,EOF,FOLLOW_2); | ||
2727 | |||
2728 | } | ||
2729 | |||
2730 | } | ||
2731 | |||
2732 | catch (RecognitionException re) { | ||
2733 | recover(input,re); | ||
2734 | appendSkippedTokens(); | ||
2735 | } | ||
2736 | finally { | ||
2737 | } | ||
2738 | return current; | ||
2739 | } | ||
2740 | // $ANTLR end "entryRuleMappingDefinition" | ||
2741 | |||
2742 | |||
2743 | // $ANTLR start "ruleMappingDefinition" | ||
2744 | // InternalCftLanguage.g:1009:1: ruleMappingDefinition returns [EObject current=null] : ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) ; | ||
2745 | public final EObject ruleMappingDefinition() throws RecognitionException { | ||
2746 | EObject current = null; | ||
2747 | |||
2748 | Token lv_topLevel_0_0=null; | ||
2749 | Token otherlv_1=null; | ||
2750 | Token otherlv_3=null; | ||
2751 | Token otherlv_5=null; | ||
2752 | Token otherlv_7=null; | ||
2753 | Token otherlv_9=null; | ||
2754 | Token otherlv_12=null; | ||
2755 | Token otherlv_13=null; | ||
2756 | EObject lv_parameters_4_0 = null; | ||
2757 | |||
2758 | EObject lv_parameters_6_0 = null; | ||
2759 | |||
2760 | EObject lv_componentInstance_8_0 = null; | ||
2761 | |||
2762 | EObject lv_lookupDefinitions_10_0 = null; | ||
2763 | |||
2764 | EObject lv_assignments_11_0 = null; | ||
2765 | |||
2766 | |||
2767 | |||
2768 | enterRule(); | ||
2769 | |||
2770 | try { | ||
2771 | // InternalCftLanguage.g:1015:2: ( ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) ) | ||
2772 | // InternalCftLanguage.g:1016:2: ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) | ||
2773 | { | ||
2774 | // InternalCftLanguage.g:1016:2: ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) | ||
2775 | // InternalCftLanguage.g:1017:3: ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? | ||
2776 | { | ||
2777 | // InternalCftLanguage.g:1017:3: ( (lv_topLevel_0_0= 'toplevel' ) )? | ||
2778 | int alt18=2; | ||
2779 | int LA18_0 = input.LA(1); | ||
2780 | |||
2781 | if ( (LA18_0==29) ) { | ||
2782 | alt18=1; | ||
2783 | } | ||
2784 | switch (alt18) { | ||
2785 | case 1 : | ||
2786 | // InternalCftLanguage.g:1018:4: (lv_topLevel_0_0= 'toplevel' ) | ||
2787 | { | ||
2788 | // InternalCftLanguage.g:1018:4: (lv_topLevel_0_0= 'toplevel' ) | ||
2789 | // InternalCftLanguage.g:1019:5: lv_topLevel_0_0= 'toplevel' | ||
2790 | { | ||
2791 | lv_topLevel_0_0=(Token)match(input,29,FOLLOW_23); | ||
2792 | |||
2793 | newLeafNode(lv_topLevel_0_0, grammarAccess.getMappingDefinitionAccess().getTopLevelToplevelKeyword_0_0()); | ||
2794 | |||
2795 | |||
2796 | if (current==null) { | ||
2797 | current = createModelElement(grammarAccess.getMappingDefinitionRule()); | ||
2798 | } | ||
2799 | setWithLastConsumed(current, "topLevel", true, "toplevel"); | ||
2800 | |||
2801 | |||
2802 | } | ||
2803 | |||
2804 | |||
2805 | } | ||
2806 | break; | ||
2807 | |||
2808 | } | ||
2809 | |||
2810 | otherlv_1=(Token)match(input,30,FOLLOW_3); | ||
2811 | |||
2812 | newLeafNode(otherlv_1, grammarAccess.getMappingDefinitionAccess().getMappingKeyword_1()); | ||
2813 | |||
2814 | // InternalCftLanguage.g:1035:3: ( ( ruleQualifiedName ) ) | ||
2815 | // InternalCftLanguage.g:1036:4: ( ruleQualifiedName ) | ||
2816 | { | ||
2817 | // InternalCftLanguage.g:1036:4: ( ruleQualifiedName ) | ||
2818 | // InternalCftLanguage.g:1037:5: ruleQualifiedName | ||
2819 | { | ||
2820 | |||
2821 | if (current==null) { | ||
2822 | current = createModelElement(grammarAccess.getMappingDefinitionRule()); | ||
2823 | } | ||
2824 | |||
2825 | |||
2826 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getPatternPatternCrossReference_2_0()); | ||
2827 | |||
2828 | pushFollow(FOLLOW_24); | ||
2829 | ruleQualifiedName(); | ||
2830 | |||
2831 | state._fsp--; | ||
2832 | |||
2833 | |||
2834 | afterParserOrEnumRuleCall(); | ||
2835 | |||
2836 | |||
2837 | } | ||
2838 | |||
2839 | |||
2840 | } | ||
2841 | |||
2842 | otherlv_3=(Token)match(input,31,FOLLOW_3); | ||
2843 | |||
2844 | newLeafNode(otherlv_3, grammarAccess.getMappingDefinitionAccess().getLeftParenthesisKeyword_3()); | ||
2845 | |||
2846 | // InternalCftLanguage.g:1055:3: ( (lv_parameters_4_0= ruleMappingParameter ) ) | ||
2847 | // InternalCftLanguage.g:1056:4: (lv_parameters_4_0= ruleMappingParameter ) | ||
2848 | { | ||
2849 | // InternalCftLanguage.g:1056:4: (lv_parameters_4_0= ruleMappingParameter ) | ||
2850 | // InternalCftLanguage.g:1057:5: lv_parameters_4_0= ruleMappingParameter | ||
2851 | { | ||
2852 | |||
2853 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_4_0()); | ||
2854 | |||
2855 | pushFollow(FOLLOW_25); | ||
2856 | lv_parameters_4_0=ruleMappingParameter(); | ||
2857 | |||
2858 | state._fsp--; | ||
2859 | |||
2860 | |||
2861 | if (current==null) { | ||
2862 | current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
2863 | } | ||
2864 | add( | ||
2865 | current, | ||
2866 | "parameters", | ||
2867 | lv_parameters_4_0, | ||
2868 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingParameter"); | ||
2869 | afterParserOrEnumRuleCall(); | ||
2870 | |||
2871 | |||
2872 | } | ||
2873 | |||
2874 | |||
2875 | } | ||
2876 | |||
2877 | // InternalCftLanguage.g:1074:3: (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* | ||
2878 | loop19: | ||
2879 | do { | ||
2880 | int alt19=2; | ||
2881 | int LA19_0 = input.LA(1); | ||
2882 | |||
2883 | if ( (LA19_0==32) ) { | ||
2884 | alt19=1; | ||
2885 | } | ||
2886 | |||
2887 | |||
2888 | switch (alt19) { | ||
2889 | case 1 : | ||
2890 | // InternalCftLanguage.g:1075:4: otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) | ||
2891 | { | ||
2892 | otherlv_5=(Token)match(input,32,FOLLOW_3); | ||
2893 | |||
2894 | newLeafNode(otherlv_5, grammarAccess.getMappingDefinitionAccess().getCommaKeyword_5_0()); | ||
2895 | |||
2896 | // InternalCftLanguage.g:1079:4: ( (lv_parameters_6_0= ruleMappingParameter ) ) | ||
2897 | // InternalCftLanguage.g:1080:5: (lv_parameters_6_0= ruleMappingParameter ) | ||
2898 | { | ||
2899 | // InternalCftLanguage.g:1080:5: (lv_parameters_6_0= ruleMappingParameter ) | ||
2900 | // InternalCftLanguage.g:1081:6: lv_parameters_6_0= ruleMappingParameter | ||
2901 | { | ||
2902 | |||
2903 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_5_1_0()); | ||
2904 | |||
2905 | pushFollow(FOLLOW_25); | ||
2906 | lv_parameters_6_0=ruleMappingParameter(); | ||
2907 | |||
2908 | state._fsp--; | ||
2909 | |||
2910 | |||
2911 | if (current==null) { | ||
2912 | current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
2913 | } | ||
2914 | add( | ||
2915 | current, | ||
2916 | "parameters", | ||
2917 | lv_parameters_6_0, | ||
2918 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingParameter"); | ||
2919 | afterParserOrEnumRuleCall(); | ||
2920 | |||
2921 | |||
2922 | } | ||
2923 | |||
2924 | |||
2925 | } | ||
2926 | |||
2927 | |||
2928 | } | ||
2929 | break; | ||
2930 | |||
2931 | default : | ||
2932 | break loop19; | ||
2933 | } | ||
2934 | } while (true); | ||
2935 | |||
2936 | otherlv_7=(Token)match(input,33,FOLLOW_26); | ||
2937 | |||
2938 | newLeafNode(otherlv_7, grammarAccess.getMappingDefinitionAccess().getRightParenthesisKeyword_6()); | ||
2939 | |||
2940 | // InternalCftLanguage.g:1103:3: ( (lv_componentInstance_8_0= ruleComponentInstance ) )? | ||
2941 | int alt20=2; | ||
2942 | int LA20_0 = input.LA(1); | ||
2943 | |||
2944 | if ( (LA20_0==39) ) { | ||
2945 | alt20=1; | ||
2946 | } | ||
2947 | switch (alt20) { | ||
2948 | case 1 : | ||
2949 | // InternalCftLanguage.g:1104:4: (lv_componentInstance_8_0= ruleComponentInstance ) | ||
2950 | { | ||
2951 | // InternalCftLanguage.g:1104:4: (lv_componentInstance_8_0= ruleComponentInstance ) | ||
2952 | // InternalCftLanguage.g:1105:5: lv_componentInstance_8_0= ruleComponentInstance | ||
2953 | { | ||
2954 | |||
2955 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getComponentInstanceComponentInstanceParserRuleCall_7_0()); | ||
2956 | |||
2957 | pushFollow(FOLLOW_27); | ||
2958 | lv_componentInstance_8_0=ruleComponentInstance(); | ||
2959 | |||
2960 | state._fsp--; | ||
2961 | |||
2962 | |||
2963 | if (current==null) { | ||
2964 | current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
2965 | } | ||
2966 | set( | ||
2967 | current, | ||
2968 | "componentInstance", | ||
2969 | lv_componentInstance_8_0, | ||
2970 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ComponentInstance"); | ||
2971 | afterParserOrEnumRuleCall(); | ||
2972 | |||
2973 | |||
2974 | } | ||
2975 | |||
2976 | |||
2977 | } | ||
2978 | break; | ||
2979 | |||
2980 | } | ||
2981 | |||
2982 | // InternalCftLanguage.g:1122:3: (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? | ||
2983 | int alt23=2; | ||
2984 | int LA23_0 = input.LA(1); | ||
2985 | |||
2986 | if ( (LA23_0==17) ) { | ||
2987 | alt23=1; | ||
2988 | } | ||
2989 | switch (alt23) { | ||
2990 | case 1 : | ||
2991 | // InternalCftLanguage.g:1123:4: otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' | ||
2992 | { | ||
2993 | otherlv_9=(Token)match(input,17,FOLLOW_28); | ||
2994 | |||
2995 | newLeafNode(otherlv_9, grammarAccess.getMappingDefinitionAccess().getLeftCurlyBracketKeyword_8_0()); | ||
2996 | |||
2997 | // InternalCftLanguage.g:1127:4: ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* | ||
2998 | loop22: | ||
2999 | do { | ||
3000 | int alt22=2; | ||
3001 | int LA22_0 = input.LA(1); | ||
3002 | |||
3003 | if ( ((LA22_0>=RULE_OF_INT && LA22_0<=RULE_ID)||LA22_0==34) ) { | ||
3004 | alt22=1; | ||
3005 | } | ||
3006 | |||
3007 | |||
3008 | switch (alt22) { | ||
3009 | case 1 : | ||
3010 | // InternalCftLanguage.g:1128:5: ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' | ||
3011 | { | ||
3012 | // InternalCftLanguage.g:1128:5: ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) | ||
3013 | int alt21=2; | ||
3014 | int LA21_0 = input.LA(1); | ||
3015 | |||
3016 | if ( (LA21_0==34) ) { | ||
3017 | alt21=1; | ||
3018 | } | ||
3019 | else if ( ((LA21_0>=RULE_OF_INT && LA21_0<=RULE_ID)) ) { | ||
3020 | alt21=2; | ||
3021 | } | ||
3022 | else { | ||
3023 | NoViableAltException nvae = | ||
3024 | new NoViableAltException("", 21, 0, input); | ||
3025 | |||
3026 | throw nvae; | ||
3027 | } | ||
3028 | switch (alt21) { | ||
3029 | case 1 : | ||
3030 | // InternalCftLanguage.g:1129:6: ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ||
3031 | { | ||
3032 | // InternalCftLanguage.g:1129:6: ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ||
3033 | // InternalCftLanguage.g:1130:7: (lv_lookupDefinitions_10_0= ruleLookupDefinition ) | ||
3034 | { | ||
3035 | // InternalCftLanguage.g:1130:7: (lv_lookupDefinitions_10_0= ruleLookupDefinition ) | ||
3036 | // InternalCftLanguage.g:1131:8: lv_lookupDefinitions_10_0= ruleLookupDefinition | ||
3037 | { | ||
3038 | |||
3039 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0()); | ||
3040 | |||
3041 | pushFollow(FOLLOW_11); | ||
3042 | lv_lookupDefinitions_10_0=ruleLookupDefinition(); | ||
3043 | |||
3044 | state._fsp--; | ||
3045 | |||
3046 | |||
3047 | if (current==null) { | ||
3048 | current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
3049 | } | ||
3050 | add( | ||
3051 | current, | ||
3052 | "lookupDefinitions", | ||
3053 | lv_lookupDefinitions_10_0, | ||
3054 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.LookupDefinition"); | ||
3055 | afterParserOrEnumRuleCall(); | ||
3056 | |||
3057 | |||
3058 | } | ||
3059 | |||
3060 | |||
3061 | } | ||
3062 | |||
3063 | |||
3064 | } | ||
3065 | break; | ||
3066 | case 2 : | ||
3067 | // InternalCftLanguage.g:1149:6: ( (lv_assignments_11_0= ruleAssignment ) ) | ||
3068 | { | ||
3069 | // InternalCftLanguage.g:1149:6: ( (lv_assignments_11_0= ruleAssignment ) ) | ||
3070 | // InternalCftLanguage.g:1150:7: (lv_assignments_11_0= ruleAssignment ) | ||
3071 | { | ||
3072 | // InternalCftLanguage.g:1150:7: (lv_assignments_11_0= ruleAssignment ) | ||
3073 | // InternalCftLanguage.g:1151:8: lv_assignments_11_0= ruleAssignment | ||
3074 | { | ||
3075 | |||
3076 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getAssignmentsAssignmentParserRuleCall_8_1_0_1_0()); | ||
3077 | |||
3078 | pushFollow(FOLLOW_11); | ||
3079 | lv_assignments_11_0=ruleAssignment(); | ||
3080 | |||
3081 | state._fsp--; | ||
3082 | |||
3083 | |||
3084 | if (current==null) { | ||
3085 | current = createModelElementForParent(grammarAccess.getMappingDefinitionRule()); | ||
3086 | } | ||
3087 | add( | ||
3088 | current, | ||
3089 | "assignments", | ||
3090 | lv_assignments_11_0, | ||
3091 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Assignment"); | ||
3092 | afterParserOrEnumRuleCall(); | ||
3093 | |||
3094 | |||
3095 | } | ||
3096 | |||
3097 | |||
3098 | } | ||
3099 | |||
3100 | |||
3101 | } | ||
3102 | break; | ||
3103 | |||
3104 | } | ||
3105 | |||
3106 | otherlv_12=(Token)match(input,14,FOLLOW_28); | ||
3107 | |||
3108 | newLeafNode(otherlv_12, grammarAccess.getMappingDefinitionAccess().getSemicolonKeyword_8_1_1()); | ||
3109 | |||
3110 | |||
3111 | } | ||
3112 | break; | ||
3113 | |||
3114 | default : | ||
3115 | break loop22; | ||
3116 | } | ||
3117 | } while (true); | ||
3118 | |||
3119 | otherlv_13=(Token)match(input,20,FOLLOW_2); | ||
3120 | |||
3121 | newLeafNode(otherlv_13, grammarAccess.getMappingDefinitionAccess().getRightCurlyBracketKeyword_8_2()); | ||
3122 | |||
3123 | |||
3124 | } | ||
3125 | break; | ||
3126 | |||
3127 | } | ||
3128 | |||
3129 | |||
3130 | } | ||
3131 | |||
3132 | |||
3133 | } | ||
3134 | |||
3135 | |||
3136 | leaveRule(); | ||
3137 | |||
3138 | } | ||
3139 | |||
3140 | catch (RecognitionException re) { | ||
3141 | recover(input,re); | ||
3142 | appendSkippedTokens(); | ||
3143 | } | ||
3144 | finally { | ||
3145 | } | ||
3146 | return current; | ||
3147 | } | ||
3148 | // $ANTLR end "ruleMappingDefinition" | ||
3149 | |||
3150 | |||
3151 | // $ANTLR start "entryRuleMappingParameter" | ||
3152 | // InternalCftLanguage.g:1183:1: entryRuleMappingParameter returns [EObject current=null] : iv_ruleMappingParameter= ruleMappingParameter EOF ; | ||
3153 | public final EObject entryRuleMappingParameter() throws RecognitionException { | ||
3154 | EObject current = null; | ||
3155 | |||
3156 | EObject iv_ruleMappingParameter = null; | ||
3157 | |||
3158 | |||
3159 | try { | ||
3160 | // InternalCftLanguage.g:1183:57: (iv_ruleMappingParameter= ruleMappingParameter EOF ) | ||
3161 | // InternalCftLanguage.g:1184:2: iv_ruleMappingParameter= ruleMappingParameter EOF | ||
3162 | { | ||
3163 | newCompositeNode(grammarAccess.getMappingParameterRule()); | ||
3164 | pushFollow(FOLLOW_1); | ||
3165 | iv_ruleMappingParameter=ruleMappingParameter(); | ||
3166 | |||
3167 | state._fsp--; | ||
3168 | |||
3169 | current =iv_ruleMappingParameter; | ||
3170 | match(input,EOF,FOLLOW_2); | ||
3171 | |||
3172 | } | ||
3173 | |||
3174 | } | ||
3175 | |||
3176 | catch (RecognitionException re) { | ||
3177 | recover(input,re); | ||
3178 | appendSkippedTokens(); | ||
3179 | } | ||
3180 | finally { | ||
3181 | } | ||
3182 | return current; | ||
3183 | } | ||
3184 | // $ANTLR end "entryRuleMappingParameter" | ||
3185 | |||
3186 | |||
3187 | // $ANTLR start "ruleMappingParameter" | ||
3188 | // InternalCftLanguage.g:1190:1: ruleMappingParameter returns [EObject current=null] : ( (lv_name_0_0= ruleValidId ) ) ; | ||
3189 | public final EObject ruleMappingParameter() throws RecognitionException { | ||
3190 | EObject current = null; | ||
3191 | |||
3192 | AntlrDatatypeRuleToken lv_name_0_0 = null; | ||
3193 | |||
3194 | |||
3195 | |||
3196 | enterRule(); | ||
3197 | |||
3198 | try { | ||
3199 | // InternalCftLanguage.g:1196:2: ( ( (lv_name_0_0= ruleValidId ) ) ) | ||
3200 | // InternalCftLanguage.g:1197:2: ( (lv_name_0_0= ruleValidId ) ) | ||
3201 | { | ||
3202 | // InternalCftLanguage.g:1197:2: ( (lv_name_0_0= ruleValidId ) ) | ||
3203 | // InternalCftLanguage.g:1198:3: (lv_name_0_0= ruleValidId ) | ||
3204 | { | ||
3205 | // InternalCftLanguage.g:1198:3: (lv_name_0_0= ruleValidId ) | ||
3206 | // InternalCftLanguage.g:1199:4: lv_name_0_0= ruleValidId | ||
3207 | { | ||
3208 | |||
3209 | newCompositeNode(grammarAccess.getMappingParameterAccess().getNameValidIdParserRuleCall_0()); | ||
3210 | |||
3211 | pushFollow(FOLLOW_2); | ||
3212 | lv_name_0_0=ruleValidId(); | ||
3213 | |||
3214 | state._fsp--; | ||
3215 | |||
3216 | |||
3217 | if (current==null) { | ||
3218 | current = createModelElementForParent(grammarAccess.getMappingParameterRule()); | ||
3219 | } | ||
3220 | set( | ||
3221 | current, | ||
3222 | "name", | ||
3223 | lv_name_0_0, | ||
3224 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
3225 | afterParserOrEnumRuleCall(); | ||
3226 | |||
3227 | |||
3228 | } | ||
3229 | |||
3230 | |||
3231 | } | ||
3232 | |||
3233 | |||
3234 | } | ||
3235 | |||
3236 | |||
3237 | leaveRule(); | ||
3238 | |||
3239 | } | ||
3240 | |||
3241 | catch (RecognitionException re) { | ||
3242 | recover(input,re); | ||
3243 | appendSkippedTokens(); | ||
3244 | } | ||
3245 | finally { | ||
3246 | } | ||
3247 | return current; | ||
3248 | } | ||
3249 | // $ANTLR end "ruleMappingParameter" | ||
3250 | |||
3251 | |||
3252 | // $ANTLR start "entryRuleLookupDefinition" | ||
3253 | // InternalCftLanguage.g:1219:1: entryRuleLookupDefinition returns [EObject current=null] : iv_ruleLookupDefinition= ruleLookupDefinition EOF ; | ||
3254 | public final EObject entryRuleLookupDefinition() throws RecognitionException { | ||
3255 | EObject current = null; | ||
3256 | |||
3257 | EObject iv_ruleLookupDefinition = null; | ||
3258 | |||
3259 | |||
3260 | try { | ||
3261 | // InternalCftLanguage.g:1219:57: (iv_ruleLookupDefinition= ruleLookupDefinition EOF ) | ||
3262 | // InternalCftLanguage.g:1220:2: iv_ruleLookupDefinition= ruleLookupDefinition EOF | ||
3263 | { | ||
3264 | newCompositeNode(grammarAccess.getLookupDefinitionRule()); | ||
3265 | pushFollow(FOLLOW_1); | ||
3266 | iv_ruleLookupDefinition=ruleLookupDefinition(); | ||
3267 | |||
3268 | state._fsp--; | ||
3269 | |||
3270 | current =iv_ruleLookupDefinition; | ||
3271 | match(input,EOF,FOLLOW_2); | ||
3272 | |||
3273 | } | ||
3274 | |||
3275 | } | ||
3276 | |||
3277 | catch (RecognitionException re) { | ||
3278 | recover(input,re); | ||
3279 | appendSkippedTokens(); | ||
3280 | } | ||
3281 | finally { | ||
3282 | } | ||
3283 | return current; | ||
3284 | } | ||
3285 | // $ANTLR end "entryRuleLookupDefinition" | ||
3286 | |||
3287 | |||
3288 | // $ANTLR start "ruleLookupDefinition" | ||
3289 | // InternalCftLanguage.g:1226:1: ruleLookupDefinition returns [EObject current=null] : (otherlv_0= 'lookup' ( ( ruleQualifiedName ) ) otherlv_2= '(' ( ( ruleValidId ) ) (otherlv_4= ',' ( ( ruleValidId ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= ruleValidId ) ) ) ; | ||
3290 | public final EObject ruleLookupDefinition() throws RecognitionException { | ||
3291 | EObject current = null; | ||
3292 | |||
3293 | Token otherlv_0=null; | ||
3294 | Token otherlv_2=null; | ||
3295 | Token otherlv_4=null; | ||
3296 | Token otherlv_6=null; | ||
3297 | Token otherlv_7=null; | ||
3298 | AntlrDatatypeRuleToken lv_name_8_0 = null; | ||
3299 | |||
3300 | |||
3301 | |||
3302 | enterRule(); | ||
3303 | |||
3304 | try { | ||
3305 | // InternalCftLanguage.g:1232:2: ( (otherlv_0= 'lookup' ( ( ruleQualifiedName ) ) otherlv_2= '(' ( ( ruleValidId ) ) (otherlv_4= ',' ( ( ruleValidId ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= ruleValidId ) ) ) ) | ||
3306 | // InternalCftLanguage.g:1233:2: (otherlv_0= 'lookup' ( ( ruleQualifiedName ) ) otherlv_2= '(' ( ( ruleValidId ) ) (otherlv_4= ',' ( ( ruleValidId ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= ruleValidId ) ) ) | ||
3307 | { | ||
3308 | // InternalCftLanguage.g:1233:2: (otherlv_0= 'lookup' ( ( ruleQualifiedName ) ) otherlv_2= '(' ( ( ruleValidId ) ) (otherlv_4= ',' ( ( ruleValidId ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= ruleValidId ) ) ) | ||
3309 | // InternalCftLanguage.g:1234:3: otherlv_0= 'lookup' ( ( ruleQualifiedName ) ) otherlv_2= '(' ( ( ruleValidId ) ) (otherlv_4= ',' ( ( ruleValidId ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= ruleValidId ) ) | ||
3310 | { | ||
3311 | otherlv_0=(Token)match(input,34,FOLLOW_3); | ||
3312 | |||
3313 | newLeafNode(otherlv_0, grammarAccess.getLookupDefinitionAccess().getLookupKeyword_0()); | ||
3314 | |||
3315 | // InternalCftLanguage.g:1238:3: ( ( ruleQualifiedName ) ) | ||
3316 | // InternalCftLanguage.g:1239:4: ( ruleQualifiedName ) | ||
3317 | { | ||
3318 | // InternalCftLanguage.g:1239:4: ( ruleQualifiedName ) | ||
3319 | // InternalCftLanguage.g:1240:5: ruleQualifiedName | ||
3320 | { | ||
3321 | |||
3322 | if (current==null) { | ||
3323 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
3324 | } | ||
3325 | |||
3326 | |||
3327 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getMappingMappingDefinitionCrossReference_1_0()); | ||
3328 | |||
3329 | pushFollow(FOLLOW_24); | ||
3330 | ruleQualifiedName(); | ||
3331 | |||
3332 | state._fsp--; | ||
3333 | |||
3334 | |||
3335 | afterParserOrEnumRuleCall(); | ||
3336 | |||
3337 | |||
3338 | } | ||
3339 | |||
3340 | |||
3341 | } | ||
3342 | |||
3343 | otherlv_2=(Token)match(input,31,FOLLOW_3); | ||
3344 | |||
3345 | newLeafNode(otherlv_2, grammarAccess.getLookupDefinitionAccess().getLeftParenthesisKeyword_2()); | ||
3346 | |||
3347 | // InternalCftLanguage.g:1258:3: ( ( ruleValidId ) ) | ||
3348 | // InternalCftLanguage.g:1259:4: ( ruleValidId ) | ||
3349 | { | ||
3350 | // InternalCftLanguage.g:1259:4: ( ruleValidId ) | ||
3351 | // InternalCftLanguage.g:1260:5: ruleValidId | ||
3352 | { | ||
3353 | |||
3354 | if (current==null) { | ||
3355 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
3356 | } | ||
3357 | |||
3358 | |||
3359 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_3_0()); | ||
3360 | |||
3361 | pushFollow(FOLLOW_25); | ||
3362 | ruleValidId(); | ||
3363 | |||
3364 | state._fsp--; | ||
3365 | |||
3366 | |||
3367 | afterParserOrEnumRuleCall(); | ||
3368 | |||
3369 | |||
3370 | } | ||
3371 | |||
3372 | |||
3373 | } | ||
3374 | |||
3375 | // InternalCftLanguage.g:1274:3: (otherlv_4= ',' ( ( ruleValidId ) ) )* | ||
3376 | loop24: | ||
3377 | do { | ||
3378 | int alt24=2; | ||
3379 | int LA24_0 = input.LA(1); | ||
3380 | |||
3381 | if ( (LA24_0==32) ) { | ||
3382 | alt24=1; | ||
3383 | } | ||
3384 | |||
3385 | |||
3386 | switch (alt24) { | ||
3387 | case 1 : | ||
3388 | // InternalCftLanguage.g:1275:4: otherlv_4= ',' ( ( ruleValidId ) ) | ||
3389 | { | ||
3390 | otherlv_4=(Token)match(input,32,FOLLOW_3); | ||
3391 | |||
3392 | newLeafNode(otherlv_4, grammarAccess.getLookupDefinitionAccess().getCommaKeyword_4_0()); | ||
3393 | |||
3394 | // InternalCftLanguage.g:1279:4: ( ( ruleValidId ) ) | ||
3395 | // InternalCftLanguage.g:1280:5: ( ruleValidId ) | ||
3396 | { | ||
3397 | // InternalCftLanguage.g:1280:5: ( ruleValidId ) | ||
3398 | // InternalCftLanguage.g:1281:6: ruleValidId | ||
3399 | { | ||
3400 | |||
3401 | if (current==null) { | ||
3402 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | ||
3403 | } | ||
3404 | |||
3405 | |||
3406 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_4_1_0()); | ||
3407 | |||
3408 | pushFollow(FOLLOW_25); | ||
3409 | ruleValidId(); | ||
3410 | |||
3411 | state._fsp--; | ||
3412 | |||
3413 | |||
3414 | afterParserOrEnumRuleCall(); | ||
3415 | |||
3416 | |||
3417 | } | ||
3418 | |||
3419 | |||
3420 | } | ||
3421 | |||
3422 | |||
3423 | } | ||
3424 | break; | ||
3425 | |||
3426 | default : | ||
3427 | break loop24; | ||
3428 | } | ||
3429 | } while (true); | ||
3430 | |||
3431 | otherlv_6=(Token)match(input,33,FOLLOW_29); | ||
3432 | |||
3433 | newLeafNode(otherlv_6, grammarAccess.getLookupDefinitionAccess().getRightParenthesisKeyword_5()); | ||
3434 | |||
3435 | otherlv_7=(Token)match(input,35,FOLLOW_3); | ||
3436 | |||
3437 | newLeafNode(otherlv_7, grammarAccess.getLookupDefinitionAccess().getAsKeyword_6()); | ||
3438 | |||
3439 | // InternalCftLanguage.g:1304:3: ( (lv_name_8_0= ruleValidId ) ) | ||
3440 | // InternalCftLanguage.g:1305:4: (lv_name_8_0= ruleValidId ) | ||
3441 | { | ||
3442 | // InternalCftLanguage.g:1305:4: (lv_name_8_0= ruleValidId ) | ||
3443 | // InternalCftLanguage.g:1306:5: lv_name_8_0= ruleValidId | ||
3444 | { | ||
3445 | |||
3446 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getNameValidIdParserRuleCall_7_0()); | ||
3447 | |||
3448 | pushFollow(FOLLOW_2); | ||
3449 | lv_name_8_0=ruleValidId(); | ||
3450 | |||
3451 | state._fsp--; | ||
3452 | |||
3453 | |||
3454 | if (current==null) { | ||
3455 | current = createModelElementForParent(grammarAccess.getLookupDefinitionRule()); | ||
3456 | } | ||
3457 | set( | ||
3458 | current, | ||
3459 | "name", | ||
3460 | lv_name_8_0, | ||
3461 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
3462 | afterParserOrEnumRuleCall(); | ||
3463 | |||
3464 | |||
3465 | } | ||
3466 | |||
3467 | |||
3468 | } | ||
3469 | |||
3470 | |||
3471 | } | ||
3472 | |||
3473 | |||
3474 | } | ||
3475 | |||
3476 | |||
3477 | leaveRule(); | ||
3478 | |||
3479 | } | ||
3480 | |||
3481 | catch (RecognitionException re) { | ||
3482 | recover(input,re); | ||
3483 | appendSkippedTokens(); | ||
3484 | } | ||
3485 | finally { | ||
3486 | } | ||
3487 | return current; | ||
3488 | } | ||
3489 | // $ANTLR end "ruleLookupDefinition" | ||
3490 | |||
3491 | |||
3492 | // $ANTLR start "entryRuleAssignment" | ||
3493 | // InternalCftLanguage.g:1327:1: entryRuleAssignment returns [EObject current=null] : iv_ruleAssignment= ruleAssignment EOF ; | ||
3494 | public final EObject entryRuleAssignment() throws RecognitionException { | ||
3495 | EObject current = null; | ||
3496 | |||
3497 | EObject iv_ruleAssignment = null; | ||
3498 | |||
3499 | |||
3500 | try { | ||
3501 | // InternalCftLanguage.g:1327:51: (iv_ruleAssignment= ruleAssignment EOF ) | ||
3502 | // InternalCftLanguage.g:1328:2: iv_ruleAssignment= ruleAssignment EOF | ||
3503 | { | ||
3504 | newCompositeNode(grammarAccess.getAssignmentRule()); | ||
3505 | pushFollow(FOLLOW_1); | ||
3506 | iv_ruleAssignment=ruleAssignment(); | ||
3507 | |||
3508 | state._fsp--; | ||
3509 | |||
3510 | current =iv_ruleAssignment; | ||
3511 | match(input,EOF,FOLLOW_2); | ||
3512 | |||
3513 | } | ||
3514 | |||
3515 | } | ||
3516 | |||
3517 | catch (RecognitionException re) { | ||
3518 | recover(input,re); | ||
3519 | appendSkippedTokens(); | ||
3520 | } | ||
3521 | finally { | ||
3522 | } | ||
3523 | return current; | ||
3524 | } | ||
3525 | // $ANTLR end "entryRuleAssignment" | ||
3526 | |||
3527 | |||
3528 | // $ANTLR start "ruleAssignment" | ||
3529 | // InternalCftLanguage.g:1334:1: ruleAssignment returns [EObject current=null] : ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) ; | ||
3530 | public final EObject ruleAssignment() throws RecognitionException { | ||
3531 | EObject current = null; | ||
3532 | |||
3533 | Token lv_multiple_1_0=null; | ||
3534 | Token otherlv_2=null; | ||
3535 | EObject lv_input_0_0 = null; | ||
3536 | |||
3537 | EObject lv_output_3_0 = null; | ||
3538 | |||
3539 | |||
3540 | |||
3541 | enterRule(); | ||
3542 | |||
3543 | try { | ||
3544 | // InternalCftLanguage.g:1340:2: ( ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) ) | ||
3545 | // InternalCftLanguage.g:1341:2: ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) | ||
3546 | { | ||
3547 | // InternalCftLanguage.g:1341:2: ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) | ||
3548 | // InternalCftLanguage.g:1342:3: ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) | ||
3549 | { | ||
3550 | // InternalCftLanguage.g:1342:3: ( (lv_input_0_0= ruleEventReference ) ) | ||
3551 | // InternalCftLanguage.g:1343:4: (lv_input_0_0= ruleEventReference ) | ||
3552 | { | ||
3553 | // InternalCftLanguage.g:1343:4: (lv_input_0_0= ruleEventReference ) | ||
3554 | // InternalCftLanguage.g:1344:5: lv_input_0_0= ruleEventReference | ||
3555 | { | ||
3556 | |||
3557 | newCompositeNode(grammarAccess.getAssignmentAccess().getInputEventReferenceParserRuleCall_0_0()); | ||
3558 | |||
3559 | pushFollow(FOLLOW_30); | ||
3560 | lv_input_0_0=ruleEventReference(); | ||
3561 | |||
3562 | state._fsp--; | ||
3563 | |||
3564 | |||
3565 | if (current==null) { | ||
3566 | current = createModelElementForParent(grammarAccess.getAssignmentRule()); | ||
3567 | } | ||
3568 | set( | ||
3569 | current, | ||
3570 | "input", | ||
3571 | lv_input_0_0, | ||
3572 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventReference"); | ||
3573 | afterParserOrEnumRuleCall(); | ||
3574 | |||
3575 | |||
3576 | } | ||
3577 | |||
3578 | |||
3579 | } | ||
3580 | |||
3581 | // InternalCftLanguage.g:1361:3: ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) | ||
3582 | int alt25=2; | ||
3583 | int LA25_0 = input.LA(1); | ||
3584 | |||
3585 | if ( (LA25_0==36) ) { | ||
3586 | alt25=1; | ||
3587 | } | ||
3588 | else if ( (LA25_0==37) ) { | ||
3589 | alt25=2; | ||
3590 | } | ||
3591 | else { | ||
3592 | NoViableAltException nvae = | ||
3593 | new NoViableAltException("", 25, 0, input); | ||
3594 | |||
3595 | throw nvae; | ||
3596 | } | ||
3597 | switch (alt25) { | ||
3598 | case 1 : | ||
3599 | // InternalCftLanguage.g:1362:4: ( (lv_multiple_1_0= '+=' ) ) | ||
3600 | { | ||
3601 | // InternalCftLanguage.g:1362:4: ( (lv_multiple_1_0= '+=' ) ) | ||
3602 | // InternalCftLanguage.g:1363:5: (lv_multiple_1_0= '+=' ) | ||
3603 | { | ||
3604 | // InternalCftLanguage.g:1363:5: (lv_multiple_1_0= '+=' ) | ||
3605 | // InternalCftLanguage.g:1364:6: lv_multiple_1_0= '+=' | ||
3606 | { | ||
3607 | lv_multiple_1_0=(Token)match(input,36,FOLLOW_31); | ||
3608 | |||
3609 | newLeafNode(lv_multiple_1_0, grammarAccess.getAssignmentAccess().getMultiplePlusSignEqualsSignKeyword_1_0_0()); | ||
3610 | |||
3611 | |||
3612 | if (current==null) { | ||
3613 | current = createModelElement(grammarAccess.getAssignmentRule()); | ||
3614 | } | ||
3615 | setWithLastConsumed(current, "multiple", true, "+="); | ||
3616 | |||
3617 | |||
3618 | } | ||
3619 | |||
3620 | |||
3621 | } | ||
3622 | |||
3623 | |||
3624 | } | ||
3625 | break; | ||
3626 | case 2 : | ||
3627 | // InternalCftLanguage.g:1377:4: otherlv_2= ':=' | ||
3628 | { | ||
3629 | otherlv_2=(Token)match(input,37,FOLLOW_31); | ||
3630 | |||
3631 | newLeafNode(otherlv_2, grammarAccess.getAssignmentAccess().getColonEqualsSignKeyword_1_1()); | ||
3632 | |||
3633 | |||
3634 | } | ||
3635 | break; | ||
3636 | |||
3637 | } | ||
3638 | |||
3639 | // InternalCftLanguage.g:1382:3: ( (lv_output_3_0= ruleEventReference ) ) | ||
3640 | // InternalCftLanguage.g:1383:4: (lv_output_3_0= ruleEventReference ) | ||
3641 | { | ||
3642 | // InternalCftLanguage.g:1383:4: (lv_output_3_0= ruleEventReference ) | ||
3643 | // InternalCftLanguage.g:1384:5: lv_output_3_0= ruleEventReference | ||
3644 | { | ||
3645 | |||
3646 | newCompositeNode(grammarAccess.getAssignmentAccess().getOutputEventReferenceParserRuleCall_2_0()); | ||
3647 | |||
3648 | pushFollow(FOLLOW_2); | ||
3649 | lv_output_3_0=ruleEventReference(); | ||
3650 | |||
3651 | state._fsp--; | ||
3652 | |||
3653 | |||
3654 | if (current==null) { | ||
3655 | current = createModelElementForParent(grammarAccess.getAssignmentRule()); | ||
3656 | } | ||
3657 | set( | ||
3658 | current, | ||
3659 | "output", | ||
3660 | lv_output_3_0, | ||
3661 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventReference"); | ||
3662 | afterParserOrEnumRuleCall(); | ||
3663 | |||
3664 | |||
3665 | } | ||
3666 | |||
3667 | |||
3668 | } | ||
3669 | |||
3670 | |||
3671 | } | ||
3672 | |||
3673 | |||
3674 | } | ||
3675 | |||
3676 | |||
3677 | leaveRule(); | ||
3678 | |||
3679 | } | ||
3680 | |||
3681 | catch (RecognitionException re) { | ||
3682 | recover(input,re); | ||
3683 | appendSkippedTokens(); | ||
3684 | } | ||
3685 | finally { | ||
3686 | } | ||
3687 | return current; | ||
3688 | } | ||
3689 | // $ANTLR end "ruleAssignment" | ||
3690 | |||
3691 | |||
3692 | // $ANTLR start "entryRuleEventReference" | ||
3693 | // InternalCftLanguage.g:1405:1: entryRuleEventReference returns [EObject current=null] : iv_ruleEventReference= ruleEventReference EOF ; | ||
3694 | public final EObject entryRuleEventReference() throws RecognitionException { | ||
3695 | EObject current = null; | ||
3696 | |||
3697 | EObject iv_ruleEventReference = null; | ||
3698 | |||
3699 | |||
3700 | try { | ||
3701 | // InternalCftLanguage.g:1405:55: (iv_ruleEventReference= ruleEventReference EOF ) | ||
3702 | // InternalCftLanguage.g:1406:2: iv_ruleEventReference= ruleEventReference EOF | ||
3703 | { | ||
3704 | newCompositeNode(grammarAccess.getEventReferenceRule()); | ||
3705 | pushFollow(FOLLOW_1); | ||
3706 | iv_ruleEventReference=ruleEventReference(); | ||
3707 | |||
3708 | state._fsp--; | ||
3709 | |||
3710 | current =iv_ruleEventReference; | ||
3711 | match(input,EOF,FOLLOW_2); | ||
3712 | |||
3713 | } | ||
3714 | |||
3715 | } | ||
3716 | |||
3717 | catch (RecognitionException re) { | ||
3718 | recover(input,re); | ||
3719 | appendSkippedTokens(); | ||
3720 | } | ||
3721 | finally { | ||
3722 | } | ||
3723 | return current; | ||
3724 | } | ||
3725 | // $ANTLR end "entryRuleEventReference" | ||
3726 | |||
3727 | |||
3728 | // $ANTLR start "ruleEventReference" | ||
3729 | // InternalCftLanguage.g:1412:1: ruleEventReference returns [EObject current=null] : ( ( ( ruleValidId ) ) otherlv_1= '.' ( ( ruleValidId ) ) ) ; | ||
3730 | public final EObject ruleEventReference() throws RecognitionException { | ||
3731 | EObject current = null; | ||
3732 | |||
3733 | Token otherlv_1=null; | ||
3734 | |||
3735 | |||
3736 | enterRule(); | ||
3737 | |||
3738 | try { | ||
3739 | // InternalCftLanguage.g:1418:2: ( ( ( ( ruleValidId ) ) otherlv_1= '.' ( ( ruleValidId ) ) ) ) | ||
3740 | // InternalCftLanguage.g:1419:2: ( ( ( ruleValidId ) ) otherlv_1= '.' ( ( ruleValidId ) ) ) | ||
3741 | { | ||
3742 | // InternalCftLanguage.g:1419:2: ( ( ( ruleValidId ) ) otherlv_1= '.' ( ( ruleValidId ) ) ) | ||
3743 | // InternalCftLanguage.g:1420:3: ( ( ruleValidId ) ) otherlv_1= '.' ( ( ruleValidId ) ) | ||
3744 | { | ||
3745 | // InternalCftLanguage.g:1420:3: ( ( ruleValidId ) ) | ||
3746 | // InternalCftLanguage.g:1421:4: ( ruleValidId ) | ||
3747 | { | ||
3748 | // InternalCftLanguage.g:1421:4: ( ruleValidId ) | ||
3749 | // InternalCftLanguage.g:1422:5: ruleValidId | ||
3750 | { | ||
3751 | |||
3752 | if (current==null) { | ||
3753 | current = createModelElement(grammarAccess.getEventReferenceRule()); | ||
3754 | } | ||
3755 | |||
3756 | |||
3757 | newCompositeNode(grammarAccess.getEventReferenceAccess().getComponentVariableCrossReference_0_0()); | ||
3758 | |||
3759 | pushFollow(FOLLOW_32); | ||
3760 | ruleValidId(); | ||
3761 | |||
3762 | state._fsp--; | ||
3763 | |||
3764 | |||
3765 | afterParserOrEnumRuleCall(); | ||
3766 | |||
3767 | |||
3768 | } | ||
3769 | |||
3770 | |||
3771 | } | ||
3772 | |||
3773 | otherlv_1=(Token)match(input,38,FOLLOW_3); | ||
3774 | |||
3775 | newLeafNode(otherlv_1, grammarAccess.getEventReferenceAccess().getFullStopKeyword_1()); | ||
3776 | |||
3777 | // InternalCftLanguage.g:1440:3: ( ( ruleValidId ) ) | ||
3778 | // InternalCftLanguage.g:1441:4: ( ruleValidId ) | ||
3779 | { | ||
3780 | // InternalCftLanguage.g:1441:4: ( ruleValidId ) | ||
3781 | // InternalCftLanguage.g:1442:5: ruleValidId | ||
3782 | { | ||
3783 | |||
3784 | if (current==null) { | ||
3785 | current = createModelElement(grammarAccess.getEventReferenceRule()); | ||
3786 | } | ||
3787 | |||
3788 | |||
3789 | newCompositeNode(grammarAccess.getEventReferenceAccess().getEventEventDeclarationCrossReference_2_0()); | ||
3790 | |||
3791 | pushFollow(FOLLOW_2); | ||
3792 | ruleValidId(); | ||
3793 | |||
3794 | state._fsp--; | ||
3795 | |||
3796 | |||
3797 | afterParserOrEnumRuleCall(); | ||
3798 | |||
3799 | |||
3800 | } | ||
3801 | |||
3802 | |||
3803 | } | ||
3804 | |||
3805 | |||
3806 | } | ||
3807 | |||
3808 | |||
3809 | } | ||
3810 | |||
3811 | |||
3812 | leaveRule(); | ||
3813 | |||
3814 | } | ||
3815 | |||
3816 | catch (RecognitionException re) { | ||
3817 | recover(input,re); | ||
3818 | appendSkippedTokens(); | ||
3819 | } | ||
3820 | finally { | ||
3821 | } | ||
3822 | return current; | ||
3823 | } | ||
3824 | // $ANTLR end "ruleEventReference" | ||
3825 | |||
3826 | |||
3827 | // $ANTLR start "entryRuleComponentInstance" | ||
3828 | // InternalCftLanguage.g:1460:1: entryRuleComponentInstance returns [EObject current=null] : iv_ruleComponentInstance= ruleComponentInstance EOF ; | ||
3829 | public final EObject entryRuleComponentInstance() throws RecognitionException { | ||
3830 | EObject current = null; | ||
3831 | |||
3832 | EObject iv_ruleComponentInstance = null; | ||
3833 | |||
3834 | |||
3835 | try { | ||
3836 | // InternalCftLanguage.g:1460:58: (iv_ruleComponentInstance= ruleComponentInstance EOF ) | ||
3837 | // InternalCftLanguage.g:1461:2: iv_ruleComponentInstance= ruleComponentInstance EOF | ||
3838 | { | ||
3839 | newCompositeNode(grammarAccess.getComponentInstanceRule()); | ||
3840 | pushFollow(FOLLOW_1); | ||
3841 | iv_ruleComponentInstance=ruleComponentInstance(); | ||
3842 | |||
3843 | state._fsp--; | ||
3844 | |||
3845 | current =iv_ruleComponentInstance; | ||
3846 | match(input,EOF,FOLLOW_2); | ||
3847 | |||
3848 | } | ||
3849 | |||
3850 | } | ||
3851 | |||
3852 | catch (RecognitionException re) { | ||
3853 | recover(input,re); | ||
3854 | appendSkippedTokens(); | ||
3855 | } | ||
3856 | finally { | ||
3857 | } | ||
3858 | return current; | ||
3859 | } | ||
3860 | // $ANTLR end "entryRuleComponentInstance" | ||
3861 | |||
3862 | |||
3863 | // $ANTLR start "ruleComponentInstance" | ||
3864 | // InternalCftLanguage.g:1467:1: ruleComponentInstance returns [EObject current=null] : (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= ruleValidId ) )? ) ; | ||
3865 | public final EObject ruleComponentInstance() throws RecognitionException { | ||
3866 | EObject current = null; | ||
3867 | |||
3868 | Token otherlv_0=null; | ||
3869 | AntlrDatatypeRuleToken lv_name_2_0 = null; | ||
3870 | |||
3871 | |||
3872 | |||
3873 | enterRule(); | ||
3874 | |||
3875 | try { | ||
3876 | // InternalCftLanguage.g:1473:2: ( (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= ruleValidId ) )? ) ) | ||
3877 | // InternalCftLanguage.g:1474:2: (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= ruleValidId ) )? ) | ||
3878 | { | ||
3879 | // InternalCftLanguage.g:1474:2: (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= ruleValidId ) )? ) | ||
3880 | // InternalCftLanguage.g:1475:3: otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= ruleValidId ) )? | ||
3881 | { | ||
3882 | otherlv_0=(Token)match(input,39,FOLLOW_3); | ||
3883 | |||
3884 | newLeafNode(otherlv_0, grammarAccess.getComponentInstanceAccess().getEqualsSignGreaterThanSignKeyword_0()); | ||
3885 | |||
3886 | // InternalCftLanguage.g:1479:3: ( ( ruleQualifiedName ) ) | ||
3887 | // InternalCftLanguage.g:1480:4: ( ruleQualifiedName ) | ||
3888 | { | ||
3889 | // InternalCftLanguage.g:1480:4: ( ruleQualifiedName ) | ||
3890 | // InternalCftLanguage.g:1481:5: ruleQualifiedName | ||
3891 | { | ||
3892 | |||
3893 | if (current==null) { | ||
3894 | current = createModelElement(grammarAccess.getComponentInstanceRule()); | ||
3895 | } | ||
3896 | |||
3897 | |||
3898 | newCompositeNode(grammarAccess.getComponentInstanceAccess().getComponentTypeComponentDefinitionCrossReference_1_0()); | ||
3899 | |||
3900 | pushFollow(FOLLOW_18); | ||
3901 | ruleQualifiedName(); | ||
3902 | |||
3903 | state._fsp--; | ||
3904 | |||
3905 | |||
3906 | afterParserOrEnumRuleCall(); | ||
3907 | |||
3908 | |||
3909 | } | ||
3910 | |||
3911 | |||
3912 | } | ||
3913 | |||
3914 | // InternalCftLanguage.g:1495:3: ( (lv_name_2_0= ruleValidId ) )? | ||
3915 | int alt26=2; | ||
3916 | int LA26_0 = input.LA(1); | ||
3917 | |||
3918 | if ( ((LA26_0>=RULE_OF_INT && LA26_0<=RULE_ID)) ) { | ||
3919 | alt26=1; | ||
3920 | } | ||
3921 | switch (alt26) { | ||
3922 | case 1 : | ||
3923 | // InternalCftLanguage.g:1496:4: (lv_name_2_0= ruleValidId ) | ||
3924 | { | ||
3925 | // InternalCftLanguage.g:1496:4: (lv_name_2_0= ruleValidId ) | ||
3926 | // InternalCftLanguage.g:1497:5: lv_name_2_0= ruleValidId | ||
3927 | { | ||
3928 | |||
3929 | newCompositeNode(grammarAccess.getComponentInstanceAccess().getNameValidIdParserRuleCall_2_0()); | ||
3930 | |||
3931 | pushFollow(FOLLOW_2); | ||
3932 | lv_name_2_0=ruleValidId(); | ||
3933 | |||
3934 | state._fsp--; | ||
3935 | |||
3936 | |||
3937 | if (current==null) { | ||
3938 | current = createModelElementForParent(grammarAccess.getComponentInstanceRule()); | ||
3939 | } | ||
3940 | set( | ||
3941 | current, | ||
3942 | "name", | ||
3943 | lv_name_2_0, | ||
3944 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
3945 | afterParserOrEnumRuleCall(); | ||
3946 | |||
3947 | |||
3948 | } | ||
3949 | |||
3950 | |||
3951 | } | ||
3952 | break; | ||
3953 | |||
3954 | } | ||
3955 | |||
3956 | |||
3957 | } | ||
3958 | |||
3959 | |||
3960 | } | ||
3961 | |||
3962 | |||
3963 | leaveRule(); | ||
3964 | |||
3965 | } | ||
3966 | |||
3967 | catch (RecognitionException re) { | ||
3968 | recover(input,re); | ||
3969 | appendSkippedTokens(); | ||
3970 | } | ||
3971 | finally { | ||
3972 | } | ||
3973 | return current; | ||
3974 | } | ||
3975 | // $ANTLR end "ruleComponentInstance" | ||
3976 | |||
3977 | |||
3978 | // $ANTLR start "entryRuleQualifiedName" | ||
3979 | // InternalCftLanguage.g:1518:1: entryRuleQualifiedName returns [String current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ; | ||
3980 | public final String entryRuleQualifiedName() throws RecognitionException { | ||
3981 | String current = null; | ||
3982 | |||
3983 | AntlrDatatypeRuleToken iv_ruleQualifiedName = null; | ||
3984 | |||
3985 | |||
3986 | try { | ||
3987 | // InternalCftLanguage.g:1518:53: (iv_ruleQualifiedName= ruleQualifiedName EOF ) | ||
3988 | // InternalCftLanguage.g:1519:2: iv_ruleQualifiedName= ruleQualifiedName EOF | ||
3989 | { | ||
3990 | newCompositeNode(grammarAccess.getQualifiedNameRule()); | ||
3991 | pushFollow(FOLLOW_1); | ||
3992 | iv_ruleQualifiedName=ruleQualifiedName(); | ||
3993 | |||
3994 | state._fsp--; | ||
3995 | |||
3996 | current =iv_ruleQualifiedName.getText(); | ||
3997 | match(input,EOF,FOLLOW_2); | ||
3998 | |||
3999 | } | ||
4000 | |||
4001 | } | ||
4002 | |||
4003 | catch (RecognitionException re) { | ||
4004 | recover(input,re); | ||
4005 | appendSkippedTokens(); | ||
4006 | } | ||
4007 | finally { | ||
4008 | } | ||
4009 | return current; | ||
4010 | } | ||
4011 | // $ANTLR end "entryRuleQualifiedName" | ||
4012 | |||
4013 | |||
4014 | // $ANTLR start "ruleQualifiedName" | ||
4015 | // InternalCftLanguage.g:1525:1: ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ValidId_0= ruleValidId (kw= '.' this_ValidId_2= ruleValidId )* ) ; | ||
4016 | public final AntlrDatatypeRuleToken ruleQualifiedName() throws RecognitionException { | ||
4017 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); | ||
4018 | |||
4019 | Token kw=null; | ||
4020 | AntlrDatatypeRuleToken this_ValidId_0 = null; | ||
4021 | |||
4022 | AntlrDatatypeRuleToken this_ValidId_2 = null; | ||
4023 | |||
4024 | |||
4025 | |||
4026 | enterRule(); | ||
4027 | |||
4028 | try { | ||
4029 | // InternalCftLanguage.g:1531:2: ( (this_ValidId_0= ruleValidId (kw= '.' this_ValidId_2= ruleValidId )* ) ) | ||
4030 | // InternalCftLanguage.g:1532:2: (this_ValidId_0= ruleValidId (kw= '.' this_ValidId_2= ruleValidId )* ) | ||
4031 | { | ||
4032 | // InternalCftLanguage.g:1532:2: (this_ValidId_0= ruleValidId (kw= '.' this_ValidId_2= ruleValidId )* ) | ||
4033 | // InternalCftLanguage.g:1533:3: this_ValidId_0= ruleValidId (kw= '.' this_ValidId_2= ruleValidId )* | ||
4034 | { | ||
4035 | |||
4036 | newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIdParserRuleCall_0()); | ||
4037 | |||
4038 | pushFollow(FOLLOW_33); | ||
4039 | this_ValidId_0=ruleValidId(); | ||
4040 | |||
4041 | state._fsp--; | ||
4042 | |||
4043 | |||
4044 | current.merge(this_ValidId_0); | ||
4045 | |||
4046 | |||
4047 | afterParserOrEnumRuleCall(); | ||
4048 | |||
4049 | // InternalCftLanguage.g:1543:3: (kw= '.' this_ValidId_2= ruleValidId )* | ||
4050 | loop27: | ||
4051 | do { | ||
4052 | int alt27=2; | ||
4053 | int LA27_0 = input.LA(1); | ||
4054 | |||
4055 | if ( (LA27_0==38) ) { | ||
4056 | int LA27_2 = input.LA(2); | ||
4057 | |||
4058 | if ( ((LA27_2>=RULE_OF_INT && LA27_2<=RULE_ID)) ) { | ||
4059 | alt27=1; | ||
4060 | } | ||
4061 | |||
4062 | |||
4063 | } | ||
4064 | |||
4065 | |||
4066 | switch (alt27) { | ||
4067 | case 1 : | ||
4068 | // InternalCftLanguage.g:1544:4: kw= '.' this_ValidId_2= ruleValidId | ||
4069 | { | ||
4070 | kw=(Token)match(input,38,FOLLOW_3); | ||
4071 | |||
4072 | current.merge(kw); | ||
4073 | newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); | ||
4074 | |||
4075 | |||
4076 | newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIdParserRuleCall_1_1()); | ||
4077 | |||
4078 | pushFollow(FOLLOW_33); | ||
4079 | this_ValidId_2=ruleValidId(); | ||
4080 | |||
4081 | state._fsp--; | ||
4082 | |||
4083 | |||
4084 | current.merge(this_ValidId_2); | ||
4085 | |||
4086 | |||
4087 | afterParserOrEnumRuleCall(); | ||
4088 | |||
4089 | |||
4090 | } | ||
4091 | break; | ||
4092 | |||
4093 | default : | ||
4094 | break loop27; | ||
4095 | } | ||
4096 | } while (true); | ||
4097 | |||
4098 | |||
4099 | } | ||
4100 | |||
4101 | |||
4102 | } | ||
4103 | |||
4104 | |||
4105 | leaveRule(); | ||
4106 | |||
4107 | } | ||
4108 | |||
4109 | catch (RecognitionException re) { | ||
4110 | recover(input,re); | ||
4111 | appendSkippedTokens(); | ||
4112 | } | ||
4113 | finally { | ||
4114 | } | ||
4115 | return current; | ||
4116 | } | ||
4117 | // $ANTLR end "ruleQualifiedName" | ||
4118 | |||
4119 | |||
4120 | // $ANTLR start "entryRuleQualifiedNameWithWildcard" | ||
4121 | // InternalCftLanguage.g:1564:1: entryRuleQualifiedNameWithWildcard returns [String current=null] : iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ; | ||
4122 | public final String entryRuleQualifiedNameWithWildcard() throws RecognitionException { | ||
4123 | String current = null; | ||
4124 | |||
4125 | AntlrDatatypeRuleToken iv_ruleQualifiedNameWithWildcard = null; | ||
4126 | |||
4127 | |||
4128 | try { | ||
4129 | // InternalCftLanguage.g:1564:65: (iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ) | ||
4130 | // InternalCftLanguage.g:1565:2: iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF | ||
4131 | { | ||
4132 | newCompositeNode(grammarAccess.getQualifiedNameWithWildcardRule()); | ||
4133 | pushFollow(FOLLOW_1); | ||
4134 | iv_ruleQualifiedNameWithWildcard=ruleQualifiedNameWithWildcard(); | ||
4135 | |||
4136 | state._fsp--; | ||
4137 | |||
4138 | current =iv_ruleQualifiedNameWithWildcard.getText(); | ||
4139 | match(input,EOF,FOLLOW_2); | ||
4140 | |||
4141 | } | ||
4142 | |||
4143 | } | ||
4144 | |||
4145 | catch (RecognitionException re) { | ||
4146 | recover(input,re); | ||
4147 | appendSkippedTokens(); | ||
4148 | } | ||
4149 | finally { | ||
4150 | } | ||
4151 | return current; | ||
4152 | } | ||
4153 | // $ANTLR end "entryRuleQualifiedNameWithWildcard" | ||
4154 | |||
4155 | |||
4156 | // $ANTLR start "ruleQualifiedNameWithWildcard" | ||
4157 | // InternalCftLanguage.g:1571:1: ruleQualifiedNameWithWildcard returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) ; | ||
4158 | public final AntlrDatatypeRuleToken ruleQualifiedNameWithWildcard() throws RecognitionException { | ||
4159 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); | ||
4160 | |||
4161 | Token kw=null; | ||
4162 | AntlrDatatypeRuleToken this_QualifiedName_0 = null; | ||
4163 | |||
4164 | |||
4165 | |||
4166 | enterRule(); | ||
4167 | |||
4168 | try { | ||
4169 | // InternalCftLanguage.g:1577:2: ( (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) ) | ||
4170 | // InternalCftLanguage.g:1578:2: (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) | ||
4171 | { | ||
4172 | // InternalCftLanguage.g:1578:2: (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) | ||
4173 | // InternalCftLanguage.g:1579:3: this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? | ||
4174 | { | ||
4175 | |||
4176 | newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); | ||
4177 | |||
4178 | pushFollow(FOLLOW_33); | ||
4179 | this_QualifiedName_0=ruleQualifiedName(); | ||
4180 | |||
4181 | state._fsp--; | ||
4182 | |||
4183 | |||
4184 | current.merge(this_QualifiedName_0); | ||
4185 | |||
4186 | |||
4187 | afterParserOrEnumRuleCall(); | ||
4188 | |||
4189 | // InternalCftLanguage.g:1589:3: (kw= '.' kw= '*' )? | ||
4190 | int alt28=2; | ||
4191 | int LA28_0 = input.LA(1); | ||
4192 | |||
4193 | if ( (LA28_0==38) ) { | ||
4194 | alt28=1; | ||
4195 | } | ||
4196 | switch (alt28) { | ||
4197 | case 1 : | ||
4198 | // InternalCftLanguage.g:1590:4: kw= '.' kw= '*' | ||
4199 | { | ||
4200 | kw=(Token)match(input,38,FOLLOW_34); | ||
4201 | |||
4202 | current.merge(kw); | ||
4203 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1_0()); | ||
4204 | |||
4205 | kw=(Token)match(input,40,FOLLOW_2); | ||
4206 | |||
4207 | current.merge(kw); | ||
4208 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_1_1()); | ||
4209 | |||
4210 | |||
4211 | } | ||
4212 | break; | ||
4213 | |||
4214 | } | ||
4215 | |||
4216 | |||
4217 | } | ||
4218 | |||
4219 | |||
4220 | } | ||
4221 | |||
4222 | |||
4223 | leaveRule(); | ||
4224 | |||
4225 | } | ||
4226 | |||
4227 | catch (RecognitionException re) { | ||
4228 | recover(input,re); | ||
4229 | appendSkippedTokens(); | ||
4230 | } | ||
4231 | finally { | ||
4232 | } | ||
4233 | return current; | ||
4234 | } | ||
4235 | // $ANTLR end "ruleQualifiedNameWithWildcard" | ||
4236 | |||
4237 | |||
4238 | // $ANTLR start "entryRuleValidId" | ||
4239 | // InternalCftLanguage.g:1605:1: entryRuleValidId returns [String current=null] : iv_ruleValidId= ruleValidId EOF ; | ||
4240 | public final String entryRuleValidId() throws RecognitionException { | ||
4241 | String current = null; | ||
4242 | |||
4243 | AntlrDatatypeRuleToken iv_ruleValidId = null; | ||
4244 | |||
4245 | |||
4246 | try { | ||
4247 | // InternalCftLanguage.g:1605:47: (iv_ruleValidId= ruleValidId EOF ) | ||
4248 | // InternalCftLanguage.g:1606:2: iv_ruleValidId= ruleValidId EOF | ||
4249 | { | ||
4250 | newCompositeNode(grammarAccess.getValidIdRule()); | ||
4251 | pushFollow(FOLLOW_1); | ||
4252 | iv_ruleValidId=ruleValidId(); | ||
4253 | |||
4254 | state._fsp--; | ||
4255 | |||
4256 | current =iv_ruleValidId.getText(); | ||
4257 | match(input,EOF,FOLLOW_2); | ||
4258 | |||
4259 | } | ||
4260 | |||
4261 | } | ||
4262 | |||
4263 | catch (RecognitionException re) { | ||
4264 | recover(input,re); | ||
4265 | appendSkippedTokens(); | ||
4266 | } | ||
4267 | finally { | ||
4268 | } | ||
4269 | return current; | ||
4270 | } | ||
4271 | // $ANTLR end "entryRuleValidId" | ||
4272 | |||
4273 | |||
4274 | // $ANTLR start "ruleValidId" | ||
4275 | // InternalCftLanguage.g:1612:1: ruleValidId returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ID_0= RULE_ID | this_OF_INT_1= RULE_OF_INT ) ; | ||
4276 | public final AntlrDatatypeRuleToken ruleValidId() throws RecognitionException { | ||
4277 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); | ||
4278 | |||
4279 | Token this_ID_0=null; | ||
4280 | Token this_OF_INT_1=null; | ||
4281 | |||
4282 | |||
4283 | enterRule(); | ||
4284 | |||
4285 | try { | ||
4286 | // InternalCftLanguage.g:1618:2: ( (this_ID_0= RULE_ID | this_OF_INT_1= RULE_OF_INT ) ) | ||
4287 | // InternalCftLanguage.g:1619:2: (this_ID_0= RULE_ID | this_OF_INT_1= RULE_OF_INT ) | ||
4288 | { | ||
4289 | // InternalCftLanguage.g:1619:2: (this_ID_0= RULE_ID | this_OF_INT_1= RULE_OF_INT ) | ||
4290 | int alt29=2; | ||
4291 | int LA29_0 = input.LA(1); | ||
4292 | |||
4293 | if ( (LA29_0==RULE_ID) ) { | ||
4294 | alt29=1; | ||
4295 | } | ||
4296 | else if ( (LA29_0==RULE_OF_INT) ) { | ||
4297 | alt29=2; | ||
4298 | } | ||
4299 | else { | ||
4300 | NoViableAltException nvae = | ||
4301 | new NoViableAltException("", 29, 0, input); | ||
4302 | |||
4303 | throw nvae; | ||
4304 | } | ||
4305 | switch (alt29) { | ||
4306 | case 1 : | ||
4307 | // InternalCftLanguage.g:1620:3: this_ID_0= RULE_ID | ||
4308 | { | ||
4309 | this_ID_0=(Token)match(input,RULE_ID,FOLLOW_2); | ||
4310 | |||
4311 | current.merge(this_ID_0); | ||
4312 | |||
4313 | |||
4314 | newLeafNode(this_ID_0, grammarAccess.getValidIdAccess().getIDTerminalRuleCall_0()); | ||
4315 | |||
4316 | |||
4317 | } | ||
4318 | break; | ||
4319 | case 2 : | ||
4320 | // InternalCftLanguage.g:1628:3: this_OF_INT_1= RULE_OF_INT | ||
4321 | { | ||
4322 | this_OF_INT_1=(Token)match(input,RULE_OF_INT,FOLLOW_2); | ||
4323 | |||
4324 | current.merge(this_OF_INT_1); | ||
4325 | |||
4326 | |||
4327 | newLeafNode(this_OF_INT_1, grammarAccess.getValidIdAccess().getOF_INTTerminalRuleCall_1()); | ||
4328 | |||
4329 | |||
4330 | } | ||
4331 | break; | ||
4332 | |||
4333 | } | ||
4334 | |||
4335 | |||
4336 | } | ||
4337 | |||
4338 | |||
4339 | leaveRule(); | ||
4340 | |||
4341 | } | ||
4342 | |||
4343 | catch (RecognitionException re) { | ||
4344 | recover(input,re); | ||
4345 | appendSkippedTokens(); | ||
4346 | } | ||
4347 | finally { | ||
4348 | } | ||
4349 | return current; | ||
4350 | } | ||
4351 | // $ANTLR end "ruleValidId" | ||
4352 | |||
4353 | |||
4354 | // $ANTLR start "entryRuleDouble" | ||
4355 | // InternalCftLanguage.g:1639:1: entryRuleDouble returns [String current=null] : iv_ruleDouble= ruleDouble EOF ; | ||
4356 | public final String entryRuleDouble() throws RecognitionException { | ||
4357 | String current = null; | ||
4358 | |||
4359 | AntlrDatatypeRuleToken iv_ruleDouble = null; | ||
4360 | |||
4361 | |||
4362 | try { | ||
4363 | // InternalCftLanguage.g:1639:46: (iv_ruleDouble= ruleDouble EOF ) | ||
4364 | // InternalCftLanguage.g:1640:2: iv_ruleDouble= ruleDouble EOF | ||
4365 | { | ||
4366 | newCompositeNode(grammarAccess.getDoubleRule()); | ||
4367 | pushFollow(FOLLOW_1); | ||
4368 | iv_ruleDouble=ruleDouble(); | ||
4369 | |||
4370 | state._fsp--; | ||
4371 | |||
4372 | current =iv_ruleDouble.getText(); | ||
4373 | match(input,EOF,FOLLOW_2); | ||
4374 | |||
4375 | } | ||
4376 | |||
4377 | } | ||
4378 | |||
4379 | catch (RecognitionException re) { | ||
4380 | recover(input,re); | ||
4381 | appendSkippedTokens(); | ||
4382 | } | ||
4383 | finally { | ||
4384 | } | ||
4385 | return current; | ||
4386 | } | ||
4387 | // $ANTLR end "entryRuleDouble" | ||
4388 | |||
4389 | |||
4390 | // $ANTLR start "ruleDouble" | ||
4391 | // InternalCftLanguage.g:1646:1: ruleDouble returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_INT_0= RULE_INT | this_T_DOUBLE_1= RULE_T_DOUBLE ) ; | ||
4392 | public final AntlrDatatypeRuleToken ruleDouble() throws RecognitionException { | ||
4393 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); | ||
4394 | |||
4395 | Token this_INT_0=null; | ||
4396 | Token this_T_DOUBLE_1=null; | ||
4397 | |||
4398 | |||
4399 | enterRule(); | ||
4400 | |||
4401 | try { | ||
4402 | // InternalCftLanguage.g:1652:2: ( (this_INT_0= RULE_INT | this_T_DOUBLE_1= RULE_T_DOUBLE ) ) | ||
4403 | // InternalCftLanguage.g:1653:2: (this_INT_0= RULE_INT | this_T_DOUBLE_1= RULE_T_DOUBLE ) | ||
4404 | { | ||
4405 | // InternalCftLanguage.g:1653:2: (this_INT_0= RULE_INT | this_T_DOUBLE_1= RULE_T_DOUBLE ) | ||
4406 | int alt30=2; | ||
4407 | int LA30_0 = input.LA(1); | ||
4408 | |||
4409 | if ( (LA30_0==RULE_INT) ) { | ||
4410 | alt30=1; | ||
4411 | } | ||
4412 | else if ( (LA30_0==RULE_T_DOUBLE) ) { | ||
4413 | alt30=2; | ||
4414 | } | ||
4415 | else { | ||
4416 | NoViableAltException nvae = | ||
4417 | new NoViableAltException("", 30, 0, input); | ||
4418 | |||
4419 | throw nvae; | ||
4420 | } | ||
4421 | switch (alt30) { | ||
4422 | case 1 : | ||
4423 | // InternalCftLanguage.g:1654:3: this_INT_0= RULE_INT | ||
4424 | { | ||
4425 | this_INT_0=(Token)match(input,RULE_INT,FOLLOW_2); | ||
4426 | |||
4427 | current.merge(this_INT_0); | ||
4428 | |||
4429 | |||
4430 | newLeafNode(this_INT_0, grammarAccess.getDoubleAccess().getINTTerminalRuleCall_0()); | ||
4431 | |||
4432 | |||
4433 | } | ||
4434 | break; | ||
4435 | case 2 : | ||
4436 | // InternalCftLanguage.g:1662:3: this_T_DOUBLE_1= RULE_T_DOUBLE | ||
4437 | { | ||
4438 | this_T_DOUBLE_1=(Token)match(input,RULE_T_DOUBLE,FOLLOW_2); | ||
4439 | |||
4440 | current.merge(this_T_DOUBLE_1); | ||
4441 | |||
4442 | |||
4443 | newLeafNode(this_T_DOUBLE_1, grammarAccess.getDoubleAccess().getT_DOUBLETerminalRuleCall_1()); | ||
4444 | |||
4445 | |||
4446 | } | ||
4447 | break; | ||
4448 | |||
4449 | } | ||
4450 | |||
4451 | |||
4452 | } | ||
4453 | |||
4454 | |||
4455 | leaveRule(); | ||
4456 | |||
4457 | } | ||
4458 | |||
4459 | catch (RecognitionException re) { | ||
4460 | recover(input,re); | ||
4461 | appendSkippedTokens(); | ||
4462 | } | ||
4463 | finally { | ||
4464 | } | ||
4465 | return current; | ||
4466 | } | ||
4467 | // $ANTLR end "ruleDouble" | ||
4468 | |||
4469 | // Delegated rules | ||
4470 | |||
4471 | |||
4472 | |||
4473 | |||
4474 | public static final BitSet FOLLOW_1 = new BitSet(new long[]{0x0000000000000000L}); | ||
4475 | public static final BitSet FOLLOW_2 = new BitSet(new long[]{0x0000000000000002L}); | ||
4476 | public static final BitSet FOLLOW_3 = new BitSet(new long[]{0x0000000000000060L}); | ||
4477 | public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x000000001001C002L}); | ||
4478 | public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000010018002L}); | ||
4479 | public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000010010002L}); | ||
4480 | public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000004002L}); | ||
4481 | public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000020000L}); | ||
4482 | public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x00000000001C0060L}); | ||
4483 | public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000004060L}); | ||
4484 | public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000000004000L}); | ||
4485 | public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000000100060L}); | ||
4486 | public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000000200002L}); | ||
4487 | public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000001400000L}); | ||
4488 | public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000000800000L}); | ||
4489 | public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000000000090L}); | ||
4490 | public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000000002000000L}); | ||
4491 | public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000000000062L}); | ||
4492 | public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0000000004000000L}); | ||
4493 | public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x0000000000000010L}); | ||
4494 | public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000000008000020L}); | ||
4495 | public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0000000060100000L}); | ||
4496 | public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000000040000000L}); | ||
4497 | public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000000080000000L}); | ||
4498 | public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0000000300000000L}); | ||
4499 | public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000008000020002L}); | ||
4500 | public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0000000000020002L}); | ||
4501 | public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0000000400100060L}); | ||
4502 | public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0000000800000000L}); | ||
4503 | public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x0000003000000000L}); | ||
4504 | public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0000000400000060L}); | ||
4505 | public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x0000004000000000L}); | ||
4506 | public static final BitSet FOLLOW_33 = new BitSet(new long[]{0x0000004000000002L}); | ||
4507 | public static final BitSet FOLLOW_34 = new BitSet(new long[]{0x0000010000000000L}); | ||
4508 | |||
4509 | } | ||