diff options
author | 2019-08-01 14:49:53 +0200 | |
---|---|---|
committer | 2019-08-01 14:49:53 +0200 | |
commit | 972baab642bd889d2c3476c0c9e17a6929e0c318 (patch) | |
tree | 8f724cb348c60e4fc45d446d8532988ed8e40748 /Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java | |
parent | Counting scope propagator (simpler than BasicTypeHierarchy) (diff) | |
download | VIATRA-Generator-972baab642bd889d2c3476c0c9e17a6929e0c318.tar.gz VIATRA-Generator-972baab642bd889d2c3476c0c9e17a6929e0c318.tar.zst VIATRA-Generator-972baab642bd889d2c3476c0c9e17a6929e0c318.zip |
[Stochastic] Remove fault tree support for now
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java')
-rw-r--r-- | Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java | 4509 |
1 files changed, 0 insertions, 4509 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java 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 | } | ||