aboutsummaryrefslogtreecommitdiffstats
path: root/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr
diff options
context:
space:
mode:
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr')
-rw-r--r--Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/ApplicationConfigurationAntlrTokenFileProvider.java16
-rw-r--r--Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/ApplicationConfigurationParser.java40
-rw-r--r--Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.g659
-rw-r--r--Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.tokens29
-rw-r--r--Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfigurationLexer.java1108
-rw-r--r--Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfigurationParser.java1746
6 files changed, 3598 insertions, 0 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/ApplicationConfigurationAntlrTokenFileProvider.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/ApplicationConfigurationAntlrTokenFileProvider.java
new file mode 100644
index 00000000..5af7ceb7
--- /dev/null
+++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/ApplicationConfigurationAntlrTokenFileProvider.java
@@ -0,0 +1,16 @@
1/*
2 * generated by Xtext 2.10.0
3 */
4package hu.bme.mit.inf.dslreasoner.application.parser.antlr;
5
6import java.io.InputStream;
7import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider;
8
9public class ApplicationConfigurationAntlrTokenFileProvider implements IAntlrTokenFileProvider {
10
11 @Override
12 public InputStream getAntlrTokenFile() {
13 ClassLoader classLoader = getClass().getClassLoader();
14 return classLoader.getResourceAsStream("hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.tokens");
15 }
16}
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/ApplicationConfigurationParser.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/ApplicationConfigurationParser.java
new file mode 100644
index 00000000..9d916b49
--- /dev/null
+++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/ApplicationConfigurationParser.java
@@ -0,0 +1,40 @@
1/*
2 * generated by Xtext 2.10.0
3 */
4package hu.bme.mit.inf.dslreasoner.application.parser.antlr;
5
6import com.google.inject.Inject;
7import hu.bme.mit.inf.dslreasoner.application.parser.antlr.internal.InternalApplicationConfigurationParser;
8import hu.bme.mit.inf.dslreasoner.application.services.ApplicationConfigurationGrammarAccess;
9import org.eclipse.xtext.parser.antlr.AbstractAntlrParser;
10import org.eclipse.xtext.parser.antlr.XtextTokenStream;
11
12public class ApplicationConfigurationParser extends AbstractAntlrParser {
13
14 @Inject
15 private ApplicationConfigurationGrammarAccess grammarAccess;
16
17 @Override
18 protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
19 tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
20 }
21
22
23 @Override
24 protected InternalApplicationConfigurationParser createParser(XtextTokenStream stream) {
25 return new InternalApplicationConfigurationParser(stream, getGrammarAccess());
26 }
27
28 @Override
29 protected String getDefaultRuleName() {
30 return "ConfigurationScript";
31 }
32
33 public ApplicationConfigurationGrammarAccess getGrammarAccess() {
34 return this.grammarAccess;
35 }
36
37 public void setGrammarAccess(ApplicationConfigurationGrammarAccess grammarAccess) {
38 this.grammarAccess = grammarAccess;
39 }
40}
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.g b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.g
new file mode 100644
index 00000000..f7f57fab
--- /dev/null
+++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.g
@@ -0,0 +1,659 @@
1/*
2 * generated by Xtext 2.10.0
3 */
4grammar InternalApplicationConfiguration;
5
6options {
7 superClass=AbstractInternalAntlrParser;
8}
9
10@lexer::header {
11package hu.bme.mit.inf.dslreasoner.application.parser.antlr.internal;
12
13// Hack: Use our own Lexer superclass by means of import.
14// Currently there is no other way to specify the superclass for the lexer.
15import org.eclipse.xtext.parser.antlr.Lexer;
16}
17
18@parser::header {
19package hu.bme.mit.inf.dslreasoner.application.parser.antlr.internal;
20
21import org.eclipse.xtext.*;
22import org.eclipse.xtext.parser.*;
23import org.eclipse.xtext.parser.impl.*;
24import org.eclipse.emf.ecore.util.EcoreUtil;
25import org.eclipse.emf.ecore.EObject;
26import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser;
27import org.eclipse.xtext.parser.antlr.XtextTokenStream;
28import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens;
29import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken;
30import hu.bme.mit.inf.dslreasoner.application.services.ApplicationConfigurationGrammarAccess;
31
32}
33
34@parser::members {
35
36 private ApplicationConfigurationGrammarAccess grammarAccess;
37
38 public InternalApplicationConfigurationParser(TokenStream input, ApplicationConfigurationGrammarAccess grammarAccess) {
39 this(input);
40 this.grammarAccess = grammarAccess;
41 registerRules(grammarAccess.getGrammar());
42 }
43
44 @Override
45 protected String getFirstRuleName() {
46 return "ConfigurationScript";
47 }
48
49 @Override
50 protected ApplicationConfigurationGrammarAccess getGrammarAccess() {
51 return grammarAccess;
52 }
53
54}
55
56@rulecatch {
57 catch (RecognitionException re) {
58 recover(input,re);
59 appendSkippedTokens();
60 }
61}
62
63// Entry rule entryRuleConfigurationScript
64entryRuleConfigurationScript returns [EObject current=null]:
65 { newCompositeNode(grammarAccess.getConfigurationScriptRule()); }
66 iv_ruleConfigurationScript=ruleConfigurationScript
67 { $current=$iv_ruleConfigurationScript.current; }
68 EOF;
69
70// Rule ConfigurationScript
71ruleConfigurationScript returns [EObject current=null]
72@init {
73 enterRule();
74}
75@after {
76 leaveRule();
77}:
78 (
79 (
80 (
81 {
82 newCompositeNode(grammarAccess.getConfigurationScriptAccess().getImportsImportParserRuleCall_0_0());
83 }
84 lv_imports_0_0=ruleImport
85 {
86 if ($current==null) {
87 $current = createModelElementForParent(grammarAccess.getConfigurationScriptRule());
88 }
89 add(
90 $current,
91 "imports",
92 lv_imports_0_0,
93 "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Import");
94 afterParserOrEnumRuleCall();
95 }
96 )
97 )*
98 (
99 (
100 {
101 newCompositeNode(grammarAccess.getConfigurationScriptAccess().getCommandsCommandParserRuleCall_1_0());
102 }
103 lv_commands_1_0=ruleCommand
104 {
105 if ($current==null) {
106 $current = createModelElementForParent(grammarAccess.getConfigurationScriptRule());
107 }
108 add(
109 $current,
110 "commands",
111 lv_commands_1_0,
112 "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Command");
113 afterParserOrEnumRuleCall();
114 }
115 )
116 )*
117 )
118;
119
120// Entry rule entryRuleCommand
121entryRuleCommand returns [EObject current=null]:
122 { newCompositeNode(grammarAccess.getCommandRule()); }
123 iv_ruleCommand=ruleCommand
124 { $current=$iv_ruleCommand.current; }
125 EOF;
126
127// Rule Command
128ruleCommand returns [EObject current=null]
129@init {
130 enterRule();
131}
132@after {
133 leaveRule();
134}:
135 {
136 newCompositeNode(grammarAccess.getCommandAccess().getDeclarationParserRuleCall());
137 }
138 this_Declaration_0=ruleDeclaration
139 {
140 $current = $this_Declaration_0.current;
141 afterParserOrEnumRuleCall();
142 }
143;
144
145// Entry rule entryRuleDeclaration
146entryRuleDeclaration returns [EObject current=null]:
147 { newCompositeNode(grammarAccess.getDeclarationRule()); }
148 iv_ruleDeclaration=ruleDeclaration
149 { $current=$iv_ruleDeclaration.current; }
150 EOF;
151
152// Rule Declaration
153ruleDeclaration returns [EObject current=null]
154@init {
155 enterRule();
156}
157@after {
158 leaveRule();
159}:
160 {
161 newCompositeNode(grammarAccess.getDeclarationAccess().getMetamodelDeclarationParserRuleCall());
162 }
163 this_MetamodelDeclaration_0=ruleMetamodelDeclaration
164 {
165 $current = $this_MetamodelDeclaration_0.current;
166 afterParserOrEnumRuleCall();
167 }
168;
169
170// Entry rule entryRuleImport
171entryRuleImport returns [EObject current=null]:
172 { newCompositeNode(grammarAccess.getImportRule()); }
173 iv_ruleImport=ruleImport
174 { $current=$iv_ruleImport.current; }
175 EOF;
176
177// Rule Import
178ruleImport returns [EObject current=null]
179@init {
180 enterRule();
181}
182@after {
183 leaveRule();
184}:
185 (
186 {
187 newCompositeNode(grammarAccess.getImportAccess().getEPackageImportParserRuleCall_0());
188 }
189 this_EPackageImport_0=ruleEPackageImport
190 {
191 $current = $this_EPackageImport_0.current;
192 afterParserOrEnumRuleCall();
193 }
194 |
195 {
196 newCompositeNode(grammarAccess.getImportAccess().getViatraImportParserRuleCall_1());
197 }
198 this_ViatraImport_1=ruleViatraImport
199 {
200 $current = $this_ViatraImport_1.current;
201 afterParserOrEnumRuleCall();
202 }
203 )
204;
205
206// Entry rule entryRuleEPackageImport
207entryRuleEPackageImport returns [EObject current=null]:
208 { newCompositeNode(grammarAccess.getEPackageImportRule()); }
209 iv_ruleEPackageImport=ruleEPackageImport
210 { $current=$iv_ruleEPackageImport.current; }
211 EOF;
212
213// Rule EPackageImport
214ruleEPackageImport returns [EObject current=null]
215@init {
216 enterRule();
217}
218@after {
219 leaveRule();
220}:
221 (
222 otherlv_0='import'
223 {
224 newLeafNode(otherlv_0, grammarAccess.getEPackageImportAccess().getImportKeyword_0());
225 }
226 otherlv_1='epackage'
227 {
228 newLeafNode(otherlv_1, grammarAccess.getEPackageImportAccess().getEpackageKeyword_1());
229 }
230 (
231 (
232 {
233 if ($current==null) {
234 $current = createModelElement(grammarAccess.getEPackageImportRule());
235 }
236 }
237 otherlv_2=RULE_STRING
238 {
239 newLeafNode(otherlv_2, grammarAccess.getEPackageImportAccess().getImportedPackageEPackageCrossReference_2_0());
240 }
241 )
242 )
243 )
244;
245
246// Entry rule entryRuleViatraImport
247entryRuleViatraImport returns [EObject current=null]:
248 { newCompositeNode(grammarAccess.getViatraImportRule()); }
249 iv_ruleViatraImport=ruleViatraImport
250 { $current=$iv_ruleViatraImport.current; }
251 EOF;
252
253// Rule ViatraImport
254ruleViatraImport returns [EObject current=null]
255@init {
256 enterRule();
257}
258@after {
259 leaveRule();
260}:
261 (
262 otherlv_0='import'
263 {
264 newLeafNode(otherlv_0, grammarAccess.getViatraImportAccess().getImportKeyword_0());
265 }
266 otherlv_1='viatra'
267 {
268 newLeafNode(otherlv_1, grammarAccess.getViatraImportAccess().getViatraKeyword_1());
269 }
270 (
271 (
272 {
273 if ($current==null) {
274 $current = createModelElement(grammarAccess.getViatraImportRule());
275 }
276 }
277 otherlv_2=RULE_STRING
278 {
279 newLeafNode(otherlv_2, grammarAccess.getViatraImportAccess().getImportedViatraPatternModelCrossReference_2_0());
280 }
281 )
282 )
283 )
284;
285
286// Entry rule entryRuleMetamodelSpecification
287entryRuleMetamodelSpecification returns [EObject current=null]:
288 { newCompositeNode(grammarAccess.getMetamodelSpecificationRule()); }
289 iv_ruleMetamodelSpecification=ruleMetamodelSpecification
290 { $current=$iv_ruleMetamodelSpecification.current; }
291 EOF;
292
293// Rule MetamodelSpecification
294ruleMetamodelSpecification returns [EObject current=null]
295@init {
296 enterRule();
297}
298@after {
299 leaveRule();
300}:
301 (
302 otherlv_0='{'
303 {
304 newLeafNode(otherlv_0, grammarAccess.getMetamodelSpecificationAccess().getLeftCurlyBracketKeyword_0());
305 }
306 (
307 (
308 {
309 newCompositeNode(grammarAccess.getMetamodelSpecificationAccess().getEntriesMetamodelEntryParserRuleCall_1_0());
310 }
311 lv_entries_1_0=ruleMetamodelEntry
312 {
313 if ($current==null) {
314 $current = createModelElementForParent(grammarAccess.getMetamodelSpecificationRule());
315 }
316 add(
317 $current,
318 "entries",
319 lv_entries_1_0,
320 "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelEntry");
321 afterParserOrEnumRuleCall();
322 }
323 )
324 )
325 (
326 otherlv_2=','
327 {
328 newLeafNode(otherlv_2, grammarAccess.getMetamodelSpecificationAccess().getCommaKeyword_2_0());
329 }
330 (
331 (
332 {
333 newCompositeNode(grammarAccess.getMetamodelSpecificationAccess().getEntriesMetamodelEntryParserRuleCall_2_1_0());
334 }
335 lv_entries_3_0=ruleMetamodelEntry
336 {
337 if ($current==null) {
338 $current = createModelElementForParent(grammarAccess.getMetamodelSpecificationRule());
339 }
340 add(
341 $current,
342 "entries",
343 lv_entries_3_0,
344 "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelEntry");
345 afterParserOrEnumRuleCall();
346 }
347 )
348 )
349 )*
350 otherlv_4='}'
351 {
352 newLeafNode(otherlv_4, grammarAccess.getMetamodelSpecificationAccess().getRightCurlyBracketKeyword_3());
353 }
354 )
355;
356
357// Entry rule entryRuleMetamodelEntry
358entryRuleMetamodelEntry returns [EObject current=null]:
359 { newCompositeNode(grammarAccess.getMetamodelEntryRule()); }
360 iv_ruleMetamodelEntry=ruleMetamodelEntry
361 { $current=$iv_ruleMetamodelEntry.current; }
362 EOF;
363
364// Rule MetamodelEntry
365ruleMetamodelEntry returns [EObject current=null]
366@init {
367 enterRule();
368}
369@after {
370 leaveRule();
371}:
372 (
373 {
374 newCompositeNode(grammarAccess.getMetamodelEntryAccess().getMetamodelElementParserRuleCall_0());
375 }
376 this_MetamodelElement_0=ruleMetamodelElement
377 {
378 $current = $this_MetamodelElement_0.current;
379 afterParserOrEnumRuleCall();
380 }
381 |
382 {
383 newCompositeNode(grammarAccess.getMetamodelEntryAccess().getAllPackageEntryParserRuleCall_1());
384 }
385 this_AllPackageEntry_1=ruleAllPackageEntry
386 {
387 $current = $this_AllPackageEntry_1.current;
388 afterParserOrEnumRuleCall();
389 }
390 )
391;
392
393// Entry rule entryRuleAllPackageEntry
394entryRuleAllPackageEntry returns [EObject current=null]:
395 { newCompositeNode(grammarAccess.getAllPackageEntryRule()); }
396 iv_ruleAllPackageEntry=ruleAllPackageEntry
397 { $current=$iv_ruleAllPackageEntry.current; }
398 EOF;
399
400// Rule AllPackageEntry
401ruleAllPackageEntry returns [EObject current=null]
402@init {
403 enterRule();
404}
405@after {
406 leaveRule();
407}:
408 (
409 otherlv_0='package'
410 {
411 newLeafNode(otherlv_0, grammarAccess.getAllPackageEntryAccess().getPackageKeyword_0());
412 }
413 (
414 (
415 {
416 if ($current==null) {
417 $current = createModelElement(grammarAccess.getAllPackageEntryRule());
418 }
419 }
420 otherlv_1=RULE_ID
421 {
422 newLeafNode(otherlv_1, grammarAccess.getAllPackageEntryAccess().getPackageEPackageCrossReference_1_0());
423 }
424 )
425 )
426 (
427 otherlv_2='excluding'
428 {
429 newLeafNode(otherlv_2, grammarAccess.getAllPackageEntryAccess().getExcludingKeyword_2_0());
430 }
431 otherlv_3='{'
432 {
433 newLeafNode(otherlv_3, grammarAccess.getAllPackageEntryAccess().getLeftCurlyBracketKeyword_2_1());
434 }
435 (
436 (
437 {
438 newCompositeNode(grammarAccess.getAllPackageEntryAccess().getExclusionMetamodelElementParserRuleCall_2_2_0());
439 }
440 lv_exclusion_4_0=ruleMetamodelElement
441 {
442 if ($current==null) {
443 $current = createModelElementForParent(grammarAccess.getAllPackageEntryRule());
444 }
445 add(
446 $current,
447 "exclusion",
448 lv_exclusion_4_0,
449 "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelElement");
450 afterParserOrEnumRuleCall();
451 }
452 )
453 )
454 (
455 otherlv_5=','
456 {
457 newLeafNode(otherlv_5, grammarAccess.getAllPackageEntryAccess().getCommaKeyword_2_3_0());
458 }
459 (
460 (
461 {
462 newCompositeNode(grammarAccess.getAllPackageEntryAccess().getExclusionMetamodelElementParserRuleCall_2_3_1_0());
463 }
464 lv_exclusion_6_0=ruleMetamodelElement
465 {
466 if ($current==null) {
467 $current = createModelElementForParent(grammarAccess.getAllPackageEntryRule());
468 }
469 add(
470 $current,
471 "exclusion",
472 lv_exclusion_6_0,
473 "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelElement");
474 afterParserOrEnumRuleCall();
475 }
476 )
477 )
478 )*
479 otherlv_7='}'
480 {
481 newLeafNode(otherlv_7, grammarAccess.getAllPackageEntryAccess().getRightCurlyBracketKeyword_2_4());
482 }
483 )?
484 )
485;
486
487// Entry rule entryRuleMetamodelElement
488entryRuleMetamodelElement returns [EObject current=null]:
489 { newCompositeNode(grammarAccess.getMetamodelElementRule()); }
490 iv_ruleMetamodelElement=ruleMetamodelElement
491 { $current=$iv_ruleMetamodelElement.current; }
492 EOF;
493
494// Rule MetamodelElement
495ruleMetamodelElement returns [EObject current=null]
496@init {
497 enterRule();
498}
499@after {
500 leaveRule();
501}:
502 (
503 (
504 (
505 (
506 {
507 if ($current==null) {
508 $current = createModelElement(grammarAccess.getMetamodelElementRule());
509 }
510 }
511 otherlv_0=RULE_ID
512 {
513 newLeafNode(otherlv_0, grammarAccess.getMetamodelElementAccess().getPackageEPackageCrossReference_0_0_0());
514 }
515 )
516 )
517 otherlv_1='::'
518 {
519 newLeafNode(otherlv_1, grammarAccess.getMetamodelElementAccess().getColonColonKeyword_0_1());
520 }
521 )?
522 (
523 (
524 {
525 if ($current==null) {
526 $current = createModelElement(grammarAccess.getMetamodelElementRule());
527 }
528 }
529 otherlv_2=RULE_ID
530 {
531 newLeafNode(otherlv_2, grammarAccess.getMetamodelElementAccess().getClassifierEClassifierCrossReference_1_0());
532 }
533 )
534 )
535 (
536 otherlv_3='.'
537 {
538 newLeafNode(otherlv_3, grammarAccess.getMetamodelElementAccess().getFullStopKeyword_2_0());
539 }
540 (
541 (
542 {
543 if ($current==null) {
544 $current = createModelElement(grammarAccess.getMetamodelElementRule());
545 }
546 }
547 otherlv_4=RULE_ID
548 {
549 newLeafNode(otherlv_4, grammarAccess.getMetamodelElementAccess().getFeatureENamedElementCrossReference_2_1_0());
550 }
551 )
552 )
553 )?
554 )
555;
556
557// Entry rule entryRuleMetamodelDeclaration
558entryRuleMetamodelDeclaration returns [EObject current=null]:
559 { newCompositeNode(grammarAccess.getMetamodelDeclarationRule()); }
560 iv_ruleMetamodelDeclaration=ruleMetamodelDeclaration
561 { $current=$iv_ruleMetamodelDeclaration.current; }
562 EOF;
563
564// Rule MetamodelDeclaration
565ruleMetamodelDeclaration returns [EObject current=null]
566@init {
567 enterRule();
568}
569@after {
570 leaveRule();
571}:
572 (
573 otherlv_0='metamodel'
574 {
575 newLeafNode(otherlv_0, grammarAccess.getMetamodelDeclarationAccess().getMetamodelKeyword_0());
576 }
577 (
578 (
579 lv_name_1_0=RULE_ID
580 {
581 newLeafNode(lv_name_1_0, grammarAccess.getMetamodelDeclarationAccess().getNameIDTerminalRuleCall_1_0());
582 }
583 {
584 if ($current==null) {
585 $current = createModelElement(grammarAccess.getMetamodelDeclarationRule());
586 }
587 setWithLastConsumed(
588 $current,
589 "name",
590 lv_name_1_0,
591 "org.eclipse.xtext.common.Terminals.ID");
592 }
593 )
594 )
595 (
596 (
597 {
598 newCompositeNode(grammarAccess.getMetamodelDeclarationAccess().getSpecificationMetamodelSpecificationParserRuleCall_2_0());
599 }
600 lv_specification_2_0=ruleMetamodelSpecification
601 {
602 if ($current==null) {
603 $current = createModelElementForParent(grammarAccess.getMetamodelDeclarationRule());
604 }
605 set(
606 $current,
607 "specification",
608 lv_specification_2_0,
609 "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelSpecification");
610 afterParserOrEnumRuleCall();
611 }
612 )
613 )
614 )
615;
616
617// Entry rule entryRuleMetamodelReference
618entryRuleMetamodelReference returns [EObject current=null]:
619 { newCompositeNode(grammarAccess.getMetamodelReferenceRule()); }
620 iv_ruleMetamodelReference=ruleMetamodelReference
621 { $current=$iv_ruleMetamodelReference.current; }
622 EOF;
623
624// Rule MetamodelReference
625ruleMetamodelReference returns [EObject current=null]
626@init {
627 enterRule();
628}
629@after {
630 leaveRule();
631}:
632 (
633 (
634 {
635 if ($current==null) {
636 $current = createModelElement(grammarAccess.getMetamodelReferenceRule());
637 }
638 }
639 otherlv_0=RULE_ID
640 {
641 newLeafNode(otherlv_0, grammarAccess.getMetamodelReferenceAccess().getReferredMetamodelDeclarationCrossReference_0());
642 }
643 )
644 )
645;
646
647RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*;
648
649RULE_INT : ('0'..'9')+;
650
651RULE_STRING : ('"' ('\\' .|~(('\\'|'"')))* '"'|'\'' ('\\' .|~(('\\'|'\'')))* '\'');
652
653RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/';
654
655RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?;
656
657RULE_WS : (' '|'\t'|'\r'|'\n')+;
658
659RULE_ANY_OTHER : .;
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.tokens b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.tokens
new file mode 100644
index 00000000..676ff381
--- /dev/null
+++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.tokens
@@ -0,0 +1,29 @@
1','=15
2'.'=20
3'::'=19
4'epackage'=12
5'excluding'=18
6'import'=11
7'metamodel'=21
8'package'=17
9'viatra'=13
10'{'=14
11'}'=16
12RULE_ANY_OTHER=10
13RULE_ID=5
14RULE_INT=6
15RULE_ML_COMMENT=7
16RULE_SL_COMMENT=8
17RULE_STRING=4
18RULE_WS=9
19T__11=11
20T__12=12
21T__13=13
22T__14=14
23T__15=15
24T__16=16
25T__17=17
26T__18=18
27T__19=19
28T__20=20
29T__21=21
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfigurationLexer.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfigurationLexer.java
new file mode 100644
index 00000000..730041a1
--- /dev/null
+++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfigurationLexer.java
@@ -0,0 +1,1108 @@
1package hu.bme.mit.inf.dslreasoner.application.parser.antlr.internal;
2
3// Hack: Use our own Lexer superclass by means of import.
4// Currently there is no other way to specify the superclass for the lexer.
5import org.eclipse.xtext.parser.antlr.Lexer;
6
7
8import org.antlr.runtime.*;
9import java.util.Stack;
10import java.util.List;
11import java.util.ArrayList;
12
13@SuppressWarnings("all")
14public class InternalApplicationConfigurationLexer extends Lexer {
15 public static final int RULE_STRING=4;
16 public static final int RULE_SL_COMMENT=8;
17 public static final int T__19=19;
18 public static final int T__15=15;
19 public static final int T__16=16;
20 public static final int T__17=17;
21 public static final int T__18=18;
22 public static final int T__11=11;
23 public static final int T__12=12;
24 public static final int T__13=13;
25 public static final int T__14=14;
26 public static final int EOF=-1;
27 public static final int RULE_ID=5;
28 public static final int RULE_WS=9;
29 public static final int RULE_ANY_OTHER=10;
30 public static final int RULE_INT=6;
31 public static final int RULE_ML_COMMENT=7;
32 public static final int T__20=20;
33 public static final int T__21=21;
34
35 // delegates
36 // delegators
37
38 public InternalApplicationConfigurationLexer() {;}
39 public InternalApplicationConfigurationLexer(CharStream input) {
40 this(input, new RecognizerSharedState());
41 }
42 public InternalApplicationConfigurationLexer(CharStream input, RecognizerSharedState state) {
43 super(input,state);
44
45 }
46 public String getGrammarFileName() { return "InternalApplicationConfiguration.g"; }
47
48 // $ANTLR start "T__11"
49 public final void mT__11() throws RecognitionException {
50 try {
51 int _type = T__11;
52 int _channel = DEFAULT_TOKEN_CHANNEL;
53 // InternalApplicationConfiguration.g:11:7: ( 'import' )
54 // InternalApplicationConfiguration.g:11:9: 'import'
55 {
56 match("import");
57
58
59 }
60
61 state.type = _type;
62 state.channel = _channel;
63 }
64 finally {
65 }
66 }
67 // $ANTLR end "T__11"
68
69 // $ANTLR start "T__12"
70 public final void mT__12() throws RecognitionException {
71 try {
72 int _type = T__12;
73 int _channel = DEFAULT_TOKEN_CHANNEL;
74 // InternalApplicationConfiguration.g:12:7: ( 'epackage' )
75 // InternalApplicationConfiguration.g:12:9: 'epackage'
76 {
77 match("epackage");
78
79
80 }
81
82 state.type = _type;
83 state.channel = _channel;
84 }
85 finally {
86 }
87 }
88 // $ANTLR end "T__12"
89
90 // $ANTLR start "T__13"
91 public final void mT__13() throws RecognitionException {
92 try {
93 int _type = T__13;
94 int _channel = DEFAULT_TOKEN_CHANNEL;
95 // InternalApplicationConfiguration.g:13:7: ( 'viatra' )
96 // InternalApplicationConfiguration.g:13:9: 'viatra'
97 {
98 match("viatra");
99
100
101 }
102
103 state.type = _type;
104 state.channel = _channel;
105 }
106 finally {
107 }
108 }
109 // $ANTLR end "T__13"
110
111 // $ANTLR start "T__14"
112 public final void mT__14() throws RecognitionException {
113 try {
114 int _type = T__14;
115 int _channel = DEFAULT_TOKEN_CHANNEL;
116 // InternalApplicationConfiguration.g:14:7: ( '{' )
117 // InternalApplicationConfiguration.g:14:9: '{'
118 {
119 match('{');
120
121 }
122
123 state.type = _type;
124 state.channel = _channel;
125 }
126 finally {
127 }
128 }
129 // $ANTLR end "T__14"
130
131 // $ANTLR start "T__15"
132 public final void mT__15() throws RecognitionException {
133 try {
134 int _type = T__15;
135 int _channel = DEFAULT_TOKEN_CHANNEL;
136 // InternalApplicationConfiguration.g:15:7: ( ',' )
137 // InternalApplicationConfiguration.g:15:9: ','
138 {
139 match(',');
140
141 }
142
143 state.type = _type;
144 state.channel = _channel;
145 }
146 finally {
147 }
148 }
149 // $ANTLR end "T__15"
150
151 // $ANTLR start "T__16"
152 public final void mT__16() throws RecognitionException {
153 try {
154 int _type = T__16;
155 int _channel = DEFAULT_TOKEN_CHANNEL;
156 // InternalApplicationConfiguration.g:16:7: ( '}' )
157 // InternalApplicationConfiguration.g:16:9: '}'
158 {
159 match('}');
160
161 }
162
163 state.type = _type;
164 state.channel = _channel;
165 }
166 finally {
167 }
168 }
169 // $ANTLR end "T__16"
170
171 // $ANTLR start "T__17"
172 public final void mT__17() throws RecognitionException {
173 try {
174 int _type = T__17;
175 int _channel = DEFAULT_TOKEN_CHANNEL;
176 // InternalApplicationConfiguration.g:17:7: ( 'package' )
177 // InternalApplicationConfiguration.g:17:9: 'package'
178 {
179 match("package");
180
181
182 }
183
184 state.type = _type;
185 state.channel = _channel;
186 }
187 finally {
188 }
189 }
190 // $ANTLR end "T__17"
191
192 // $ANTLR start "T__18"
193 public final void mT__18() throws RecognitionException {
194 try {
195 int _type = T__18;
196 int _channel = DEFAULT_TOKEN_CHANNEL;
197 // InternalApplicationConfiguration.g:18:7: ( 'excluding' )
198 // InternalApplicationConfiguration.g:18:9: 'excluding'
199 {
200 match("excluding");
201
202
203 }
204
205 state.type = _type;
206 state.channel = _channel;
207 }
208 finally {
209 }
210 }
211 // $ANTLR end "T__18"
212
213 // $ANTLR start "T__19"
214 public final void mT__19() throws RecognitionException {
215 try {
216 int _type = T__19;
217 int _channel = DEFAULT_TOKEN_CHANNEL;
218 // InternalApplicationConfiguration.g:19:7: ( '::' )
219 // InternalApplicationConfiguration.g:19:9: '::'
220 {
221 match("::");
222
223
224 }
225
226 state.type = _type;
227 state.channel = _channel;
228 }
229 finally {
230 }
231 }
232 // $ANTLR end "T__19"
233
234 // $ANTLR start "T__20"
235 public final void mT__20() throws RecognitionException {
236 try {
237 int _type = T__20;
238 int _channel = DEFAULT_TOKEN_CHANNEL;
239 // InternalApplicationConfiguration.g:20:7: ( '.' )
240 // InternalApplicationConfiguration.g:20:9: '.'
241 {
242 match('.');
243
244 }
245
246 state.type = _type;
247 state.channel = _channel;
248 }
249 finally {
250 }
251 }
252 // $ANTLR end "T__20"
253
254 // $ANTLR start "T__21"
255 public final void mT__21() throws RecognitionException {
256 try {
257 int _type = T__21;
258 int _channel = DEFAULT_TOKEN_CHANNEL;
259 // InternalApplicationConfiguration.g:21:7: ( 'metamodel' )
260 // InternalApplicationConfiguration.g:21:9: 'metamodel'
261 {
262 match("metamodel");
263
264
265 }
266
267 state.type = _type;
268 state.channel = _channel;
269 }
270 finally {
271 }
272 }
273 // $ANTLR end "T__21"
274
275 // $ANTLR start "RULE_ID"
276 public final void mRULE_ID() throws RecognitionException {
277 try {
278 int _type = RULE_ID;
279 int _channel = DEFAULT_TOKEN_CHANNEL;
280 // InternalApplicationConfiguration.g:647:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
281 // InternalApplicationConfiguration.g:647:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
282 {
283 // InternalApplicationConfiguration.g:647:11: ( '^' )?
284 int alt1=2;
285 int LA1_0 = input.LA(1);
286
287 if ( (LA1_0=='^') ) {
288 alt1=1;
289 }
290 switch (alt1) {
291 case 1 :
292 // InternalApplicationConfiguration.g:647:11: '^'
293 {
294 match('^');
295
296 }
297 break;
298
299 }
300
301 if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
302 input.consume();
303
304 }
305 else {
306 MismatchedSetException mse = new MismatchedSetException(null,input);
307 recover(mse);
308 throw mse;}
309
310 // InternalApplicationConfiguration.g:647:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
311 loop2:
312 do {
313 int alt2=2;
314 int LA2_0 = input.LA(1);
315
316 if ( ((LA2_0>='0' && LA2_0<='9')||(LA2_0>='A' && LA2_0<='Z')||LA2_0=='_'||(LA2_0>='a' && LA2_0<='z')) ) {
317 alt2=1;
318 }
319
320
321 switch (alt2) {
322 case 1 :
323 // InternalApplicationConfiguration.g:
324 {
325 if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
326 input.consume();
327
328 }
329 else {
330 MismatchedSetException mse = new MismatchedSetException(null,input);
331 recover(mse);
332 throw mse;}
333
334
335 }
336 break;
337
338 default :
339 break loop2;
340 }
341 } while (true);
342
343
344 }
345
346 state.type = _type;
347 state.channel = _channel;
348 }
349 finally {
350 }
351 }
352 // $ANTLR end "RULE_ID"
353
354 // $ANTLR start "RULE_INT"
355 public final void mRULE_INT() throws RecognitionException {
356 try {
357 int _type = RULE_INT;
358 int _channel = DEFAULT_TOKEN_CHANNEL;
359 // InternalApplicationConfiguration.g:649:10: ( ( '0' .. '9' )+ )
360 // InternalApplicationConfiguration.g:649:12: ( '0' .. '9' )+
361 {
362 // InternalApplicationConfiguration.g:649:12: ( '0' .. '9' )+
363 int cnt3=0;
364 loop3:
365 do {
366 int alt3=2;
367 int LA3_0 = input.LA(1);
368
369 if ( ((LA3_0>='0' && LA3_0<='9')) ) {
370 alt3=1;
371 }
372
373
374 switch (alt3) {
375 case 1 :
376 // InternalApplicationConfiguration.g:649:13: '0' .. '9'
377 {
378 matchRange('0','9');
379
380 }
381 break;
382
383 default :
384 if ( cnt3 >= 1 ) break loop3;
385 EarlyExitException eee =
386 new EarlyExitException(3, input);
387 throw eee;
388 }
389 cnt3++;
390 } while (true);
391
392
393 }
394
395 state.type = _type;
396 state.channel = _channel;
397 }
398 finally {
399 }
400 }
401 // $ANTLR end "RULE_INT"
402
403 // $ANTLR start "RULE_STRING"
404 public final void mRULE_STRING() throws RecognitionException {
405 try {
406 int _type = RULE_STRING;
407 int _channel = DEFAULT_TOKEN_CHANNEL;
408 // InternalApplicationConfiguration.g:651:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) )
409 // InternalApplicationConfiguration.g:651:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
410 {
411 // InternalApplicationConfiguration.g:651:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
412 int alt6=2;
413 int LA6_0 = input.LA(1);
414
415 if ( (LA6_0=='\"') ) {
416 alt6=1;
417 }
418 else if ( (LA6_0=='\'') ) {
419 alt6=2;
420 }
421 else {
422 NoViableAltException nvae =
423 new NoViableAltException("", 6, 0, input);
424
425 throw nvae;
426 }
427 switch (alt6) {
428 case 1 :
429 // InternalApplicationConfiguration.g:651:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
430 {
431 match('\"');
432 // InternalApplicationConfiguration.g:651:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )*
433 loop4:
434 do {
435 int alt4=3;
436 int LA4_0 = input.LA(1);
437
438 if ( (LA4_0=='\\') ) {
439 alt4=1;
440 }
441 else if ( ((LA4_0>='\u0000' && LA4_0<='!')||(LA4_0>='#' && LA4_0<='[')||(LA4_0>=']' && LA4_0<='\uFFFF')) ) {
442 alt4=2;
443 }
444
445
446 switch (alt4) {
447 case 1 :
448 // InternalApplicationConfiguration.g:651:21: '\\\\' .
449 {
450 match('\\');
451 matchAny();
452
453 }
454 break;
455 case 2 :
456 // InternalApplicationConfiguration.g:651:28: ~ ( ( '\\\\' | '\"' ) )
457 {
458 if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
459 input.consume();
460
461 }
462 else {
463 MismatchedSetException mse = new MismatchedSetException(null,input);
464 recover(mse);
465 throw mse;}
466
467
468 }
469 break;
470
471 default :
472 break loop4;
473 }
474 } while (true);
475
476 match('\"');
477
478 }
479 break;
480 case 2 :
481 // InternalApplicationConfiguration.g:651:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\''
482 {
483 match('\'');
484 // InternalApplicationConfiguration.g:651:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )*
485 loop5:
486 do {
487 int alt5=3;
488 int LA5_0 = input.LA(1);
489
490 if ( (LA5_0=='\\') ) {
491 alt5=1;
492 }
493 else if ( ((LA5_0>='\u0000' && LA5_0<='&')||(LA5_0>='(' && LA5_0<='[')||(LA5_0>=']' && LA5_0<='\uFFFF')) ) {
494 alt5=2;
495 }
496
497
498 switch (alt5) {
499 case 1 :
500 // InternalApplicationConfiguration.g:651:54: '\\\\' .
501 {
502 match('\\');
503 matchAny();
504
505 }
506 break;
507 case 2 :
508 // InternalApplicationConfiguration.g:651:61: ~ ( ( '\\\\' | '\\'' ) )
509 {
510 if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
511 input.consume();
512
513 }
514 else {
515 MismatchedSetException mse = new MismatchedSetException(null,input);
516 recover(mse);
517 throw mse;}
518
519
520 }
521 break;
522
523 default :
524 break loop5;
525 }
526 } while (true);
527
528 match('\'');
529
530 }
531 break;
532
533 }
534
535
536 }
537
538 state.type = _type;
539 state.channel = _channel;
540 }
541 finally {
542 }
543 }
544 // $ANTLR end "RULE_STRING"
545
546 // $ANTLR start "RULE_ML_COMMENT"
547 public final void mRULE_ML_COMMENT() throws RecognitionException {
548 try {
549 int _type = RULE_ML_COMMENT;
550 int _channel = DEFAULT_TOKEN_CHANNEL;
551 // InternalApplicationConfiguration.g:653:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
552 // InternalApplicationConfiguration.g:653:19: '/*' ( options {greedy=false; } : . )* '*/'
553 {
554 match("/*");
555
556 // InternalApplicationConfiguration.g:653:24: ( options {greedy=false; } : . )*
557 loop7:
558 do {
559 int alt7=2;
560 int LA7_0 = input.LA(1);
561
562 if ( (LA7_0=='*') ) {
563 int LA7_1 = input.LA(2);
564
565 if ( (LA7_1=='/') ) {
566 alt7=2;
567 }
568 else if ( ((LA7_1>='\u0000' && LA7_1<='.')||(LA7_1>='0' && LA7_1<='\uFFFF')) ) {
569 alt7=1;
570 }
571
572
573 }
574 else if ( ((LA7_0>='\u0000' && LA7_0<=')')||(LA7_0>='+' && LA7_0<='\uFFFF')) ) {
575 alt7=1;
576 }
577
578
579 switch (alt7) {
580 case 1 :
581 // InternalApplicationConfiguration.g:653:52: .
582 {
583 matchAny();
584
585 }
586 break;
587
588 default :
589 break loop7;
590 }
591 } while (true);
592
593 match("*/");
594
595
596 }
597
598 state.type = _type;
599 state.channel = _channel;
600 }
601 finally {
602 }
603 }
604 // $ANTLR end "RULE_ML_COMMENT"
605
606 // $ANTLR start "RULE_SL_COMMENT"
607 public final void mRULE_SL_COMMENT() throws RecognitionException {
608 try {
609 int _type = RULE_SL_COMMENT;
610 int _channel = DEFAULT_TOKEN_CHANNEL;
611 // InternalApplicationConfiguration.g:655:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? )
612 // InternalApplicationConfiguration.g:655:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )?
613 {
614 match("//");
615
616 // InternalApplicationConfiguration.g:655:24: (~ ( ( '\\n' | '\\r' ) ) )*
617 loop8:
618 do {
619 int alt8=2;
620 int LA8_0 = input.LA(1);
621
622 if ( ((LA8_0>='\u0000' && LA8_0<='\t')||(LA8_0>='\u000B' && LA8_0<='\f')||(LA8_0>='\u000E' && LA8_0<='\uFFFF')) ) {
623 alt8=1;
624 }
625
626
627 switch (alt8) {
628 case 1 :
629 // InternalApplicationConfiguration.g:655:24: ~ ( ( '\\n' | '\\r' ) )
630 {
631 if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
632 input.consume();
633
634 }
635 else {
636 MismatchedSetException mse = new MismatchedSetException(null,input);
637 recover(mse);
638 throw mse;}
639
640
641 }
642 break;
643
644 default :
645 break loop8;
646 }
647 } while (true);
648
649 // InternalApplicationConfiguration.g:655:40: ( ( '\\r' )? '\\n' )?
650 int alt10=2;
651 int LA10_0 = input.LA(1);
652
653 if ( (LA10_0=='\n'||LA10_0=='\r') ) {
654 alt10=1;
655 }
656 switch (alt10) {
657 case 1 :
658 // InternalApplicationConfiguration.g:655:41: ( '\\r' )? '\\n'
659 {
660 // InternalApplicationConfiguration.g:655:41: ( '\\r' )?
661 int alt9=2;
662 int LA9_0 = input.LA(1);
663
664 if ( (LA9_0=='\r') ) {
665 alt9=1;
666 }
667 switch (alt9) {
668 case 1 :
669 // InternalApplicationConfiguration.g:655:41: '\\r'
670 {
671 match('\r');
672
673 }
674 break;
675
676 }
677
678 match('\n');
679
680 }
681 break;
682
683 }
684
685
686 }
687
688 state.type = _type;
689 state.channel = _channel;
690 }
691 finally {
692 }
693 }
694 // $ANTLR end "RULE_SL_COMMENT"
695
696 // $ANTLR start "RULE_WS"
697 public final void mRULE_WS() throws RecognitionException {
698 try {
699 int _type = RULE_WS;
700 int _channel = DEFAULT_TOKEN_CHANNEL;
701 // InternalApplicationConfiguration.g:657:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
702 // InternalApplicationConfiguration.g:657:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
703 {
704 // InternalApplicationConfiguration.g:657:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
705 int cnt11=0;
706 loop11:
707 do {
708 int alt11=2;
709 int LA11_0 = input.LA(1);
710
711 if ( ((LA11_0>='\t' && LA11_0<='\n')||LA11_0=='\r'||LA11_0==' ') ) {
712 alt11=1;
713 }
714
715
716 switch (alt11) {
717 case 1 :
718 // InternalApplicationConfiguration.g:
719 {
720 if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) {
721 input.consume();
722
723 }
724 else {
725 MismatchedSetException mse = new MismatchedSetException(null,input);
726 recover(mse);
727 throw mse;}
728
729
730 }
731 break;
732
733 default :
734 if ( cnt11 >= 1 ) break loop11;
735 EarlyExitException eee =
736 new EarlyExitException(11, input);
737 throw eee;
738 }
739 cnt11++;
740 } while (true);
741
742
743 }
744
745 state.type = _type;
746 state.channel = _channel;
747 }
748 finally {
749 }
750 }
751 // $ANTLR end "RULE_WS"
752
753 // $ANTLR start "RULE_ANY_OTHER"
754 public final void mRULE_ANY_OTHER() throws RecognitionException {
755 try {
756 int _type = RULE_ANY_OTHER;
757 int _channel = DEFAULT_TOKEN_CHANNEL;
758 // InternalApplicationConfiguration.g:659:16: ( . )
759 // InternalApplicationConfiguration.g:659:18: .
760 {
761 matchAny();
762
763 }
764
765 state.type = _type;
766 state.channel = _channel;
767 }
768 finally {
769 }
770 }
771 // $ANTLR end "RULE_ANY_OTHER"
772
773 public void mTokens() throws RecognitionException {
774 // InternalApplicationConfiguration.g:1:8: ( T__11 | T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER )
775 int alt12=18;
776 alt12 = dfa12.predict(input);
777 switch (alt12) {
778 case 1 :
779 // InternalApplicationConfiguration.g:1:10: T__11
780 {
781 mT__11();
782
783 }
784 break;
785 case 2 :
786 // InternalApplicationConfiguration.g:1:16: T__12
787 {
788 mT__12();
789
790 }
791 break;
792 case 3 :
793 // InternalApplicationConfiguration.g:1:22: T__13
794 {
795 mT__13();
796
797 }
798 break;
799 case 4 :
800 // InternalApplicationConfiguration.g:1:28: T__14
801 {
802 mT__14();
803
804 }
805 break;
806 case 5 :
807 // InternalApplicationConfiguration.g:1:34: T__15
808 {
809 mT__15();
810
811 }
812 break;
813 case 6 :
814 // InternalApplicationConfiguration.g:1:40: T__16
815 {
816 mT__16();
817
818 }
819 break;
820 case 7 :
821 // InternalApplicationConfiguration.g:1:46: T__17
822 {
823 mT__17();
824
825 }
826 break;
827 case 8 :
828 // InternalApplicationConfiguration.g:1:52: T__18
829 {
830 mT__18();
831
832 }
833 break;
834 case 9 :
835 // InternalApplicationConfiguration.g:1:58: T__19
836 {
837 mT__19();
838
839 }
840 break;
841 case 10 :
842 // InternalApplicationConfiguration.g:1:64: T__20
843 {
844 mT__20();
845
846 }
847 break;
848 case 11 :
849 // InternalApplicationConfiguration.g:1:70: T__21
850 {
851 mT__21();
852
853 }
854 break;
855 case 12 :
856 // InternalApplicationConfiguration.g:1:76: RULE_ID
857 {
858 mRULE_ID();
859
860 }
861 break;
862 case 13 :
863 // InternalApplicationConfiguration.g:1:84: RULE_INT
864 {
865 mRULE_INT();
866
867 }
868 break;
869 case 14 :
870 // InternalApplicationConfiguration.g:1:93: RULE_STRING
871 {
872 mRULE_STRING();
873
874 }
875 break;
876 case 15 :
877 // InternalApplicationConfiguration.g:1:105: RULE_ML_COMMENT
878 {
879 mRULE_ML_COMMENT();
880
881 }
882 break;
883 case 16 :
884 // InternalApplicationConfiguration.g:1:121: RULE_SL_COMMENT
885 {
886 mRULE_SL_COMMENT();
887
888 }
889 break;
890 case 17 :
891 // InternalApplicationConfiguration.g:1:137: RULE_WS
892 {
893 mRULE_WS();
894
895 }
896 break;
897 case 18 :
898 // InternalApplicationConfiguration.g:1:145: RULE_ANY_OTHER
899 {
900 mRULE_ANY_OTHER();
901
902 }
903 break;
904
905 }
906
907 }
908
909
910 protected DFA12 dfa12 = new DFA12(this);
911 static final String DFA12_eotS =
912 "\1\uffff\3\24\3\uffff\1\24\1\22\1\uffff\1\24\1\22\2\uffff\3\22\2\uffff\1\24\1\uffff\3\24\3\uffff\1\24\2\uffff\1\24\5\uffff\22\24\1\74\2\24\1\77\2\24\1\uffff\2\24\1\uffff\1\104\1\24\1\106\1\24\1\uffff\1\24\1\uffff\1\111\1\112\2\uffff";
913 static final String DFA12_eofS =
914 "\113\uffff";
915 static final String DFA12_minS =
916 "\1\0\1\155\1\160\1\151\3\uffff\1\141\1\72\1\uffff\1\145\1\101\2\uffff\2\0\1\52\2\uffff\1\160\1\uffff\1\141\1\143\1\141\3\uffff\1\143\2\uffff\1\164\5\uffff\1\157\1\143\1\154\1\164\1\153\1\141\1\162\1\153\1\165\1\162\1\141\1\155\1\164\1\141\1\144\1\141\1\147\1\157\1\60\1\147\1\151\1\60\1\145\1\144\1\uffff\1\145\1\156\1\uffff\1\60\1\145\1\60\1\147\1\uffff\1\154\1\uffff\2\60\2\uffff";
917 static final String DFA12_maxS =
918 "\1\uffff\1\155\1\170\1\151\3\uffff\1\141\1\72\1\uffff\1\145\1\172\2\uffff\2\uffff\1\57\2\uffff\1\160\1\uffff\1\141\1\143\1\141\3\uffff\1\143\2\uffff\1\164\5\uffff\1\157\1\143\1\154\1\164\1\153\1\141\1\162\1\153\1\165\1\162\1\141\1\155\1\164\1\141\1\144\1\141\1\147\1\157\1\172\1\147\1\151\1\172\1\145\1\144\1\uffff\1\145\1\156\1\uffff\1\172\1\145\1\172\1\147\1\uffff\1\154\1\uffff\2\172\2\uffff";
919 static final String DFA12_acceptS =
920 "\4\uffff\1\4\1\5\1\6\2\uffff\1\12\2\uffff\1\14\1\15\3\uffff\1\21\1\22\1\uffff\1\14\3\uffff\1\4\1\5\1\6\1\uffff\1\11\1\12\1\uffff\1\15\1\16\1\17\1\20\1\21\30\uffff\1\1\2\uffff\1\3\4\uffff\1\7\1\uffff\1\2\2\uffff\1\10\1\13";
921 static final String DFA12_specialS =
922 "\1\1\15\uffff\1\0\1\2\73\uffff}>";
923 static final String[] DFA12_transitionS = {
924 "\11\22\2\21\2\22\1\21\22\22\1\21\1\22\1\16\4\22\1\17\4\22\1\5\1\22\1\11\1\20\12\15\1\10\6\22\32\14\3\22\1\13\1\14\1\22\4\14\1\2\3\14\1\1\3\14\1\12\2\14\1\7\5\14\1\3\4\14\1\4\1\22\1\6\uff82\22",
925 "\1\23",
926 "\1\25\7\uffff\1\26",
927 "\1\27",
928 "",
929 "",
930 "",
931 "\1\33",
932 "\1\34",
933 "",
934 "\1\36",
935 "\32\24\4\uffff\1\24\1\uffff\32\24",
936 "",
937 "",
938 "\0\40",
939 "\0\40",
940 "\1\41\4\uffff\1\42",
941 "",
942 "",
943 "\1\44",
944 "",
945 "\1\45",
946 "\1\46",
947 "\1\47",
948 "",
949 "",
950 "",
951 "\1\50",
952 "",
953 "",
954 "\1\51",
955 "",
956 "",
957 "",
958 "",
959 "",
960 "\1\52",
961 "\1\53",
962 "\1\54",
963 "\1\55",
964 "\1\56",
965 "\1\57",
966 "\1\60",
967 "\1\61",
968 "\1\62",
969 "\1\63",
970 "\1\64",
971 "\1\65",
972 "\1\66",
973 "\1\67",
974 "\1\70",
975 "\1\71",
976 "\1\72",
977 "\1\73",
978 "\12\24\7\uffff\32\24\4\uffff\1\24\1\uffff\32\24",
979 "\1\75",
980 "\1\76",
981 "\12\24\7\uffff\32\24\4\uffff\1\24\1\uffff\32\24",
982 "\1\100",
983 "\1\101",
984 "",
985 "\1\102",
986 "\1\103",
987 "",
988 "\12\24\7\uffff\32\24\4\uffff\1\24\1\uffff\32\24",
989 "\1\105",
990 "\12\24\7\uffff\32\24\4\uffff\1\24\1\uffff\32\24",
991 "\1\107",
992 "",
993 "\1\110",
994 "",
995 "\12\24\7\uffff\32\24\4\uffff\1\24\1\uffff\32\24",
996 "\12\24\7\uffff\32\24\4\uffff\1\24\1\uffff\32\24",
997 "",
998 ""
999 };
1000
1001 static final short[] DFA12_eot = DFA.unpackEncodedString(DFA12_eotS);
1002 static final short[] DFA12_eof = DFA.unpackEncodedString(DFA12_eofS);
1003 static final char[] DFA12_min = DFA.unpackEncodedStringToUnsignedChars(DFA12_minS);
1004 static final char[] DFA12_max = DFA.unpackEncodedStringToUnsignedChars(DFA12_maxS);
1005 static final short[] DFA12_accept = DFA.unpackEncodedString(DFA12_acceptS);
1006 static final short[] DFA12_special = DFA.unpackEncodedString(DFA12_specialS);
1007 static final short[][] DFA12_transition;
1008
1009 static {
1010 int numStates = DFA12_transitionS.length;
1011 DFA12_transition = new short[numStates][];
1012 for (int i=0; i<numStates; i++) {
1013 DFA12_transition[i] = DFA.unpackEncodedString(DFA12_transitionS[i]);
1014 }
1015 }
1016
1017 class DFA12 extends DFA {
1018
1019 public DFA12(BaseRecognizer recognizer) {
1020 this.recognizer = recognizer;
1021 this.decisionNumber = 12;
1022 this.eot = DFA12_eot;
1023 this.eof = DFA12_eof;
1024 this.min = DFA12_min;
1025 this.max = DFA12_max;
1026 this.accept = DFA12_accept;
1027 this.special = DFA12_special;
1028 this.transition = DFA12_transition;
1029 }
1030 public String getDescription() {
1031 return "1:1: Tokens : ( T__11 | T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER );";
1032 }
1033 public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
1034 IntStream input = _input;
1035 int _s = s;
1036 switch ( s ) {
1037 case 0 :
1038 int LA12_14 = input.LA(1);
1039
1040 s = -1;
1041 if ( ((LA12_14>='\u0000' && LA12_14<='\uFFFF')) ) {s = 32;}
1042
1043 else s = 18;
1044
1045 if ( s>=0 ) return s;
1046 break;
1047 case 1 :
1048 int LA12_0 = input.LA(1);
1049
1050 s = -1;
1051 if ( (LA12_0=='i') ) {s = 1;}
1052
1053 else if ( (LA12_0=='e') ) {s = 2;}
1054
1055 else if ( (LA12_0=='v') ) {s = 3;}
1056
1057 else if ( (LA12_0=='{') ) {s = 4;}
1058
1059 else if ( (LA12_0==',') ) {s = 5;}
1060
1061 else if ( (LA12_0=='}') ) {s = 6;}
1062
1063 else if ( (LA12_0=='p') ) {s = 7;}
1064
1065 else if ( (LA12_0==':') ) {s = 8;}
1066
1067 else if ( (LA12_0=='.') ) {s = 9;}
1068
1069 else if ( (LA12_0=='m') ) {s = 10;}
1070
1071 else if ( (LA12_0=='^') ) {s = 11;}
1072
1073 else if ( ((LA12_0>='A' && LA12_0<='Z')||LA12_0=='_'||(LA12_0>='a' && LA12_0<='d')||(LA12_0>='f' && LA12_0<='h')||(LA12_0>='j' && LA12_0<='l')||(LA12_0>='n' && LA12_0<='o')||(LA12_0>='q' && LA12_0<='u')||(LA12_0>='w' && LA12_0<='z')) ) {s = 12;}
1074
1075 else if ( ((LA12_0>='0' && LA12_0<='9')) ) {s = 13;}
1076
1077 else if ( (LA12_0=='\"') ) {s = 14;}
1078
1079 else if ( (LA12_0=='\'') ) {s = 15;}
1080
1081 else if ( (LA12_0=='/') ) {s = 16;}
1082
1083 else if ( ((LA12_0>='\t' && LA12_0<='\n')||LA12_0=='\r'||LA12_0==' ') ) {s = 17;}
1084
1085 else if ( ((LA12_0>='\u0000' && LA12_0<='\b')||(LA12_0>='\u000B' && LA12_0<='\f')||(LA12_0>='\u000E' && LA12_0<='\u001F')||LA12_0=='!'||(LA12_0>='#' && LA12_0<='&')||(LA12_0>='(' && LA12_0<='+')||LA12_0=='-'||(LA12_0>=';' && LA12_0<='@')||(LA12_0>='[' && LA12_0<=']')||LA12_0=='`'||LA12_0=='|'||(LA12_0>='~' && LA12_0<='\uFFFF')) ) {s = 18;}
1086
1087 if ( s>=0 ) return s;
1088 break;
1089 case 2 :
1090 int LA12_15 = input.LA(1);
1091
1092 s = -1;
1093 if ( ((LA12_15>='\u0000' && LA12_15<='\uFFFF')) ) {s = 32;}
1094
1095 else s = 18;
1096
1097 if ( s>=0 ) return s;
1098 break;
1099 }
1100 NoViableAltException nvae =
1101 new NoViableAltException(getDescription(), 12, _s, input);
1102 error(nvae);
1103 throw nvae;
1104 }
1105 }
1106
1107
1108} \ No newline at end of file
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 @@
1package hu.bme.mit.inf.dslreasoner.application.parser.antlr.internal;
2
3import org.eclipse.xtext.*;
4import org.eclipse.xtext.parser.*;
5import org.eclipse.xtext.parser.impl.*;
6import org.eclipse.emf.ecore.util.EcoreUtil;
7import org.eclipse.emf.ecore.EObject;
8import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser;
9import org.eclipse.xtext.parser.antlr.XtextTokenStream;
10import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens;
11import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken;
12import hu.bme.mit.inf.dslreasoner.application.services.ApplicationConfigurationGrammarAccess;
13
14
15
16import org.antlr.runtime.*;
17import java.util.Stack;
18import java.util.List;
19import java.util.ArrayList;
20
21@SuppressWarnings("all")
22public 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