aboutsummaryrefslogtreecommitdiffstats
path: root/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.g
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/internal/InternalApplicationConfiguration.g')
-rw-r--r--Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.g659
1 files changed, 659 insertions, 0 deletions
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 : .;