diff options
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfigurationParser.java')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfigurationParser.java | 1746 |
1 files changed, 1746 insertions, 0 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfigurationParser.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfigurationParser.java new file mode 100644 index 00000000..7387e45b --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfigurationParser.java | |||
@@ -0,0 +1,1746 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.application.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.application.services.ApplicationConfigurationGrammarAccess; | ||
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 InternalApplicationConfigurationParser extends AbstractInternalAntlrParser { | ||
23 | public static final String[] tokenNames = new String[] { | ||
24 | "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_STRING", "RULE_ID", "RULE_INT", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'import'", "'epackage'", "'viatra'", "'{'", "','", "'}'", "'package'", "'excluding'", "'::'", "'.'", "'metamodel'" | ||
25 | }; | ||
26 | public static final int RULE_STRING=4; | ||
27 | public static final int RULE_SL_COMMENT=8; | ||
28 | public static final int T__19=19; | ||
29 | public static final int T__15=15; | ||
30 | public static final int T__16=16; | ||
31 | public static final int T__17=17; | ||
32 | public static final int T__18=18; | ||
33 | public static final int T__11=11; | ||
34 | public static final int T__12=12; | ||
35 | public static final int T__13=13; | ||
36 | public static final int T__14=14; | ||
37 | public static final int EOF=-1; | ||
38 | public static final int RULE_ID=5; | ||
39 | public static final int RULE_WS=9; | ||
40 | public static final int RULE_ANY_OTHER=10; | ||
41 | public static final int RULE_INT=6; | ||
42 | public static final int RULE_ML_COMMENT=7; | ||
43 | public static final int T__20=20; | ||
44 | public static final int T__21=21; | ||
45 | |||
46 | // delegates | ||
47 | // delegators | ||
48 | |||
49 | |||
50 | public InternalApplicationConfigurationParser(TokenStream input) { | ||
51 | this(input, new RecognizerSharedState()); | ||
52 | } | ||
53 | public InternalApplicationConfigurationParser(TokenStream input, RecognizerSharedState state) { | ||
54 | super(input, state); | ||
55 | |||
56 | } | ||
57 | |||
58 | |||
59 | public String[] getTokenNames() { return InternalApplicationConfigurationParser.tokenNames; } | ||
60 | public String getGrammarFileName() { return "InternalApplicationConfiguration.g"; } | ||
61 | |||
62 | |||
63 | |||
64 | private ApplicationConfigurationGrammarAccess grammarAccess; | ||
65 | |||
66 | public InternalApplicationConfigurationParser(TokenStream input, ApplicationConfigurationGrammarAccess grammarAccess) { | ||
67 | this(input); | ||
68 | this.grammarAccess = grammarAccess; | ||
69 | registerRules(grammarAccess.getGrammar()); | ||
70 | } | ||
71 | |||
72 | @Override | ||
73 | protected String getFirstRuleName() { | ||
74 | return "ConfigurationScript"; | ||
75 | } | ||
76 | |||
77 | @Override | ||
78 | protected ApplicationConfigurationGrammarAccess getGrammarAccess() { | ||
79 | return grammarAccess; | ||
80 | } | ||
81 | |||
82 | |||
83 | |||
84 | |||
85 | // $ANTLR start "entryRuleConfigurationScript" | ||
86 | // InternalApplicationConfiguration.g:64:1: entryRuleConfigurationScript returns [EObject current=null] : iv_ruleConfigurationScript= ruleConfigurationScript EOF ; | ||
87 | public final EObject entryRuleConfigurationScript() throws RecognitionException { | ||
88 | EObject current = null; | ||
89 | |||
90 | EObject iv_ruleConfigurationScript = null; | ||
91 | |||
92 | |||
93 | try { | ||
94 | // InternalApplicationConfiguration.g:64:60: (iv_ruleConfigurationScript= ruleConfigurationScript EOF ) | ||
95 | // InternalApplicationConfiguration.g:65:2: iv_ruleConfigurationScript= ruleConfigurationScript EOF | ||
96 | { | ||
97 | newCompositeNode(grammarAccess.getConfigurationScriptRule()); | ||
98 | pushFollow(FOLLOW_1); | ||
99 | iv_ruleConfigurationScript=ruleConfigurationScript(); | ||
100 | |||
101 | state._fsp--; | ||
102 | |||
103 | current =iv_ruleConfigurationScript; | ||
104 | match(input,EOF,FOLLOW_2); | ||
105 | |||
106 | } | ||
107 | |||
108 | } | ||
109 | |||
110 | catch (RecognitionException re) { | ||
111 | recover(input,re); | ||
112 | appendSkippedTokens(); | ||
113 | } | ||
114 | finally { | ||
115 | } | ||
116 | return current; | ||
117 | } | ||
118 | // $ANTLR end "entryRuleConfigurationScript" | ||
119 | |||
120 | |||
121 | // $ANTLR start "ruleConfigurationScript" | ||
122 | // InternalApplicationConfiguration.g:71:1: ruleConfigurationScript returns [EObject current=null] : ( ( (lv_imports_0_0= ruleImport ) )* ( (lv_commands_1_0= ruleCommand ) )* ) ; | ||
123 | public final EObject ruleConfigurationScript() throws RecognitionException { | ||
124 | EObject current = null; | ||
125 | |||
126 | EObject lv_imports_0_0 = null; | ||
127 | |||
128 | EObject lv_commands_1_0 = null; | ||
129 | |||
130 | |||
131 | |||
132 | enterRule(); | ||
133 | |||
134 | try { | ||
135 | // InternalApplicationConfiguration.g:77:2: ( ( ( (lv_imports_0_0= ruleImport ) )* ( (lv_commands_1_0= ruleCommand ) )* ) ) | ||
136 | // InternalApplicationConfiguration.g:78:2: ( ( (lv_imports_0_0= ruleImport ) )* ( (lv_commands_1_0= ruleCommand ) )* ) | ||
137 | { | ||
138 | // InternalApplicationConfiguration.g:78:2: ( ( (lv_imports_0_0= ruleImport ) )* ( (lv_commands_1_0= ruleCommand ) )* ) | ||
139 | // InternalApplicationConfiguration.g:79:3: ( (lv_imports_0_0= ruleImport ) )* ( (lv_commands_1_0= ruleCommand ) )* | ||
140 | { | ||
141 | // InternalApplicationConfiguration.g:79:3: ( (lv_imports_0_0= ruleImport ) )* | ||
142 | loop1: | ||
143 | do { | ||
144 | int alt1=2; | ||
145 | int LA1_0 = input.LA(1); | ||
146 | |||
147 | if ( (LA1_0==11) ) { | ||
148 | alt1=1; | ||
149 | } | ||
150 | |||
151 | |||
152 | switch (alt1) { | ||
153 | case 1 : | ||
154 | // InternalApplicationConfiguration.g:80:4: (lv_imports_0_0= ruleImport ) | ||
155 | { | ||
156 | // InternalApplicationConfiguration.g:80:4: (lv_imports_0_0= ruleImport ) | ||
157 | // InternalApplicationConfiguration.g:81:5: lv_imports_0_0= ruleImport | ||
158 | { | ||
159 | |||
160 | newCompositeNode(grammarAccess.getConfigurationScriptAccess().getImportsImportParserRuleCall_0_0()); | ||
161 | |||
162 | pushFollow(FOLLOW_3); | ||
163 | lv_imports_0_0=ruleImport(); | ||
164 | |||
165 | state._fsp--; | ||
166 | |||
167 | |||
168 | if (current==null) { | ||
169 | current = createModelElementForParent(grammarAccess.getConfigurationScriptRule()); | ||
170 | } | ||
171 | add( | ||
172 | current, | ||
173 | "imports", | ||
174 | lv_imports_0_0, | ||
175 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Import"); | ||
176 | afterParserOrEnumRuleCall(); | ||
177 | |||
178 | |||
179 | } | ||
180 | |||
181 | |||
182 | } | ||
183 | break; | ||
184 | |||
185 | default : | ||
186 | break loop1; | ||
187 | } | ||
188 | } while (true); | ||
189 | |||
190 | // InternalApplicationConfiguration.g:98:3: ( (lv_commands_1_0= ruleCommand ) )* | ||
191 | loop2: | ||
192 | do { | ||
193 | int alt2=2; | ||
194 | int LA2_0 = input.LA(1); | ||
195 | |||
196 | if ( (LA2_0==21) ) { | ||
197 | alt2=1; | ||
198 | } | ||
199 | |||
200 | |||
201 | switch (alt2) { | ||
202 | case 1 : | ||
203 | // InternalApplicationConfiguration.g:99:4: (lv_commands_1_0= ruleCommand ) | ||
204 | { | ||
205 | // InternalApplicationConfiguration.g:99:4: (lv_commands_1_0= ruleCommand ) | ||
206 | // InternalApplicationConfiguration.g:100:5: lv_commands_1_0= ruleCommand | ||
207 | { | ||
208 | |||
209 | newCompositeNode(grammarAccess.getConfigurationScriptAccess().getCommandsCommandParserRuleCall_1_0()); | ||
210 | |||
211 | pushFollow(FOLLOW_4); | ||
212 | lv_commands_1_0=ruleCommand(); | ||
213 | |||
214 | state._fsp--; | ||
215 | |||
216 | |||
217 | if (current==null) { | ||
218 | current = createModelElementForParent(grammarAccess.getConfigurationScriptRule()); | ||
219 | } | ||
220 | add( | ||
221 | current, | ||
222 | "commands", | ||
223 | lv_commands_1_0, | ||
224 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Command"); | ||
225 | afterParserOrEnumRuleCall(); | ||
226 | |||
227 | |||
228 | } | ||
229 | |||
230 | |||
231 | } | ||
232 | break; | ||
233 | |||
234 | default : | ||
235 | break loop2; | ||
236 | } | ||
237 | } while (true); | ||
238 | |||
239 | |||
240 | } | ||
241 | |||
242 | |||
243 | } | ||
244 | |||
245 | |||
246 | leaveRule(); | ||
247 | |||
248 | } | ||
249 | |||
250 | catch (RecognitionException re) { | ||
251 | recover(input,re); | ||
252 | appendSkippedTokens(); | ||
253 | } | ||
254 | finally { | ||
255 | } | ||
256 | return current; | ||
257 | } | ||
258 | // $ANTLR end "ruleConfigurationScript" | ||
259 | |||
260 | |||
261 | // $ANTLR start "entryRuleCommand" | ||
262 | // InternalApplicationConfiguration.g:121:1: entryRuleCommand returns [EObject current=null] : iv_ruleCommand= ruleCommand EOF ; | ||
263 | public final EObject entryRuleCommand() throws RecognitionException { | ||
264 | EObject current = null; | ||
265 | |||
266 | EObject iv_ruleCommand = null; | ||
267 | |||
268 | |||
269 | try { | ||
270 | // InternalApplicationConfiguration.g:121:48: (iv_ruleCommand= ruleCommand EOF ) | ||
271 | // InternalApplicationConfiguration.g:122:2: iv_ruleCommand= ruleCommand EOF | ||
272 | { | ||
273 | newCompositeNode(grammarAccess.getCommandRule()); | ||
274 | pushFollow(FOLLOW_1); | ||
275 | iv_ruleCommand=ruleCommand(); | ||
276 | |||
277 | state._fsp--; | ||
278 | |||
279 | current =iv_ruleCommand; | ||
280 | match(input,EOF,FOLLOW_2); | ||
281 | |||
282 | } | ||
283 | |||
284 | } | ||
285 | |||
286 | catch (RecognitionException re) { | ||
287 | recover(input,re); | ||
288 | appendSkippedTokens(); | ||
289 | } | ||
290 | finally { | ||
291 | } | ||
292 | return current; | ||
293 | } | ||
294 | // $ANTLR end "entryRuleCommand" | ||
295 | |||
296 | |||
297 | // $ANTLR start "ruleCommand" | ||
298 | // InternalApplicationConfiguration.g:128:1: ruleCommand returns [EObject current=null] : this_Declaration_0= ruleDeclaration ; | ||
299 | public final EObject ruleCommand() throws RecognitionException { | ||
300 | EObject current = null; | ||
301 | |||
302 | EObject this_Declaration_0 = null; | ||
303 | |||
304 | |||
305 | |||
306 | enterRule(); | ||
307 | |||
308 | try { | ||
309 | // InternalApplicationConfiguration.g:134:2: (this_Declaration_0= ruleDeclaration ) | ||
310 | // InternalApplicationConfiguration.g:135:2: this_Declaration_0= ruleDeclaration | ||
311 | { | ||
312 | |||
313 | newCompositeNode(grammarAccess.getCommandAccess().getDeclarationParserRuleCall()); | ||
314 | |||
315 | pushFollow(FOLLOW_2); | ||
316 | this_Declaration_0=ruleDeclaration(); | ||
317 | |||
318 | state._fsp--; | ||
319 | |||
320 | |||
321 | current = this_Declaration_0; | ||
322 | afterParserOrEnumRuleCall(); | ||
323 | |||
324 | |||
325 | } | ||
326 | |||
327 | |||
328 | leaveRule(); | ||
329 | |||
330 | } | ||
331 | |||
332 | catch (RecognitionException re) { | ||
333 | recover(input,re); | ||
334 | appendSkippedTokens(); | ||
335 | } | ||
336 | finally { | ||
337 | } | ||
338 | return current; | ||
339 | } | ||
340 | // $ANTLR end "ruleCommand" | ||
341 | |||
342 | |||
343 | // $ANTLR start "entryRuleDeclaration" | ||
344 | // InternalApplicationConfiguration.g:146:1: entryRuleDeclaration returns [EObject current=null] : iv_ruleDeclaration= ruleDeclaration EOF ; | ||
345 | public final EObject entryRuleDeclaration() throws RecognitionException { | ||
346 | EObject current = null; | ||
347 | |||
348 | EObject iv_ruleDeclaration = null; | ||
349 | |||
350 | |||
351 | try { | ||
352 | // InternalApplicationConfiguration.g:146:52: (iv_ruleDeclaration= ruleDeclaration EOF ) | ||
353 | // InternalApplicationConfiguration.g:147:2: iv_ruleDeclaration= ruleDeclaration EOF | ||
354 | { | ||
355 | newCompositeNode(grammarAccess.getDeclarationRule()); | ||
356 | pushFollow(FOLLOW_1); | ||
357 | iv_ruleDeclaration=ruleDeclaration(); | ||
358 | |||
359 | state._fsp--; | ||
360 | |||
361 | current =iv_ruleDeclaration; | ||
362 | match(input,EOF,FOLLOW_2); | ||
363 | |||
364 | } | ||
365 | |||
366 | } | ||
367 | |||
368 | catch (RecognitionException re) { | ||
369 | recover(input,re); | ||
370 | appendSkippedTokens(); | ||
371 | } | ||
372 | finally { | ||
373 | } | ||
374 | return current; | ||
375 | } | ||
376 | // $ANTLR end "entryRuleDeclaration" | ||
377 | |||
378 | |||
379 | // $ANTLR start "ruleDeclaration" | ||
380 | // InternalApplicationConfiguration.g:153:1: ruleDeclaration returns [EObject current=null] : this_MetamodelDeclaration_0= ruleMetamodelDeclaration ; | ||
381 | public final EObject ruleDeclaration() throws RecognitionException { | ||
382 | EObject current = null; | ||
383 | |||
384 | EObject this_MetamodelDeclaration_0 = null; | ||
385 | |||
386 | |||
387 | |||
388 | enterRule(); | ||
389 | |||
390 | try { | ||
391 | // InternalApplicationConfiguration.g:159:2: (this_MetamodelDeclaration_0= ruleMetamodelDeclaration ) | ||
392 | // InternalApplicationConfiguration.g:160:2: this_MetamodelDeclaration_0= ruleMetamodelDeclaration | ||
393 | { | ||
394 | |||
395 | newCompositeNode(grammarAccess.getDeclarationAccess().getMetamodelDeclarationParserRuleCall()); | ||
396 | |||
397 | pushFollow(FOLLOW_2); | ||
398 | this_MetamodelDeclaration_0=ruleMetamodelDeclaration(); | ||
399 | |||
400 | state._fsp--; | ||
401 | |||
402 | |||
403 | current = this_MetamodelDeclaration_0; | ||
404 | afterParserOrEnumRuleCall(); | ||
405 | |||
406 | |||
407 | } | ||
408 | |||
409 | |||
410 | leaveRule(); | ||
411 | |||
412 | } | ||
413 | |||
414 | catch (RecognitionException re) { | ||
415 | recover(input,re); | ||
416 | appendSkippedTokens(); | ||
417 | } | ||
418 | finally { | ||
419 | } | ||
420 | return current; | ||
421 | } | ||
422 | // $ANTLR end "ruleDeclaration" | ||
423 | |||
424 | |||
425 | // $ANTLR start "entryRuleImport" | ||
426 | // InternalApplicationConfiguration.g:171:1: entryRuleImport returns [EObject current=null] : iv_ruleImport= ruleImport EOF ; | ||
427 | public final EObject entryRuleImport() throws RecognitionException { | ||
428 | EObject current = null; | ||
429 | |||
430 | EObject iv_ruleImport = null; | ||
431 | |||
432 | |||
433 | try { | ||
434 | // InternalApplicationConfiguration.g:171:47: (iv_ruleImport= ruleImport EOF ) | ||
435 | // InternalApplicationConfiguration.g:172:2: iv_ruleImport= ruleImport EOF | ||
436 | { | ||
437 | newCompositeNode(grammarAccess.getImportRule()); | ||
438 | pushFollow(FOLLOW_1); | ||
439 | iv_ruleImport=ruleImport(); | ||
440 | |||
441 | state._fsp--; | ||
442 | |||
443 | current =iv_ruleImport; | ||
444 | match(input,EOF,FOLLOW_2); | ||
445 | |||
446 | } | ||
447 | |||
448 | } | ||
449 | |||
450 | catch (RecognitionException re) { | ||
451 | recover(input,re); | ||
452 | appendSkippedTokens(); | ||
453 | } | ||
454 | finally { | ||
455 | } | ||
456 | return current; | ||
457 | } | ||
458 | // $ANTLR end "entryRuleImport" | ||
459 | |||
460 | |||
461 | // $ANTLR start "ruleImport" | ||
462 | // InternalApplicationConfiguration.g:178:1: ruleImport returns [EObject current=null] : (this_EPackageImport_0= ruleEPackageImport | this_ViatraImport_1= ruleViatraImport ) ; | ||
463 | public final EObject ruleImport() throws RecognitionException { | ||
464 | EObject current = null; | ||
465 | |||
466 | EObject this_EPackageImport_0 = null; | ||
467 | |||
468 | EObject this_ViatraImport_1 = null; | ||
469 | |||
470 | |||
471 | |||
472 | enterRule(); | ||
473 | |||
474 | try { | ||
475 | // InternalApplicationConfiguration.g:184:2: ( (this_EPackageImport_0= ruleEPackageImport | this_ViatraImport_1= ruleViatraImport ) ) | ||
476 | // InternalApplicationConfiguration.g:185:2: (this_EPackageImport_0= ruleEPackageImport | this_ViatraImport_1= ruleViatraImport ) | ||
477 | { | ||
478 | // InternalApplicationConfiguration.g:185:2: (this_EPackageImport_0= ruleEPackageImport | this_ViatraImport_1= ruleViatraImport ) | ||
479 | int alt3=2; | ||
480 | int LA3_0 = input.LA(1); | ||
481 | |||
482 | if ( (LA3_0==11) ) { | ||
483 | int LA3_1 = input.LA(2); | ||
484 | |||
485 | if ( (LA3_1==12) ) { | ||
486 | alt3=1; | ||
487 | } | ||
488 | else if ( (LA3_1==13) ) { | ||
489 | alt3=2; | ||
490 | } | ||
491 | else { | ||
492 | NoViableAltException nvae = | ||
493 | new NoViableAltException("", 3, 1, input); | ||
494 | |||
495 | throw nvae; | ||
496 | } | ||
497 | } | ||
498 | else { | ||
499 | NoViableAltException nvae = | ||
500 | new NoViableAltException("", 3, 0, input); | ||
501 | |||
502 | throw nvae; | ||
503 | } | ||
504 | switch (alt3) { | ||
505 | case 1 : | ||
506 | // InternalApplicationConfiguration.g:186:3: this_EPackageImport_0= ruleEPackageImport | ||
507 | { | ||
508 | |||
509 | newCompositeNode(grammarAccess.getImportAccess().getEPackageImportParserRuleCall_0()); | ||
510 | |||
511 | pushFollow(FOLLOW_2); | ||
512 | this_EPackageImport_0=ruleEPackageImport(); | ||
513 | |||
514 | state._fsp--; | ||
515 | |||
516 | |||
517 | current = this_EPackageImport_0; | ||
518 | afterParserOrEnumRuleCall(); | ||
519 | |||
520 | |||
521 | } | ||
522 | break; | ||
523 | case 2 : | ||
524 | // InternalApplicationConfiguration.g:195:3: this_ViatraImport_1= ruleViatraImport | ||
525 | { | ||
526 | |||
527 | newCompositeNode(grammarAccess.getImportAccess().getViatraImportParserRuleCall_1()); | ||
528 | |||
529 | pushFollow(FOLLOW_2); | ||
530 | this_ViatraImport_1=ruleViatraImport(); | ||
531 | |||
532 | state._fsp--; | ||
533 | |||
534 | |||
535 | current = this_ViatraImport_1; | ||
536 | afterParserOrEnumRuleCall(); | ||
537 | |||
538 | |||
539 | } | ||
540 | break; | ||
541 | |||
542 | } | ||
543 | |||
544 | |||
545 | } | ||
546 | |||
547 | |||
548 | leaveRule(); | ||
549 | |||
550 | } | ||
551 | |||
552 | catch (RecognitionException re) { | ||
553 | recover(input,re); | ||
554 | appendSkippedTokens(); | ||
555 | } | ||
556 | finally { | ||
557 | } | ||
558 | return current; | ||
559 | } | ||
560 | // $ANTLR end "ruleImport" | ||
561 | |||
562 | |||
563 | // $ANTLR start "entryRuleEPackageImport" | ||
564 | // InternalApplicationConfiguration.g:207:1: entryRuleEPackageImport returns [EObject current=null] : iv_ruleEPackageImport= ruleEPackageImport EOF ; | ||
565 | public final EObject entryRuleEPackageImport() throws RecognitionException { | ||
566 | EObject current = null; | ||
567 | |||
568 | EObject iv_ruleEPackageImport = null; | ||
569 | |||
570 | |||
571 | try { | ||
572 | // InternalApplicationConfiguration.g:207:55: (iv_ruleEPackageImport= ruleEPackageImport EOF ) | ||
573 | // InternalApplicationConfiguration.g:208:2: iv_ruleEPackageImport= ruleEPackageImport EOF | ||
574 | { | ||
575 | newCompositeNode(grammarAccess.getEPackageImportRule()); | ||
576 | pushFollow(FOLLOW_1); | ||
577 | iv_ruleEPackageImport=ruleEPackageImport(); | ||
578 | |||
579 | state._fsp--; | ||
580 | |||
581 | current =iv_ruleEPackageImport; | ||
582 | match(input,EOF,FOLLOW_2); | ||
583 | |||
584 | } | ||
585 | |||
586 | } | ||
587 | |||
588 | catch (RecognitionException re) { | ||
589 | recover(input,re); | ||
590 | appendSkippedTokens(); | ||
591 | } | ||
592 | finally { | ||
593 | } | ||
594 | return current; | ||
595 | } | ||
596 | // $ANTLR end "entryRuleEPackageImport" | ||
597 | |||
598 | |||
599 | // $ANTLR start "ruleEPackageImport" | ||
600 | // InternalApplicationConfiguration.g:214:1: ruleEPackageImport returns [EObject current=null] : (otherlv_0= 'import' otherlv_1= 'epackage' ( (otherlv_2= RULE_STRING ) ) ) ; | ||
601 | public final EObject ruleEPackageImport() throws RecognitionException { | ||
602 | EObject current = null; | ||
603 | |||
604 | Token otherlv_0=null; | ||
605 | Token otherlv_1=null; | ||
606 | Token otherlv_2=null; | ||
607 | |||
608 | |||
609 | enterRule(); | ||
610 | |||
611 | try { | ||
612 | // InternalApplicationConfiguration.g:220:2: ( (otherlv_0= 'import' otherlv_1= 'epackage' ( (otherlv_2= RULE_STRING ) ) ) ) | ||
613 | // InternalApplicationConfiguration.g:221:2: (otherlv_0= 'import' otherlv_1= 'epackage' ( (otherlv_2= RULE_STRING ) ) ) | ||
614 | { | ||
615 | // InternalApplicationConfiguration.g:221:2: (otherlv_0= 'import' otherlv_1= 'epackage' ( (otherlv_2= RULE_STRING ) ) ) | ||
616 | // InternalApplicationConfiguration.g:222:3: otherlv_0= 'import' otherlv_1= 'epackage' ( (otherlv_2= RULE_STRING ) ) | ||
617 | { | ||
618 | otherlv_0=(Token)match(input,11,FOLLOW_5); | ||
619 | |||
620 | newLeafNode(otherlv_0, grammarAccess.getEPackageImportAccess().getImportKeyword_0()); | ||
621 | |||
622 | otherlv_1=(Token)match(input,12,FOLLOW_6); | ||
623 | |||
624 | newLeafNode(otherlv_1, grammarAccess.getEPackageImportAccess().getEpackageKeyword_1()); | ||
625 | |||
626 | // InternalApplicationConfiguration.g:230:3: ( (otherlv_2= RULE_STRING ) ) | ||
627 | // InternalApplicationConfiguration.g:231:4: (otherlv_2= RULE_STRING ) | ||
628 | { | ||
629 | // InternalApplicationConfiguration.g:231:4: (otherlv_2= RULE_STRING ) | ||
630 | // InternalApplicationConfiguration.g:232:5: otherlv_2= RULE_STRING | ||
631 | { | ||
632 | |||
633 | if (current==null) { | ||
634 | current = createModelElement(grammarAccess.getEPackageImportRule()); | ||
635 | } | ||
636 | |||
637 | otherlv_2=(Token)match(input,RULE_STRING,FOLLOW_2); | ||
638 | |||
639 | newLeafNode(otherlv_2, grammarAccess.getEPackageImportAccess().getImportedPackageEPackageCrossReference_2_0()); | ||
640 | |||
641 | |||
642 | } | ||
643 | |||
644 | |||
645 | } | ||
646 | |||
647 | |||
648 | } | ||
649 | |||
650 | |||
651 | } | ||
652 | |||
653 | |||
654 | leaveRule(); | ||
655 | |||
656 | } | ||
657 | |||
658 | catch (RecognitionException re) { | ||
659 | recover(input,re); | ||
660 | appendSkippedTokens(); | ||
661 | } | ||
662 | finally { | ||
663 | } | ||
664 | return current; | ||
665 | } | ||
666 | // $ANTLR end "ruleEPackageImport" | ||
667 | |||
668 | |||
669 | // $ANTLR start "entryRuleViatraImport" | ||
670 | // InternalApplicationConfiguration.g:247:1: entryRuleViatraImport returns [EObject current=null] : iv_ruleViatraImport= ruleViatraImport EOF ; | ||
671 | public final EObject entryRuleViatraImport() throws RecognitionException { | ||
672 | EObject current = null; | ||
673 | |||
674 | EObject iv_ruleViatraImport = null; | ||
675 | |||
676 | |||
677 | try { | ||
678 | // InternalApplicationConfiguration.g:247:53: (iv_ruleViatraImport= ruleViatraImport EOF ) | ||
679 | // InternalApplicationConfiguration.g:248:2: iv_ruleViatraImport= ruleViatraImport EOF | ||
680 | { | ||
681 | newCompositeNode(grammarAccess.getViatraImportRule()); | ||
682 | pushFollow(FOLLOW_1); | ||
683 | iv_ruleViatraImport=ruleViatraImport(); | ||
684 | |||
685 | state._fsp--; | ||
686 | |||
687 | current =iv_ruleViatraImport; | ||
688 | match(input,EOF,FOLLOW_2); | ||
689 | |||
690 | } | ||
691 | |||
692 | } | ||
693 | |||
694 | catch (RecognitionException re) { | ||
695 | recover(input,re); | ||
696 | appendSkippedTokens(); | ||
697 | } | ||
698 | finally { | ||
699 | } | ||
700 | return current; | ||
701 | } | ||
702 | // $ANTLR end "entryRuleViatraImport" | ||
703 | |||
704 | |||
705 | // $ANTLR start "ruleViatraImport" | ||
706 | // InternalApplicationConfiguration.g:254:1: ruleViatraImport returns [EObject current=null] : (otherlv_0= 'import' otherlv_1= 'viatra' ( (otherlv_2= RULE_STRING ) ) ) ; | ||
707 | public final EObject ruleViatraImport() throws RecognitionException { | ||
708 | EObject current = null; | ||
709 | |||
710 | Token otherlv_0=null; | ||
711 | Token otherlv_1=null; | ||
712 | Token otherlv_2=null; | ||
713 | |||
714 | |||
715 | enterRule(); | ||
716 | |||
717 | try { | ||
718 | // InternalApplicationConfiguration.g:260:2: ( (otherlv_0= 'import' otherlv_1= 'viatra' ( (otherlv_2= RULE_STRING ) ) ) ) | ||
719 | // InternalApplicationConfiguration.g:261:2: (otherlv_0= 'import' otherlv_1= 'viatra' ( (otherlv_2= RULE_STRING ) ) ) | ||
720 | { | ||
721 | // InternalApplicationConfiguration.g:261:2: (otherlv_0= 'import' otherlv_1= 'viatra' ( (otherlv_2= RULE_STRING ) ) ) | ||
722 | // InternalApplicationConfiguration.g:262:3: otherlv_0= 'import' otherlv_1= 'viatra' ( (otherlv_2= RULE_STRING ) ) | ||
723 | { | ||
724 | otherlv_0=(Token)match(input,11,FOLLOW_7); | ||
725 | |||
726 | newLeafNode(otherlv_0, grammarAccess.getViatraImportAccess().getImportKeyword_0()); | ||
727 | |||
728 | otherlv_1=(Token)match(input,13,FOLLOW_6); | ||
729 | |||
730 | newLeafNode(otherlv_1, grammarAccess.getViatraImportAccess().getViatraKeyword_1()); | ||
731 | |||
732 | // InternalApplicationConfiguration.g:270:3: ( (otherlv_2= RULE_STRING ) ) | ||
733 | // InternalApplicationConfiguration.g:271:4: (otherlv_2= RULE_STRING ) | ||
734 | { | ||
735 | // InternalApplicationConfiguration.g:271:4: (otherlv_2= RULE_STRING ) | ||
736 | // InternalApplicationConfiguration.g:272:5: otherlv_2= RULE_STRING | ||
737 | { | ||
738 | |||
739 | if (current==null) { | ||
740 | current = createModelElement(grammarAccess.getViatraImportRule()); | ||
741 | } | ||
742 | |||
743 | otherlv_2=(Token)match(input,RULE_STRING,FOLLOW_2); | ||
744 | |||
745 | newLeafNode(otherlv_2, grammarAccess.getViatraImportAccess().getImportedViatraPatternModelCrossReference_2_0()); | ||
746 | |||
747 | |||
748 | } | ||
749 | |||
750 | |||
751 | } | ||
752 | |||
753 | |||
754 | } | ||
755 | |||
756 | |||
757 | } | ||
758 | |||
759 | |||
760 | leaveRule(); | ||
761 | |||
762 | } | ||
763 | |||
764 | catch (RecognitionException re) { | ||
765 | recover(input,re); | ||
766 | appendSkippedTokens(); | ||
767 | } | ||
768 | finally { | ||
769 | } | ||
770 | return current; | ||
771 | } | ||
772 | // $ANTLR end "ruleViatraImport" | ||
773 | |||
774 | |||
775 | // $ANTLR start "entryRuleMetamodelSpecification" | ||
776 | // InternalApplicationConfiguration.g:287:1: entryRuleMetamodelSpecification returns [EObject current=null] : iv_ruleMetamodelSpecification= ruleMetamodelSpecification EOF ; | ||
777 | public final EObject entryRuleMetamodelSpecification() throws RecognitionException { | ||
778 | EObject current = null; | ||
779 | |||
780 | EObject iv_ruleMetamodelSpecification = null; | ||
781 | |||
782 | |||
783 | try { | ||
784 | // InternalApplicationConfiguration.g:287:63: (iv_ruleMetamodelSpecification= ruleMetamodelSpecification EOF ) | ||
785 | // InternalApplicationConfiguration.g:288:2: iv_ruleMetamodelSpecification= ruleMetamodelSpecification EOF | ||
786 | { | ||
787 | newCompositeNode(grammarAccess.getMetamodelSpecificationRule()); | ||
788 | pushFollow(FOLLOW_1); | ||
789 | iv_ruleMetamodelSpecification=ruleMetamodelSpecification(); | ||
790 | |||
791 | state._fsp--; | ||
792 | |||
793 | current =iv_ruleMetamodelSpecification; | ||
794 | match(input,EOF,FOLLOW_2); | ||
795 | |||
796 | } | ||
797 | |||
798 | } | ||
799 | |||
800 | catch (RecognitionException re) { | ||
801 | recover(input,re); | ||
802 | appendSkippedTokens(); | ||
803 | } | ||
804 | finally { | ||
805 | } | ||
806 | return current; | ||
807 | } | ||
808 | // $ANTLR end "entryRuleMetamodelSpecification" | ||
809 | |||
810 | |||
811 | // $ANTLR start "ruleMetamodelSpecification" | ||
812 | // InternalApplicationConfiguration.g:294:1: ruleMetamodelSpecification returns [EObject current=null] : (otherlv_0= '{' ( (lv_entries_1_0= ruleMetamodelEntry ) ) (otherlv_2= ',' ( (lv_entries_3_0= ruleMetamodelEntry ) ) )* otherlv_4= '}' ) ; | ||
813 | public final EObject ruleMetamodelSpecification() throws RecognitionException { | ||
814 | EObject current = null; | ||
815 | |||
816 | Token otherlv_0=null; | ||
817 | Token otherlv_2=null; | ||
818 | Token otherlv_4=null; | ||
819 | EObject lv_entries_1_0 = null; | ||
820 | |||
821 | EObject lv_entries_3_0 = null; | ||
822 | |||
823 | |||
824 | |||
825 | enterRule(); | ||
826 | |||
827 | try { | ||
828 | // InternalApplicationConfiguration.g:300:2: ( (otherlv_0= '{' ( (lv_entries_1_0= ruleMetamodelEntry ) ) (otherlv_2= ',' ( (lv_entries_3_0= ruleMetamodelEntry ) ) )* otherlv_4= '}' ) ) | ||
829 | // InternalApplicationConfiguration.g:301:2: (otherlv_0= '{' ( (lv_entries_1_0= ruleMetamodelEntry ) ) (otherlv_2= ',' ( (lv_entries_3_0= ruleMetamodelEntry ) ) )* otherlv_4= '}' ) | ||
830 | { | ||
831 | // InternalApplicationConfiguration.g:301:2: (otherlv_0= '{' ( (lv_entries_1_0= ruleMetamodelEntry ) ) (otherlv_2= ',' ( (lv_entries_3_0= ruleMetamodelEntry ) ) )* otherlv_4= '}' ) | ||
832 | // InternalApplicationConfiguration.g:302:3: otherlv_0= '{' ( (lv_entries_1_0= ruleMetamodelEntry ) ) (otherlv_2= ',' ( (lv_entries_3_0= ruleMetamodelEntry ) ) )* otherlv_4= '}' | ||
833 | { | ||
834 | otherlv_0=(Token)match(input,14,FOLLOW_8); | ||
835 | |||
836 | newLeafNode(otherlv_0, grammarAccess.getMetamodelSpecificationAccess().getLeftCurlyBracketKeyword_0()); | ||
837 | |||
838 | // InternalApplicationConfiguration.g:306:3: ( (lv_entries_1_0= ruleMetamodelEntry ) ) | ||
839 | // InternalApplicationConfiguration.g:307:4: (lv_entries_1_0= ruleMetamodelEntry ) | ||
840 | { | ||
841 | // InternalApplicationConfiguration.g:307:4: (lv_entries_1_0= ruleMetamodelEntry ) | ||
842 | // InternalApplicationConfiguration.g:308:5: lv_entries_1_0= ruleMetamodelEntry | ||
843 | { | ||
844 | |||
845 | newCompositeNode(grammarAccess.getMetamodelSpecificationAccess().getEntriesMetamodelEntryParserRuleCall_1_0()); | ||
846 | |||
847 | pushFollow(FOLLOW_9); | ||
848 | lv_entries_1_0=ruleMetamodelEntry(); | ||
849 | |||
850 | state._fsp--; | ||
851 | |||
852 | |||
853 | if (current==null) { | ||
854 | current = createModelElementForParent(grammarAccess.getMetamodelSpecificationRule()); | ||
855 | } | ||
856 | add( | ||
857 | current, | ||
858 | "entries", | ||
859 | lv_entries_1_0, | ||
860 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelEntry"); | ||
861 | afterParserOrEnumRuleCall(); | ||
862 | |||
863 | |||
864 | } | ||
865 | |||
866 | |||
867 | } | ||
868 | |||
869 | // InternalApplicationConfiguration.g:325:3: (otherlv_2= ',' ( (lv_entries_3_0= ruleMetamodelEntry ) ) )* | ||
870 | loop4: | ||
871 | do { | ||
872 | int alt4=2; | ||
873 | int LA4_0 = input.LA(1); | ||
874 | |||
875 | if ( (LA4_0==15) ) { | ||
876 | alt4=1; | ||
877 | } | ||
878 | |||
879 | |||
880 | switch (alt4) { | ||
881 | case 1 : | ||
882 | // InternalApplicationConfiguration.g:326:4: otherlv_2= ',' ( (lv_entries_3_0= ruleMetamodelEntry ) ) | ||
883 | { | ||
884 | otherlv_2=(Token)match(input,15,FOLLOW_8); | ||
885 | |||
886 | newLeafNode(otherlv_2, grammarAccess.getMetamodelSpecificationAccess().getCommaKeyword_2_0()); | ||
887 | |||
888 | // InternalApplicationConfiguration.g:330:4: ( (lv_entries_3_0= ruleMetamodelEntry ) ) | ||
889 | // InternalApplicationConfiguration.g:331:5: (lv_entries_3_0= ruleMetamodelEntry ) | ||
890 | { | ||
891 | // InternalApplicationConfiguration.g:331:5: (lv_entries_3_0= ruleMetamodelEntry ) | ||
892 | // InternalApplicationConfiguration.g:332:6: lv_entries_3_0= ruleMetamodelEntry | ||
893 | { | ||
894 | |||
895 | newCompositeNode(grammarAccess.getMetamodelSpecificationAccess().getEntriesMetamodelEntryParserRuleCall_2_1_0()); | ||
896 | |||
897 | pushFollow(FOLLOW_9); | ||
898 | lv_entries_3_0=ruleMetamodelEntry(); | ||
899 | |||
900 | state._fsp--; | ||
901 | |||
902 | |||
903 | if (current==null) { | ||
904 | current = createModelElementForParent(grammarAccess.getMetamodelSpecificationRule()); | ||
905 | } | ||
906 | add( | ||
907 | current, | ||
908 | "entries", | ||
909 | lv_entries_3_0, | ||
910 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelEntry"); | ||
911 | afterParserOrEnumRuleCall(); | ||
912 | |||
913 | |||
914 | } | ||
915 | |||
916 | |||
917 | } | ||
918 | |||
919 | |||
920 | } | ||
921 | break; | ||
922 | |||
923 | default : | ||
924 | break loop4; | ||
925 | } | ||
926 | } while (true); | ||
927 | |||
928 | otherlv_4=(Token)match(input,16,FOLLOW_2); | ||
929 | |||
930 | newLeafNode(otherlv_4, grammarAccess.getMetamodelSpecificationAccess().getRightCurlyBracketKeyword_3()); | ||
931 | |||
932 | |||
933 | } | ||
934 | |||
935 | |||
936 | } | ||
937 | |||
938 | |||
939 | leaveRule(); | ||
940 | |||
941 | } | ||
942 | |||
943 | catch (RecognitionException re) { | ||
944 | recover(input,re); | ||
945 | appendSkippedTokens(); | ||
946 | } | ||
947 | finally { | ||
948 | } | ||
949 | return current; | ||
950 | } | ||
951 | // $ANTLR end "ruleMetamodelSpecification" | ||
952 | |||
953 | |||
954 | // $ANTLR start "entryRuleMetamodelEntry" | ||
955 | // InternalApplicationConfiguration.g:358:1: entryRuleMetamodelEntry returns [EObject current=null] : iv_ruleMetamodelEntry= ruleMetamodelEntry EOF ; | ||
956 | public final EObject entryRuleMetamodelEntry() throws RecognitionException { | ||
957 | EObject current = null; | ||
958 | |||
959 | EObject iv_ruleMetamodelEntry = null; | ||
960 | |||
961 | |||
962 | try { | ||
963 | // InternalApplicationConfiguration.g:358:55: (iv_ruleMetamodelEntry= ruleMetamodelEntry EOF ) | ||
964 | // InternalApplicationConfiguration.g:359:2: iv_ruleMetamodelEntry= ruleMetamodelEntry EOF | ||
965 | { | ||
966 | newCompositeNode(grammarAccess.getMetamodelEntryRule()); | ||
967 | pushFollow(FOLLOW_1); | ||
968 | iv_ruleMetamodelEntry=ruleMetamodelEntry(); | ||
969 | |||
970 | state._fsp--; | ||
971 | |||
972 | current =iv_ruleMetamodelEntry; | ||
973 | match(input,EOF,FOLLOW_2); | ||
974 | |||
975 | } | ||
976 | |||
977 | } | ||
978 | |||
979 | catch (RecognitionException re) { | ||
980 | recover(input,re); | ||
981 | appendSkippedTokens(); | ||
982 | } | ||
983 | finally { | ||
984 | } | ||
985 | return current; | ||
986 | } | ||
987 | // $ANTLR end "entryRuleMetamodelEntry" | ||
988 | |||
989 | |||
990 | // $ANTLR start "ruleMetamodelEntry" | ||
991 | // InternalApplicationConfiguration.g:365:1: ruleMetamodelEntry returns [EObject current=null] : (this_MetamodelElement_0= ruleMetamodelElement | this_AllPackageEntry_1= ruleAllPackageEntry ) ; | ||
992 | public final EObject ruleMetamodelEntry() throws RecognitionException { | ||
993 | EObject current = null; | ||
994 | |||
995 | EObject this_MetamodelElement_0 = null; | ||
996 | |||
997 | EObject this_AllPackageEntry_1 = null; | ||
998 | |||
999 | |||
1000 | |||
1001 | enterRule(); | ||
1002 | |||
1003 | try { | ||
1004 | // InternalApplicationConfiguration.g:371:2: ( (this_MetamodelElement_0= ruleMetamodelElement | this_AllPackageEntry_1= ruleAllPackageEntry ) ) | ||
1005 | // InternalApplicationConfiguration.g:372:2: (this_MetamodelElement_0= ruleMetamodelElement | this_AllPackageEntry_1= ruleAllPackageEntry ) | ||
1006 | { | ||
1007 | // InternalApplicationConfiguration.g:372:2: (this_MetamodelElement_0= ruleMetamodelElement | this_AllPackageEntry_1= ruleAllPackageEntry ) | ||
1008 | int alt5=2; | ||
1009 | int LA5_0 = input.LA(1); | ||
1010 | |||
1011 | if ( (LA5_0==RULE_ID) ) { | ||
1012 | alt5=1; | ||
1013 | } | ||
1014 | else if ( (LA5_0==17) ) { | ||
1015 | alt5=2; | ||
1016 | } | ||
1017 | else { | ||
1018 | NoViableAltException nvae = | ||
1019 | new NoViableAltException("", 5, 0, input); | ||
1020 | |||
1021 | throw nvae; | ||
1022 | } | ||
1023 | switch (alt5) { | ||
1024 | case 1 : | ||
1025 | // InternalApplicationConfiguration.g:373:3: this_MetamodelElement_0= ruleMetamodelElement | ||
1026 | { | ||
1027 | |||
1028 | newCompositeNode(grammarAccess.getMetamodelEntryAccess().getMetamodelElementParserRuleCall_0()); | ||
1029 | |||
1030 | pushFollow(FOLLOW_2); | ||
1031 | this_MetamodelElement_0=ruleMetamodelElement(); | ||
1032 | |||
1033 | state._fsp--; | ||
1034 | |||
1035 | |||
1036 | current = this_MetamodelElement_0; | ||
1037 | afterParserOrEnumRuleCall(); | ||
1038 | |||
1039 | |||
1040 | } | ||
1041 | break; | ||
1042 | case 2 : | ||
1043 | // InternalApplicationConfiguration.g:382:3: this_AllPackageEntry_1= ruleAllPackageEntry | ||
1044 | { | ||
1045 | |||
1046 | newCompositeNode(grammarAccess.getMetamodelEntryAccess().getAllPackageEntryParserRuleCall_1()); | ||
1047 | |||
1048 | pushFollow(FOLLOW_2); | ||
1049 | this_AllPackageEntry_1=ruleAllPackageEntry(); | ||
1050 | |||
1051 | state._fsp--; | ||
1052 | |||
1053 | |||
1054 | current = this_AllPackageEntry_1; | ||
1055 | afterParserOrEnumRuleCall(); | ||
1056 | |||
1057 | |||
1058 | } | ||
1059 | break; | ||
1060 | |||
1061 | } | ||
1062 | |||
1063 | |||
1064 | } | ||
1065 | |||
1066 | |||
1067 | leaveRule(); | ||
1068 | |||
1069 | } | ||
1070 | |||
1071 | catch (RecognitionException re) { | ||
1072 | recover(input,re); | ||
1073 | appendSkippedTokens(); | ||
1074 | } | ||
1075 | finally { | ||
1076 | } | ||
1077 | return current; | ||
1078 | } | ||
1079 | // $ANTLR end "ruleMetamodelEntry" | ||
1080 | |||
1081 | |||
1082 | // $ANTLR start "entryRuleAllPackageEntry" | ||
1083 | // InternalApplicationConfiguration.g:394:1: entryRuleAllPackageEntry returns [EObject current=null] : iv_ruleAllPackageEntry= ruleAllPackageEntry EOF ; | ||
1084 | public final EObject entryRuleAllPackageEntry() throws RecognitionException { | ||
1085 | EObject current = null; | ||
1086 | |||
1087 | EObject iv_ruleAllPackageEntry = null; | ||
1088 | |||
1089 | |||
1090 | try { | ||
1091 | // InternalApplicationConfiguration.g:394:56: (iv_ruleAllPackageEntry= ruleAllPackageEntry EOF ) | ||
1092 | // InternalApplicationConfiguration.g:395:2: iv_ruleAllPackageEntry= ruleAllPackageEntry EOF | ||
1093 | { | ||
1094 | newCompositeNode(grammarAccess.getAllPackageEntryRule()); | ||
1095 | pushFollow(FOLLOW_1); | ||
1096 | iv_ruleAllPackageEntry=ruleAllPackageEntry(); | ||
1097 | |||
1098 | state._fsp--; | ||
1099 | |||
1100 | current =iv_ruleAllPackageEntry; | ||
1101 | match(input,EOF,FOLLOW_2); | ||
1102 | |||
1103 | } | ||
1104 | |||
1105 | } | ||
1106 | |||
1107 | catch (RecognitionException re) { | ||
1108 | recover(input,re); | ||
1109 | appendSkippedTokens(); | ||
1110 | } | ||
1111 | finally { | ||
1112 | } | ||
1113 | return current; | ||
1114 | } | ||
1115 | // $ANTLR end "entryRuleAllPackageEntry" | ||
1116 | |||
1117 | |||
1118 | // $ANTLR start "ruleAllPackageEntry" | ||
1119 | // InternalApplicationConfiguration.g:401:1: ruleAllPackageEntry returns [EObject current=null] : (otherlv_0= 'package' ( (otherlv_1= RULE_ID ) ) (otherlv_2= 'excluding' otherlv_3= '{' ( (lv_exclusion_4_0= ruleMetamodelElement ) ) (otherlv_5= ',' ( (lv_exclusion_6_0= ruleMetamodelElement ) ) )* otherlv_7= '}' )? ) ; | ||
1120 | public final EObject ruleAllPackageEntry() throws RecognitionException { | ||
1121 | EObject current = null; | ||
1122 | |||
1123 | Token otherlv_0=null; | ||
1124 | Token otherlv_1=null; | ||
1125 | Token otherlv_2=null; | ||
1126 | Token otherlv_3=null; | ||
1127 | Token otherlv_5=null; | ||
1128 | Token otherlv_7=null; | ||
1129 | EObject lv_exclusion_4_0 = null; | ||
1130 | |||
1131 | EObject lv_exclusion_6_0 = null; | ||
1132 | |||
1133 | |||
1134 | |||
1135 | enterRule(); | ||
1136 | |||
1137 | try { | ||
1138 | // InternalApplicationConfiguration.g:407:2: ( (otherlv_0= 'package' ( (otherlv_1= RULE_ID ) ) (otherlv_2= 'excluding' otherlv_3= '{' ( (lv_exclusion_4_0= ruleMetamodelElement ) ) (otherlv_5= ',' ( (lv_exclusion_6_0= ruleMetamodelElement ) ) )* otherlv_7= '}' )? ) ) | ||
1139 | // InternalApplicationConfiguration.g:408:2: (otherlv_0= 'package' ( (otherlv_1= RULE_ID ) ) (otherlv_2= 'excluding' otherlv_3= '{' ( (lv_exclusion_4_0= ruleMetamodelElement ) ) (otherlv_5= ',' ( (lv_exclusion_6_0= ruleMetamodelElement ) ) )* otherlv_7= '}' )? ) | ||
1140 | { | ||
1141 | // InternalApplicationConfiguration.g:408:2: (otherlv_0= 'package' ( (otherlv_1= RULE_ID ) ) (otherlv_2= 'excluding' otherlv_3= '{' ( (lv_exclusion_4_0= ruleMetamodelElement ) ) (otherlv_5= ',' ( (lv_exclusion_6_0= ruleMetamodelElement ) ) )* otherlv_7= '}' )? ) | ||
1142 | // InternalApplicationConfiguration.g:409:3: otherlv_0= 'package' ( (otherlv_1= RULE_ID ) ) (otherlv_2= 'excluding' otherlv_3= '{' ( (lv_exclusion_4_0= ruleMetamodelElement ) ) (otherlv_5= ',' ( (lv_exclusion_6_0= ruleMetamodelElement ) ) )* otherlv_7= '}' )? | ||
1143 | { | ||
1144 | otherlv_0=(Token)match(input,17,FOLLOW_10); | ||
1145 | |||
1146 | newLeafNode(otherlv_0, grammarAccess.getAllPackageEntryAccess().getPackageKeyword_0()); | ||
1147 | |||
1148 | // InternalApplicationConfiguration.g:413:3: ( (otherlv_1= RULE_ID ) ) | ||
1149 | // InternalApplicationConfiguration.g:414:4: (otherlv_1= RULE_ID ) | ||
1150 | { | ||
1151 | // InternalApplicationConfiguration.g:414:4: (otherlv_1= RULE_ID ) | ||
1152 | // InternalApplicationConfiguration.g:415:5: otherlv_1= RULE_ID | ||
1153 | { | ||
1154 | |||
1155 | if (current==null) { | ||
1156 | current = createModelElement(grammarAccess.getAllPackageEntryRule()); | ||
1157 | } | ||
1158 | |||
1159 | otherlv_1=(Token)match(input,RULE_ID,FOLLOW_11); | ||
1160 | |||
1161 | newLeafNode(otherlv_1, grammarAccess.getAllPackageEntryAccess().getPackageEPackageCrossReference_1_0()); | ||
1162 | |||
1163 | |||
1164 | } | ||
1165 | |||
1166 | |||
1167 | } | ||
1168 | |||
1169 | // InternalApplicationConfiguration.g:426:3: (otherlv_2= 'excluding' otherlv_3= '{' ( (lv_exclusion_4_0= ruleMetamodelElement ) ) (otherlv_5= ',' ( (lv_exclusion_6_0= ruleMetamodelElement ) ) )* otherlv_7= '}' )? | ||
1170 | int alt7=2; | ||
1171 | int LA7_0 = input.LA(1); | ||
1172 | |||
1173 | if ( (LA7_0==18) ) { | ||
1174 | alt7=1; | ||
1175 | } | ||
1176 | switch (alt7) { | ||
1177 | case 1 : | ||
1178 | // InternalApplicationConfiguration.g:427:4: otherlv_2= 'excluding' otherlv_3= '{' ( (lv_exclusion_4_0= ruleMetamodelElement ) ) (otherlv_5= ',' ( (lv_exclusion_6_0= ruleMetamodelElement ) ) )* otherlv_7= '}' | ||
1179 | { | ||
1180 | otherlv_2=(Token)match(input,18,FOLLOW_12); | ||
1181 | |||
1182 | newLeafNode(otherlv_2, grammarAccess.getAllPackageEntryAccess().getExcludingKeyword_2_0()); | ||
1183 | |||
1184 | otherlv_3=(Token)match(input,14,FOLLOW_10); | ||
1185 | |||
1186 | newLeafNode(otherlv_3, grammarAccess.getAllPackageEntryAccess().getLeftCurlyBracketKeyword_2_1()); | ||
1187 | |||
1188 | // InternalApplicationConfiguration.g:435:4: ( (lv_exclusion_4_0= ruleMetamodelElement ) ) | ||
1189 | // InternalApplicationConfiguration.g:436:5: (lv_exclusion_4_0= ruleMetamodelElement ) | ||
1190 | { | ||
1191 | // InternalApplicationConfiguration.g:436:5: (lv_exclusion_4_0= ruleMetamodelElement ) | ||
1192 | // InternalApplicationConfiguration.g:437:6: lv_exclusion_4_0= ruleMetamodelElement | ||
1193 | { | ||
1194 | |||
1195 | newCompositeNode(grammarAccess.getAllPackageEntryAccess().getExclusionMetamodelElementParserRuleCall_2_2_0()); | ||
1196 | |||
1197 | pushFollow(FOLLOW_9); | ||
1198 | lv_exclusion_4_0=ruleMetamodelElement(); | ||
1199 | |||
1200 | state._fsp--; | ||
1201 | |||
1202 | |||
1203 | if (current==null) { | ||
1204 | current = createModelElementForParent(grammarAccess.getAllPackageEntryRule()); | ||
1205 | } | ||
1206 | add( | ||
1207 | current, | ||
1208 | "exclusion", | ||
1209 | lv_exclusion_4_0, | ||
1210 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelElement"); | ||
1211 | afterParserOrEnumRuleCall(); | ||
1212 | |||
1213 | |||
1214 | } | ||
1215 | |||
1216 | |||
1217 | } | ||
1218 | |||
1219 | // InternalApplicationConfiguration.g:454:4: (otherlv_5= ',' ( (lv_exclusion_6_0= ruleMetamodelElement ) ) )* | ||
1220 | loop6: | ||
1221 | do { | ||
1222 | int alt6=2; | ||
1223 | int LA6_0 = input.LA(1); | ||
1224 | |||
1225 | if ( (LA6_0==15) ) { | ||
1226 | alt6=1; | ||
1227 | } | ||
1228 | |||
1229 | |||
1230 | switch (alt6) { | ||
1231 | case 1 : | ||
1232 | // InternalApplicationConfiguration.g:455:5: otherlv_5= ',' ( (lv_exclusion_6_0= ruleMetamodelElement ) ) | ||
1233 | { | ||
1234 | otherlv_5=(Token)match(input,15,FOLLOW_10); | ||
1235 | |||
1236 | newLeafNode(otherlv_5, grammarAccess.getAllPackageEntryAccess().getCommaKeyword_2_3_0()); | ||
1237 | |||
1238 | // InternalApplicationConfiguration.g:459:5: ( (lv_exclusion_6_0= ruleMetamodelElement ) ) | ||
1239 | // InternalApplicationConfiguration.g:460:6: (lv_exclusion_6_0= ruleMetamodelElement ) | ||
1240 | { | ||
1241 | // InternalApplicationConfiguration.g:460:6: (lv_exclusion_6_0= ruleMetamodelElement ) | ||
1242 | // InternalApplicationConfiguration.g:461:7: lv_exclusion_6_0= ruleMetamodelElement | ||
1243 | { | ||
1244 | |||
1245 | newCompositeNode(grammarAccess.getAllPackageEntryAccess().getExclusionMetamodelElementParserRuleCall_2_3_1_0()); | ||
1246 | |||
1247 | pushFollow(FOLLOW_9); | ||
1248 | lv_exclusion_6_0=ruleMetamodelElement(); | ||
1249 | |||
1250 | state._fsp--; | ||
1251 | |||
1252 | |||
1253 | if (current==null) { | ||
1254 | current = createModelElementForParent(grammarAccess.getAllPackageEntryRule()); | ||
1255 | } | ||
1256 | add( | ||
1257 | current, | ||
1258 | "exclusion", | ||
1259 | lv_exclusion_6_0, | ||
1260 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelElement"); | ||
1261 | afterParserOrEnumRuleCall(); | ||
1262 | |||
1263 | |||
1264 | } | ||
1265 | |||
1266 | |||
1267 | } | ||
1268 | |||
1269 | |||
1270 | } | ||
1271 | break; | ||
1272 | |||
1273 | default : | ||
1274 | break loop6; | ||
1275 | } | ||
1276 | } while (true); | ||
1277 | |||
1278 | otherlv_7=(Token)match(input,16,FOLLOW_2); | ||
1279 | |||
1280 | newLeafNode(otherlv_7, grammarAccess.getAllPackageEntryAccess().getRightCurlyBracketKeyword_2_4()); | ||
1281 | |||
1282 | |||
1283 | } | ||
1284 | break; | ||
1285 | |||
1286 | } | ||
1287 | |||
1288 | |||
1289 | } | ||
1290 | |||
1291 | |||
1292 | } | ||
1293 | |||
1294 | |||
1295 | leaveRule(); | ||
1296 | |||
1297 | } | ||
1298 | |||
1299 | catch (RecognitionException re) { | ||
1300 | recover(input,re); | ||
1301 | appendSkippedTokens(); | ||
1302 | } | ||
1303 | finally { | ||
1304 | } | ||
1305 | return current; | ||
1306 | } | ||
1307 | // $ANTLR end "ruleAllPackageEntry" | ||
1308 | |||
1309 | |||
1310 | // $ANTLR start "entryRuleMetamodelElement" | ||
1311 | // InternalApplicationConfiguration.g:488:1: entryRuleMetamodelElement returns [EObject current=null] : iv_ruleMetamodelElement= ruleMetamodelElement EOF ; | ||
1312 | public final EObject entryRuleMetamodelElement() throws RecognitionException { | ||
1313 | EObject current = null; | ||
1314 | |||
1315 | EObject iv_ruleMetamodelElement = null; | ||
1316 | |||
1317 | |||
1318 | try { | ||
1319 | // InternalApplicationConfiguration.g:488:57: (iv_ruleMetamodelElement= ruleMetamodelElement EOF ) | ||
1320 | // InternalApplicationConfiguration.g:489:2: iv_ruleMetamodelElement= ruleMetamodelElement EOF | ||
1321 | { | ||
1322 | newCompositeNode(grammarAccess.getMetamodelElementRule()); | ||
1323 | pushFollow(FOLLOW_1); | ||
1324 | iv_ruleMetamodelElement=ruleMetamodelElement(); | ||
1325 | |||
1326 | state._fsp--; | ||
1327 | |||
1328 | current =iv_ruleMetamodelElement; | ||
1329 | match(input,EOF,FOLLOW_2); | ||
1330 | |||
1331 | } | ||
1332 | |||
1333 | } | ||
1334 | |||
1335 | catch (RecognitionException re) { | ||
1336 | recover(input,re); | ||
1337 | appendSkippedTokens(); | ||
1338 | } | ||
1339 | finally { | ||
1340 | } | ||
1341 | return current; | ||
1342 | } | ||
1343 | // $ANTLR end "entryRuleMetamodelElement" | ||
1344 | |||
1345 | |||
1346 | // $ANTLR start "ruleMetamodelElement" | ||
1347 | // InternalApplicationConfiguration.g:495:1: ruleMetamodelElement returns [EObject current=null] : ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' )? ( (otherlv_2= RULE_ID ) ) (otherlv_3= '.' ( (otherlv_4= RULE_ID ) ) )? ) ; | ||
1348 | public final EObject ruleMetamodelElement() throws RecognitionException { | ||
1349 | EObject current = null; | ||
1350 | |||
1351 | Token otherlv_0=null; | ||
1352 | Token otherlv_1=null; | ||
1353 | Token otherlv_2=null; | ||
1354 | Token otherlv_3=null; | ||
1355 | Token otherlv_4=null; | ||
1356 | |||
1357 | |||
1358 | enterRule(); | ||
1359 | |||
1360 | try { | ||
1361 | // InternalApplicationConfiguration.g:501:2: ( ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' )? ( (otherlv_2= RULE_ID ) ) (otherlv_3= '.' ( (otherlv_4= RULE_ID ) ) )? ) ) | ||
1362 | // InternalApplicationConfiguration.g:502:2: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' )? ( (otherlv_2= RULE_ID ) ) (otherlv_3= '.' ( (otherlv_4= RULE_ID ) ) )? ) | ||
1363 | { | ||
1364 | // InternalApplicationConfiguration.g:502:2: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' )? ( (otherlv_2= RULE_ID ) ) (otherlv_3= '.' ( (otherlv_4= RULE_ID ) ) )? ) | ||
1365 | // InternalApplicationConfiguration.g:503:3: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' )? ( (otherlv_2= RULE_ID ) ) (otherlv_3= '.' ( (otherlv_4= RULE_ID ) ) )? | ||
1366 | { | ||
1367 | // InternalApplicationConfiguration.g:503:3: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' )? | ||
1368 | int alt8=2; | ||
1369 | int LA8_0 = input.LA(1); | ||
1370 | |||
1371 | if ( (LA8_0==RULE_ID) ) { | ||
1372 | int LA8_1 = input.LA(2); | ||
1373 | |||
1374 | if ( (LA8_1==19) ) { | ||
1375 | alt8=1; | ||
1376 | } | ||
1377 | } | ||
1378 | switch (alt8) { | ||
1379 | case 1 : | ||
1380 | // InternalApplicationConfiguration.g:504:4: ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' | ||
1381 | { | ||
1382 | // InternalApplicationConfiguration.g:504:4: ( (otherlv_0= RULE_ID ) ) | ||
1383 | // InternalApplicationConfiguration.g:505:5: (otherlv_0= RULE_ID ) | ||
1384 | { | ||
1385 | // InternalApplicationConfiguration.g:505:5: (otherlv_0= RULE_ID ) | ||
1386 | // InternalApplicationConfiguration.g:506:6: otherlv_0= RULE_ID | ||
1387 | { | ||
1388 | |||
1389 | if (current==null) { | ||
1390 | current = createModelElement(grammarAccess.getMetamodelElementRule()); | ||
1391 | } | ||
1392 | |||
1393 | otherlv_0=(Token)match(input,RULE_ID,FOLLOW_13); | ||
1394 | |||
1395 | newLeafNode(otherlv_0, grammarAccess.getMetamodelElementAccess().getPackageEPackageCrossReference_0_0_0()); | ||
1396 | |||
1397 | |||
1398 | } | ||
1399 | |||
1400 | |||
1401 | } | ||
1402 | |||
1403 | otherlv_1=(Token)match(input,19,FOLLOW_10); | ||
1404 | |||
1405 | newLeafNode(otherlv_1, grammarAccess.getMetamodelElementAccess().getColonColonKeyword_0_1()); | ||
1406 | |||
1407 | |||
1408 | } | ||
1409 | break; | ||
1410 | |||
1411 | } | ||
1412 | |||
1413 | // InternalApplicationConfiguration.g:522:3: ( (otherlv_2= RULE_ID ) ) | ||
1414 | // InternalApplicationConfiguration.g:523:4: (otherlv_2= RULE_ID ) | ||
1415 | { | ||
1416 | // InternalApplicationConfiguration.g:523:4: (otherlv_2= RULE_ID ) | ||
1417 | // InternalApplicationConfiguration.g:524:5: otherlv_2= RULE_ID | ||
1418 | { | ||
1419 | |||
1420 | if (current==null) { | ||
1421 | current = createModelElement(grammarAccess.getMetamodelElementRule()); | ||
1422 | } | ||
1423 | |||
1424 | otherlv_2=(Token)match(input,RULE_ID,FOLLOW_14); | ||
1425 | |||
1426 | newLeafNode(otherlv_2, grammarAccess.getMetamodelElementAccess().getClassifierEClassifierCrossReference_1_0()); | ||
1427 | |||
1428 | |||
1429 | } | ||
1430 | |||
1431 | |||
1432 | } | ||
1433 | |||
1434 | // InternalApplicationConfiguration.g:535:3: (otherlv_3= '.' ( (otherlv_4= RULE_ID ) ) )? | ||
1435 | int alt9=2; | ||
1436 | int LA9_0 = input.LA(1); | ||
1437 | |||
1438 | if ( (LA9_0==20) ) { | ||
1439 | alt9=1; | ||
1440 | } | ||
1441 | switch (alt9) { | ||
1442 | case 1 : | ||
1443 | // InternalApplicationConfiguration.g:536:4: otherlv_3= '.' ( (otherlv_4= RULE_ID ) ) | ||
1444 | { | ||
1445 | otherlv_3=(Token)match(input,20,FOLLOW_10); | ||
1446 | |||
1447 | newLeafNode(otherlv_3, grammarAccess.getMetamodelElementAccess().getFullStopKeyword_2_0()); | ||
1448 | |||
1449 | // InternalApplicationConfiguration.g:540:4: ( (otherlv_4= RULE_ID ) ) | ||
1450 | // InternalApplicationConfiguration.g:541:5: (otherlv_4= RULE_ID ) | ||
1451 | { | ||
1452 | // InternalApplicationConfiguration.g:541:5: (otherlv_4= RULE_ID ) | ||
1453 | // InternalApplicationConfiguration.g:542:6: otherlv_4= RULE_ID | ||
1454 | { | ||
1455 | |||
1456 | if (current==null) { | ||
1457 | current = createModelElement(grammarAccess.getMetamodelElementRule()); | ||
1458 | } | ||
1459 | |||
1460 | otherlv_4=(Token)match(input,RULE_ID,FOLLOW_2); | ||
1461 | |||
1462 | newLeafNode(otherlv_4, grammarAccess.getMetamodelElementAccess().getFeatureENamedElementCrossReference_2_1_0()); | ||
1463 | |||
1464 | |||
1465 | } | ||
1466 | |||
1467 | |||
1468 | } | ||
1469 | |||
1470 | |||
1471 | } | ||
1472 | break; | ||
1473 | |||
1474 | } | ||
1475 | |||
1476 | |||
1477 | } | ||
1478 | |||
1479 | |||
1480 | } | ||
1481 | |||
1482 | |||
1483 | leaveRule(); | ||
1484 | |||
1485 | } | ||
1486 | |||
1487 | catch (RecognitionException re) { | ||
1488 | recover(input,re); | ||
1489 | appendSkippedTokens(); | ||
1490 | } | ||
1491 | finally { | ||
1492 | } | ||
1493 | return current; | ||
1494 | } | ||
1495 | // $ANTLR end "ruleMetamodelElement" | ||
1496 | |||
1497 | |||
1498 | // $ANTLR start "entryRuleMetamodelDeclaration" | ||
1499 | // InternalApplicationConfiguration.g:558:1: entryRuleMetamodelDeclaration returns [EObject current=null] : iv_ruleMetamodelDeclaration= ruleMetamodelDeclaration EOF ; | ||
1500 | public final EObject entryRuleMetamodelDeclaration() throws RecognitionException { | ||
1501 | EObject current = null; | ||
1502 | |||
1503 | EObject iv_ruleMetamodelDeclaration = null; | ||
1504 | |||
1505 | |||
1506 | try { | ||
1507 | // InternalApplicationConfiguration.g:558:61: (iv_ruleMetamodelDeclaration= ruleMetamodelDeclaration EOF ) | ||
1508 | // InternalApplicationConfiguration.g:559:2: iv_ruleMetamodelDeclaration= ruleMetamodelDeclaration EOF | ||
1509 | { | ||
1510 | newCompositeNode(grammarAccess.getMetamodelDeclarationRule()); | ||
1511 | pushFollow(FOLLOW_1); | ||
1512 | iv_ruleMetamodelDeclaration=ruleMetamodelDeclaration(); | ||
1513 | |||
1514 | state._fsp--; | ||
1515 | |||
1516 | current =iv_ruleMetamodelDeclaration; | ||
1517 | match(input,EOF,FOLLOW_2); | ||
1518 | |||
1519 | } | ||
1520 | |||
1521 | } | ||
1522 | |||
1523 | catch (RecognitionException re) { | ||
1524 | recover(input,re); | ||
1525 | appendSkippedTokens(); | ||
1526 | } | ||
1527 | finally { | ||
1528 | } | ||
1529 | return current; | ||
1530 | } | ||
1531 | // $ANTLR end "entryRuleMetamodelDeclaration" | ||
1532 | |||
1533 | |||
1534 | // $ANTLR start "ruleMetamodelDeclaration" | ||
1535 | // InternalApplicationConfiguration.g:565:1: ruleMetamodelDeclaration returns [EObject current=null] : (otherlv_0= 'metamodel' ( (lv_name_1_0= RULE_ID ) ) ( (lv_specification_2_0= ruleMetamodelSpecification ) ) ) ; | ||
1536 | public final EObject ruleMetamodelDeclaration() throws RecognitionException { | ||
1537 | EObject current = null; | ||
1538 | |||
1539 | Token otherlv_0=null; | ||
1540 | Token lv_name_1_0=null; | ||
1541 | EObject lv_specification_2_0 = null; | ||
1542 | |||
1543 | |||
1544 | |||
1545 | enterRule(); | ||
1546 | |||
1547 | try { | ||
1548 | // InternalApplicationConfiguration.g:571:2: ( (otherlv_0= 'metamodel' ( (lv_name_1_0= RULE_ID ) ) ( (lv_specification_2_0= ruleMetamodelSpecification ) ) ) ) | ||
1549 | // InternalApplicationConfiguration.g:572:2: (otherlv_0= 'metamodel' ( (lv_name_1_0= RULE_ID ) ) ( (lv_specification_2_0= ruleMetamodelSpecification ) ) ) | ||
1550 | { | ||
1551 | // InternalApplicationConfiguration.g:572:2: (otherlv_0= 'metamodel' ( (lv_name_1_0= RULE_ID ) ) ( (lv_specification_2_0= ruleMetamodelSpecification ) ) ) | ||
1552 | // InternalApplicationConfiguration.g:573:3: otherlv_0= 'metamodel' ( (lv_name_1_0= RULE_ID ) ) ( (lv_specification_2_0= ruleMetamodelSpecification ) ) | ||
1553 | { | ||
1554 | otherlv_0=(Token)match(input,21,FOLLOW_10); | ||
1555 | |||
1556 | newLeafNode(otherlv_0, grammarAccess.getMetamodelDeclarationAccess().getMetamodelKeyword_0()); | ||
1557 | |||
1558 | // InternalApplicationConfiguration.g:577:3: ( (lv_name_1_0= RULE_ID ) ) | ||
1559 | // InternalApplicationConfiguration.g:578:4: (lv_name_1_0= RULE_ID ) | ||
1560 | { | ||
1561 | // InternalApplicationConfiguration.g:578:4: (lv_name_1_0= RULE_ID ) | ||
1562 | // InternalApplicationConfiguration.g:579:5: lv_name_1_0= RULE_ID | ||
1563 | { | ||
1564 | lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_12); | ||
1565 | |||
1566 | newLeafNode(lv_name_1_0, grammarAccess.getMetamodelDeclarationAccess().getNameIDTerminalRuleCall_1_0()); | ||
1567 | |||
1568 | |||
1569 | if (current==null) { | ||
1570 | current = createModelElement(grammarAccess.getMetamodelDeclarationRule()); | ||
1571 | } | ||
1572 | setWithLastConsumed( | ||
1573 | current, | ||
1574 | "name", | ||
1575 | lv_name_1_0, | ||
1576 | "org.eclipse.xtext.common.Terminals.ID"); | ||
1577 | |||
1578 | |||
1579 | } | ||
1580 | |||
1581 | |||
1582 | } | ||
1583 | |||
1584 | // InternalApplicationConfiguration.g:595:3: ( (lv_specification_2_0= ruleMetamodelSpecification ) ) | ||
1585 | // InternalApplicationConfiguration.g:596:4: (lv_specification_2_0= ruleMetamodelSpecification ) | ||
1586 | { | ||
1587 | // InternalApplicationConfiguration.g:596:4: (lv_specification_2_0= ruleMetamodelSpecification ) | ||
1588 | // InternalApplicationConfiguration.g:597:5: lv_specification_2_0= ruleMetamodelSpecification | ||
1589 | { | ||
1590 | |||
1591 | newCompositeNode(grammarAccess.getMetamodelDeclarationAccess().getSpecificationMetamodelSpecificationParserRuleCall_2_0()); | ||
1592 | |||
1593 | pushFollow(FOLLOW_2); | ||
1594 | lv_specification_2_0=ruleMetamodelSpecification(); | ||
1595 | |||
1596 | state._fsp--; | ||
1597 | |||
1598 | |||
1599 | if (current==null) { | ||
1600 | current = createModelElementForParent(grammarAccess.getMetamodelDeclarationRule()); | ||
1601 | } | ||
1602 | set( | ||
1603 | current, | ||
1604 | "specification", | ||
1605 | lv_specification_2_0, | ||
1606 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelSpecification"); | ||
1607 | afterParserOrEnumRuleCall(); | ||
1608 | |||
1609 | |||
1610 | } | ||
1611 | |||
1612 | |||
1613 | } | ||
1614 | |||
1615 | |||
1616 | } | ||
1617 | |||
1618 | |||
1619 | } | ||
1620 | |||
1621 | |||
1622 | leaveRule(); | ||
1623 | |||
1624 | } | ||
1625 | |||
1626 | catch (RecognitionException re) { | ||
1627 | recover(input,re); | ||
1628 | appendSkippedTokens(); | ||
1629 | } | ||
1630 | finally { | ||
1631 | } | ||
1632 | return current; | ||
1633 | } | ||
1634 | // $ANTLR end "ruleMetamodelDeclaration" | ||
1635 | |||
1636 | |||
1637 | // $ANTLR start "entryRuleMetamodelReference" | ||
1638 | // InternalApplicationConfiguration.g:618:1: entryRuleMetamodelReference returns [EObject current=null] : iv_ruleMetamodelReference= ruleMetamodelReference EOF ; | ||
1639 | public final EObject entryRuleMetamodelReference() throws RecognitionException { | ||
1640 | EObject current = null; | ||
1641 | |||
1642 | EObject iv_ruleMetamodelReference = null; | ||
1643 | |||
1644 | |||
1645 | try { | ||
1646 | // InternalApplicationConfiguration.g:618:59: (iv_ruleMetamodelReference= ruleMetamodelReference EOF ) | ||
1647 | // InternalApplicationConfiguration.g:619:2: iv_ruleMetamodelReference= ruleMetamodelReference EOF | ||
1648 | { | ||
1649 | newCompositeNode(grammarAccess.getMetamodelReferenceRule()); | ||
1650 | pushFollow(FOLLOW_1); | ||
1651 | iv_ruleMetamodelReference=ruleMetamodelReference(); | ||
1652 | |||
1653 | state._fsp--; | ||
1654 | |||
1655 | current =iv_ruleMetamodelReference; | ||
1656 | match(input,EOF,FOLLOW_2); | ||
1657 | |||
1658 | } | ||
1659 | |||
1660 | } | ||
1661 | |||
1662 | catch (RecognitionException re) { | ||
1663 | recover(input,re); | ||
1664 | appendSkippedTokens(); | ||
1665 | } | ||
1666 | finally { | ||
1667 | } | ||
1668 | return current; | ||
1669 | } | ||
1670 | // $ANTLR end "entryRuleMetamodelReference" | ||
1671 | |||
1672 | |||
1673 | // $ANTLR start "ruleMetamodelReference" | ||
1674 | // InternalApplicationConfiguration.g:625:1: ruleMetamodelReference returns [EObject current=null] : ( (otherlv_0= RULE_ID ) ) ; | ||
1675 | public final EObject ruleMetamodelReference() throws RecognitionException { | ||
1676 | EObject current = null; | ||
1677 | |||
1678 | Token otherlv_0=null; | ||
1679 | |||
1680 | |||
1681 | enterRule(); | ||
1682 | |||
1683 | try { | ||
1684 | // InternalApplicationConfiguration.g:631:2: ( ( (otherlv_0= RULE_ID ) ) ) | ||
1685 | // InternalApplicationConfiguration.g:632:2: ( (otherlv_0= RULE_ID ) ) | ||
1686 | { | ||
1687 | // InternalApplicationConfiguration.g:632:2: ( (otherlv_0= RULE_ID ) ) | ||
1688 | // InternalApplicationConfiguration.g:633:3: (otherlv_0= RULE_ID ) | ||
1689 | { | ||
1690 | // InternalApplicationConfiguration.g:633:3: (otherlv_0= RULE_ID ) | ||
1691 | // InternalApplicationConfiguration.g:634:4: otherlv_0= RULE_ID | ||
1692 | { | ||
1693 | |||
1694 | if (current==null) { | ||
1695 | current = createModelElement(grammarAccess.getMetamodelReferenceRule()); | ||
1696 | } | ||
1697 | |||
1698 | otherlv_0=(Token)match(input,RULE_ID,FOLLOW_2); | ||
1699 | |||
1700 | newLeafNode(otherlv_0, grammarAccess.getMetamodelReferenceAccess().getReferredMetamodelDeclarationCrossReference_0()); | ||
1701 | |||
1702 | |||
1703 | } | ||
1704 | |||
1705 | |||
1706 | } | ||
1707 | |||
1708 | |||
1709 | } | ||
1710 | |||
1711 | |||
1712 | leaveRule(); | ||
1713 | |||
1714 | } | ||
1715 | |||
1716 | catch (RecognitionException re) { | ||
1717 | recover(input,re); | ||
1718 | appendSkippedTokens(); | ||
1719 | } | ||
1720 | finally { | ||
1721 | } | ||
1722 | return current; | ||
1723 | } | ||
1724 | // $ANTLR end "ruleMetamodelReference" | ||
1725 | |||
1726 | // Delegated rules | ||
1727 | |||
1728 | |||
1729 | |||
1730 | |||
1731 | public static final BitSet FOLLOW_1 = new BitSet(new long[]{0x0000000000000000L}); | ||
1732 | public static final BitSet FOLLOW_2 = new BitSet(new long[]{0x0000000000000002L}); | ||
1733 | public static final BitSet FOLLOW_3 = new BitSet(new long[]{0x0000000000200802L}); | ||
1734 | public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x0000000000200002L}); | ||
1735 | public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000000001000L}); | ||
1736 | public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000000000010L}); | ||
1737 | public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000002000L}); | ||
1738 | public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000020020L}); | ||
1739 | public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x0000000000018000L}); | ||
1740 | public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000000020L}); | ||
1741 | public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000000040002L}); | ||
1742 | public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000000004000L}); | ||
1743 | public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000000080000L}); | ||
1744 | public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000000100002L}); | ||
1745 | |||
1746 | } \ No newline at end of file | ||