diff options
author | 2019-02-06 18:28:18 +0100 | |
---|---|---|
committer | 2019-02-19 19:18:25 +0100 | |
commit | 615b602f0a9b4ce9eca8c38b9aa780b81d03d8e7 (patch) | |
tree | 1c9fe0f4ae152d84152c8ff1cfb6366ec8b277e9 /Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.g | |
parent | [Stochastic] Fault tree transformation langauge (diff) | |
download | VIATRA-Generator-615b602f0a9b4ce9eca8c38b9aa780b81d03d8e7.tar.gz VIATRA-Generator-615b602f0a9b4ce9eca8c38b9aa780b81d03d8e7.tar.zst VIATRA-Generator-615b602f0a9b4ce9eca8c38b9aa780b81d03d8e7.zip |
Extract component fault tree model
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.g')
-rw-r--r-- | Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.g | 551 |
1 files changed, 453 insertions, 98 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.g b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.g index ff509b0a..2d1b9490 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.g +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.g | |||
@@ -238,19 +238,20 @@ ruleComponentDefinition returns [EObject current=null] | |||
238 | } | 238 | } |
239 | ( | 239 | ( |
240 | ( | 240 | ( |
241 | lv_name_1_0=RULE_ID | ||
242 | { | 241 | { |
243 | newLeafNode(lv_name_1_0, grammarAccess.getComponentDefinitionAccess().getNameIDTerminalRuleCall_1_0()); | 242 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getNameValidIdParserRuleCall_1_0()); |
244 | } | 243 | } |
244 | lv_name_1_0=ruleValidId | ||
245 | { | 245 | { |
246 | if ($current==null) { | 246 | if ($current==null) { |
247 | $current = createModelElement(grammarAccess.getComponentDefinitionRule()); | 247 | $current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); |
248 | } | 248 | } |
249 | setWithLastConsumed( | 249 | set( |
250 | $current, | 250 | $current, |
251 | "name", | 251 | "name", |
252 | lv_name_1_0, | 252 | lv_name_1_0, |
253 | "org.eclipse.xtext.common.Terminals.ID"); | 253 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
254 | afterParserOrEnumRuleCall(); | ||
254 | } | 255 | } |
255 | ) | 256 | ) |
256 | ) | 257 | ) |
@@ -319,9 +320,12 @@ ruleComponentDefinition returns [EObject current=null] | |||
319 | $current = createModelElement(grammarAccess.getComponentDefinitionRule()); | 320 | $current = createModelElement(grammarAccess.getComponentDefinitionRule()); |
320 | } | 321 | } |
321 | } | 322 | } |
322 | otherlv_8=RULE_ID | ||
323 | { | 323 | { |
324 | newLeafNode(otherlv_8, grammarAccess.getComponentDefinitionAccess().getOutputEventsEventDeclarationCrossReference_3_1_1_0()); | 324 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getOutputEventsEventDeclarationCrossReference_3_1_1_0()); |
325 | } | ||
326 | ruleValidId | ||
327 | { | ||
328 | afterParserOrEnumRuleCall(); | ||
325 | } | 329 | } |
326 | ) | 330 | ) |
327 | )* | 331 | )* |
@@ -392,19 +396,20 @@ ruleInputEvent returns [EObject current=null] | |||
392 | ( | 396 | ( |
393 | ( | 397 | ( |
394 | ( | 398 | ( |
395 | lv_name_0_0=RULE_ID | ||
396 | { | 399 | { |
397 | newLeafNode(lv_name_0_0, grammarAccess.getInputEventAccess().getNameIDTerminalRuleCall_0_0()); | 400 | newCompositeNode(grammarAccess.getInputEventAccess().getNameValidIdParserRuleCall_0_0()); |
398 | } | 401 | } |
402 | lv_name_0_0=ruleValidId | ||
399 | { | 403 | { |
400 | if ($current==null) { | 404 | if ($current==null) { |
401 | $current = createModelElement(grammarAccess.getInputEventRule()); | 405 | $current = createModelElementForParent(grammarAccess.getInputEventRule()); |
402 | } | 406 | } |
403 | setWithLastConsumed( | 407 | set( |
404 | $current, | 408 | $current, |
405 | "name", | 409 | "name", |
406 | lv_name_0_0, | 410 | lv_name_0_0, |
407 | "org.eclipse.xtext.common.Terminals.ID"); | 411 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
412 | afterParserOrEnumRuleCall(); | ||
408 | } | 413 | } |
409 | ) | 414 | ) |
410 | ) | 415 | ) |
@@ -479,45 +484,167 @@ ruleBasicEventDefinition returns [EObject current=null] | |||
479 | ( | 484 | ( |
480 | ( | 485 | ( |
481 | ( | 486 | ( |
482 | lv_name_0_0=RULE_ID | ||
483 | { | 487 | { |
484 | newLeafNode(lv_name_0_0, grammarAccess.getBasicEventDefinitionAccess().getNameIDTerminalRuleCall_0_0()); | 488 | newCompositeNode(grammarAccess.getBasicEventDefinitionAccess().getNameValidIdParserRuleCall_0_0()); |
485 | } | 489 | } |
490 | lv_name_0_0=ruleValidId | ||
486 | { | 491 | { |
487 | if ($current==null) { | 492 | if ($current==null) { |
488 | $current = createModelElement(grammarAccess.getBasicEventDefinitionRule()); | 493 | $current = createModelElementForParent(grammarAccess.getBasicEventDefinitionRule()); |
489 | } | 494 | } |
490 | setWithLastConsumed( | 495 | set( |
491 | $current, | 496 | $current, |
492 | "name", | 497 | "name", |
493 | lv_name_0_0, | 498 | lv_name_0_0, |
494 | "org.eclipse.xtext.common.Terminals.ID"); | 499 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
500 | afterParserOrEnumRuleCall(); | ||
501 | } | ||
502 | ) | ||
503 | ) | ||
504 | ( | ||
505 | ( | ||
506 | { | ||
507 | newCompositeNode(grammarAccess.getBasicEventDefinitionAccess().getDistributionDistributionParserRuleCall_1_0()); | ||
508 | } | ||
509 | lv_distribution_1_0=ruleDistribution | ||
510 | { | ||
511 | if ($current==null) { | ||
512 | $current = createModelElementForParent(grammarAccess.getBasicEventDefinitionRule()); | ||
513 | } | ||
514 | set( | ||
515 | $current, | ||
516 | "distribution", | ||
517 | lv_distribution_1_0, | ||
518 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Distribution"); | ||
519 | afterParserOrEnumRuleCall(); | ||
495 | } | 520 | } |
496 | ) | 521 | ) |
497 | ) | 522 | ) |
498 | otherlv_1='lambda' | 523 | ) |
524 | ; | ||
525 | |||
526 | // Entry rule entryRuleDistribution | ||
527 | entryRuleDistribution returns [EObject current=null]: | ||
528 | { newCompositeNode(grammarAccess.getDistributionRule()); } | ||
529 | iv_ruleDistribution=ruleDistribution | ||
530 | { $current=$iv_ruleDistribution.current; } | ||
531 | EOF; | ||
532 | |||
533 | // Rule Distribution | ||
534 | ruleDistribution returns [EObject current=null] | ||
535 | @init { | ||
536 | enterRule(); | ||
537 | } | ||
538 | @after { | ||
539 | leaveRule(); | ||
540 | }: | ||
541 | ( | ||
542 | { | ||
543 | newCompositeNode(grammarAccess.getDistributionAccess().getConstantDistributionParserRuleCall_0()); | ||
544 | } | ||
545 | this_ConstantDistribution_0=ruleConstantDistribution | ||
546 | { | ||
547 | $current = $this_ConstantDistribution_0.current; | ||
548 | afterParserOrEnumRuleCall(); | ||
549 | } | ||
550 | | | ||
551 | { | ||
552 | newCompositeNode(grammarAccess.getDistributionAccess().getExponentialDistributionParserRuleCall_1()); | ||
553 | } | ||
554 | this_ExponentialDistribution_1=ruleExponentialDistribution | ||
555 | { | ||
556 | $current = $this_ExponentialDistribution_1.current; | ||
557 | afterParserOrEnumRuleCall(); | ||
558 | } | ||
559 | ) | ||
560 | ; | ||
561 | |||
562 | // Entry rule entryRuleConstantDistribution | ||
563 | entryRuleConstantDistribution returns [EObject current=null]: | ||
564 | { newCompositeNode(grammarAccess.getConstantDistributionRule()); } | ||
565 | iv_ruleConstantDistribution=ruleConstantDistribution | ||
566 | { $current=$iv_ruleConstantDistribution.current; } | ||
567 | EOF; | ||
568 | |||
569 | // Rule ConstantDistribution | ||
570 | ruleConstantDistribution returns [EObject current=null] | ||
571 | @init { | ||
572 | enterRule(); | ||
573 | } | ||
574 | @after { | ||
575 | leaveRule(); | ||
576 | }: | ||
577 | ( | ||
578 | otherlv_0='p' | ||
499 | { | 579 | { |
500 | newLeafNode(otherlv_1, grammarAccess.getBasicEventDefinitionAccess().getLambdaKeyword_1()); | 580 | newLeafNode(otherlv_0, grammarAccess.getConstantDistributionAccess().getPKeyword_0()); |
501 | } | 581 | } |
502 | otherlv_2='=' | 582 | otherlv_1='=' |
503 | { | 583 | { |
504 | newLeafNode(otherlv_2, grammarAccess.getBasicEventDefinitionAccess().getEqualsSignKeyword_2()); | 584 | newLeafNode(otherlv_1, grammarAccess.getConstantDistributionAccess().getEqualsSignKeyword_1()); |
505 | } | 585 | } |
506 | ( | 586 | ( |
507 | ( | 587 | ( |
508 | lv_rate_3_0=RULE_DOULBE | ||
509 | { | 588 | { |
510 | newLeafNode(lv_rate_3_0, grammarAccess.getBasicEventDefinitionAccess().getRateDOULBETerminalRuleCall_3_0()); | 589 | newCompositeNode(grammarAccess.getConstantDistributionAccess().getPDoubleParserRuleCall_2_0()); |
511 | } | 590 | } |
591 | lv_p_2_0=ruleDouble | ||
512 | { | 592 | { |
513 | if ($current==null) { | 593 | if ($current==null) { |
514 | $current = createModelElement(grammarAccess.getBasicEventDefinitionRule()); | 594 | $current = createModelElementForParent(grammarAccess.getConstantDistributionRule()); |
515 | } | 595 | } |
516 | setWithLastConsumed( | 596 | set( |
597 | $current, | ||
598 | "p", | ||
599 | lv_p_2_0, | ||
600 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Double"); | ||
601 | afterParserOrEnumRuleCall(); | ||
602 | } | ||
603 | ) | ||
604 | ) | ||
605 | ) | ||
606 | ; | ||
607 | |||
608 | // Entry rule entryRuleExponentialDistribution | ||
609 | entryRuleExponentialDistribution returns [EObject current=null]: | ||
610 | { newCompositeNode(grammarAccess.getExponentialDistributionRule()); } | ||
611 | iv_ruleExponentialDistribution=ruleExponentialDistribution | ||
612 | { $current=$iv_ruleExponentialDistribution.current; } | ||
613 | EOF; | ||
614 | |||
615 | // Rule ExponentialDistribution | ||
616 | ruleExponentialDistribution returns [EObject current=null] | ||
617 | @init { | ||
618 | enterRule(); | ||
619 | } | ||
620 | @after { | ||
621 | leaveRule(); | ||
622 | }: | ||
623 | ( | ||
624 | otherlv_0='lambda' | ||
625 | { | ||
626 | newLeafNode(otherlv_0, grammarAccess.getExponentialDistributionAccess().getLambdaKeyword_0()); | ||
627 | } | ||
628 | otherlv_1='=' | ||
629 | { | ||
630 | newLeafNode(otherlv_1, grammarAccess.getExponentialDistributionAccess().getEqualsSignKeyword_1()); | ||
631 | } | ||
632 | ( | ||
633 | ( | ||
634 | { | ||
635 | newCompositeNode(grammarAccess.getExponentialDistributionAccess().getLambdaDoubleParserRuleCall_2_0()); | ||
636 | } | ||
637 | lv_lambda_2_0=ruleDouble | ||
638 | { | ||
639 | if ($current==null) { | ||
640 | $current = createModelElementForParent(grammarAccess.getExponentialDistributionRule()); | ||
641 | } | ||
642 | set( | ||
517 | $current, | 643 | $current, |
518 | "rate", | 644 | "lambda", |
519 | lv_rate_3_0, | 645 | lv_lambda_2_0, |
520 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.DOULBE"); | 646 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Double"); |
647 | afterParserOrEnumRuleCall(); | ||
521 | } | 648 | } |
522 | ) | 649 | ) |
523 | ) | 650 | ) |
@@ -541,34 +668,43 @@ ruleGateDefinition returns [EObject current=null] | |||
541 | }: | 668 | }: |
542 | ( | 669 | ( |
543 | { | 670 | { |
544 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getAndGateParserRuleCall_0()); | 671 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getAndGateDefinitionParserRuleCall_0()); |
672 | } | ||
673 | this_AndGateDefinition_0=ruleAndGateDefinition | ||
674 | { | ||
675 | $current = $this_AndGateDefinition_0.current; | ||
676 | afterParserOrEnumRuleCall(); | ||
677 | } | ||
678 | | | ||
679 | { | ||
680 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getOrGateDefinitionParserRuleCall_1()); | ||
545 | } | 681 | } |
546 | this_AndGate_0=ruleAndGate | 682 | this_OrGateDefinition_1=ruleOrGateDefinition |
547 | { | 683 | { |
548 | $current = $this_AndGate_0.current; | 684 | $current = $this_OrGateDefinition_1.current; |
549 | afterParserOrEnumRuleCall(); | 685 | afterParserOrEnumRuleCall(); |
550 | } | 686 | } |
551 | | | 687 | | |
552 | { | 688 | { |
553 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getOrGateParserRuleCall_1()); | 689 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getKOfMGateDefinitionParserRuleCall_2()); |
554 | } | 690 | } |
555 | this_OrGate_1=ruleOrGate | 691 | this_KOfMGateDefinition_2=ruleKOfMGateDefinition |
556 | { | 692 | { |
557 | $current = $this_OrGate_1.current; | 693 | $current = $this_KOfMGateDefinition_2.current; |
558 | afterParserOrEnumRuleCall(); | 694 | afterParserOrEnumRuleCall(); |
559 | } | 695 | } |
560 | ) | 696 | ) |
561 | ; | 697 | ; |
562 | 698 | ||
563 | // Entry rule entryRuleAndGate | 699 | // Entry rule entryRuleAndGateDefinition |
564 | entryRuleAndGate returns [EObject current=null]: | 700 | entryRuleAndGateDefinition returns [EObject current=null]: |
565 | { newCompositeNode(grammarAccess.getAndGateRule()); } | 701 | { newCompositeNode(grammarAccess.getAndGateDefinitionRule()); } |
566 | iv_ruleAndGate=ruleAndGate | 702 | iv_ruleAndGateDefinition=ruleAndGateDefinition |
567 | { $current=$iv_ruleAndGate.current; } | 703 | { $current=$iv_ruleAndGateDefinition.current; } |
568 | EOF; | 704 | EOF; |
569 | 705 | ||
570 | // Rule AndGate | 706 | // Rule AndGateDefinition |
571 | ruleAndGate returns [EObject current=null] | 707 | ruleAndGateDefinition returns [EObject current=null] |
572 | @init { | 708 | @init { |
573 | enterRule(); | 709 | enterRule(); |
574 | } | 710 | } |
@@ -578,51 +714,55 @@ ruleAndGate returns [EObject current=null] | |||
578 | ( | 714 | ( |
579 | ( | 715 | ( |
580 | ( | 716 | ( |
581 | lv_name_0_0=RULE_ID | ||
582 | { | 717 | { |
583 | newLeafNode(lv_name_0_0, grammarAccess.getAndGateAccess().getNameIDTerminalRuleCall_0_0()); | 718 | newCompositeNode(grammarAccess.getAndGateDefinitionAccess().getNameValidIdParserRuleCall_0_0()); |
584 | } | 719 | } |
720 | lv_name_0_0=ruleValidId | ||
585 | { | 721 | { |
586 | if ($current==null) { | 722 | if ($current==null) { |
587 | $current = createModelElement(grammarAccess.getAndGateRule()); | 723 | $current = createModelElementForParent(grammarAccess.getAndGateDefinitionRule()); |
588 | } | 724 | } |
589 | setWithLastConsumed( | 725 | set( |
590 | $current, | 726 | $current, |
591 | "name", | 727 | "name", |
592 | lv_name_0_0, | 728 | lv_name_0_0, |
593 | "org.eclipse.xtext.common.Terminals.ID"); | 729 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
730 | afterParserOrEnumRuleCall(); | ||
594 | } | 731 | } |
595 | ) | 732 | ) |
596 | ) | 733 | ) |
597 | otherlv_1='and' | 734 | otherlv_1='and' |
598 | { | 735 | { |
599 | newLeafNode(otherlv_1, grammarAccess.getAndGateAccess().getAndKeyword_1()); | 736 | newLeafNode(otherlv_1, grammarAccess.getAndGateDefinitionAccess().getAndKeyword_1()); |
600 | } | 737 | } |
601 | ( | 738 | ( |
602 | ( | 739 | ( |
603 | { | 740 | { |
604 | if ($current==null) { | 741 | if ($current==null) { |
605 | $current = createModelElement(grammarAccess.getAndGateRule()); | 742 | $current = createModelElement(grammarAccess.getAndGateDefinitionRule()); |
606 | } | 743 | } |
607 | } | 744 | } |
608 | otherlv_2=RULE_ID | ||
609 | { | 745 | { |
610 | newLeafNode(otherlv_2, grammarAccess.getAndGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); | 746 | newCompositeNode(grammarAccess.getAndGateDefinitionAccess().getInputEventsEventDeclarationCrossReference_2_0()); |
747 | } | ||
748 | ruleValidId | ||
749 | { | ||
750 | afterParserOrEnumRuleCall(); | ||
611 | } | 751 | } |
612 | ) | 752 | ) |
613 | )* | 753 | )* |
614 | ) | 754 | ) |
615 | ; | 755 | ; |
616 | 756 | ||
617 | // Entry rule entryRuleOrGate | 757 | // Entry rule entryRuleOrGateDefinition |
618 | entryRuleOrGate returns [EObject current=null]: | 758 | entryRuleOrGateDefinition returns [EObject current=null]: |
619 | { newCompositeNode(grammarAccess.getOrGateRule()); } | 759 | { newCompositeNode(grammarAccess.getOrGateDefinitionRule()); } |
620 | iv_ruleOrGate=ruleOrGate | 760 | iv_ruleOrGateDefinition=ruleOrGateDefinition |
621 | { $current=$iv_ruleOrGate.current; } | 761 | { $current=$iv_ruleOrGateDefinition.current; } |
622 | EOF; | 762 | EOF; |
623 | 763 | ||
624 | // Rule OrGate | 764 | // Rule OrGateDefinition |
625 | ruleOrGate returns [EObject current=null] | 765 | ruleOrGateDefinition returns [EObject current=null] |
626 | @init { | 766 | @init { |
627 | enterRule(); | 767 | enterRule(); |
628 | } | 768 | } |
@@ -632,36 +772,157 @@ ruleOrGate returns [EObject current=null] | |||
632 | ( | 772 | ( |
633 | ( | 773 | ( |
634 | ( | 774 | ( |
635 | lv_name_0_0=RULE_ID | ||
636 | { | 775 | { |
637 | newLeafNode(lv_name_0_0, grammarAccess.getOrGateAccess().getNameIDTerminalRuleCall_0_0()); | 776 | newCompositeNode(grammarAccess.getOrGateDefinitionAccess().getNameValidIdParserRuleCall_0_0()); |
638 | } | 777 | } |
778 | lv_name_0_0=ruleValidId | ||
639 | { | 779 | { |
640 | if ($current==null) { | 780 | if ($current==null) { |
641 | $current = createModelElement(grammarAccess.getOrGateRule()); | 781 | $current = createModelElementForParent(grammarAccess.getOrGateDefinitionRule()); |
642 | } | 782 | } |
643 | setWithLastConsumed( | 783 | set( |
644 | $current, | 784 | $current, |
645 | "name", | 785 | "name", |
646 | lv_name_0_0, | 786 | lv_name_0_0, |
647 | "org.eclipse.xtext.common.Terminals.ID"); | 787 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
788 | afterParserOrEnumRuleCall(); | ||
648 | } | 789 | } |
649 | ) | 790 | ) |
650 | ) | 791 | ) |
651 | otherlv_1='or' | 792 | otherlv_1='or' |
652 | { | 793 | { |
653 | newLeafNode(otherlv_1, grammarAccess.getOrGateAccess().getOrKeyword_1()); | 794 | newLeafNode(otherlv_1, grammarAccess.getOrGateDefinitionAccess().getOrKeyword_1()); |
654 | } | 795 | } |
655 | ( | 796 | ( |
656 | ( | 797 | ( |
657 | { | 798 | { |
658 | if ($current==null) { | 799 | if ($current==null) { |
659 | $current = createModelElement(grammarAccess.getOrGateRule()); | 800 | $current = createModelElement(grammarAccess.getOrGateDefinitionRule()); |
660 | } | 801 | } |
661 | } | 802 | } |
662 | otherlv_2=RULE_ID | ||
663 | { | 803 | { |
664 | newLeafNode(otherlv_2, grammarAccess.getOrGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); | 804 | newCompositeNode(grammarAccess.getOrGateDefinitionAccess().getInputEventsEventDeclarationCrossReference_2_0()); |
805 | } | ||
806 | ruleValidId | ||
807 | { | ||
808 | afterParserOrEnumRuleCall(); | ||
809 | } | ||
810 | ) | ||
811 | )* | ||
812 | ) | ||
813 | ; | ||
814 | |||
815 | // Entry rule entryRuleKOfMGateDefinition | ||
816 | entryRuleKOfMGateDefinition returns [EObject current=null]: | ||
817 | { newCompositeNode(grammarAccess.getKOfMGateDefinitionRule()); } | ||
818 | iv_ruleKOfMGateDefinition=ruleKOfMGateDefinition | ||
819 | { $current=$iv_ruleKOfMGateDefinition.current; } | ||
820 | EOF; | ||
821 | |||
822 | // Rule KOfMGateDefinition | ||
823 | ruleKOfMGateDefinition returns [EObject current=null] | ||
824 | @init { | ||
825 | enterRule(); | ||
826 | } | ||
827 | @after { | ||
828 | leaveRule(); | ||
829 | }: | ||
830 | ( | ||
831 | ( | ||
832 | ( | ||
833 | { | ||
834 | newCompositeNode(grammarAccess.getKOfMGateDefinitionAccess().getNameValidIdParserRuleCall_0_0()); | ||
835 | } | ||
836 | lv_name_0_0=ruleValidId | ||
837 | { | ||
838 | if ($current==null) { | ||
839 | $current = createModelElementForParent(grammarAccess.getKOfMGateDefinitionRule()); | ||
840 | } | ||
841 | set( | ||
842 | $current, | ||
843 | "name", | ||
844 | lv_name_0_0, | ||
845 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
846 | afterParserOrEnumRuleCall(); | ||
847 | } | ||
848 | ) | ||
849 | ) | ||
850 | ( | ||
851 | ( | ||
852 | lv_k_1_0=RULE_INT | ||
853 | { | ||
854 | newLeafNode(lv_k_1_0, grammarAccess.getKOfMGateDefinitionAccess().getKINTTerminalRuleCall_1_0()); | ||
855 | } | ||
856 | { | ||
857 | if ($current==null) { | ||
858 | $current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
859 | } | ||
860 | setWithLastConsumed( | ||
861 | $current, | ||
862 | "k", | ||
863 | lv_k_1_0, | ||
864 | "org.eclipse.xtext.common.Terminals.INT"); | ||
865 | } | ||
866 | ) | ||
867 | ) | ||
868 | ( | ||
869 | ( | ||
870 | otherlv_2='of' | ||
871 | { | ||
872 | newLeafNode(otherlv_2, grammarAccess.getKOfMGateDefinitionAccess().getOfKeyword_2_0_0()); | ||
873 | } | ||
874 | ( | ||
875 | ( | ||
876 | lv_m_3_0=RULE_INT | ||
877 | { | ||
878 | newLeafNode(lv_m_3_0, grammarAccess.getKOfMGateDefinitionAccess().getMINTTerminalRuleCall_2_0_1_0()); | ||
879 | } | ||
880 | { | ||
881 | if ($current==null) { | ||
882 | $current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
883 | } | ||
884 | setWithLastConsumed( | ||
885 | $current, | ||
886 | "m", | ||
887 | lv_m_3_0, | ||
888 | "org.eclipse.xtext.common.Terminals.INT"); | ||
889 | } | ||
890 | ) | ||
891 | ) | ||
892 | ) | ||
893 | | | ||
894 | ( | ||
895 | ( | ||
896 | lv_m_4_0=RULE_OF_INT | ||
897 | { | ||
898 | newLeafNode(lv_m_4_0, grammarAccess.getKOfMGateDefinitionAccess().getMOF_INTTerminalRuleCall_2_1_0()); | ||
899 | } | ||
900 | { | ||
901 | if ($current==null) { | ||
902 | $current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
903 | } | ||
904 | setWithLastConsumed( | ||
905 | $current, | ||
906 | "m", | ||
907 | lv_m_4_0, | ||
908 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.OF_INT"); | ||
909 | } | ||
910 | ) | ||
911 | ) | ||
912 | ) | ||
913 | ( | ||
914 | ( | ||
915 | { | ||
916 | if ($current==null) { | ||
917 | $current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
918 | } | ||
919 | } | ||
920 | { | ||
921 | newCompositeNode(grammarAccess.getKOfMGateDefinitionAccess().getInputEventsEventDeclarationCrossReference_3_0()); | ||
922 | } | ||
923 | ruleValidId | ||
924 | { | ||
925 | afterParserOrEnumRuleCall(); | ||
665 | } | 926 | } |
666 | ) | 927 | ) |
667 | )* | 928 | )* |
@@ -690,19 +951,20 @@ ruleTransformationDefinition returns [EObject current=null] | |||
690 | } | 951 | } |
691 | ( | 952 | ( |
692 | ( | 953 | ( |
693 | lv_name_1_0=RULE_ID | ||
694 | { | 954 | { |
695 | newLeafNode(lv_name_1_0, grammarAccess.getTransformationDefinitionAccess().getNameIDTerminalRuleCall_1_0()); | 955 | newCompositeNode(grammarAccess.getTransformationDefinitionAccess().getNameValidIdParserRuleCall_1_0()); |
696 | } | 956 | } |
957 | lv_name_1_0=ruleValidId | ||
697 | { | 958 | { |
698 | if ($current==null) { | 959 | if ($current==null) { |
699 | $current = createModelElement(grammarAccess.getTransformationDefinitionRule()); | 960 | $current = createModelElementForParent(grammarAccess.getTransformationDefinitionRule()); |
700 | } | 961 | } |
701 | setWithLastConsumed( | 962 | set( |
702 | $current, | 963 | $current, |
703 | "name", | 964 | "name", |
704 | lv_name_1_0, | 965 | lv_name_1_0, |
705 | "org.eclipse.xtext.common.Terminals.ID"); | 966 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
967 | afterParserOrEnumRuleCall(); | ||
706 | } | 968 | } |
707 | ) | 969 | ) |
708 | ) | 970 | ) |
@@ -934,19 +1196,20 @@ ruleMappingParameter returns [EObject current=null] | |||
934 | }: | 1196 | }: |
935 | ( | 1197 | ( |
936 | ( | 1198 | ( |
937 | lv_name_0_0=RULE_ID | ||
938 | { | 1199 | { |
939 | newLeafNode(lv_name_0_0, grammarAccess.getMappingParameterAccess().getNameIDTerminalRuleCall_0()); | 1200 | newCompositeNode(grammarAccess.getMappingParameterAccess().getNameValidIdParserRuleCall_0()); |
940 | } | 1201 | } |
1202 | lv_name_0_0=ruleValidId | ||
941 | { | 1203 | { |
942 | if ($current==null) { | 1204 | if ($current==null) { |
943 | $current = createModelElement(grammarAccess.getMappingParameterRule()); | 1205 | $current = createModelElementForParent(grammarAccess.getMappingParameterRule()); |
944 | } | 1206 | } |
945 | setWithLastConsumed( | 1207 | set( |
946 | $current, | 1208 | $current, |
947 | "name", | 1209 | "name", |
948 | lv_name_0_0, | 1210 | lv_name_0_0, |
949 | "org.eclipse.xtext.common.Terminals.ID"); | 1211 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
1212 | afterParserOrEnumRuleCall(); | ||
950 | } | 1213 | } |
951 | ) | 1214 | ) |
952 | ) | 1215 | ) |
@@ -979,9 +1242,12 @@ ruleLookupDefinition returns [EObject current=null] | |||
979 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); | 1242 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); |
980 | } | 1243 | } |
981 | } | 1244 | } |
982 | otherlv_1=RULE_ID | ||
983 | { | 1245 | { |
984 | newLeafNode(otherlv_1, grammarAccess.getLookupDefinitionAccess().getMappingMappingDefinitionCrossReference_1_0()); | 1246 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getMappingMappingDefinitionCrossReference_1_0()); |
1247 | } | ||
1248 | ruleQualifiedName | ||
1249 | { | ||
1250 | afterParserOrEnumRuleCall(); | ||
985 | } | 1251 | } |
986 | ) | 1252 | ) |
987 | ) | 1253 | ) |
@@ -996,9 +1262,12 @@ ruleLookupDefinition returns [EObject current=null] | |||
996 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); | 1262 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); |
997 | } | 1263 | } |
998 | } | 1264 | } |
999 | otherlv_3=RULE_ID | ||
1000 | { | 1265 | { |
1001 | newLeafNode(otherlv_3, grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_3_0()); | 1266 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_3_0()); |
1267 | } | ||
1268 | ruleValidId | ||
1269 | { | ||
1270 | afterParserOrEnumRuleCall(); | ||
1002 | } | 1271 | } |
1003 | ) | 1272 | ) |
1004 | ) | 1273 | ) |
@@ -1014,9 +1283,12 @@ ruleLookupDefinition returns [EObject current=null] | |||
1014 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); | 1283 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); |
1015 | } | 1284 | } |
1016 | } | 1285 | } |
1017 | otherlv_5=RULE_ID | ||
1018 | { | 1286 | { |
1019 | newLeafNode(otherlv_5, grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_4_1_0()); | 1287 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_4_1_0()); |
1288 | } | ||
1289 | ruleValidId | ||
1290 | { | ||
1291 | afterParserOrEnumRuleCall(); | ||
1020 | } | 1292 | } |
1021 | ) | 1293 | ) |
1022 | ) | 1294 | ) |
@@ -1031,19 +1303,20 @@ ruleLookupDefinition returns [EObject current=null] | |||
1031 | } | 1303 | } |
1032 | ( | 1304 | ( |
1033 | ( | 1305 | ( |
1034 | lv_name_8_0=RULE_ID | ||
1035 | { | 1306 | { |
1036 | newLeafNode(lv_name_8_0, grammarAccess.getLookupDefinitionAccess().getNameIDTerminalRuleCall_7_0()); | 1307 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getNameValidIdParserRuleCall_7_0()); |
1037 | } | 1308 | } |
1309 | lv_name_8_0=ruleValidId | ||
1038 | { | 1310 | { |
1039 | if ($current==null) { | 1311 | if ($current==null) { |
1040 | $current = createModelElement(grammarAccess.getLookupDefinitionRule()); | 1312 | $current = createModelElementForParent(grammarAccess.getLookupDefinitionRule()); |
1041 | } | 1313 | } |
1042 | setWithLastConsumed( | 1314 | set( |
1043 | $current, | 1315 | $current, |
1044 | "name", | 1316 | "name", |
1045 | lv_name_8_0, | 1317 | lv_name_8_0, |
1046 | "org.eclipse.xtext.common.Terminals.ID"); | 1318 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
1319 | afterParserOrEnumRuleCall(); | ||
1047 | } | 1320 | } |
1048 | ) | 1321 | ) |
1049 | ) | 1322 | ) |
@@ -1151,9 +1424,12 @@ ruleEventReference returns [EObject current=null] | |||
1151 | $current = createModelElement(grammarAccess.getEventReferenceRule()); | 1424 | $current = createModelElement(grammarAccess.getEventReferenceRule()); |
1152 | } | 1425 | } |
1153 | } | 1426 | } |
1154 | otherlv_0=RULE_ID | ||
1155 | { | 1427 | { |
1156 | newLeafNode(otherlv_0, grammarAccess.getEventReferenceAccess().getComponentVariableCrossReference_0_0()); | 1428 | newCompositeNode(grammarAccess.getEventReferenceAccess().getComponentVariableCrossReference_0_0()); |
1429 | } | ||
1430 | ruleValidId | ||
1431 | { | ||
1432 | afterParserOrEnumRuleCall(); | ||
1157 | } | 1433 | } |
1158 | ) | 1434 | ) |
1159 | ) | 1435 | ) |
@@ -1168,9 +1444,12 @@ ruleEventReference returns [EObject current=null] | |||
1168 | $current = createModelElement(grammarAccess.getEventReferenceRule()); | 1444 | $current = createModelElement(grammarAccess.getEventReferenceRule()); |
1169 | } | 1445 | } |
1170 | } | 1446 | } |
1171 | otherlv_2=RULE_ID | ||
1172 | { | 1447 | { |
1173 | newLeafNode(otherlv_2, grammarAccess.getEventReferenceAccess().getEventEventDeclarationCrossReference_2_0()); | 1448 | newCompositeNode(grammarAccess.getEventReferenceAccess().getEventEventDeclarationCrossReference_2_0()); |
1449 | } | ||
1450 | ruleValidId | ||
1451 | { | ||
1452 | afterParserOrEnumRuleCall(); | ||
1174 | } | 1453 | } |
1175 | ) | 1454 | ) |
1176 | ) | 1455 | ) |
@@ -1250,12 +1529,15 @@ ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleT | |||
1250 | leaveRule(); | 1529 | leaveRule(); |
1251 | }: | 1530 | }: |
1252 | ( | 1531 | ( |
1253 | this_ID_0=RULE_ID | ||
1254 | { | 1532 | { |
1255 | $current.merge(this_ID_0); | 1533 | newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIdParserRuleCall_0()); |
1256 | } | 1534 | } |
1535 | this_ValidId_0=ruleValidId | ||
1257 | { | 1536 | { |
1258 | newLeafNode(this_ID_0, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); | 1537 | $current.merge(this_ValidId_0); |
1538 | } | ||
1539 | { | ||
1540 | afterParserOrEnumRuleCall(); | ||
1259 | } | 1541 | } |
1260 | ( | 1542 | ( |
1261 | kw='.' | 1543 | kw='.' |
@@ -1263,12 +1545,15 @@ ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleT | |||
1263 | $current.merge(kw); | 1545 | $current.merge(kw); |
1264 | newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); | 1546 | newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); |
1265 | } | 1547 | } |
1266 | this_ID_2=RULE_ID | ||
1267 | { | 1548 | { |
1268 | $current.merge(this_ID_2); | 1549 | newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIdParserRuleCall_1_1()); |
1550 | } | ||
1551 | this_ValidId_2=ruleValidId | ||
1552 | { | ||
1553 | $current.merge(this_ValidId_2); | ||
1269 | } | 1554 | } |
1270 | { | 1555 | { |
1271 | newLeafNode(this_ID_2, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); | 1556 | afterParserOrEnumRuleCall(); |
1272 | } | 1557 | } |
1273 | )* | 1558 | )* |
1274 | ) | 1559 | ) |
@@ -1315,7 +1600,77 @@ ruleQualifiedNameWithWildcard returns [AntlrDatatypeRuleToken current=new AntlrD | |||
1315 | ) | 1600 | ) |
1316 | ; | 1601 | ; |
1317 | 1602 | ||
1318 | RULE_DOULBE : ('0'..'9')+ ('.' ('0'..'9')+|('.' ('0'..'9')+)? ('e'|'E') ('+'|'-')? ('0'..'9')+); | 1603 | // Entry rule entryRuleValidId |
1604 | entryRuleValidId returns [String current=null]: | ||
1605 | { newCompositeNode(grammarAccess.getValidIdRule()); } | ||
1606 | iv_ruleValidId=ruleValidId | ||
1607 | { $current=$iv_ruleValidId.current.getText(); } | ||
1608 | EOF; | ||
1609 | |||
1610 | // Rule ValidId | ||
1611 | ruleValidId returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] | ||
1612 | @init { | ||
1613 | enterRule(); | ||
1614 | } | ||
1615 | @after { | ||
1616 | leaveRule(); | ||
1617 | }: | ||
1618 | ( | ||
1619 | this_ID_0=RULE_ID | ||
1620 | { | ||
1621 | $current.merge(this_ID_0); | ||
1622 | } | ||
1623 | { | ||
1624 | newLeafNode(this_ID_0, grammarAccess.getValidIdAccess().getIDTerminalRuleCall_0()); | ||
1625 | } | ||
1626 | | | ||
1627 | this_OF_INT_1=RULE_OF_INT | ||
1628 | { | ||
1629 | $current.merge(this_OF_INT_1); | ||
1630 | } | ||
1631 | { | ||
1632 | newLeafNode(this_OF_INT_1, grammarAccess.getValidIdAccess().getOF_INTTerminalRuleCall_1()); | ||
1633 | } | ||
1634 | ) | ||
1635 | ; | ||
1636 | |||
1637 | // Entry rule entryRuleDouble | ||
1638 | entryRuleDouble returns [String current=null]: | ||
1639 | { newCompositeNode(grammarAccess.getDoubleRule()); } | ||
1640 | iv_ruleDouble=ruleDouble | ||
1641 | { $current=$iv_ruleDouble.current.getText(); } | ||
1642 | EOF; | ||
1643 | |||
1644 | // Rule Double | ||
1645 | ruleDouble returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] | ||
1646 | @init { | ||
1647 | enterRule(); | ||
1648 | } | ||
1649 | @after { | ||
1650 | leaveRule(); | ||
1651 | }: | ||
1652 | ( | ||
1653 | this_INT_0=RULE_INT | ||
1654 | { | ||
1655 | $current.merge(this_INT_0); | ||
1656 | } | ||
1657 | { | ||
1658 | newLeafNode(this_INT_0, grammarAccess.getDoubleAccess().getINTTerminalRuleCall_0()); | ||
1659 | } | ||
1660 | | | ||
1661 | this_T_DOUBLE_1=RULE_T_DOUBLE | ||
1662 | { | ||
1663 | $current.merge(this_T_DOUBLE_1); | ||
1664 | } | ||
1665 | { | ||
1666 | newLeafNode(this_T_DOUBLE_1, grammarAccess.getDoubleAccess().getT_DOUBLETerminalRuleCall_1()); | ||
1667 | } | ||
1668 | ) | ||
1669 | ; | ||
1670 | |||
1671 | RULE_OF_INT : 'o' 'f' ('0'..'9')+; | ||
1672 | |||
1673 | RULE_T_DOUBLE : ('0'..'9')+ ('.' ('0'..'9')+|('.' ('0'..'9')+)? ('e'|'E') ('+'|'-')? ('0'..'9')+); | ||
1319 | 1674 | ||
1320 | RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; | 1675 | RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; |
1321 | 1676 | ||