diff options
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.g | 2526 |
1 files changed, 2499 insertions, 27 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 index f7f57fab..13039f39 100644 --- 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 | |||
@@ -23,6 +23,7 @@ import org.eclipse.xtext.parser.*; | |||
23 | import org.eclipse.xtext.parser.impl.*; | 23 | import org.eclipse.xtext.parser.impl.*; |
24 | import org.eclipse.emf.ecore.util.EcoreUtil; | 24 | import org.eclipse.emf.ecore.util.EcoreUtil; |
25 | import org.eclipse.emf.ecore.EObject; | 25 | import org.eclipse.emf.ecore.EObject; |
26 | import org.eclipse.emf.common.util.Enumerator; | ||
26 | import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser; | 27 | import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser; |
27 | import org.eclipse.xtext.parser.antlr.XtextTokenStream; | 28 | import org.eclipse.xtext.parser.antlr.XtextTokenStream; |
28 | import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; | 29 | import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; |
@@ -132,39 +133,68 @@ ruleCommand returns [EObject current=null] | |||
132 | @after { | 133 | @after { |
133 | leaveRule(); | 134 | leaveRule(); |
134 | }: | 135 | }: |
135 | { | 136 | ( |
136 | newCompositeNode(grammarAccess.getCommandAccess().getDeclarationParserRuleCall()); | 137 | { |
137 | } | 138 | newCompositeNode(grammarAccess.getCommandAccess().getDeclarationParserRuleCall_0()); |
138 | this_Declaration_0=ruleDeclaration | 139 | } |
139 | { | 140 | this_Declaration_0=ruleDeclaration |
140 | $current = $this_Declaration_0.current; | 141 | { |
141 | afterParserOrEnumRuleCall(); | 142 | $current = $this_Declaration_0.current; |
142 | } | 143 | afterParserOrEnumRuleCall(); |
144 | } | ||
145 | | | ||
146 | { | ||
147 | newCompositeNode(grammarAccess.getCommandAccess().getTaskParserRuleCall_1()); | ||
148 | } | ||
149 | this_Task_1=ruleTask | ||
150 | { | ||
151 | $current = $this_Task_1.current; | ||
152 | afterParserOrEnumRuleCall(); | ||
153 | } | ||
154 | ) | ||
143 | ; | 155 | ; |
144 | 156 | ||
145 | // Entry rule entryRuleDeclaration | 157 | // Entry rule entryRuleQualifiedName |
146 | entryRuleDeclaration returns [EObject current=null]: | 158 | entryRuleQualifiedName returns [String current=null]: |
147 | { newCompositeNode(grammarAccess.getDeclarationRule()); } | 159 | { newCompositeNode(grammarAccess.getQualifiedNameRule()); } |
148 | iv_ruleDeclaration=ruleDeclaration | 160 | iv_ruleQualifiedName=ruleQualifiedName |
149 | { $current=$iv_ruleDeclaration.current; } | 161 | { $current=$iv_ruleQualifiedName.current.getText(); } |
150 | EOF; | 162 | EOF; |
151 | 163 | ||
152 | // Rule Declaration | 164 | // Rule QualifiedName |
153 | ruleDeclaration returns [EObject current=null] | 165 | ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] |
154 | @init { | 166 | @init { |
155 | enterRule(); | 167 | enterRule(); |
156 | } | 168 | } |
157 | @after { | 169 | @after { |
158 | leaveRule(); | 170 | leaveRule(); |
159 | }: | 171 | }: |
160 | { | 172 | ( |
161 | newCompositeNode(grammarAccess.getDeclarationAccess().getMetamodelDeclarationParserRuleCall()); | 173 | this_ID_0=RULE_ID |
162 | } | 174 | { |
163 | this_MetamodelDeclaration_0=ruleMetamodelDeclaration | 175 | $current.merge(this_ID_0); |
164 | { | 176 | } |
165 | $current = $this_MetamodelDeclaration_0.current; | 177 | { |
166 | afterParserOrEnumRuleCall(); | 178 | newLeafNode(this_ID_0, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); |
167 | } | 179 | } |
180 | ( | ||
181 | ( | ||
182 | ('.')=> | ||
183 | kw='.' | ||
184 | { | ||
185 | $current.merge(kw); | ||
186 | newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); | ||
187 | } | ||
188 | ) | ||
189 | this_ID_2=RULE_ID | ||
190 | { | ||
191 | $current.merge(this_ID_2); | ||
192 | } | ||
193 | { | ||
194 | newLeafNode(this_ID_2, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); | ||
195 | } | ||
196 | )* | ||
197 | ) | ||
168 | ; | 198 | ; |
169 | 199 | ||
170 | // Entry rule entryRuleImport | 200 | // Entry rule entryRuleImport |
@@ -283,6 +313,243 @@ ruleViatraImport returns [EObject current=null] | |||
283 | ) | 313 | ) |
284 | ; | 314 | ; |
285 | 315 | ||
316 | // Entry rule entryRuleDeclaration | ||
317 | entryRuleDeclaration returns [EObject current=null]: | ||
318 | { newCompositeNode(grammarAccess.getDeclarationRule()); } | ||
319 | iv_ruleDeclaration=ruleDeclaration | ||
320 | { $current=$iv_ruleDeclaration.current; } | ||
321 | EOF; | ||
322 | |||
323 | // Rule Declaration | ||
324 | ruleDeclaration returns [EObject current=null] | ||
325 | @init { | ||
326 | enterRule(); | ||
327 | } | ||
328 | @after { | ||
329 | leaveRule(); | ||
330 | }: | ||
331 | ( | ||
332 | { | ||
333 | newCompositeNode(grammarAccess.getDeclarationAccess().getFileDeclarationParserRuleCall_0()); | ||
334 | } | ||
335 | this_FileDeclaration_0=ruleFileDeclaration | ||
336 | { | ||
337 | $current = $this_FileDeclaration_0.current; | ||
338 | afterParserOrEnumRuleCall(); | ||
339 | } | ||
340 | | | ||
341 | { | ||
342 | newCompositeNode(grammarAccess.getDeclarationAccess().getMetamodelDeclarationParserRuleCall_1()); | ||
343 | } | ||
344 | this_MetamodelDeclaration_1=ruleMetamodelDeclaration | ||
345 | { | ||
346 | $current = $this_MetamodelDeclaration_1.current; | ||
347 | afterParserOrEnumRuleCall(); | ||
348 | } | ||
349 | | | ||
350 | { | ||
351 | newCompositeNode(grammarAccess.getDeclarationAccess().getPartialModelDeclarationParserRuleCall_2()); | ||
352 | } | ||
353 | this_PartialModelDeclaration_2=rulePartialModelDeclaration | ||
354 | { | ||
355 | $current = $this_PartialModelDeclaration_2.current; | ||
356 | afterParserOrEnumRuleCall(); | ||
357 | } | ||
358 | | | ||
359 | { | ||
360 | newCompositeNode(grammarAccess.getDeclarationAccess().getGraphPatternDeclarationParserRuleCall_3()); | ||
361 | } | ||
362 | this_GraphPatternDeclaration_3=ruleGraphPatternDeclaration | ||
363 | { | ||
364 | $current = $this_GraphPatternDeclaration_3.current; | ||
365 | afterParserOrEnumRuleCall(); | ||
366 | } | ||
367 | | | ||
368 | { | ||
369 | newCompositeNode(grammarAccess.getDeclarationAccess().getConfigDeclarationParserRuleCall_4()); | ||
370 | } | ||
371 | this_ConfigDeclaration_4=ruleConfigDeclaration | ||
372 | { | ||
373 | $current = $this_ConfigDeclaration_4.current; | ||
374 | afterParserOrEnumRuleCall(); | ||
375 | } | ||
376 | | | ||
377 | { | ||
378 | newCompositeNode(grammarAccess.getDeclarationAccess().getScopeDeclarationParserRuleCall_5()); | ||
379 | } | ||
380 | this_ScopeDeclaration_5=ruleScopeDeclaration | ||
381 | { | ||
382 | $current = $this_ScopeDeclaration_5.current; | ||
383 | afterParserOrEnumRuleCall(); | ||
384 | } | ||
385 | ) | ||
386 | ; | ||
387 | |||
388 | // Entry rule entryRuleFileSpecification | ||
389 | entryRuleFileSpecification returns [EObject current=null]: | ||
390 | { newCompositeNode(grammarAccess.getFileSpecificationRule()); } | ||
391 | iv_ruleFileSpecification=ruleFileSpecification | ||
392 | { $current=$iv_ruleFileSpecification.current; } | ||
393 | EOF; | ||
394 | |||
395 | // Rule FileSpecification | ||
396 | ruleFileSpecification returns [EObject current=null] | ||
397 | @init { | ||
398 | enterRule(); | ||
399 | } | ||
400 | @after { | ||
401 | leaveRule(); | ||
402 | }: | ||
403 | ( | ||
404 | ( | ||
405 | lv_path_0_0=RULE_STRING | ||
406 | { | ||
407 | newLeafNode(lv_path_0_0, grammarAccess.getFileSpecificationAccess().getPathSTRINGTerminalRuleCall_0()); | ||
408 | } | ||
409 | { | ||
410 | if ($current==null) { | ||
411 | $current = createModelElement(grammarAccess.getFileSpecificationRule()); | ||
412 | } | ||
413 | setWithLastConsumed( | ||
414 | $current, | ||
415 | "path", | ||
416 | lv_path_0_0, | ||
417 | "org.eclipse.xtext.common.Terminals.STRING"); | ||
418 | } | ||
419 | ) | ||
420 | ) | ||
421 | ; | ||
422 | |||
423 | // Entry rule entryRuleFileDeclaration | ||
424 | entryRuleFileDeclaration returns [EObject current=null]: | ||
425 | { newCompositeNode(grammarAccess.getFileDeclarationRule()); } | ||
426 | iv_ruleFileDeclaration=ruleFileDeclaration | ||
427 | { $current=$iv_ruleFileDeclaration.current; } | ||
428 | EOF; | ||
429 | |||
430 | // Rule FileDeclaration | ||
431 | ruleFileDeclaration returns [EObject current=null] | ||
432 | @init { | ||
433 | enterRule(); | ||
434 | } | ||
435 | @after { | ||
436 | leaveRule(); | ||
437 | }: | ||
438 | ( | ||
439 | otherlv_0='file' | ||
440 | { | ||
441 | newLeafNode(otherlv_0, grammarAccess.getFileDeclarationAccess().getFileKeyword_0()); | ||
442 | } | ||
443 | ( | ||
444 | ( | ||
445 | lv_name_1_0=RULE_ID | ||
446 | { | ||
447 | newLeafNode(lv_name_1_0, grammarAccess.getFileDeclarationAccess().getNameIDTerminalRuleCall_1_0()); | ||
448 | } | ||
449 | { | ||
450 | if ($current==null) { | ||
451 | $current = createModelElement(grammarAccess.getFileDeclarationRule()); | ||
452 | } | ||
453 | setWithLastConsumed( | ||
454 | $current, | ||
455 | "name", | ||
456 | lv_name_1_0, | ||
457 | "org.eclipse.xtext.common.Terminals.ID"); | ||
458 | } | ||
459 | ) | ||
460 | ) | ||
461 | otherlv_2='=' | ||
462 | { | ||
463 | newLeafNode(otherlv_2, grammarAccess.getFileDeclarationAccess().getEqualsSignKeyword_2()); | ||
464 | } | ||
465 | ( | ||
466 | ( | ||
467 | { | ||
468 | newCompositeNode(grammarAccess.getFileDeclarationAccess().getSpecificationFileSpecificationParserRuleCall_3_0()); | ||
469 | } | ||
470 | lv_specification_3_0=ruleFileSpecification | ||
471 | { | ||
472 | if ($current==null) { | ||
473 | $current = createModelElementForParent(grammarAccess.getFileDeclarationRule()); | ||
474 | } | ||
475 | set( | ||
476 | $current, | ||
477 | "specification", | ||
478 | lv_specification_3_0, | ||
479 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.FileSpecification"); | ||
480 | afterParserOrEnumRuleCall(); | ||
481 | } | ||
482 | ) | ||
483 | ) | ||
484 | ) | ||
485 | ; | ||
486 | |||
487 | // Entry rule entryRuleFileReference | ||
488 | entryRuleFileReference returns [EObject current=null]: | ||
489 | { newCompositeNode(grammarAccess.getFileReferenceRule()); } | ||
490 | iv_ruleFileReference=ruleFileReference | ||
491 | { $current=$iv_ruleFileReference.current; } | ||
492 | EOF; | ||
493 | |||
494 | // Rule FileReference | ||
495 | ruleFileReference returns [EObject current=null] | ||
496 | @init { | ||
497 | enterRule(); | ||
498 | } | ||
499 | @after { | ||
500 | leaveRule(); | ||
501 | }: | ||
502 | ( | ||
503 | ( | ||
504 | { | ||
505 | if ($current==null) { | ||
506 | $current = createModelElement(grammarAccess.getFileReferenceRule()); | ||
507 | } | ||
508 | } | ||
509 | otherlv_0=RULE_ID | ||
510 | { | ||
511 | newLeafNode(otherlv_0, grammarAccess.getFileReferenceAccess().getReferredFileDeclarationCrossReference_0()); | ||
512 | } | ||
513 | ) | ||
514 | ) | ||
515 | ; | ||
516 | |||
517 | // Entry rule entryRuleFile | ||
518 | entryRuleFile returns [EObject current=null]: | ||
519 | { newCompositeNode(grammarAccess.getFileRule()); } | ||
520 | iv_ruleFile=ruleFile | ||
521 | { $current=$iv_ruleFile.current; } | ||
522 | EOF; | ||
523 | |||
524 | // Rule File | ||
525 | ruleFile returns [EObject current=null] | ||
526 | @init { | ||
527 | enterRule(); | ||
528 | } | ||
529 | @after { | ||
530 | leaveRule(); | ||
531 | }: | ||
532 | ( | ||
533 | { | ||
534 | newCompositeNode(grammarAccess.getFileAccess().getFileSpecificationParserRuleCall_0()); | ||
535 | } | ||
536 | this_FileSpecification_0=ruleFileSpecification | ||
537 | { | ||
538 | $current = $this_FileSpecification_0.current; | ||
539 | afterParserOrEnumRuleCall(); | ||
540 | } | ||
541 | | | ||
542 | { | ||
543 | newCompositeNode(grammarAccess.getFileAccess().getFileReferenceParserRuleCall_1()); | ||
544 | } | ||
545 | this_FileReference_1=ruleFileReference | ||
546 | { | ||
547 | $current = $this_FileReference_1.current; | ||
548 | afterParserOrEnumRuleCall(); | ||
549 | } | ||
550 | ) | ||
551 | ; | ||
552 | |||
286 | // Entry rule entryRuleMetamodelSpecification | 553 | // Entry rule entryRuleMetamodelSpecification |
287 | entryRuleMetamodelSpecification returns [EObject current=null]: | 554 | entryRuleMetamodelSpecification returns [EObject current=null]: |
288 | { newCompositeNode(grammarAccess.getMetamodelSpecificationRule()); } | 555 | { newCompositeNode(grammarAccess.getMetamodelSpecificationRule()); } |
@@ -417,9 +684,12 @@ ruleAllPackageEntry returns [EObject current=null] | |||
417 | $current = createModelElement(grammarAccess.getAllPackageEntryRule()); | 684 | $current = createModelElement(grammarAccess.getAllPackageEntryRule()); |
418 | } | 685 | } |
419 | } | 686 | } |
420 | otherlv_1=RULE_ID | ||
421 | { | 687 | { |
422 | newLeafNode(otherlv_1, grammarAccess.getAllPackageEntryAccess().getPackageEPackageCrossReference_1_0()); | 688 | newCompositeNode(grammarAccess.getAllPackageEntryAccess().getPackageEPackageCrossReference_1_0()); |
689 | } | ||
690 | ruleQualifiedName | ||
691 | { | ||
692 | afterParserOrEnumRuleCall(); | ||
423 | } | 693 | } |
424 | ) | 694 | ) |
425 | ) | 695 | ) |
@@ -508,9 +778,12 @@ ruleMetamodelElement returns [EObject current=null] | |||
508 | $current = createModelElement(grammarAccess.getMetamodelElementRule()); | 778 | $current = createModelElement(grammarAccess.getMetamodelElementRule()); |
509 | } | 779 | } |
510 | } | 780 | } |
511 | otherlv_0=RULE_ID | ||
512 | { | 781 | { |
513 | newLeafNode(otherlv_0, grammarAccess.getMetamodelElementAccess().getPackageEPackageCrossReference_0_0_0()); | 782 | newCompositeNode(grammarAccess.getMetamodelElementAccess().getPackageEPackageCrossReference_0_0_0()); |
783 | } | ||
784 | ruleQualifiedName | ||
785 | { | ||
786 | afterParserOrEnumRuleCall(); | ||
514 | } | 787 | } |
515 | ) | 788 | ) |
516 | ) | 789 | ) |
@@ -644,6 +917,2205 @@ ruleMetamodelReference returns [EObject current=null] | |||
644 | ) | 917 | ) |
645 | ; | 918 | ; |
646 | 919 | ||
920 | // Entry rule entryRuleMetamodel | ||
921 | entryRuleMetamodel returns [EObject current=null]: | ||
922 | { newCompositeNode(grammarAccess.getMetamodelRule()); } | ||
923 | iv_ruleMetamodel=ruleMetamodel | ||
924 | { $current=$iv_ruleMetamodel.current; } | ||
925 | EOF; | ||
926 | |||
927 | // Rule Metamodel | ||
928 | ruleMetamodel returns [EObject current=null] | ||
929 | @init { | ||
930 | enterRule(); | ||
931 | } | ||
932 | @after { | ||
933 | leaveRule(); | ||
934 | }: | ||
935 | ( | ||
936 | { | ||
937 | newCompositeNode(grammarAccess.getMetamodelAccess().getMetamodelReferenceParserRuleCall_0()); | ||
938 | } | ||
939 | this_MetamodelReference_0=ruleMetamodelReference | ||
940 | { | ||
941 | $current = $this_MetamodelReference_0.current; | ||
942 | afterParserOrEnumRuleCall(); | ||
943 | } | ||
944 | | | ||
945 | { | ||
946 | newCompositeNode(grammarAccess.getMetamodelAccess().getMetamodelSpecificationParserRuleCall_1()); | ||
947 | } | ||
948 | this_MetamodelSpecification_1=ruleMetamodelSpecification | ||
949 | { | ||
950 | $current = $this_MetamodelSpecification_1.current; | ||
951 | afterParserOrEnumRuleCall(); | ||
952 | } | ||
953 | ) | ||
954 | ; | ||
955 | |||
956 | // Entry rule entryRulePartialModelSpecification | ||
957 | entryRulePartialModelSpecification returns [EObject current=null]: | ||
958 | { newCompositeNode(grammarAccess.getPartialModelSpecificationRule()); } | ||
959 | iv_rulePartialModelSpecification=rulePartialModelSpecification | ||
960 | { $current=$iv_rulePartialModelSpecification.current; } | ||
961 | EOF; | ||
962 | |||
963 | // Rule PartialModelSpecification | ||
964 | rulePartialModelSpecification returns [EObject current=null] | ||
965 | @init { | ||
966 | enterRule(); | ||
967 | } | ||
968 | @after { | ||
969 | leaveRule(); | ||
970 | }: | ||
971 | ( | ||
972 | otherlv_0='{' | ||
973 | { | ||
974 | newLeafNode(otherlv_0, grammarAccess.getPartialModelSpecificationAccess().getLeftCurlyBracketKeyword_0()); | ||
975 | } | ||
976 | ( | ||
977 | ( | ||
978 | { | ||
979 | newCompositeNode(grammarAccess.getPartialModelSpecificationAccess().getEntryPartialModelEntryParserRuleCall_1_0()); | ||
980 | } | ||
981 | lv_entry_1_0=rulePartialModelEntry | ||
982 | { | ||
983 | if ($current==null) { | ||
984 | $current = createModelElementForParent(grammarAccess.getPartialModelSpecificationRule()); | ||
985 | } | ||
986 | add( | ||
987 | $current, | ||
988 | "entry", | ||
989 | lv_entry_1_0, | ||
990 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PartialModelEntry"); | ||
991 | afterParserOrEnumRuleCall(); | ||
992 | } | ||
993 | ) | ||
994 | ) | ||
995 | ( | ||
996 | otherlv_2=',' | ||
997 | { | ||
998 | newLeafNode(otherlv_2, grammarAccess.getPartialModelSpecificationAccess().getCommaKeyword_2_0()); | ||
999 | } | ||
1000 | ( | ||
1001 | ( | ||
1002 | { | ||
1003 | newCompositeNode(grammarAccess.getPartialModelSpecificationAccess().getEntryPartialModelEntryParserRuleCall_2_1_0()); | ||
1004 | } | ||
1005 | lv_entry_3_0=rulePartialModelEntry | ||
1006 | { | ||
1007 | if ($current==null) { | ||
1008 | $current = createModelElementForParent(grammarAccess.getPartialModelSpecificationRule()); | ||
1009 | } | ||
1010 | add( | ||
1011 | $current, | ||
1012 | "entry", | ||
1013 | lv_entry_3_0, | ||
1014 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PartialModelEntry"); | ||
1015 | afterParserOrEnumRuleCall(); | ||
1016 | } | ||
1017 | ) | ||
1018 | ) | ||
1019 | )? | ||
1020 | otherlv_4='}' | ||
1021 | { | ||
1022 | newLeafNode(otherlv_4, grammarAccess.getPartialModelSpecificationAccess().getRightCurlyBracketKeyword_3()); | ||
1023 | } | ||
1024 | ) | ||
1025 | ; | ||
1026 | |||
1027 | // Entry rule entryRulePartialModelEntry | ||
1028 | entryRulePartialModelEntry returns [EObject current=null]: | ||
1029 | { newCompositeNode(grammarAccess.getPartialModelEntryRule()); } | ||
1030 | iv_rulePartialModelEntry=rulePartialModelEntry | ||
1031 | { $current=$iv_rulePartialModelEntry.current; } | ||
1032 | EOF; | ||
1033 | |||
1034 | // Rule PartialModelEntry | ||
1035 | rulePartialModelEntry returns [EObject current=null] | ||
1036 | @init { | ||
1037 | enterRule(); | ||
1038 | } | ||
1039 | @after { | ||
1040 | leaveRule(); | ||
1041 | }: | ||
1042 | ( | ||
1043 | { | ||
1044 | newCompositeNode(grammarAccess.getPartialModelEntryAccess().getModelEntryParserRuleCall_0()); | ||
1045 | } | ||
1046 | this_ModelEntry_0=ruleModelEntry | ||
1047 | { | ||
1048 | $current = $this_ModelEntry_0.current; | ||
1049 | afterParserOrEnumRuleCall(); | ||
1050 | } | ||
1051 | | | ||
1052 | { | ||
1053 | newCompositeNode(grammarAccess.getPartialModelEntryAccess().getFolderEntryParserRuleCall_1()); | ||
1054 | } | ||
1055 | this_FolderEntry_1=ruleFolderEntry | ||
1056 | { | ||
1057 | $current = $this_FolderEntry_1.current; | ||
1058 | afterParserOrEnumRuleCall(); | ||
1059 | } | ||
1060 | ) | ||
1061 | ; | ||
1062 | |||
1063 | // Entry rule entryRuleModelEntry | ||
1064 | entryRuleModelEntry returns [EObject current=null]: | ||
1065 | { newCompositeNode(grammarAccess.getModelEntryRule()); } | ||
1066 | iv_ruleModelEntry=ruleModelEntry | ||
1067 | { $current=$iv_ruleModelEntry.current; } | ||
1068 | EOF; | ||
1069 | |||
1070 | // Rule ModelEntry | ||
1071 | ruleModelEntry returns [EObject current=null] | ||
1072 | @init { | ||
1073 | enterRule(); | ||
1074 | } | ||
1075 | @after { | ||
1076 | leaveRule(); | ||
1077 | }: | ||
1078 | ( | ||
1079 | ( | ||
1080 | { | ||
1081 | newCompositeNode(grammarAccess.getModelEntryAccess().getPathFileParserRuleCall_0()); | ||
1082 | } | ||
1083 | lv_path_0_0=ruleFile | ||
1084 | { | ||
1085 | if ($current==null) { | ||
1086 | $current = createModelElementForParent(grammarAccess.getModelEntryRule()); | ||
1087 | } | ||
1088 | set( | ||
1089 | $current, | ||
1090 | "path", | ||
1091 | lv_path_0_0, | ||
1092 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); | ||
1093 | afterParserOrEnumRuleCall(); | ||
1094 | } | ||
1095 | ) | ||
1096 | ) | ||
1097 | ; | ||
1098 | |||
1099 | // Entry rule entryRuleFolderEntry | ||
1100 | entryRuleFolderEntry returns [EObject current=null]: | ||
1101 | { newCompositeNode(grammarAccess.getFolderEntryRule()); } | ||
1102 | iv_ruleFolderEntry=ruleFolderEntry | ||
1103 | { $current=$iv_ruleFolderEntry.current; } | ||
1104 | EOF; | ||
1105 | |||
1106 | // Rule FolderEntry | ||
1107 | ruleFolderEntry returns [EObject current=null] | ||
1108 | @init { | ||
1109 | enterRule(); | ||
1110 | } | ||
1111 | @after { | ||
1112 | leaveRule(); | ||
1113 | }: | ||
1114 | ( | ||
1115 | otherlv_0='folder' | ||
1116 | { | ||
1117 | newLeafNode(otherlv_0, grammarAccess.getFolderEntryAccess().getFolderKeyword_0()); | ||
1118 | } | ||
1119 | ( | ||
1120 | ( | ||
1121 | { | ||
1122 | newCompositeNode(grammarAccess.getFolderEntryAccess().getPathFileParserRuleCall_1_0()); | ||
1123 | } | ||
1124 | lv_path_1_0=ruleFile | ||
1125 | { | ||
1126 | if ($current==null) { | ||
1127 | $current = createModelElementForParent(grammarAccess.getFolderEntryRule()); | ||
1128 | } | ||
1129 | set( | ||
1130 | $current, | ||
1131 | "path", | ||
1132 | lv_path_1_0, | ||
1133 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); | ||
1134 | afterParserOrEnumRuleCall(); | ||
1135 | } | ||
1136 | ) | ||
1137 | ) | ||
1138 | ( | ||
1139 | otherlv_2='excluding' | ||
1140 | { | ||
1141 | newLeafNode(otherlv_2, grammarAccess.getFolderEntryAccess().getExcludingKeyword_2_0()); | ||
1142 | } | ||
1143 | otherlv_3='{' | ||
1144 | { | ||
1145 | newLeafNode(otherlv_3, grammarAccess.getFolderEntryAccess().getLeftCurlyBracketKeyword_2_1()); | ||
1146 | } | ||
1147 | ( | ||
1148 | ( | ||
1149 | { | ||
1150 | newCompositeNode(grammarAccess.getFolderEntryAccess().getExclusionModelEntryParserRuleCall_2_2_0()); | ||
1151 | } | ||
1152 | lv_exclusion_4_0=ruleModelEntry | ||
1153 | { | ||
1154 | if ($current==null) { | ||
1155 | $current = createModelElementForParent(grammarAccess.getFolderEntryRule()); | ||
1156 | } | ||
1157 | add( | ||
1158 | $current, | ||
1159 | "exclusion", | ||
1160 | lv_exclusion_4_0, | ||
1161 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ModelEntry"); | ||
1162 | afterParserOrEnumRuleCall(); | ||
1163 | } | ||
1164 | ) | ||
1165 | ) | ||
1166 | ( | ||
1167 | otherlv_5=',' | ||
1168 | { | ||
1169 | newLeafNode(otherlv_5, grammarAccess.getFolderEntryAccess().getCommaKeyword_2_3_0()); | ||
1170 | } | ||
1171 | ( | ||
1172 | ( | ||
1173 | { | ||
1174 | newCompositeNode(grammarAccess.getFolderEntryAccess().getExclusionModelEntryParserRuleCall_2_3_1_0()); | ||
1175 | } | ||
1176 | lv_exclusion_6_0=ruleModelEntry | ||
1177 | { | ||
1178 | if ($current==null) { | ||
1179 | $current = createModelElementForParent(grammarAccess.getFolderEntryRule()); | ||
1180 | } | ||
1181 | add( | ||
1182 | $current, | ||
1183 | "exclusion", | ||
1184 | lv_exclusion_6_0, | ||
1185 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ModelEntry"); | ||
1186 | afterParserOrEnumRuleCall(); | ||
1187 | } | ||
1188 | ) | ||
1189 | ) | ||
1190 | )* | ||
1191 | otherlv_7='}' | ||
1192 | { | ||
1193 | newLeafNode(otherlv_7, grammarAccess.getFolderEntryAccess().getRightCurlyBracketKeyword_2_4()); | ||
1194 | } | ||
1195 | )? | ||
1196 | ) | ||
1197 | ; | ||
1198 | |||
1199 | // Entry rule entryRulePartialModelDeclaration | ||
1200 | entryRulePartialModelDeclaration returns [EObject current=null]: | ||
1201 | { newCompositeNode(grammarAccess.getPartialModelDeclarationRule()); } | ||
1202 | iv_rulePartialModelDeclaration=rulePartialModelDeclaration | ||
1203 | { $current=$iv_rulePartialModelDeclaration.current; } | ||
1204 | EOF; | ||
1205 | |||
1206 | // Rule PartialModelDeclaration | ||
1207 | rulePartialModelDeclaration returns [EObject current=null] | ||
1208 | @init { | ||
1209 | enterRule(); | ||
1210 | } | ||
1211 | @after { | ||
1212 | leaveRule(); | ||
1213 | }: | ||
1214 | ( | ||
1215 | otherlv_0='partial-model' | ||
1216 | { | ||
1217 | newLeafNode(otherlv_0, grammarAccess.getPartialModelDeclarationAccess().getPartialModelKeyword_0()); | ||
1218 | } | ||
1219 | ( | ||
1220 | ( | ||
1221 | lv_name_1_0=RULE_ID | ||
1222 | { | ||
1223 | newLeafNode(lv_name_1_0, grammarAccess.getPartialModelDeclarationAccess().getNameIDTerminalRuleCall_1_0()); | ||
1224 | } | ||
1225 | { | ||
1226 | if ($current==null) { | ||
1227 | $current = createModelElement(grammarAccess.getPartialModelDeclarationRule()); | ||
1228 | } | ||
1229 | setWithLastConsumed( | ||
1230 | $current, | ||
1231 | "name", | ||
1232 | lv_name_1_0, | ||
1233 | "org.eclipse.xtext.common.Terminals.ID"); | ||
1234 | } | ||
1235 | ) | ||
1236 | ) | ||
1237 | ( | ||
1238 | ( | ||
1239 | { | ||
1240 | newCompositeNode(grammarAccess.getPartialModelDeclarationAccess().getSpecificationPartialModelSpecificationParserRuleCall_2_0()); | ||
1241 | } | ||
1242 | lv_specification_2_0=rulePartialModelSpecification | ||
1243 | { | ||
1244 | if ($current==null) { | ||
1245 | $current = createModelElementForParent(grammarAccess.getPartialModelDeclarationRule()); | ||
1246 | } | ||
1247 | set( | ||
1248 | $current, | ||
1249 | "specification", | ||
1250 | lv_specification_2_0, | ||
1251 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PartialModelSpecification"); | ||
1252 | afterParserOrEnumRuleCall(); | ||
1253 | } | ||
1254 | ) | ||
1255 | ) | ||
1256 | ) | ||
1257 | ; | ||
1258 | |||
1259 | // Entry rule entryRulePartialModelReference | ||
1260 | entryRulePartialModelReference returns [EObject current=null]: | ||
1261 | { newCompositeNode(grammarAccess.getPartialModelReferenceRule()); } | ||
1262 | iv_rulePartialModelReference=rulePartialModelReference | ||
1263 | { $current=$iv_rulePartialModelReference.current; } | ||
1264 | EOF; | ||
1265 | |||
1266 | // Rule PartialModelReference | ||
1267 | rulePartialModelReference returns [EObject current=null] | ||
1268 | @init { | ||
1269 | enterRule(); | ||
1270 | } | ||
1271 | @after { | ||
1272 | leaveRule(); | ||
1273 | }: | ||
1274 | ( | ||
1275 | ( | ||
1276 | { | ||
1277 | if ($current==null) { | ||
1278 | $current = createModelElement(grammarAccess.getPartialModelReferenceRule()); | ||
1279 | } | ||
1280 | } | ||
1281 | otherlv_0=RULE_ID | ||
1282 | { | ||
1283 | newLeafNode(otherlv_0, grammarAccess.getPartialModelReferenceAccess().getReferredPartialModelDeclarationCrossReference_0()); | ||
1284 | } | ||
1285 | ) | ||
1286 | ) | ||
1287 | ; | ||
1288 | |||
1289 | // Entry rule entryRulePartialModel | ||
1290 | entryRulePartialModel returns [EObject current=null]: | ||
1291 | { newCompositeNode(grammarAccess.getPartialModelRule()); } | ||
1292 | iv_rulePartialModel=rulePartialModel | ||
1293 | { $current=$iv_rulePartialModel.current; } | ||
1294 | EOF; | ||
1295 | |||
1296 | // Rule PartialModel | ||
1297 | rulePartialModel returns [EObject current=null] | ||
1298 | @init { | ||
1299 | enterRule(); | ||
1300 | } | ||
1301 | @after { | ||
1302 | leaveRule(); | ||
1303 | }: | ||
1304 | ( | ||
1305 | { | ||
1306 | newCompositeNode(grammarAccess.getPartialModelAccess().getPartialModelSpecificationParserRuleCall_0()); | ||
1307 | } | ||
1308 | this_PartialModelSpecification_0=rulePartialModelSpecification | ||
1309 | { | ||
1310 | $current = $this_PartialModelSpecification_0.current; | ||
1311 | afterParserOrEnumRuleCall(); | ||
1312 | } | ||
1313 | | | ||
1314 | { | ||
1315 | newCompositeNode(grammarAccess.getPartialModelAccess().getPartialModelReferenceParserRuleCall_1()); | ||
1316 | } | ||
1317 | this_PartialModelReference_1=rulePartialModelReference | ||
1318 | { | ||
1319 | $current = $this_PartialModelReference_1.current; | ||
1320 | afterParserOrEnumRuleCall(); | ||
1321 | } | ||
1322 | ) | ||
1323 | ; | ||
1324 | |||
1325 | // Entry rule entryRulePatternSpecification | ||
1326 | entryRulePatternSpecification returns [EObject current=null]: | ||
1327 | { newCompositeNode(grammarAccess.getPatternSpecificationRule()); } | ||
1328 | iv_rulePatternSpecification=rulePatternSpecification | ||
1329 | { $current=$iv_rulePatternSpecification.current; } | ||
1330 | EOF; | ||
1331 | |||
1332 | // Rule PatternSpecification | ||
1333 | rulePatternSpecification returns [EObject current=null] | ||
1334 | @init { | ||
1335 | enterRule(); | ||
1336 | } | ||
1337 | @after { | ||
1338 | leaveRule(); | ||
1339 | }: | ||
1340 | ( | ||
1341 | otherlv_0='{' | ||
1342 | { | ||
1343 | newLeafNode(otherlv_0, grammarAccess.getPatternSpecificationAccess().getLeftCurlyBracketKeyword_0()); | ||
1344 | } | ||
1345 | ( | ||
1346 | ( | ||
1347 | { | ||
1348 | newCompositeNode(grammarAccess.getPatternSpecificationAccess().getEntriesPatternEntryParserRuleCall_1_0()); | ||
1349 | } | ||
1350 | lv_entries_1_0=rulePatternEntry | ||
1351 | { | ||
1352 | if ($current==null) { | ||
1353 | $current = createModelElementForParent(grammarAccess.getPatternSpecificationRule()); | ||
1354 | } | ||
1355 | add( | ||
1356 | $current, | ||
1357 | "entries", | ||
1358 | lv_entries_1_0, | ||
1359 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PatternEntry"); | ||
1360 | afterParserOrEnumRuleCall(); | ||
1361 | } | ||
1362 | ) | ||
1363 | ) | ||
1364 | ( | ||
1365 | otherlv_2=',' | ||
1366 | { | ||
1367 | newLeafNode(otherlv_2, grammarAccess.getPatternSpecificationAccess().getCommaKeyword_2_0()); | ||
1368 | } | ||
1369 | ( | ||
1370 | ( | ||
1371 | { | ||
1372 | newCompositeNode(grammarAccess.getPatternSpecificationAccess().getEntriesPatternEntryParserRuleCall_2_1_0()); | ||
1373 | } | ||
1374 | lv_entries_3_0=rulePatternEntry | ||
1375 | { | ||
1376 | if ($current==null) { | ||
1377 | $current = createModelElementForParent(grammarAccess.getPatternSpecificationRule()); | ||
1378 | } | ||
1379 | add( | ||
1380 | $current, | ||
1381 | "entries", | ||
1382 | lv_entries_3_0, | ||
1383 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PatternEntry"); | ||
1384 | afterParserOrEnumRuleCall(); | ||
1385 | } | ||
1386 | ) | ||
1387 | ) | ||
1388 | )* | ||
1389 | otherlv_4='}' | ||
1390 | { | ||
1391 | newLeafNode(otherlv_4, grammarAccess.getPatternSpecificationAccess().getRightCurlyBracketKeyword_3()); | ||
1392 | } | ||
1393 | ) | ||
1394 | ; | ||
1395 | |||
1396 | // Entry rule entryRulePatternEntry | ||
1397 | entryRulePatternEntry returns [EObject current=null]: | ||
1398 | { newCompositeNode(grammarAccess.getPatternEntryRule()); } | ||
1399 | iv_rulePatternEntry=rulePatternEntry | ||
1400 | { $current=$iv_rulePatternEntry.current; } | ||
1401 | EOF; | ||
1402 | |||
1403 | // Rule PatternEntry | ||
1404 | rulePatternEntry returns [EObject current=null] | ||
1405 | @init { | ||
1406 | enterRule(); | ||
1407 | } | ||
1408 | @after { | ||
1409 | leaveRule(); | ||
1410 | }: | ||
1411 | ( | ||
1412 | { | ||
1413 | newCompositeNode(grammarAccess.getPatternEntryAccess().getPatternElementParserRuleCall_0()); | ||
1414 | } | ||
1415 | this_PatternElement_0=rulePatternElement | ||
1416 | { | ||
1417 | $current = $this_PatternElement_0.current; | ||
1418 | afterParserOrEnumRuleCall(); | ||
1419 | } | ||
1420 | | | ||
1421 | { | ||
1422 | newCompositeNode(grammarAccess.getPatternEntryAccess().getAllPatternEntryParserRuleCall_1()); | ||
1423 | } | ||
1424 | this_AllPatternEntry_1=ruleAllPatternEntry | ||
1425 | { | ||
1426 | $current = $this_AllPatternEntry_1.current; | ||
1427 | afterParserOrEnumRuleCall(); | ||
1428 | } | ||
1429 | ) | ||
1430 | ; | ||
1431 | |||
1432 | // Entry rule entryRuleAllPatternEntry | ||
1433 | entryRuleAllPatternEntry returns [EObject current=null]: | ||
1434 | { newCompositeNode(grammarAccess.getAllPatternEntryRule()); } | ||
1435 | iv_ruleAllPatternEntry=ruleAllPatternEntry | ||
1436 | { $current=$iv_ruleAllPatternEntry.current; } | ||
1437 | EOF; | ||
1438 | |||
1439 | // Rule AllPatternEntry | ||
1440 | ruleAllPatternEntry returns [EObject current=null] | ||
1441 | @init { | ||
1442 | enterRule(); | ||
1443 | } | ||
1444 | @after { | ||
1445 | leaveRule(); | ||
1446 | }: | ||
1447 | ( | ||
1448 | otherlv_0='package' | ||
1449 | { | ||
1450 | newLeafNode(otherlv_0, grammarAccess.getAllPatternEntryAccess().getPackageKeyword_0()); | ||
1451 | } | ||
1452 | ( | ||
1453 | ( | ||
1454 | { | ||
1455 | if ($current==null) { | ||
1456 | $current = createModelElement(grammarAccess.getAllPatternEntryRule()); | ||
1457 | } | ||
1458 | } | ||
1459 | { | ||
1460 | newCompositeNode(grammarAccess.getAllPatternEntryAccess().getPackagePatternModelCrossReference_1_0()); | ||
1461 | } | ||
1462 | ruleQualifiedName | ||
1463 | { | ||
1464 | afterParserOrEnumRuleCall(); | ||
1465 | } | ||
1466 | ) | ||
1467 | ) | ||
1468 | ( | ||
1469 | otherlv_2='excluding' | ||
1470 | { | ||
1471 | newLeafNode(otherlv_2, grammarAccess.getAllPatternEntryAccess().getExcludingKeyword_2_0()); | ||
1472 | } | ||
1473 | otherlv_3='{' | ||
1474 | { | ||
1475 | newLeafNode(otherlv_3, grammarAccess.getAllPatternEntryAccess().getLeftCurlyBracketKeyword_2_1()); | ||
1476 | } | ||
1477 | ( | ||
1478 | ( | ||
1479 | { | ||
1480 | newCompositeNode(grammarAccess.getAllPatternEntryAccess().getExclusuionPatternElementParserRuleCall_2_2_0()); | ||
1481 | } | ||
1482 | lv_exclusuion_4_0=rulePatternElement | ||
1483 | { | ||
1484 | if ($current==null) { | ||
1485 | $current = createModelElementForParent(grammarAccess.getAllPatternEntryRule()); | ||
1486 | } | ||
1487 | add( | ||
1488 | $current, | ||
1489 | "exclusuion", | ||
1490 | lv_exclusuion_4_0, | ||
1491 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PatternElement"); | ||
1492 | afterParserOrEnumRuleCall(); | ||
1493 | } | ||
1494 | ) | ||
1495 | ) | ||
1496 | ( | ||
1497 | otherlv_5=',' | ||
1498 | { | ||
1499 | newLeafNode(otherlv_5, grammarAccess.getAllPatternEntryAccess().getCommaKeyword_2_3_0()); | ||
1500 | } | ||
1501 | ( | ||
1502 | ( | ||
1503 | { | ||
1504 | newCompositeNode(grammarAccess.getAllPatternEntryAccess().getExclusuionPatternElementParserRuleCall_2_3_1_0()); | ||
1505 | } | ||
1506 | lv_exclusuion_6_0=rulePatternElement | ||
1507 | { | ||
1508 | if ($current==null) { | ||
1509 | $current = createModelElementForParent(grammarAccess.getAllPatternEntryRule()); | ||
1510 | } | ||
1511 | add( | ||
1512 | $current, | ||
1513 | "exclusuion", | ||
1514 | lv_exclusuion_6_0, | ||
1515 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PatternElement"); | ||
1516 | afterParserOrEnumRuleCall(); | ||
1517 | } | ||
1518 | ) | ||
1519 | ) | ||
1520 | )* | ||
1521 | otherlv_7='}' | ||
1522 | { | ||
1523 | newLeafNode(otherlv_7, grammarAccess.getAllPatternEntryAccess().getRightCurlyBracketKeyword_2_4()); | ||
1524 | } | ||
1525 | )? | ||
1526 | ) | ||
1527 | ; | ||
1528 | |||
1529 | // Entry rule entryRulePatternElement | ||
1530 | entryRulePatternElement returns [EObject current=null]: | ||
1531 | { newCompositeNode(grammarAccess.getPatternElementRule()); } | ||
1532 | iv_rulePatternElement=rulePatternElement | ||
1533 | { $current=$iv_rulePatternElement.current; } | ||
1534 | EOF; | ||
1535 | |||
1536 | // Rule PatternElement | ||
1537 | rulePatternElement returns [EObject current=null] | ||
1538 | @init { | ||
1539 | enterRule(); | ||
1540 | } | ||
1541 | @after { | ||
1542 | leaveRule(); | ||
1543 | }: | ||
1544 | ( | ||
1545 | ( | ||
1546 | ( | ||
1547 | ( | ||
1548 | { | ||
1549 | if ($current==null) { | ||
1550 | $current = createModelElement(grammarAccess.getPatternElementRule()); | ||
1551 | } | ||
1552 | } | ||
1553 | { | ||
1554 | newCompositeNode(grammarAccess.getPatternElementAccess().getPackagePatternModelCrossReference_0_0_0()); | ||
1555 | } | ||
1556 | ruleQualifiedName | ||
1557 | { | ||
1558 | afterParserOrEnumRuleCall(); | ||
1559 | } | ||
1560 | ) | ||
1561 | ) | ||
1562 | otherlv_1='::' | ||
1563 | { | ||
1564 | newLeafNode(otherlv_1, grammarAccess.getPatternElementAccess().getColonColonKeyword_0_1()); | ||
1565 | } | ||
1566 | )? | ||
1567 | ( | ||
1568 | ( | ||
1569 | { | ||
1570 | if ($current==null) { | ||
1571 | $current = createModelElement(grammarAccess.getPatternElementRule()); | ||
1572 | } | ||
1573 | } | ||
1574 | otherlv_2=RULE_ID | ||
1575 | { | ||
1576 | newLeafNode(otherlv_2, grammarAccess.getPatternElementAccess().getPatternPatternCrossReference_1_0()); | ||
1577 | } | ||
1578 | ) | ||
1579 | ) | ||
1580 | ) | ||
1581 | ; | ||
1582 | |||
1583 | // Entry rule entryRuleGraphPatternDeclaration | ||
1584 | entryRuleGraphPatternDeclaration returns [EObject current=null]: | ||
1585 | { newCompositeNode(grammarAccess.getGraphPatternDeclarationRule()); } | ||
1586 | iv_ruleGraphPatternDeclaration=ruleGraphPatternDeclaration | ||
1587 | { $current=$iv_ruleGraphPatternDeclaration.current; } | ||
1588 | EOF; | ||
1589 | |||
1590 | // Rule GraphPatternDeclaration | ||
1591 | ruleGraphPatternDeclaration returns [EObject current=null] | ||
1592 | @init { | ||
1593 | enterRule(); | ||
1594 | } | ||
1595 | @after { | ||
1596 | leaveRule(); | ||
1597 | }: | ||
1598 | ( | ||
1599 | otherlv_0='patterns' | ||
1600 | { | ||
1601 | newLeafNode(otherlv_0, grammarAccess.getGraphPatternDeclarationAccess().getPatternsKeyword_0()); | ||
1602 | } | ||
1603 | ( | ||
1604 | ( | ||
1605 | lv_name_1_0=RULE_ID | ||
1606 | { | ||
1607 | newLeafNode(lv_name_1_0, grammarAccess.getGraphPatternDeclarationAccess().getNameIDTerminalRuleCall_1_0()); | ||
1608 | } | ||
1609 | { | ||
1610 | if ($current==null) { | ||
1611 | $current = createModelElement(grammarAccess.getGraphPatternDeclarationRule()); | ||
1612 | } | ||
1613 | setWithLastConsumed( | ||
1614 | $current, | ||
1615 | "name", | ||
1616 | lv_name_1_0, | ||
1617 | "org.eclipse.xtext.common.Terminals.ID"); | ||
1618 | } | ||
1619 | ) | ||
1620 | ) | ||
1621 | ( | ||
1622 | ( | ||
1623 | { | ||
1624 | newCompositeNode(grammarAccess.getGraphPatternDeclarationAccess().getSpecificationPatternSpecificationParserRuleCall_2_0()); | ||
1625 | } | ||
1626 | lv_specification_2_0=rulePatternSpecification | ||
1627 | { | ||
1628 | if ($current==null) { | ||
1629 | $current = createModelElementForParent(grammarAccess.getGraphPatternDeclarationRule()); | ||
1630 | } | ||
1631 | set( | ||
1632 | $current, | ||
1633 | "specification", | ||
1634 | lv_specification_2_0, | ||
1635 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PatternSpecification"); | ||
1636 | afterParserOrEnumRuleCall(); | ||
1637 | } | ||
1638 | ) | ||
1639 | ) | ||
1640 | ) | ||
1641 | ; | ||
1642 | |||
1643 | // Entry rule entryRuleGraphPatternReference | ||
1644 | entryRuleGraphPatternReference returns [EObject current=null]: | ||
1645 | { newCompositeNode(grammarAccess.getGraphPatternReferenceRule()); } | ||
1646 | iv_ruleGraphPatternReference=ruleGraphPatternReference | ||
1647 | { $current=$iv_ruleGraphPatternReference.current; } | ||
1648 | EOF; | ||
1649 | |||
1650 | // Rule GraphPatternReference | ||
1651 | ruleGraphPatternReference returns [EObject current=null] | ||
1652 | @init { | ||
1653 | enterRule(); | ||
1654 | } | ||
1655 | @after { | ||
1656 | leaveRule(); | ||
1657 | }: | ||
1658 | ( | ||
1659 | ( | ||
1660 | { | ||
1661 | if ($current==null) { | ||
1662 | $current = createModelElement(grammarAccess.getGraphPatternReferenceRule()); | ||
1663 | } | ||
1664 | } | ||
1665 | otherlv_0=RULE_ID | ||
1666 | { | ||
1667 | newLeafNode(otherlv_0, grammarAccess.getGraphPatternReferenceAccess().getReferredGraphPatternDeclarationCrossReference_0()); | ||
1668 | } | ||
1669 | ) | ||
1670 | ) | ||
1671 | ; | ||
1672 | |||
1673 | // Entry rule entryRuleGraphPattern | ||
1674 | entryRuleGraphPattern returns [EObject current=null]: | ||
1675 | { newCompositeNode(grammarAccess.getGraphPatternRule()); } | ||
1676 | iv_ruleGraphPattern=ruleGraphPattern | ||
1677 | { $current=$iv_ruleGraphPattern.current; } | ||
1678 | EOF; | ||
1679 | |||
1680 | // Rule GraphPattern | ||
1681 | ruleGraphPattern returns [EObject current=null] | ||
1682 | @init { | ||
1683 | enterRule(); | ||
1684 | } | ||
1685 | @after { | ||
1686 | leaveRule(); | ||
1687 | }: | ||
1688 | ( | ||
1689 | { | ||
1690 | newCompositeNode(grammarAccess.getGraphPatternAccess().getGraphPatternReferenceParserRuleCall_0()); | ||
1691 | } | ||
1692 | this_GraphPatternReference_0=ruleGraphPatternReference | ||
1693 | { | ||
1694 | $current = $this_GraphPatternReference_0.current; | ||
1695 | afterParserOrEnumRuleCall(); | ||
1696 | } | ||
1697 | | | ||
1698 | { | ||
1699 | newCompositeNode(grammarAccess.getGraphPatternAccess().getPatternSpecificationParserRuleCall_1()); | ||
1700 | } | ||
1701 | this_PatternSpecification_1=rulePatternSpecification | ||
1702 | { | ||
1703 | $current = $this_PatternSpecification_1.current; | ||
1704 | afterParserOrEnumRuleCall(); | ||
1705 | } | ||
1706 | ) | ||
1707 | ; | ||
1708 | |||
1709 | // Entry rule entryRuleConfigSpecification | ||
1710 | entryRuleConfigSpecification returns [EObject current=null]: | ||
1711 | { newCompositeNode(grammarAccess.getConfigSpecificationRule()); } | ||
1712 | iv_ruleConfigSpecification=ruleConfigSpecification | ||
1713 | { $current=$iv_ruleConfigSpecification.current; } | ||
1714 | EOF; | ||
1715 | |||
1716 | // Rule ConfigSpecification | ||
1717 | ruleConfigSpecification returns [EObject current=null] | ||
1718 | @init { | ||
1719 | enterRule(); | ||
1720 | } | ||
1721 | @after { | ||
1722 | leaveRule(); | ||
1723 | }: | ||
1724 | ( | ||
1725 | ( | ||
1726 | { | ||
1727 | $current = forceCreateModelElement( | ||
1728 | grammarAccess.getConfigSpecificationAccess().getConfigSpecificationAction_0(), | ||
1729 | $current); | ||
1730 | } | ||
1731 | ) | ||
1732 | otherlv_1='{' | ||
1733 | { | ||
1734 | newLeafNode(otherlv_1, grammarAccess.getConfigSpecificationAccess().getLeftCurlyBracketKeyword_1()); | ||
1735 | } | ||
1736 | ( | ||
1737 | ( | ||
1738 | ( | ||
1739 | { | ||
1740 | newCompositeNode(grammarAccess.getConfigSpecificationAccess().getEntriesConfigEntryParserRuleCall_2_0_0()); | ||
1741 | } | ||
1742 | lv_entries_2_0=ruleConfigEntry | ||
1743 | { | ||
1744 | if ($current==null) { | ||
1745 | $current = createModelElementForParent(grammarAccess.getConfigSpecificationRule()); | ||
1746 | } | ||
1747 | add( | ||
1748 | $current, | ||
1749 | "entries", | ||
1750 | lv_entries_2_0, | ||
1751 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ConfigEntry"); | ||
1752 | afterParserOrEnumRuleCall(); | ||
1753 | } | ||
1754 | ) | ||
1755 | ) | ||
1756 | ( | ||
1757 | otherlv_3=',' | ||
1758 | { | ||
1759 | newLeafNode(otherlv_3, grammarAccess.getConfigSpecificationAccess().getCommaKeyword_2_1_0()); | ||
1760 | } | ||
1761 | ( | ||
1762 | ( | ||
1763 | { | ||
1764 | newCompositeNode(grammarAccess.getConfigSpecificationAccess().getEntriesConfigEntryParserRuleCall_2_1_1_0()); | ||
1765 | } | ||
1766 | lv_entries_4_0=ruleConfigEntry | ||
1767 | { | ||
1768 | if ($current==null) { | ||
1769 | $current = createModelElementForParent(grammarAccess.getConfigSpecificationRule()); | ||
1770 | } | ||
1771 | add( | ||
1772 | $current, | ||
1773 | "entries", | ||
1774 | lv_entries_4_0, | ||
1775 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ConfigEntry"); | ||
1776 | afterParserOrEnumRuleCall(); | ||
1777 | } | ||
1778 | ) | ||
1779 | ) | ||
1780 | )* | ||
1781 | )? | ||
1782 | otherlv_5='}' | ||
1783 | { | ||
1784 | newLeafNode(otherlv_5, grammarAccess.getConfigSpecificationAccess().getRightCurlyBracketKeyword_3()); | ||
1785 | } | ||
1786 | ) | ||
1787 | ; | ||
1788 | |||
1789 | // Entry rule entryRuleConfigDeclaration | ||
1790 | entryRuleConfigDeclaration returns [EObject current=null]: | ||
1791 | { newCompositeNode(grammarAccess.getConfigDeclarationRule()); } | ||
1792 | iv_ruleConfigDeclaration=ruleConfigDeclaration | ||
1793 | { $current=$iv_ruleConfigDeclaration.current; } | ||
1794 | EOF; | ||
1795 | |||
1796 | // Rule ConfigDeclaration | ||
1797 | ruleConfigDeclaration returns [EObject current=null] | ||
1798 | @init { | ||
1799 | enterRule(); | ||
1800 | } | ||
1801 | @after { | ||
1802 | leaveRule(); | ||
1803 | }: | ||
1804 | ( | ||
1805 | otherlv_0='config' | ||
1806 | { | ||
1807 | newLeafNode(otherlv_0, grammarAccess.getConfigDeclarationAccess().getConfigKeyword_0()); | ||
1808 | } | ||
1809 | ( | ||
1810 | ( | ||
1811 | lv_name_1_0=RULE_ID | ||
1812 | { | ||
1813 | newLeafNode(lv_name_1_0, grammarAccess.getConfigDeclarationAccess().getNameIDTerminalRuleCall_1_0()); | ||
1814 | } | ||
1815 | { | ||
1816 | if ($current==null) { | ||
1817 | $current = createModelElement(grammarAccess.getConfigDeclarationRule()); | ||
1818 | } | ||
1819 | setWithLastConsumed( | ||
1820 | $current, | ||
1821 | "name", | ||
1822 | lv_name_1_0, | ||
1823 | "org.eclipse.xtext.common.Terminals.ID"); | ||
1824 | } | ||
1825 | ) | ||
1826 | ) | ||
1827 | ( | ||
1828 | ( | ||
1829 | { | ||
1830 | newCompositeNode(grammarAccess.getConfigDeclarationAccess().getSpecificationConfigSpecificationParserRuleCall_2_0()); | ||
1831 | } | ||
1832 | lv_specification_2_0=ruleConfigSpecification | ||
1833 | { | ||
1834 | if ($current==null) { | ||
1835 | $current = createModelElementForParent(grammarAccess.getConfigDeclarationRule()); | ||
1836 | } | ||
1837 | set( | ||
1838 | $current, | ||
1839 | "specification", | ||
1840 | lv_specification_2_0, | ||
1841 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ConfigSpecification"); | ||
1842 | afterParserOrEnumRuleCall(); | ||
1843 | } | ||
1844 | ) | ||
1845 | ) | ||
1846 | ) | ||
1847 | ; | ||
1848 | |||
1849 | // Entry rule entryRuleConfigEntry | ||
1850 | entryRuleConfigEntry returns [EObject current=null]: | ||
1851 | { newCompositeNode(grammarAccess.getConfigEntryRule()); } | ||
1852 | iv_ruleConfigEntry=ruleConfigEntry | ||
1853 | { $current=$iv_ruleConfigEntry.current; } | ||
1854 | EOF; | ||
1855 | |||
1856 | // Rule ConfigEntry | ||
1857 | ruleConfigEntry returns [EObject current=null] | ||
1858 | @init { | ||
1859 | enterRule(); | ||
1860 | } | ||
1861 | @after { | ||
1862 | leaveRule(); | ||
1863 | }: | ||
1864 | ( | ||
1865 | ( | ||
1866 | ( | ||
1867 | lv_key_0_0=RULE_STRING | ||
1868 | { | ||
1869 | newLeafNode(lv_key_0_0, grammarAccess.getConfigEntryAccess().getKeySTRINGTerminalRuleCall_0_0()); | ||
1870 | } | ||
1871 | { | ||
1872 | if ($current==null) { | ||
1873 | $current = createModelElement(grammarAccess.getConfigEntryRule()); | ||
1874 | } | ||
1875 | setWithLastConsumed( | ||
1876 | $current, | ||
1877 | "key", | ||
1878 | lv_key_0_0, | ||
1879 | "org.eclipse.xtext.common.Terminals.STRING"); | ||
1880 | } | ||
1881 | ) | ||
1882 | ) | ||
1883 | otherlv_1='=' | ||
1884 | { | ||
1885 | newLeafNode(otherlv_1, grammarAccess.getConfigEntryAccess().getEqualsSignKeyword_1()); | ||
1886 | } | ||
1887 | ( | ||
1888 | ( | ||
1889 | lv_value_2_0=RULE_STRING | ||
1890 | { | ||
1891 | newLeafNode(lv_value_2_0, grammarAccess.getConfigEntryAccess().getValueSTRINGTerminalRuleCall_2_0()); | ||
1892 | } | ||
1893 | { | ||
1894 | if ($current==null) { | ||
1895 | $current = createModelElement(grammarAccess.getConfigEntryRule()); | ||
1896 | } | ||
1897 | setWithLastConsumed( | ||
1898 | $current, | ||
1899 | "value", | ||
1900 | lv_value_2_0, | ||
1901 | "org.eclipse.xtext.common.Terminals.STRING"); | ||
1902 | } | ||
1903 | ) | ||
1904 | ) | ||
1905 | ) | ||
1906 | ; | ||
1907 | |||
1908 | // Entry rule entryRuleConfigReference | ||
1909 | entryRuleConfigReference returns [EObject current=null]: | ||
1910 | { newCompositeNode(grammarAccess.getConfigReferenceRule()); } | ||
1911 | iv_ruleConfigReference=ruleConfigReference | ||
1912 | { $current=$iv_ruleConfigReference.current; } | ||
1913 | EOF; | ||
1914 | |||
1915 | // Rule ConfigReference | ||
1916 | ruleConfigReference returns [EObject current=null] | ||
1917 | @init { | ||
1918 | enterRule(); | ||
1919 | } | ||
1920 | @after { | ||
1921 | leaveRule(); | ||
1922 | }: | ||
1923 | ( | ||
1924 | ( | ||
1925 | { | ||
1926 | if ($current==null) { | ||
1927 | $current = createModelElement(grammarAccess.getConfigReferenceRule()); | ||
1928 | } | ||
1929 | } | ||
1930 | otherlv_0=RULE_ID | ||
1931 | { | ||
1932 | newLeafNode(otherlv_0, grammarAccess.getConfigReferenceAccess().getConfigConfigDeclarationCrossReference_0()); | ||
1933 | } | ||
1934 | ) | ||
1935 | ) | ||
1936 | ; | ||
1937 | |||
1938 | // Entry rule entryRuleConfig | ||
1939 | entryRuleConfig returns [EObject current=null]: | ||
1940 | { newCompositeNode(grammarAccess.getConfigRule()); } | ||
1941 | iv_ruleConfig=ruleConfig | ||
1942 | { $current=$iv_ruleConfig.current; } | ||
1943 | EOF; | ||
1944 | |||
1945 | // Rule Config | ||
1946 | ruleConfig returns [EObject current=null] | ||
1947 | @init { | ||
1948 | enterRule(); | ||
1949 | } | ||
1950 | @after { | ||
1951 | leaveRule(); | ||
1952 | }: | ||
1953 | ( | ||
1954 | { | ||
1955 | newCompositeNode(grammarAccess.getConfigAccess().getConfigSpecificationParserRuleCall_0()); | ||
1956 | } | ||
1957 | this_ConfigSpecification_0=ruleConfigSpecification | ||
1958 | { | ||
1959 | $current = $this_ConfigSpecification_0.current; | ||
1960 | afterParserOrEnumRuleCall(); | ||
1961 | } | ||
1962 | | | ||
1963 | { | ||
1964 | newCompositeNode(grammarAccess.getConfigAccess().getConfigReferenceParserRuleCall_1()); | ||
1965 | } | ||
1966 | this_ConfigReference_1=ruleConfigReference | ||
1967 | { | ||
1968 | $current = $this_ConfigReference_1.current; | ||
1969 | afterParserOrEnumRuleCall(); | ||
1970 | } | ||
1971 | ) | ||
1972 | ; | ||
1973 | |||
1974 | // Entry rule entryRuleScopeSpecification | ||
1975 | entryRuleScopeSpecification returns [EObject current=null]: | ||
1976 | { newCompositeNode(grammarAccess.getScopeSpecificationRule()); } | ||
1977 | iv_ruleScopeSpecification=ruleScopeSpecification | ||
1978 | { $current=$iv_ruleScopeSpecification.current; } | ||
1979 | EOF; | ||
1980 | |||
1981 | // Rule ScopeSpecification | ||
1982 | ruleScopeSpecification returns [EObject current=null] | ||
1983 | @init { | ||
1984 | enterRule(); | ||
1985 | } | ||
1986 | @after { | ||
1987 | leaveRule(); | ||
1988 | }: | ||
1989 | ( | ||
1990 | ( | ||
1991 | { | ||
1992 | $current = forceCreateModelElement( | ||
1993 | grammarAccess.getScopeSpecificationAccess().getScopeSpecificationAction_0(), | ||
1994 | $current); | ||
1995 | } | ||
1996 | ) | ||
1997 | otherlv_1='{' | ||
1998 | { | ||
1999 | newLeafNode(otherlv_1, grammarAccess.getScopeSpecificationAccess().getLeftCurlyBracketKeyword_1()); | ||
2000 | } | ||
2001 | ( | ||
2002 | ( | ||
2003 | ( | ||
2004 | { | ||
2005 | newCompositeNode(grammarAccess.getScopeSpecificationAccess().getScopesTypeScopeParserRuleCall_2_0_0()); | ||
2006 | } | ||
2007 | lv_scopes_2_0=ruleTypeScope | ||
2008 | { | ||
2009 | if ($current==null) { | ||
2010 | $current = createModelElementForParent(grammarAccess.getScopeSpecificationRule()); | ||
2011 | } | ||
2012 | add( | ||
2013 | $current, | ||
2014 | "scopes", | ||
2015 | lv_scopes_2_0, | ||
2016 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.TypeScope"); | ||
2017 | afterParserOrEnumRuleCall(); | ||
2018 | } | ||
2019 | ) | ||
2020 | ) | ||
2021 | ( | ||
2022 | otherlv_3=',' | ||
2023 | { | ||
2024 | newLeafNode(otherlv_3, grammarAccess.getScopeSpecificationAccess().getCommaKeyword_2_1_0()); | ||
2025 | } | ||
2026 | ( | ||
2027 | ( | ||
2028 | { | ||
2029 | newCompositeNode(grammarAccess.getScopeSpecificationAccess().getScopesTypeScopeParserRuleCall_2_1_1_0()); | ||
2030 | } | ||
2031 | lv_scopes_4_0=ruleTypeScope | ||
2032 | { | ||
2033 | if ($current==null) { | ||
2034 | $current = createModelElementForParent(grammarAccess.getScopeSpecificationRule()); | ||
2035 | } | ||
2036 | add( | ||
2037 | $current, | ||
2038 | "scopes", | ||
2039 | lv_scopes_4_0, | ||
2040 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.TypeScope"); | ||
2041 | afterParserOrEnumRuleCall(); | ||
2042 | } | ||
2043 | ) | ||
2044 | ) | ||
2045 | )* | ||
2046 | )? | ||
2047 | otherlv_5='}' | ||
2048 | { | ||
2049 | newLeafNode(otherlv_5, grammarAccess.getScopeSpecificationAccess().getRightCurlyBracketKeyword_3()); | ||
2050 | } | ||
2051 | ) | ||
2052 | ; | ||
2053 | |||
2054 | // Entry rule entryRuleTypeScope | ||
2055 | entryRuleTypeScope returns [EObject current=null]: | ||
2056 | { newCompositeNode(grammarAccess.getTypeScopeRule()); } | ||
2057 | iv_ruleTypeScope=ruleTypeScope | ||
2058 | { $current=$iv_ruleTypeScope.current; } | ||
2059 | EOF; | ||
2060 | |||
2061 | // Rule TypeScope | ||
2062 | ruleTypeScope returns [EObject current=null] | ||
2063 | @init { | ||
2064 | enterRule(); | ||
2065 | } | ||
2066 | @after { | ||
2067 | leaveRule(); | ||
2068 | }: | ||
2069 | ( | ||
2070 | ( | ||
2071 | ( | ||
2072 | ( | ||
2073 | lv_min_0_0=RULE_INT | ||
2074 | { | ||
2075 | newLeafNode(lv_min_0_0, grammarAccess.getTypeScopeAccess().getMinINTTerminalRuleCall_0_0_0()); | ||
2076 | } | ||
2077 | { | ||
2078 | if ($current==null) { | ||
2079 | $current = createModelElement(grammarAccess.getTypeScopeRule()); | ||
2080 | } | ||
2081 | setWithLastConsumed( | ||
2082 | $current, | ||
2083 | "min", | ||
2084 | lv_min_0_0, | ||
2085 | "org.eclipse.xtext.common.Terminals.INT"); | ||
2086 | } | ||
2087 | ) | ||
2088 | ) | ||
2089 | ( | ||
2090 | ( | ||
2091 | ( | ||
2092 | lv_greather_1_0='<' | ||
2093 | { | ||
2094 | newLeafNode(lv_greather_1_0, grammarAccess.getTypeScopeAccess().getGreatherLessThanSignKeyword_0_1_0_0()); | ||
2095 | } | ||
2096 | { | ||
2097 | if ($current==null) { | ||
2098 | $current = createModelElement(grammarAccess.getTypeScopeRule()); | ||
2099 | } | ||
2100 | setWithLastConsumed($current, "greather", true, "<"); | ||
2101 | } | ||
2102 | ) | ||
2103 | ) | ||
2104 | | | ||
2105 | ( | ||
2106 | ( | ||
2107 | lv_greaterOrEqual_2_0='<=' | ||
2108 | { | ||
2109 | newLeafNode(lv_greaterOrEqual_2_0, grammarAccess.getTypeScopeAccess().getGreaterOrEqualLessThanSignEqualsSignKeyword_0_1_1_0()); | ||
2110 | } | ||
2111 | { | ||
2112 | if ($current==null) { | ||
2113 | $current = createModelElement(grammarAccess.getTypeScopeRule()); | ||
2114 | } | ||
2115 | setWithLastConsumed($current, "greaterOrEqual", true, "<="); | ||
2116 | } | ||
2117 | ) | ||
2118 | ) | ||
2119 | ) | ||
2120 | )? | ||
2121 | otherlv_3='#' | ||
2122 | { | ||
2123 | newLeafNode(otherlv_3, grammarAccess.getTypeScopeAccess().getNumberSignKeyword_1()); | ||
2124 | } | ||
2125 | ( | ||
2126 | ( | ||
2127 | { | ||
2128 | newCompositeNode(grammarAccess.getTypeScopeAccess().getTypeTypeReferenceParserRuleCall_2_0()); | ||
2129 | } | ||
2130 | lv_type_4_0=ruleTypeReference | ||
2131 | { | ||
2132 | if ($current==null) { | ||
2133 | $current = createModelElementForParent(grammarAccess.getTypeScopeRule()); | ||
2134 | } | ||
2135 | set( | ||
2136 | $current, | ||
2137 | "type", | ||
2138 | lv_type_4_0, | ||
2139 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.TypeReference"); | ||
2140 | afterParserOrEnumRuleCall(); | ||
2141 | } | ||
2142 | ) | ||
2143 | ) | ||
2144 | ( | ||
2145 | ( | ||
2146 | ( | ||
2147 | ( | ||
2148 | lv_less_5_0='<' | ||
2149 | { | ||
2150 | newLeafNode(lv_less_5_0, grammarAccess.getTypeScopeAccess().getLessLessThanSignKeyword_3_0_0_0()); | ||
2151 | } | ||
2152 | { | ||
2153 | if ($current==null) { | ||
2154 | $current = createModelElement(grammarAccess.getTypeScopeRule()); | ||
2155 | } | ||
2156 | setWithLastConsumed($current, "less", true, "<"); | ||
2157 | } | ||
2158 | ) | ||
2159 | ) | ||
2160 | | | ||
2161 | ( | ||
2162 | ( | ||
2163 | lv_lessOrEqual_6_0='<=' | ||
2164 | { | ||
2165 | newLeafNode(lv_lessOrEqual_6_0, grammarAccess.getTypeScopeAccess().getLessOrEqualLessThanSignEqualsSignKeyword_3_0_1_0()); | ||
2166 | } | ||
2167 | { | ||
2168 | if ($current==null) { | ||
2169 | $current = createModelElement(grammarAccess.getTypeScopeRule()); | ||
2170 | } | ||
2171 | setWithLastConsumed($current, "lessOrEqual", true, "<="); | ||
2172 | } | ||
2173 | ) | ||
2174 | ) | ||
2175 | ) | ||
2176 | ( | ||
2177 | ( | ||
2178 | lv_max_7_0=RULE_INT | ||
2179 | { | ||
2180 | newLeafNode(lv_max_7_0, grammarAccess.getTypeScopeAccess().getMaxINTTerminalRuleCall_3_1_0()); | ||
2181 | } | ||
2182 | { | ||
2183 | if ($current==null) { | ||
2184 | $current = createModelElement(grammarAccess.getTypeScopeRule()); | ||
2185 | } | ||
2186 | setWithLastConsumed( | ||
2187 | $current, | ||
2188 | "max", | ||
2189 | lv_max_7_0, | ||
2190 | "org.eclipse.xtext.common.Terminals.INT"); | ||
2191 | } | ||
2192 | ) | ||
2193 | ) | ||
2194 | )? | ||
2195 | ) | ||
2196 | ; | ||
2197 | |||
2198 | // Entry rule entryRuleTypeReference | ||
2199 | entryRuleTypeReference returns [EObject current=null]: | ||
2200 | { newCompositeNode(grammarAccess.getTypeReferenceRule()); } | ||
2201 | iv_ruleTypeReference=ruleTypeReference | ||
2202 | { $current=$iv_ruleTypeReference.current; } | ||
2203 | EOF; | ||
2204 | |||
2205 | // Rule TypeReference | ||
2206 | ruleTypeReference returns [EObject current=null] | ||
2207 | @init { | ||
2208 | enterRule(); | ||
2209 | } | ||
2210 | @after { | ||
2211 | leaveRule(); | ||
2212 | }: | ||
2213 | ( | ||
2214 | { | ||
2215 | newCompositeNode(grammarAccess.getTypeReferenceAccess().getClassReferenceParserRuleCall_0()); | ||
2216 | } | ||
2217 | this_ClassReference_0=ruleClassReference | ||
2218 | { | ||
2219 | $current = $this_ClassReference_0.current; | ||
2220 | afterParserOrEnumRuleCall(); | ||
2221 | } | ||
2222 | | | ||
2223 | { | ||
2224 | newCompositeNode(grammarAccess.getTypeReferenceAccess().getObjectReferenceParserRuleCall_1()); | ||
2225 | } | ||
2226 | this_ObjectReference_1=ruleObjectReference | ||
2227 | { | ||
2228 | $current = $this_ObjectReference_1.current; | ||
2229 | afterParserOrEnumRuleCall(); | ||
2230 | } | ||
2231 | | | ||
2232 | { | ||
2233 | newCompositeNode(grammarAccess.getTypeReferenceAccess().getIntegerReferenceParserRuleCall_2()); | ||
2234 | } | ||
2235 | this_IntegerReference_2=ruleIntegerReference | ||
2236 | { | ||
2237 | $current = $this_IntegerReference_2.current; | ||
2238 | afterParserOrEnumRuleCall(); | ||
2239 | } | ||
2240 | | | ||
2241 | { | ||
2242 | newCompositeNode(grammarAccess.getTypeReferenceAccess().getRealReferenceParserRuleCall_3()); | ||
2243 | } | ||
2244 | this_RealReference_3=ruleRealReference | ||
2245 | { | ||
2246 | $current = $this_RealReference_3.current; | ||
2247 | afterParserOrEnumRuleCall(); | ||
2248 | } | ||
2249 | | | ||
2250 | { | ||
2251 | newCompositeNode(grammarAccess.getTypeReferenceAccess().getStringReferenceParserRuleCall_4()); | ||
2252 | } | ||
2253 | this_StringReference_4=ruleStringReference | ||
2254 | { | ||
2255 | $current = $this_StringReference_4.current; | ||
2256 | afterParserOrEnumRuleCall(); | ||
2257 | } | ||
2258 | ) | ||
2259 | ; | ||
2260 | |||
2261 | // Entry rule entryRuleClassReference | ||
2262 | entryRuleClassReference returns [EObject current=null]: | ||
2263 | { newCompositeNode(grammarAccess.getClassReferenceRule()); } | ||
2264 | iv_ruleClassReference=ruleClassReference | ||
2265 | { $current=$iv_ruleClassReference.current; } | ||
2266 | EOF; | ||
2267 | |||
2268 | // Rule ClassReference | ||
2269 | ruleClassReference returns [EObject current=null] | ||
2270 | @init { | ||
2271 | enterRule(); | ||
2272 | } | ||
2273 | @after { | ||
2274 | leaveRule(); | ||
2275 | }: | ||
2276 | ( | ||
2277 | otherlv_0='[' | ||
2278 | { | ||
2279 | newLeafNode(otherlv_0, grammarAccess.getClassReferenceAccess().getLeftSquareBracketKeyword_0()); | ||
2280 | } | ||
2281 | ( | ||
2282 | ( | ||
2283 | { | ||
2284 | newCompositeNode(grammarAccess.getClassReferenceAccess().getElementMetamodelElementParserRuleCall_1_0()); | ||
2285 | } | ||
2286 | lv_element_1_0=ruleMetamodelElement | ||
2287 | { | ||
2288 | if ($current==null) { | ||
2289 | $current = createModelElementForParent(grammarAccess.getClassReferenceRule()); | ||
2290 | } | ||
2291 | set( | ||
2292 | $current, | ||
2293 | "element", | ||
2294 | lv_element_1_0, | ||
2295 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelElement"); | ||
2296 | afterParserOrEnumRuleCall(); | ||
2297 | } | ||
2298 | ) | ||
2299 | ) | ||
2300 | otherlv_2=']' | ||
2301 | { | ||
2302 | newLeafNode(otherlv_2, grammarAccess.getClassReferenceAccess().getRightSquareBracketKeyword_2()); | ||
2303 | } | ||
2304 | ) | ||
2305 | ; | ||
2306 | |||
2307 | // Entry rule entryRuleObjectReference | ||
2308 | entryRuleObjectReference returns [EObject current=null]: | ||
2309 | { newCompositeNode(grammarAccess.getObjectReferenceRule()); } | ||
2310 | iv_ruleObjectReference=ruleObjectReference | ||
2311 | { $current=$iv_ruleObjectReference.current; } | ||
2312 | EOF; | ||
2313 | |||
2314 | // Rule ObjectReference | ||
2315 | ruleObjectReference returns [EObject current=null] | ||
2316 | @init { | ||
2317 | enterRule(); | ||
2318 | } | ||
2319 | @after { | ||
2320 | leaveRule(); | ||
2321 | }: | ||
2322 | ( | ||
2323 | ( | ||
2324 | { | ||
2325 | $current = forceCreateModelElement( | ||
2326 | grammarAccess.getObjectReferenceAccess().getObjectReferenceAction_0(), | ||
2327 | $current); | ||
2328 | } | ||
2329 | ) | ||
2330 | otherlv_1='Object' | ||
2331 | { | ||
2332 | newLeafNode(otherlv_1, grammarAccess.getObjectReferenceAccess().getObjectKeyword_1()); | ||
2333 | } | ||
2334 | ) | ||
2335 | ; | ||
2336 | |||
2337 | // Entry rule entryRuleIntegerReference | ||
2338 | entryRuleIntegerReference returns [EObject current=null]: | ||
2339 | { newCompositeNode(grammarAccess.getIntegerReferenceRule()); } | ||
2340 | iv_ruleIntegerReference=ruleIntegerReference | ||
2341 | { $current=$iv_ruleIntegerReference.current; } | ||
2342 | EOF; | ||
2343 | |||
2344 | // Rule IntegerReference | ||
2345 | ruleIntegerReference returns [EObject current=null] | ||
2346 | @init { | ||
2347 | enterRule(); | ||
2348 | } | ||
2349 | @after { | ||
2350 | leaveRule(); | ||
2351 | }: | ||
2352 | ( | ||
2353 | ( | ||
2354 | { | ||
2355 | $current = forceCreateModelElement( | ||
2356 | grammarAccess.getIntegerReferenceAccess().getIntegerScopeAction_0(), | ||
2357 | $current); | ||
2358 | } | ||
2359 | ) | ||
2360 | otherlv_1='int' | ||
2361 | { | ||
2362 | newLeafNode(otherlv_1, grammarAccess.getIntegerReferenceAccess().getIntKeyword_1()); | ||
2363 | } | ||
2364 | ) | ||
2365 | ; | ||
2366 | |||
2367 | // Entry rule entryRuleRealReference | ||
2368 | entryRuleRealReference returns [EObject current=null]: | ||
2369 | { newCompositeNode(grammarAccess.getRealReferenceRule()); } | ||
2370 | iv_ruleRealReference=ruleRealReference | ||
2371 | { $current=$iv_ruleRealReference.current; } | ||
2372 | EOF; | ||
2373 | |||
2374 | // Rule RealReference | ||
2375 | ruleRealReference returns [EObject current=null] | ||
2376 | @init { | ||
2377 | enterRule(); | ||
2378 | } | ||
2379 | @after { | ||
2380 | leaveRule(); | ||
2381 | }: | ||
2382 | ( | ||
2383 | ( | ||
2384 | { | ||
2385 | $current = forceCreateModelElement( | ||
2386 | grammarAccess.getRealReferenceAccess().getRealScopeAction_0(), | ||
2387 | $current); | ||
2388 | } | ||
2389 | ) | ||
2390 | otherlv_1='real' | ||
2391 | { | ||
2392 | newLeafNode(otherlv_1, grammarAccess.getRealReferenceAccess().getRealKeyword_1()); | ||
2393 | } | ||
2394 | ) | ||
2395 | ; | ||
2396 | |||
2397 | // Entry rule entryRuleStringReference | ||
2398 | entryRuleStringReference returns [EObject current=null]: | ||
2399 | { newCompositeNode(grammarAccess.getStringReferenceRule()); } | ||
2400 | iv_ruleStringReference=ruleStringReference | ||
2401 | { $current=$iv_ruleStringReference.current; } | ||
2402 | EOF; | ||
2403 | |||
2404 | // Rule StringReference | ||
2405 | ruleStringReference returns [EObject current=null] | ||
2406 | @init { | ||
2407 | enterRule(); | ||
2408 | } | ||
2409 | @after { | ||
2410 | leaveRule(); | ||
2411 | }: | ||
2412 | ( | ||
2413 | ( | ||
2414 | { | ||
2415 | $current = forceCreateModelElement( | ||
2416 | grammarAccess.getStringReferenceAccess().getStringScopeAction_0(), | ||
2417 | $current); | ||
2418 | } | ||
2419 | ) | ||
2420 | otherlv_1='string' | ||
2421 | { | ||
2422 | newLeafNode(otherlv_1, grammarAccess.getStringReferenceAccess().getStringKeyword_1()); | ||
2423 | } | ||
2424 | ) | ||
2425 | ; | ||
2426 | |||
2427 | // Entry rule entryRuleScopeDeclaration | ||
2428 | entryRuleScopeDeclaration returns [EObject current=null]: | ||
2429 | { newCompositeNode(grammarAccess.getScopeDeclarationRule()); } | ||
2430 | iv_ruleScopeDeclaration=ruleScopeDeclaration | ||
2431 | { $current=$iv_ruleScopeDeclaration.current; } | ||
2432 | EOF; | ||
2433 | |||
2434 | // Rule ScopeDeclaration | ||
2435 | ruleScopeDeclaration returns [EObject current=null] | ||
2436 | @init { | ||
2437 | enterRule(); | ||
2438 | } | ||
2439 | @after { | ||
2440 | leaveRule(); | ||
2441 | }: | ||
2442 | ( | ||
2443 | otherlv_0='scope' | ||
2444 | { | ||
2445 | newLeafNode(otherlv_0, grammarAccess.getScopeDeclarationAccess().getScopeKeyword_0()); | ||
2446 | } | ||
2447 | ( | ||
2448 | ( | ||
2449 | lv_name_1_0=RULE_ID | ||
2450 | { | ||
2451 | newLeafNode(lv_name_1_0, grammarAccess.getScopeDeclarationAccess().getNameIDTerminalRuleCall_1_0()); | ||
2452 | } | ||
2453 | { | ||
2454 | if ($current==null) { | ||
2455 | $current = createModelElement(grammarAccess.getScopeDeclarationRule()); | ||
2456 | } | ||
2457 | setWithLastConsumed( | ||
2458 | $current, | ||
2459 | "name", | ||
2460 | lv_name_1_0, | ||
2461 | "org.eclipse.xtext.common.Terminals.ID"); | ||
2462 | } | ||
2463 | ) | ||
2464 | ) | ||
2465 | ( | ||
2466 | ( | ||
2467 | { | ||
2468 | newCompositeNode(grammarAccess.getScopeDeclarationAccess().getSpecificationScopeSpecificationParserRuleCall_2_0()); | ||
2469 | } | ||
2470 | lv_specification_2_0=ruleScopeSpecification | ||
2471 | { | ||
2472 | if ($current==null) { | ||
2473 | $current = createModelElementForParent(grammarAccess.getScopeDeclarationRule()); | ||
2474 | } | ||
2475 | set( | ||
2476 | $current, | ||
2477 | "specification", | ||
2478 | lv_specification_2_0, | ||
2479 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ScopeSpecification"); | ||
2480 | afterParserOrEnumRuleCall(); | ||
2481 | } | ||
2482 | ) | ||
2483 | ) | ||
2484 | ) | ||
2485 | ; | ||
2486 | |||
2487 | // Entry rule entryRuleScopeReference | ||
2488 | entryRuleScopeReference returns [EObject current=null]: | ||
2489 | { newCompositeNode(grammarAccess.getScopeReferenceRule()); } | ||
2490 | iv_ruleScopeReference=ruleScopeReference | ||
2491 | { $current=$iv_ruleScopeReference.current; } | ||
2492 | EOF; | ||
2493 | |||
2494 | // Rule ScopeReference | ||
2495 | ruleScopeReference returns [EObject current=null] | ||
2496 | @init { | ||
2497 | enterRule(); | ||
2498 | } | ||
2499 | @after { | ||
2500 | leaveRule(); | ||
2501 | }: | ||
2502 | ( | ||
2503 | ( | ||
2504 | { | ||
2505 | if ($current==null) { | ||
2506 | $current = createModelElement(grammarAccess.getScopeReferenceRule()); | ||
2507 | } | ||
2508 | } | ||
2509 | otherlv_0=RULE_ID | ||
2510 | { | ||
2511 | newLeafNode(otherlv_0, grammarAccess.getScopeReferenceAccess().getReferredScopeDeclarationCrossReference_0()); | ||
2512 | } | ||
2513 | ) | ||
2514 | ) | ||
2515 | ; | ||
2516 | |||
2517 | // Entry rule entryRuleScope | ||
2518 | entryRuleScope returns [EObject current=null]: | ||
2519 | { newCompositeNode(grammarAccess.getScopeRule()); } | ||
2520 | iv_ruleScope=ruleScope | ||
2521 | { $current=$iv_ruleScope.current; } | ||
2522 | EOF; | ||
2523 | |||
2524 | // Rule Scope | ||
2525 | ruleScope returns [EObject current=null] | ||
2526 | @init { | ||
2527 | enterRule(); | ||
2528 | } | ||
2529 | @after { | ||
2530 | leaveRule(); | ||
2531 | }: | ||
2532 | ( | ||
2533 | { | ||
2534 | newCompositeNode(grammarAccess.getScopeAccess().getScopeSpecificationParserRuleCall_0()); | ||
2535 | } | ||
2536 | this_ScopeSpecification_0=ruleScopeSpecification | ||
2537 | { | ||
2538 | $current = $this_ScopeSpecification_0.current; | ||
2539 | afterParserOrEnumRuleCall(); | ||
2540 | } | ||
2541 | | | ||
2542 | { | ||
2543 | newCompositeNode(grammarAccess.getScopeAccess().getScopeReferenceParserRuleCall_1()); | ||
2544 | } | ||
2545 | this_ScopeReference_1=ruleScopeReference | ||
2546 | { | ||
2547 | $current = $this_ScopeReference_1.current; | ||
2548 | afterParserOrEnumRuleCall(); | ||
2549 | } | ||
2550 | ) | ||
2551 | ; | ||
2552 | |||
2553 | // Entry rule entryRuleTask | ||
2554 | entryRuleTask returns [EObject current=null]: | ||
2555 | { newCompositeNode(grammarAccess.getTaskRule()); } | ||
2556 | iv_ruleTask=ruleTask | ||
2557 | { $current=$iv_ruleTask.current; } | ||
2558 | EOF; | ||
2559 | |||
2560 | // Rule Task | ||
2561 | ruleTask returns [EObject current=null] | ||
2562 | @init { | ||
2563 | enterRule(); | ||
2564 | } | ||
2565 | @after { | ||
2566 | leaveRule(); | ||
2567 | }: | ||
2568 | { | ||
2569 | newCompositeNode(grammarAccess.getTaskAccess().getGenerationTaskParserRuleCall()); | ||
2570 | } | ||
2571 | this_GenerationTask_0=ruleGenerationTask | ||
2572 | { | ||
2573 | $current = $this_GenerationTask_0.current; | ||
2574 | afterParserOrEnumRuleCall(); | ||
2575 | } | ||
2576 | ; | ||
2577 | |||
2578 | // Entry rule entryRuleGenerationTask | ||
2579 | entryRuleGenerationTask returns [EObject current=null]: | ||
2580 | { newCompositeNode(grammarAccess.getGenerationTaskRule()); } | ||
2581 | iv_ruleGenerationTask=ruleGenerationTask | ||
2582 | { $current=$iv_ruleGenerationTask.current; } | ||
2583 | EOF; | ||
2584 | |||
2585 | // Rule GenerationTask | ||
2586 | ruleGenerationTask returns [EObject current=null] | ||
2587 | @init { | ||
2588 | enterRule(); | ||
2589 | } | ||
2590 | @after { | ||
2591 | leaveRule(); | ||
2592 | }: | ||
2593 | ( | ||
2594 | otherlv_0='generate' | ||
2595 | { | ||
2596 | newLeafNode(otherlv_0, grammarAccess.getGenerationTaskAccess().getGenerateKeyword_0()); | ||
2597 | } | ||
2598 | ( | ||
2599 | { | ||
2600 | $current = forceCreateModelElement( | ||
2601 | grammarAccess.getGenerationTaskAccess().getGenerationTaskAction_1(), | ||
2602 | $current); | ||
2603 | } | ||
2604 | ) | ||
2605 | otherlv_2='{' | ||
2606 | { | ||
2607 | newLeafNode(otherlv_2, grammarAccess.getGenerationTaskAccess().getLeftCurlyBracketKeyword_2()); | ||
2608 | } | ||
2609 | ( | ||
2610 | ( | ||
2611 | { | ||
2612 | getUnorderedGroupHelper().enter(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
2613 | } | ||
2614 | ( | ||
2615 | ( | ||
2616 | ( | ||
2617 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 0)}?=>( | ||
2618 | { | ||
2619 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 0); | ||
2620 | } | ||
2621 | ({true}?=>(otherlv_4='metamodel' | ||
2622 | { | ||
2623 | newLeafNode(otherlv_4, grammarAccess.getGenerationTaskAccess().getMetamodelKeyword_3_0_0()); | ||
2624 | } | ||
2625 | otherlv_5='=' | ||
2626 | { | ||
2627 | newLeafNode(otherlv_5, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_0_1()); | ||
2628 | } | ||
2629 | ( | ||
2630 | ( | ||
2631 | { | ||
2632 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getMetamodelMetamodelParserRuleCall_3_0_2_0()); | ||
2633 | } | ||
2634 | lv_metamodel_6_0=ruleMetamodel | ||
2635 | { | ||
2636 | if ($current==null) { | ||
2637 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
2638 | } | ||
2639 | set( | ||
2640 | $current, | ||
2641 | "metamodel", | ||
2642 | lv_metamodel_6_0, | ||
2643 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Metamodel"); | ||
2644 | afterParserOrEnumRuleCall(); | ||
2645 | } | ||
2646 | ) | ||
2647 | ) | ||
2648 | )) | ||
2649 | { | ||
2650 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
2651 | } | ||
2652 | ) | ||
2653 | )| | ||
2654 | ( | ||
2655 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 1)}?=>( | ||
2656 | { | ||
2657 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 1); | ||
2658 | } | ||
2659 | ({true}?=>(otherlv_7='partial-model' | ||
2660 | { | ||
2661 | newLeafNode(otherlv_7, grammarAccess.getGenerationTaskAccess().getPartialModelKeyword_3_1_0()); | ||
2662 | } | ||
2663 | otherlv_8='=' | ||
2664 | { | ||
2665 | newLeafNode(otherlv_8, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_1_1()); | ||
2666 | } | ||
2667 | ( | ||
2668 | ( | ||
2669 | { | ||
2670 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getPartialModelPartialModelParserRuleCall_3_1_2_0()); | ||
2671 | } | ||
2672 | lv_partialModel_9_0=rulePartialModel | ||
2673 | { | ||
2674 | if ($current==null) { | ||
2675 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
2676 | } | ||
2677 | set( | ||
2678 | $current, | ||
2679 | "partialModel", | ||
2680 | lv_partialModel_9_0, | ||
2681 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PartialModel"); | ||
2682 | afterParserOrEnumRuleCall(); | ||
2683 | } | ||
2684 | ) | ||
2685 | ) | ||
2686 | )) | ||
2687 | { | ||
2688 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
2689 | } | ||
2690 | ) | ||
2691 | )| | ||
2692 | ( | ||
2693 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 2)}?=>( | ||
2694 | { | ||
2695 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 2); | ||
2696 | } | ||
2697 | ({true}?=>(otherlv_10='patterns' | ||
2698 | { | ||
2699 | newLeafNode(otherlv_10, grammarAccess.getGenerationTaskAccess().getPatternsKeyword_3_2_0()); | ||
2700 | } | ||
2701 | otherlv_11='=' | ||
2702 | { | ||
2703 | newLeafNode(otherlv_11, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_2_1()); | ||
2704 | } | ||
2705 | ( | ||
2706 | ( | ||
2707 | { | ||
2708 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getPatternsGraphPatternParserRuleCall_3_2_2_0()); | ||
2709 | } | ||
2710 | lv_patterns_12_0=ruleGraphPattern | ||
2711 | { | ||
2712 | if ($current==null) { | ||
2713 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
2714 | } | ||
2715 | set( | ||
2716 | $current, | ||
2717 | "patterns", | ||
2718 | lv_patterns_12_0, | ||
2719 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.GraphPattern"); | ||
2720 | afterParserOrEnumRuleCall(); | ||
2721 | } | ||
2722 | ) | ||
2723 | ) | ||
2724 | )) | ||
2725 | { | ||
2726 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
2727 | } | ||
2728 | ) | ||
2729 | )| | ||
2730 | ( | ||
2731 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 3)}?=>( | ||
2732 | { | ||
2733 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 3); | ||
2734 | } | ||
2735 | ({true}?=>(otherlv_13='scope' | ||
2736 | { | ||
2737 | newLeafNode(otherlv_13, grammarAccess.getGenerationTaskAccess().getScopeKeyword_3_3_0()); | ||
2738 | } | ||
2739 | otherlv_14='=' | ||
2740 | { | ||
2741 | newLeafNode(otherlv_14, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_3_1()); | ||
2742 | } | ||
2743 | ( | ||
2744 | ( | ||
2745 | { | ||
2746 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getScopeScopeParserRuleCall_3_3_2_0()); | ||
2747 | } | ||
2748 | lv_scope_15_0=ruleScope | ||
2749 | { | ||
2750 | if ($current==null) { | ||
2751 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
2752 | } | ||
2753 | set( | ||
2754 | $current, | ||
2755 | "scope", | ||
2756 | lv_scope_15_0, | ||
2757 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Scope"); | ||
2758 | afterParserOrEnumRuleCall(); | ||
2759 | } | ||
2760 | ) | ||
2761 | ) | ||
2762 | )) | ||
2763 | { | ||
2764 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
2765 | } | ||
2766 | ) | ||
2767 | )| | ||
2768 | ( | ||
2769 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 4)}?=>( | ||
2770 | { | ||
2771 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 4); | ||
2772 | } | ||
2773 | ({true}?=>(otherlv_16='number' | ||
2774 | { | ||
2775 | newLeafNode(otherlv_16, grammarAccess.getGenerationTaskAccess().getNumberKeyword_3_4_0()); | ||
2776 | } | ||
2777 | otherlv_17='=' | ||
2778 | { | ||
2779 | newLeafNode(otherlv_17, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_4_1()); | ||
2780 | } | ||
2781 | ( | ||
2782 | ( | ||
2783 | lv_number_18_0=RULE_INT | ||
2784 | { | ||
2785 | newLeafNode(lv_number_18_0, grammarAccess.getGenerationTaskAccess().getNumberINTTerminalRuleCall_3_4_2_0()); | ||
2786 | } | ||
2787 | { | ||
2788 | if ($current==null) { | ||
2789 | $current = createModelElement(grammarAccess.getGenerationTaskRule()); | ||
2790 | } | ||
2791 | setWithLastConsumed( | ||
2792 | $current, | ||
2793 | "number", | ||
2794 | lv_number_18_0, | ||
2795 | "org.eclipse.xtext.common.Terminals.INT"); | ||
2796 | } | ||
2797 | ) | ||
2798 | ) | ||
2799 | )) | ||
2800 | { | ||
2801 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
2802 | } | ||
2803 | ) | ||
2804 | )| | ||
2805 | ( | ||
2806 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 5)}?=>( | ||
2807 | { | ||
2808 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 5); | ||
2809 | } | ||
2810 | ({true}?=>(otherlv_19='runs' | ||
2811 | { | ||
2812 | newLeafNode(otherlv_19, grammarAccess.getGenerationTaskAccess().getRunsKeyword_3_5_0()); | ||
2813 | } | ||
2814 | otherlv_20='=' | ||
2815 | { | ||
2816 | newLeafNode(otherlv_20, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_5_1()); | ||
2817 | } | ||
2818 | ( | ||
2819 | ( | ||
2820 | lv_runs_21_0=RULE_INT | ||
2821 | { | ||
2822 | newLeafNode(lv_runs_21_0, grammarAccess.getGenerationTaskAccess().getRunsINTTerminalRuleCall_3_5_2_0()); | ||
2823 | } | ||
2824 | { | ||
2825 | if ($current==null) { | ||
2826 | $current = createModelElement(grammarAccess.getGenerationTaskRule()); | ||
2827 | } | ||
2828 | setWithLastConsumed( | ||
2829 | $current, | ||
2830 | "runs", | ||
2831 | lv_runs_21_0, | ||
2832 | "org.eclipse.xtext.common.Terminals.INT"); | ||
2833 | } | ||
2834 | ) | ||
2835 | ) | ||
2836 | )) | ||
2837 | { | ||
2838 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
2839 | } | ||
2840 | ) | ||
2841 | )| | ||
2842 | ( | ||
2843 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 6)}?=>( | ||
2844 | { | ||
2845 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 6); | ||
2846 | } | ||
2847 | ({true}?=>(otherlv_22='solver' | ||
2848 | { | ||
2849 | newLeafNode(otherlv_22, grammarAccess.getGenerationTaskAccess().getSolverKeyword_3_6_0()); | ||
2850 | } | ||
2851 | otherlv_23='=' | ||
2852 | { | ||
2853 | newLeafNode(otherlv_23, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_6_1()); | ||
2854 | } | ||
2855 | ( | ||
2856 | ( | ||
2857 | { | ||
2858 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getSolverSolverEnumRuleCall_3_6_2_0()); | ||
2859 | } | ||
2860 | lv_solver_24_0=ruleSolver | ||
2861 | { | ||
2862 | if ($current==null) { | ||
2863 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
2864 | } | ||
2865 | set( | ||
2866 | $current, | ||
2867 | "solver", | ||
2868 | lv_solver_24_0, | ||
2869 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Solver"); | ||
2870 | afterParserOrEnumRuleCall(); | ||
2871 | } | ||
2872 | ) | ||
2873 | ) | ||
2874 | )) | ||
2875 | { | ||
2876 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
2877 | } | ||
2878 | ) | ||
2879 | )| | ||
2880 | ( | ||
2881 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 7)}?=>( | ||
2882 | { | ||
2883 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 7); | ||
2884 | } | ||
2885 | ({true}?=>(otherlv_25='config' | ||
2886 | { | ||
2887 | newLeafNode(otherlv_25, grammarAccess.getGenerationTaskAccess().getConfigKeyword_3_7_0()); | ||
2888 | } | ||
2889 | otherlv_26='=' | ||
2890 | { | ||
2891 | newLeafNode(otherlv_26, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_7_1()); | ||
2892 | } | ||
2893 | ( | ||
2894 | ( | ||
2895 | { | ||
2896 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getConfigConfigParserRuleCall_3_7_2_0()); | ||
2897 | } | ||
2898 | lv_config_27_0=ruleConfig | ||
2899 | { | ||
2900 | if ($current==null) { | ||
2901 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
2902 | } | ||
2903 | set( | ||
2904 | $current, | ||
2905 | "config", | ||
2906 | lv_config_27_0, | ||
2907 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Config"); | ||
2908 | afterParserOrEnumRuleCall(); | ||
2909 | } | ||
2910 | ) | ||
2911 | ) | ||
2912 | )) | ||
2913 | { | ||
2914 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
2915 | } | ||
2916 | ) | ||
2917 | )| | ||
2918 | ( | ||
2919 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 8)}?=>( | ||
2920 | { | ||
2921 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 8); | ||
2922 | } | ||
2923 | ({true}?=>(otherlv_28='output' | ||
2924 | { | ||
2925 | newLeafNode(otherlv_28, grammarAccess.getGenerationTaskAccess().getOutputKeyword_3_8_0()); | ||
2926 | } | ||
2927 | otherlv_29='=' | ||
2928 | { | ||
2929 | newLeafNode(otherlv_29, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_8_1()); | ||
2930 | } | ||
2931 | ( | ||
2932 | ( | ||
2933 | { | ||
2934 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getTagetFolderFileParserRuleCall_3_8_2_0()); | ||
2935 | } | ||
2936 | lv_tagetFolder_30_0=ruleFile | ||
2937 | { | ||
2938 | if ($current==null) { | ||
2939 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
2940 | } | ||
2941 | set( | ||
2942 | $current, | ||
2943 | "tagetFolder", | ||
2944 | lv_tagetFolder_30_0, | ||
2945 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); | ||
2946 | afterParserOrEnumRuleCall(); | ||
2947 | } | ||
2948 | ) | ||
2949 | ) | ||
2950 | )) | ||
2951 | { | ||
2952 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
2953 | } | ||
2954 | ) | ||
2955 | )| | ||
2956 | ( | ||
2957 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 9)}?=>( | ||
2958 | { | ||
2959 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 9); | ||
2960 | } | ||
2961 | ({true}?=>(otherlv_31='debug' | ||
2962 | { | ||
2963 | newLeafNode(otherlv_31, grammarAccess.getGenerationTaskAccess().getDebugKeyword_3_9_0()); | ||
2964 | } | ||
2965 | otherlv_32='=' | ||
2966 | { | ||
2967 | newLeafNode(otherlv_32, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_9_1()); | ||
2968 | } | ||
2969 | ( | ||
2970 | ( | ||
2971 | { | ||
2972 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getDebugFolderFileParserRuleCall_3_9_2_0()); | ||
2973 | } | ||
2974 | lv_debugFolder_33_0=ruleFile | ||
2975 | { | ||
2976 | if ($current==null) { | ||
2977 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
2978 | } | ||
2979 | set( | ||
2980 | $current, | ||
2981 | "debugFolder", | ||
2982 | lv_debugFolder_33_0, | ||
2983 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); | ||
2984 | afterParserOrEnumRuleCall(); | ||
2985 | } | ||
2986 | ) | ||
2987 | ) | ||
2988 | )) | ||
2989 | { | ||
2990 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
2991 | } | ||
2992 | ) | ||
2993 | )| | ||
2994 | ( | ||
2995 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 10)}?=>( | ||
2996 | { | ||
2997 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 10); | ||
2998 | } | ||
2999 | ({true}?=>(otherlv_34='log' | ||
3000 | { | ||
3001 | newLeafNode(otherlv_34, grammarAccess.getGenerationTaskAccess().getLogKeyword_3_10_0()); | ||
3002 | } | ||
3003 | otherlv_35='=' | ||
3004 | { | ||
3005 | newLeafNode(otherlv_35, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_10_1()); | ||
3006 | } | ||
3007 | ( | ||
3008 | ( | ||
3009 | { | ||
3010 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getTargetLogFileFileParserRuleCall_3_10_2_0()); | ||
3011 | } | ||
3012 | lv_targetLogFile_36_0=ruleFile | ||
3013 | { | ||
3014 | if ($current==null) { | ||
3015 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
3016 | } | ||
3017 | set( | ||
3018 | $current, | ||
3019 | "targetLogFile", | ||
3020 | lv_targetLogFile_36_0, | ||
3021 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); | ||
3022 | afterParserOrEnumRuleCall(); | ||
3023 | } | ||
3024 | ) | ||
3025 | ) | ||
3026 | )) | ||
3027 | { | ||
3028 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
3029 | } | ||
3030 | ) | ||
3031 | )| | ||
3032 | ( | ||
3033 | {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 11)}?=>( | ||
3034 | { | ||
3035 | getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 11); | ||
3036 | } | ||
3037 | ({true}?=>(otherlv_37='statistics' | ||
3038 | { | ||
3039 | newLeafNode(otherlv_37, grammarAccess.getGenerationTaskAccess().getStatisticsKeyword_3_11_0()); | ||
3040 | } | ||
3041 | otherlv_38='=' | ||
3042 | { | ||
3043 | newLeafNode(otherlv_38, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_11_1()); | ||
3044 | } | ||
3045 | ( | ||
3046 | ( | ||
3047 | { | ||
3048 | newCompositeNode(grammarAccess.getGenerationTaskAccess().getTargetStatisticsFileFileParserRuleCall_3_11_2_0()); | ||
3049 | } | ||
3050 | lv_targetStatisticsFile_39_0=ruleFile | ||
3051 | { | ||
3052 | if ($current==null) { | ||
3053 | $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); | ||
3054 | } | ||
3055 | set( | ||
3056 | $current, | ||
3057 | "targetStatisticsFile", | ||
3058 | lv_targetStatisticsFile_39_0, | ||
3059 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); | ||
3060 | afterParserOrEnumRuleCall(); | ||
3061 | } | ||
3062 | ) | ||
3063 | ) | ||
3064 | )) | ||
3065 | { | ||
3066 | getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
3067 | } | ||
3068 | ) | ||
3069 | ) | ||
3070 | )* | ||
3071 | ) | ||
3072 | ) | ||
3073 | { | ||
3074 | getUnorderedGroupHelper().leave(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); | ||
3075 | } | ||
3076 | ) | ||
3077 | otherlv_40='}' | ||
3078 | { | ||
3079 | newLeafNode(otherlv_40, grammarAccess.getGenerationTaskAccess().getRightCurlyBracketKeyword_4()); | ||
3080 | } | ||
3081 | ) | ||
3082 | ; | ||
3083 | |||
3084 | // Rule Solver | ||
3085 | ruleSolver returns [Enumerator current=null] | ||
3086 | @init { | ||
3087 | enterRule(); | ||
3088 | } | ||
3089 | @after { | ||
3090 | leaveRule(); | ||
3091 | }: | ||
3092 | ( | ||
3093 | ( | ||
3094 | enumLiteral_0='SMTSolver' | ||
3095 | { | ||
3096 | $current = grammarAccess.getSolverAccess().getSMTSolverEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); | ||
3097 | newLeafNode(enumLiteral_0, grammarAccess.getSolverAccess().getSMTSolverEnumLiteralDeclaration_0()); | ||
3098 | } | ||
3099 | ) | ||
3100 | | | ||
3101 | ( | ||
3102 | enumLiteral_1='AlloySolver' | ||
3103 | { | ||
3104 | $current = grammarAccess.getSolverAccess().getAlloySolverEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); | ||
3105 | newLeafNode(enumLiteral_1, grammarAccess.getSolverAccess().getAlloySolverEnumLiteralDeclaration_1()); | ||
3106 | } | ||
3107 | ) | ||
3108 | | | ||
3109 | ( | ||
3110 | enumLiteral_2='ViatraSolver' | ||
3111 | { | ||
3112 | $current = grammarAccess.getSolverAccess().getViatraSolverEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); | ||
3113 | newLeafNode(enumLiteral_2, grammarAccess.getSolverAccess().getViatraSolverEnumLiteralDeclaration_2()); | ||
3114 | } | ||
3115 | ) | ||
3116 | ) | ||
3117 | ; | ||
3118 | |||
647 | RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; | 3119 | RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; |
648 | 3120 | ||
649 | RULE_INT : ('0'..'9')+; | 3121 | RULE_INT : ('0'..'9')+; |