diff options
author | Kristóf Marussy <kris7topher@gmail.com> | 2019-02-06 18:28:18 +0100 |
---|---|---|
committer | Kristóf Marussy <kris7topher@gmail.com> | 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 | |
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')
4 files changed, 2830 insertions, 1294 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 | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.tokens b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.tokens index 1c8b296f..2183a28f 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.tokens +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguage.tokens | |||
@@ -1,38 +1,40 @@ | |||
1 | '('=28 | 1 | '('=31 |
2 | ')'=30 | 2 | ')'=33 |
3 | '*'=37 | 3 | '*'=40 |
4 | '+='=33 | 4 | '+='=36 |
5 | ','=29 | 5 | ','=32 |
6 | '.'=35 | 6 | '.'=38 |
7 | ':='=34 | 7 | ':='=37 |
8 | ';'=13 | 8 | ';'=14 |
9 | '='=22 | 9 | '='=23 |
10 | '=>'=36 | 10 | '=>'=39 |
11 | '[]'=20 | 11 | '[]'=21 |
12 | 'and'=23 | 12 | 'and'=25 |
13 | 'as'=32 | 13 | 'as'=35 |
14 | 'cft'=15 | 14 | 'cft'=16 |
15 | 'import'=14 | 15 | 'import'=15 |
16 | 'in'=17 | 16 | 'in'=18 |
17 | 'lambda'=21 | 17 | 'lambda'=24 |
18 | 'lookup'=31 | 18 | 'lookup'=34 |
19 | 'mapping'=27 | 19 | 'mapping'=30 |
20 | 'or'=24 | 20 | 'of'=27 |
21 | 'out'=18 | 21 | 'or'=26 |
22 | 'package'=12 | 22 | 'out'=19 |
23 | 'toplevel'=26 | 23 | 'p'=22 |
24 | 'transformation'=25 | 24 | 'package'=13 |
25 | '{'=16 | 25 | 'toplevel'=29 |
26 | '}'=19 | 26 | 'transformation'=28 |
27 | RULE_ANY_OTHER=11 | 27 | '{'=17 |
28 | RULE_DOULBE=5 | 28 | '}'=20 |
29 | RULE_ID=4 | 29 | RULE_ANY_OTHER=12 |
30 | RULE_INT=6 | 30 | RULE_ID=6 |
31 | RULE_ML_COMMENT=8 | 31 | RULE_INT=4 |
32 | RULE_SL_COMMENT=9 | 32 | RULE_ML_COMMENT=9 |
33 | RULE_STRING=7 | 33 | RULE_OF_INT=5 |
34 | RULE_WS=10 | 34 | RULE_SL_COMMENT=10 |
35 | T__12=12 | 35 | RULE_STRING=8 |
36 | RULE_T_DOUBLE=7 | ||
37 | RULE_WS=11 | ||
36 | T__13=13 | 38 | T__13=13 |
37 | T__14=14 | 39 | T__14=14 |
38 | T__15=15 | 40 | T__15=15 |
@@ -58,3 +60,6 @@ T__34=34 | |||
58 | T__35=35 | 60 | T__35=35 |
59 | T__36=36 | 61 | T__36=36 |
60 | T__37=37 | 62 | T__37=37 |
63 | T__38=38 | ||
64 | T__39=39 | ||
65 | T__40=40 | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageLexer.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageLexer.java index 22a96234..d7e9807d 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageLexer.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageLexer.java | |||
@@ -12,17 +12,19 @@ import java.util.ArrayList; | |||
12 | 12 | ||
13 | @SuppressWarnings("all") | 13 | @SuppressWarnings("all") |
14 | public class InternalCftLanguageLexer extends Lexer { | 14 | public class InternalCftLanguageLexer extends Lexer { |
15 | public static final int RULE_STRING=7; | 15 | public static final int RULE_STRING=8; |
16 | public static final int RULE_SL_COMMENT=9; | 16 | public static final int RULE_SL_COMMENT=10; |
17 | public static final int T__19=19; | 17 | public static final int T__19=19; |
18 | public static final int T__15=15; | 18 | public static final int T__15=15; |
19 | public static final int T__37=37; | 19 | public static final int T__37=37; |
20 | public static final int T__16=16; | 20 | public static final int T__16=16; |
21 | public static final int T__38=38; | ||
21 | public static final int T__17=17; | 22 | public static final int T__17=17; |
23 | public static final int T__39=39; | ||
22 | public static final int T__18=18; | 24 | public static final int T__18=18; |
23 | public static final int T__33=33; | 25 | public static final int T__33=33; |
24 | public static final int T__12=12; | ||
25 | public static final int T__34=34; | 26 | public static final int T__34=34; |
27 | public static final int RULE_T_DOUBLE=7; | ||
26 | public static final int T__13=13; | 28 | public static final int T__13=13; |
27 | public static final int T__35=35; | 29 | public static final int T__35=35; |
28 | public static final int T__14=14; | 30 | public static final int T__14=14; |
@@ -31,20 +33,21 @@ public class InternalCftLanguageLexer extends Lexer { | |||
31 | public static final int T__30=30; | 33 | public static final int T__30=30; |
32 | public static final int T__31=31; | 34 | public static final int T__31=31; |
33 | public static final int T__32=32; | 35 | public static final int T__32=32; |
34 | public static final int RULE_ID=4; | 36 | public static final int RULE_OF_INT=5; |
35 | public static final int RULE_WS=10; | 37 | public static final int RULE_ID=6; |
36 | public static final int RULE_DOULBE=5; | 38 | public static final int RULE_WS=11; |
37 | public static final int RULE_ANY_OTHER=11; | 39 | public static final int RULE_ANY_OTHER=12; |
38 | public static final int T__26=26; | 40 | public static final int T__26=26; |
39 | public static final int T__27=27; | 41 | public static final int T__27=27; |
40 | public static final int T__28=28; | 42 | public static final int T__28=28; |
41 | public static final int RULE_INT=6; | 43 | public static final int RULE_INT=4; |
42 | public static final int T__29=29; | 44 | public static final int T__29=29; |
43 | public static final int T__22=22; | 45 | public static final int T__22=22; |
44 | public static final int RULE_ML_COMMENT=8; | 46 | public static final int RULE_ML_COMMENT=9; |
45 | public static final int T__23=23; | 47 | public static final int T__23=23; |
46 | public static final int T__24=24; | 48 | public static final int T__24=24; |
47 | public static final int T__25=25; | 49 | public static final int T__25=25; |
50 | public static final int T__40=40; | ||
48 | public static final int T__20=20; | 51 | public static final int T__20=20; |
49 | public static final int T__21=21; | 52 | public static final int T__21=21; |
50 | 53 | ||
@@ -61,10 +64,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
61 | } | 64 | } |
62 | public String getGrammarFileName() { return "InternalCftLanguage.g"; } | 65 | public String getGrammarFileName() { return "InternalCftLanguage.g"; } |
63 | 66 | ||
64 | // $ANTLR start "T__12" | 67 | // $ANTLR start "T__13" |
65 | public final void mT__12() throws RecognitionException { | 68 | public final void mT__13() throws RecognitionException { |
66 | try { | 69 | try { |
67 | int _type = T__12; | 70 | int _type = T__13; |
68 | int _channel = DEFAULT_TOKEN_CHANNEL; | 71 | int _channel = DEFAULT_TOKEN_CHANNEL; |
69 | // InternalCftLanguage.g:11:7: ( 'package' ) | 72 | // InternalCftLanguage.g:11:7: ( 'package' ) |
70 | // InternalCftLanguage.g:11:9: 'package' | 73 | // InternalCftLanguage.g:11:9: 'package' |
@@ -80,26 +83,6 @@ public class InternalCftLanguageLexer extends Lexer { | |||
80 | finally { | 83 | finally { |
81 | } | 84 | } |
82 | } | 85 | } |
83 | // $ANTLR end "T__12" | ||
84 | |||
85 | // $ANTLR start "T__13" | ||
86 | public final void mT__13() throws RecognitionException { | ||
87 | try { | ||
88 | int _type = T__13; | ||
89 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
90 | // InternalCftLanguage.g:12:7: ( ';' ) | ||
91 | // InternalCftLanguage.g:12:9: ';' | ||
92 | { | ||
93 | match(';'); | ||
94 | |||
95 | } | ||
96 | |||
97 | state.type = _type; | ||
98 | state.channel = _channel; | ||
99 | } | ||
100 | finally { | ||
101 | } | ||
102 | } | ||
103 | // $ANTLR end "T__13" | 86 | // $ANTLR end "T__13" |
104 | 87 | ||
105 | // $ANTLR start "T__14" | 88 | // $ANTLR start "T__14" |
@@ -107,11 +90,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
107 | try { | 90 | try { |
108 | int _type = T__14; | 91 | int _type = T__14; |
109 | int _channel = DEFAULT_TOKEN_CHANNEL; | 92 | int _channel = DEFAULT_TOKEN_CHANNEL; |
110 | // InternalCftLanguage.g:13:7: ( 'import' ) | 93 | // InternalCftLanguage.g:12:7: ( ';' ) |
111 | // InternalCftLanguage.g:13:9: 'import' | 94 | // InternalCftLanguage.g:12:9: ';' |
112 | { | 95 | { |
113 | match("import"); | 96 | match(';'); |
114 | |||
115 | 97 | ||
116 | } | 98 | } |
117 | 99 | ||
@@ -128,10 +110,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
128 | try { | 110 | try { |
129 | int _type = T__15; | 111 | int _type = T__15; |
130 | int _channel = DEFAULT_TOKEN_CHANNEL; | 112 | int _channel = DEFAULT_TOKEN_CHANNEL; |
131 | // InternalCftLanguage.g:14:7: ( 'cft' ) | 113 | // InternalCftLanguage.g:13:7: ( 'import' ) |
132 | // InternalCftLanguage.g:14:9: 'cft' | 114 | // InternalCftLanguage.g:13:9: 'import' |
133 | { | 115 | { |
134 | match("cft"); | 116 | match("import"); |
135 | 117 | ||
136 | 118 | ||
137 | } | 119 | } |
@@ -149,10 +131,11 @@ public class InternalCftLanguageLexer extends Lexer { | |||
149 | try { | 131 | try { |
150 | int _type = T__16; | 132 | int _type = T__16; |
151 | int _channel = DEFAULT_TOKEN_CHANNEL; | 133 | int _channel = DEFAULT_TOKEN_CHANNEL; |
152 | // InternalCftLanguage.g:15:7: ( '{' ) | 134 | // InternalCftLanguage.g:14:7: ( 'cft' ) |
153 | // InternalCftLanguage.g:15:9: '{' | 135 | // InternalCftLanguage.g:14:9: 'cft' |
154 | { | 136 | { |
155 | match('{'); | 137 | match("cft"); |
138 | |||
156 | 139 | ||
157 | } | 140 | } |
158 | 141 | ||
@@ -169,11 +152,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
169 | try { | 152 | try { |
170 | int _type = T__17; | 153 | int _type = T__17; |
171 | int _channel = DEFAULT_TOKEN_CHANNEL; | 154 | int _channel = DEFAULT_TOKEN_CHANNEL; |
172 | // InternalCftLanguage.g:16:7: ( 'in' ) | 155 | // InternalCftLanguage.g:15:7: ( '{' ) |
173 | // InternalCftLanguage.g:16:9: 'in' | 156 | // InternalCftLanguage.g:15:9: '{' |
174 | { | 157 | { |
175 | match("in"); | 158 | match('{'); |
176 | |||
177 | 159 | ||
178 | } | 160 | } |
179 | 161 | ||
@@ -190,10 +172,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
190 | try { | 172 | try { |
191 | int _type = T__18; | 173 | int _type = T__18; |
192 | int _channel = DEFAULT_TOKEN_CHANNEL; | 174 | int _channel = DEFAULT_TOKEN_CHANNEL; |
193 | // InternalCftLanguage.g:17:7: ( 'out' ) | 175 | // InternalCftLanguage.g:16:7: ( 'in' ) |
194 | // InternalCftLanguage.g:17:9: 'out' | 176 | // InternalCftLanguage.g:16:9: 'in' |
195 | { | 177 | { |
196 | match("out"); | 178 | match("in"); |
197 | 179 | ||
198 | 180 | ||
199 | } | 181 | } |
@@ -211,10 +193,11 @@ public class InternalCftLanguageLexer extends Lexer { | |||
211 | try { | 193 | try { |
212 | int _type = T__19; | 194 | int _type = T__19; |
213 | int _channel = DEFAULT_TOKEN_CHANNEL; | 195 | int _channel = DEFAULT_TOKEN_CHANNEL; |
214 | // InternalCftLanguage.g:18:7: ( '}' ) | 196 | // InternalCftLanguage.g:17:7: ( 'out' ) |
215 | // InternalCftLanguage.g:18:9: '}' | 197 | // InternalCftLanguage.g:17:9: 'out' |
216 | { | 198 | { |
217 | match('}'); | 199 | match("out"); |
200 | |||
218 | 201 | ||
219 | } | 202 | } |
220 | 203 | ||
@@ -231,11 +214,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
231 | try { | 214 | try { |
232 | int _type = T__20; | 215 | int _type = T__20; |
233 | int _channel = DEFAULT_TOKEN_CHANNEL; | 216 | int _channel = DEFAULT_TOKEN_CHANNEL; |
234 | // InternalCftLanguage.g:19:7: ( '[]' ) | 217 | // InternalCftLanguage.g:18:7: ( '}' ) |
235 | // InternalCftLanguage.g:19:9: '[]' | 218 | // InternalCftLanguage.g:18:9: '}' |
236 | { | 219 | { |
237 | match("[]"); | 220 | match('}'); |
238 | |||
239 | 221 | ||
240 | } | 222 | } |
241 | 223 | ||
@@ -252,10 +234,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
252 | try { | 234 | try { |
253 | int _type = T__21; | 235 | int _type = T__21; |
254 | int _channel = DEFAULT_TOKEN_CHANNEL; | 236 | int _channel = DEFAULT_TOKEN_CHANNEL; |
255 | // InternalCftLanguage.g:20:7: ( 'lambda' ) | 237 | // InternalCftLanguage.g:19:7: ( '[]' ) |
256 | // InternalCftLanguage.g:20:9: 'lambda' | 238 | // InternalCftLanguage.g:19:9: '[]' |
257 | { | 239 | { |
258 | match("lambda"); | 240 | match("[]"); |
259 | 241 | ||
260 | 242 | ||
261 | } | 243 | } |
@@ -273,10 +255,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
273 | try { | 255 | try { |
274 | int _type = T__22; | 256 | int _type = T__22; |
275 | int _channel = DEFAULT_TOKEN_CHANNEL; | 257 | int _channel = DEFAULT_TOKEN_CHANNEL; |
276 | // InternalCftLanguage.g:21:7: ( '=' ) | 258 | // InternalCftLanguage.g:20:7: ( 'p' ) |
277 | // InternalCftLanguage.g:21:9: '=' | 259 | // InternalCftLanguage.g:20:9: 'p' |
278 | { | 260 | { |
279 | match('='); | 261 | match('p'); |
280 | 262 | ||
281 | } | 263 | } |
282 | 264 | ||
@@ -293,11 +275,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
293 | try { | 275 | try { |
294 | int _type = T__23; | 276 | int _type = T__23; |
295 | int _channel = DEFAULT_TOKEN_CHANNEL; | 277 | int _channel = DEFAULT_TOKEN_CHANNEL; |
296 | // InternalCftLanguage.g:22:7: ( 'and' ) | 278 | // InternalCftLanguage.g:21:7: ( '=' ) |
297 | // InternalCftLanguage.g:22:9: 'and' | 279 | // InternalCftLanguage.g:21:9: '=' |
298 | { | 280 | { |
299 | match("and"); | 281 | match('='); |
300 | |||
301 | 282 | ||
302 | } | 283 | } |
303 | 284 | ||
@@ -314,10 +295,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
314 | try { | 295 | try { |
315 | int _type = T__24; | 296 | int _type = T__24; |
316 | int _channel = DEFAULT_TOKEN_CHANNEL; | 297 | int _channel = DEFAULT_TOKEN_CHANNEL; |
317 | // InternalCftLanguage.g:23:7: ( 'or' ) | 298 | // InternalCftLanguage.g:22:7: ( 'lambda' ) |
318 | // InternalCftLanguage.g:23:9: 'or' | 299 | // InternalCftLanguage.g:22:9: 'lambda' |
319 | { | 300 | { |
320 | match("or"); | 301 | match("lambda"); |
321 | 302 | ||
322 | 303 | ||
323 | } | 304 | } |
@@ -335,10 +316,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
335 | try { | 316 | try { |
336 | int _type = T__25; | 317 | int _type = T__25; |
337 | int _channel = DEFAULT_TOKEN_CHANNEL; | 318 | int _channel = DEFAULT_TOKEN_CHANNEL; |
338 | // InternalCftLanguage.g:24:7: ( 'transformation' ) | 319 | // InternalCftLanguage.g:23:7: ( 'and' ) |
339 | // InternalCftLanguage.g:24:9: 'transformation' | 320 | // InternalCftLanguage.g:23:9: 'and' |
340 | { | 321 | { |
341 | match("transformation"); | 322 | match("and"); |
342 | 323 | ||
343 | 324 | ||
344 | } | 325 | } |
@@ -356,10 +337,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
356 | try { | 337 | try { |
357 | int _type = T__26; | 338 | int _type = T__26; |
358 | int _channel = DEFAULT_TOKEN_CHANNEL; | 339 | int _channel = DEFAULT_TOKEN_CHANNEL; |
359 | // InternalCftLanguage.g:25:7: ( 'toplevel' ) | 340 | // InternalCftLanguage.g:24:7: ( 'or' ) |
360 | // InternalCftLanguage.g:25:9: 'toplevel' | 341 | // InternalCftLanguage.g:24:9: 'or' |
361 | { | 342 | { |
362 | match("toplevel"); | 343 | match("or"); |
363 | 344 | ||
364 | 345 | ||
365 | } | 346 | } |
@@ -377,10 +358,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
377 | try { | 358 | try { |
378 | int _type = T__27; | 359 | int _type = T__27; |
379 | int _channel = DEFAULT_TOKEN_CHANNEL; | 360 | int _channel = DEFAULT_TOKEN_CHANNEL; |
380 | // InternalCftLanguage.g:26:7: ( 'mapping' ) | 361 | // InternalCftLanguage.g:25:7: ( 'of' ) |
381 | // InternalCftLanguage.g:26:9: 'mapping' | 362 | // InternalCftLanguage.g:25:9: 'of' |
382 | { | 363 | { |
383 | match("mapping"); | 364 | match("of"); |
384 | 365 | ||
385 | 366 | ||
386 | } | 367 | } |
@@ -398,10 +379,11 @@ public class InternalCftLanguageLexer extends Lexer { | |||
398 | try { | 379 | try { |
399 | int _type = T__28; | 380 | int _type = T__28; |
400 | int _channel = DEFAULT_TOKEN_CHANNEL; | 381 | int _channel = DEFAULT_TOKEN_CHANNEL; |
401 | // InternalCftLanguage.g:27:7: ( '(' ) | 382 | // InternalCftLanguage.g:26:7: ( 'transformation' ) |
402 | // InternalCftLanguage.g:27:9: '(' | 383 | // InternalCftLanguage.g:26:9: 'transformation' |
403 | { | 384 | { |
404 | match('('); | 385 | match("transformation"); |
386 | |||
405 | 387 | ||
406 | } | 388 | } |
407 | 389 | ||
@@ -418,10 +400,11 @@ public class InternalCftLanguageLexer extends Lexer { | |||
418 | try { | 400 | try { |
419 | int _type = T__29; | 401 | int _type = T__29; |
420 | int _channel = DEFAULT_TOKEN_CHANNEL; | 402 | int _channel = DEFAULT_TOKEN_CHANNEL; |
421 | // InternalCftLanguage.g:28:7: ( ',' ) | 403 | // InternalCftLanguage.g:27:7: ( 'toplevel' ) |
422 | // InternalCftLanguage.g:28:9: ',' | 404 | // InternalCftLanguage.g:27:9: 'toplevel' |
423 | { | 405 | { |
424 | match(','); | 406 | match("toplevel"); |
407 | |||
425 | 408 | ||
426 | } | 409 | } |
427 | 410 | ||
@@ -438,10 +421,11 @@ public class InternalCftLanguageLexer extends Lexer { | |||
438 | try { | 421 | try { |
439 | int _type = T__30; | 422 | int _type = T__30; |
440 | int _channel = DEFAULT_TOKEN_CHANNEL; | 423 | int _channel = DEFAULT_TOKEN_CHANNEL; |
441 | // InternalCftLanguage.g:29:7: ( ')' ) | 424 | // InternalCftLanguage.g:28:7: ( 'mapping' ) |
442 | // InternalCftLanguage.g:29:9: ')' | 425 | // InternalCftLanguage.g:28:9: 'mapping' |
443 | { | 426 | { |
444 | match(')'); | 427 | match("mapping"); |
428 | |||
445 | 429 | ||
446 | } | 430 | } |
447 | 431 | ||
@@ -458,11 +442,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
458 | try { | 442 | try { |
459 | int _type = T__31; | 443 | int _type = T__31; |
460 | int _channel = DEFAULT_TOKEN_CHANNEL; | 444 | int _channel = DEFAULT_TOKEN_CHANNEL; |
461 | // InternalCftLanguage.g:30:7: ( 'lookup' ) | 445 | // InternalCftLanguage.g:29:7: ( '(' ) |
462 | // InternalCftLanguage.g:30:9: 'lookup' | 446 | // InternalCftLanguage.g:29:9: '(' |
463 | { | 447 | { |
464 | match("lookup"); | 448 | match('('); |
465 | |||
466 | 449 | ||
467 | } | 450 | } |
468 | 451 | ||
@@ -479,11 +462,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
479 | try { | 462 | try { |
480 | int _type = T__32; | 463 | int _type = T__32; |
481 | int _channel = DEFAULT_TOKEN_CHANNEL; | 464 | int _channel = DEFAULT_TOKEN_CHANNEL; |
482 | // InternalCftLanguage.g:31:7: ( 'as' ) | 465 | // InternalCftLanguage.g:30:7: ( ',' ) |
483 | // InternalCftLanguage.g:31:9: 'as' | 466 | // InternalCftLanguage.g:30:9: ',' |
484 | { | 467 | { |
485 | match("as"); | 468 | match(','); |
486 | |||
487 | 469 | ||
488 | } | 470 | } |
489 | 471 | ||
@@ -500,11 +482,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
500 | try { | 482 | try { |
501 | int _type = T__33; | 483 | int _type = T__33; |
502 | int _channel = DEFAULT_TOKEN_CHANNEL; | 484 | int _channel = DEFAULT_TOKEN_CHANNEL; |
503 | // InternalCftLanguage.g:32:7: ( '+=' ) | 485 | // InternalCftLanguage.g:31:7: ( ')' ) |
504 | // InternalCftLanguage.g:32:9: '+=' | 486 | // InternalCftLanguage.g:31:9: ')' |
505 | { | 487 | { |
506 | match("+="); | 488 | match(')'); |
507 | |||
508 | 489 | ||
509 | } | 490 | } |
510 | 491 | ||
@@ -521,10 +502,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
521 | try { | 502 | try { |
522 | int _type = T__34; | 503 | int _type = T__34; |
523 | int _channel = DEFAULT_TOKEN_CHANNEL; | 504 | int _channel = DEFAULT_TOKEN_CHANNEL; |
524 | // InternalCftLanguage.g:33:7: ( ':=' ) | 505 | // InternalCftLanguage.g:32:7: ( 'lookup' ) |
525 | // InternalCftLanguage.g:33:9: ':=' | 506 | // InternalCftLanguage.g:32:9: 'lookup' |
526 | { | 507 | { |
527 | match(":="); | 508 | match("lookup"); |
528 | 509 | ||
529 | 510 | ||
530 | } | 511 | } |
@@ -542,10 +523,11 @@ public class InternalCftLanguageLexer extends Lexer { | |||
542 | try { | 523 | try { |
543 | int _type = T__35; | 524 | int _type = T__35; |
544 | int _channel = DEFAULT_TOKEN_CHANNEL; | 525 | int _channel = DEFAULT_TOKEN_CHANNEL; |
545 | // InternalCftLanguage.g:34:7: ( '.' ) | 526 | // InternalCftLanguage.g:33:7: ( 'as' ) |
546 | // InternalCftLanguage.g:34:9: '.' | 527 | // InternalCftLanguage.g:33:9: 'as' |
547 | { | 528 | { |
548 | match('.'); | 529 | match("as"); |
530 | |||
549 | 531 | ||
550 | } | 532 | } |
551 | 533 | ||
@@ -562,10 +544,10 @@ public class InternalCftLanguageLexer extends Lexer { | |||
562 | try { | 544 | try { |
563 | int _type = T__36; | 545 | int _type = T__36; |
564 | int _channel = DEFAULT_TOKEN_CHANNEL; | 546 | int _channel = DEFAULT_TOKEN_CHANNEL; |
565 | // InternalCftLanguage.g:35:7: ( '=>' ) | 547 | // InternalCftLanguage.g:34:7: ( '+=' ) |
566 | // InternalCftLanguage.g:35:9: '=>' | 548 | // InternalCftLanguage.g:34:9: '+=' |
567 | { | 549 | { |
568 | match("=>"); | 550 | match("+="); |
569 | 551 | ||
570 | 552 | ||
571 | } | 553 | } |
@@ -583,10 +565,11 @@ public class InternalCftLanguageLexer extends Lexer { | |||
583 | try { | 565 | try { |
584 | int _type = T__37; | 566 | int _type = T__37; |
585 | int _channel = DEFAULT_TOKEN_CHANNEL; | 567 | int _channel = DEFAULT_TOKEN_CHANNEL; |
586 | // InternalCftLanguage.g:36:7: ( '*' ) | 568 | // InternalCftLanguage.g:35:7: ( ':=' ) |
587 | // InternalCftLanguage.g:36:9: '*' | 569 | // InternalCftLanguage.g:35:9: ':=' |
588 | { | 570 | { |
589 | match('*'); | 571 | match(":="); |
572 | |||
590 | 573 | ||
591 | } | 574 | } |
592 | 575 | ||
@@ -598,15 +581,78 @@ public class InternalCftLanguageLexer extends Lexer { | |||
598 | } | 581 | } |
599 | // $ANTLR end "T__37" | 582 | // $ANTLR end "T__37" |
600 | 583 | ||
601 | // $ANTLR start "RULE_DOULBE" | 584 | // $ANTLR start "T__38" |
602 | public final void mRULE_DOULBE() throws RecognitionException { | 585 | public final void mT__38() throws RecognitionException { |
586 | try { | ||
587 | int _type = T__38; | ||
588 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
589 | // InternalCftLanguage.g:36:7: ( '.' ) | ||
590 | // InternalCftLanguage.g:36:9: '.' | ||
591 | { | ||
592 | match('.'); | ||
593 | |||
594 | } | ||
595 | |||
596 | state.type = _type; | ||
597 | state.channel = _channel; | ||
598 | } | ||
599 | finally { | ||
600 | } | ||
601 | } | ||
602 | // $ANTLR end "T__38" | ||
603 | |||
604 | // $ANTLR start "T__39" | ||
605 | public final void mT__39() throws RecognitionException { | ||
603 | try { | 606 | try { |
604 | int _type = RULE_DOULBE; | 607 | int _type = T__39; |
605 | int _channel = DEFAULT_TOKEN_CHANNEL; | 608 | int _channel = DEFAULT_TOKEN_CHANNEL; |
606 | // InternalCftLanguage.g:1318:13: ( ( '0' .. '9' )+ ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) ) | 609 | // InternalCftLanguage.g:37:7: ( '=>' ) |
607 | // InternalCftLanguage.g:1318:15: ( '0' .. '9' )+ ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) | 610 | // InternalCftLanguage.g:37:9: '=>' |
608 | { | 611 | { |
609 | // InternalCftLanguage.g:1318:15: ( '0' .. '9' )+ | 612 | match("=>"); |
613 | |||
614 | |||
615 | } | ||
616 | |||
617 | state.type = _type; | ||
618 | state.channel = _channel; | ||
619 | } | ||
620 | finally { | ||
621 | } | ||
622 | } | ||
623 | // $ANTLR end "T__39" | ||
624 | |||
625 | // $ANTLR start "T__40" | ||
626 | public final void mT__40() throws RecognitionException { | ||
627 | try { | ||
628 | int _type = T__40; | ||
629 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
630 | // InternalCftLanguage.g:38:7: ( '*' ) | ||
631 | // InternalCftLanguage.g:38:9: '*' | ||
632 | { | ||
633 | match('*'); | ||
634 | |||
635 | } | ||
636 | |||
637 | state.type = _type; | ||
638 | state.channel = _channel; | ||
639 | } | ||
640 | finally { | ||
641 | } | ||
642 | } | ||
643 | // $ANTLR end "T__40" | ||
644 | |||
645 | // $ANTLR start "RULE_OF_INT" | ||
646 | public final void mRULE_OF_INT() throws RecognitionException { | ||
647 | try { | ||
648 | int _type = RULE_OF_INT; | ||
649 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
650 | // InternalCftLanguage.g:1671:13: ( 'o' 'f' ( '0' .. '9' )+ ) | ||
651 | // InternalCftLanguage.g:1671:15: 'o' 'f' ( '0' .. '9' )+ | ||
652 | { | ||
653 | match('o'); | ||
654 | match('f'); | ||
655 | // InternalCftLanguage.g:1671:23: ( '0' .. '9' )+ | ||
610 | int cnt1=0; | 656 | int cnt1=0; |
611 | loop1: | 657 | loop1: |
612 | do { | 658 | do { |
@@ -620,7 +666,7 @@ public class InternalCftLanguageLexer extends Lexer { | |||
620 | 666 | ||
621 | switch (alt1) { | 667 | switch (alt1) { |
622 | case 1 : | 668 | case 1 : |
623 | // InternalCftLanguage.g:1318:16: '0' .. '9' | 669 | // InternalCftLanguage.g:1671:24: '0' .. '9' |
624 | { | 670 | { |
625 | matchRange('0','9'); | 671 | matchRange('0','9'); |
626 | 672 | ||
@@ -636,29 +682,78 @@ public class InternalCftLanguageLexer extends Lexer { | |||
636 | cnt1++; | 682 | cnt1++; |
637 | } while (true); | 683 | } while (true); |
638 | 684 | ||
639 | // InternalCftLanguage.g:1318:27: ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) | 685 | |
640 | int alt7=2; | 686 | } |
641 | alt7 = dfa7.predict(input); | 687 | |
642 | switch (alt7) { | 688 | state.type = _type; |
689 | state.channel = _channel; | ||
690 | } | ||
691 | finally { | ||
692 | } | ||
693 | } | ||
694 | // $ANTLR end "RULE_OF_INT" | ||
695 | |||
696 | // $ANTLR start "RULE_T_DOUBLE" | ||
697 | public final void mRULE_T_DOUBLE() throws RecognitionException { | ||
698 | try { | ||
699 | int _type = RULE_T_DOUBLE; | ||
700 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
701 | // InternalCftLanguage.g:1673:15: ( ( '0' .. '9' )+ ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) ) | ||
702 | // InternalCftLanguage.g:1673:17: ( '0' .. '9' )+ ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) | ||
703 | { | ||
704 | // InternalCftLanguage.g:1673:17: ( '0' .. '9' )+ | ||
705 | int cnt2=0; | ||
706 | loop2: | ||
707 | do { | ||
708 | int alt2=2; | ||
709 | int LA2_0 = input.LA(1); | ||
710 | |||
711 | if ( ((LA2_0>='0' && LA2_0<='9')) ) { | ||
712 | alt2=1; | ||
713 | } | ||
714 | |||
715 | |||
716 | switch (alt2) { | ||
717 | case 1 : | ||
718 | // InternalCftLanguage.g:1673:18: '0' .. '9' | ||
719 | { | ||
720 | matchRange('0','9'); | ||
721 | |||
722 | } | ||
723 | break; | ||
724 | |||
725 | default : | ||
726 | if ( cnt2 >= 1 ) break loop2; | ||
727 | EarlyExitException eee = | ||
728 | new EarlyExitException(2, input); | ||
729 | throw eee; | ||
730 | } | ||
731 | cnt2++; | ||
732 | } while (true); | ||
733 | |||
734 | // InternalCftLanguage.g:1673:29: ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ ) | ||
735 | int alt8=2; | ||
736 | alt8 = dfa8.predict(input); | ||
737 | switch (alt8) { | ||
643 | case 1 : | 738 | case 1 : |
644 | // InternalCftLanguage.g:1318:28: '.' ( '0' .. '9' )+ | 739 | // InternalCftLanguage.g:1673:30: '.' ( '0' .. '9' )+ |
645 | { | 740 | { |
646 | match('.'); | 741 | match('.'); |
647 | // InternalCftLanguage.g:1318:32: ( '0' .. '9' )+ | 742 | // InternalCftLanguage.g:1673:34: ( '0' .. '9' )+ |
648 | int cnt2=0; | 743 | int cnt3=0; |
649 | loop2: | 744 | loop3: |
650 | do { | 745 | do { |
651 | int alt2=2; | 746 | int alt3=2; |
652 | int LA2_0 = input.LA(1); | 747 | int LA3_0 = input.LA(1); |
653 | 748 | ||
654 | if ( ((LA2_0>='0' && LA2_0<='9')) ) { | 749 | if ( ((LA3_0>='0' && LA3_0<='9')) ) { |
655 | alt2=1; | 750 | alt3=1; |
656 | } | 751 | } |
657 | 752 | ||
658 | 753 | ||
659 | switch (alt2) { | 754 | switch (alt3) { |
660 | case 1 : | 755 | case 1 : |
661 | // InternalCftLanguage.g:1318:33: '0' .. '9' | 756 | // InternalCftLanguage.g:1673:35: '0' .. '9' |
662 | { | 757 | { |
663 | matchRange('0','9'); | 758 | matchRange('0','9'); |
664 | 759 | ||
@@ -666,47 +761,47 @@ public class InternalCftLanguageLexer extends Lexer { | |||
666 | break; | 761 | break; |
667 | 762 | ||
668 | default : | 763 | default : |
669 | if ( cnt2 >= 1 ) break loop2; | 764 | if ( cnt3 >= 1 ) break loop3; |
670 | EarlyExitException eee = | 765 | EarlyExitException eee = |
671 | new EarlyExitException(2, input); | 766 | new EarlyExitException(3, input); |
672 | throw eee; | 767 | throw eee; |
673 | } | 768 | } |
674 | cnt2++; | 769 | cnt3++; |
675 | } while (true); | 770 | } while (true); |
676 | 771 | ||
677 | 772 | ||
678 | } | 773 | } |
679 | break; | 774 | break; |
680 | case 2 : | 775 | case 2 : |
681 | // InternalCftLanguage.g:1318:44: ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ | 776 | // InternalCftLanguage.g:1673:46: ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ |
682 | { | 777 | { |
683 | // InternalCftLanguage.g:1318:44: ( '.' ( '0' .. '9' )+ )? | 778 | // InternalCftLanguage.g:1673:46: ( '.' ( '0' .. '9' )+ )? |
684 | int alt4=2; | 779 | int alt5=2; |
685 | int LA4_0 = input.LA(1); | 780 | int LA5_0 = input.LA(1); |
686 | 781 | ||
687 | if ( (LA4_0=='.') ) { | 782 | if ( (LA5_0=='.') ) { |
688 | alt4=1; | 783 | alt5=1; |
689 | } | 784 | } |
690 | switch (alt4) { | 785 | switch (alt5) { |
691 | case 1 : | 786 | case 1 : |
692 | // InternalCftLanguage.g:1318:45: '.' ( '0' .. '9' )+ | 787 | // InternalCftLanguage.g:1673:47: '.' ( '0' .. '9' )+ |
693 | { | 788 | { |
694 | match('.'); | 789 | match('.'); |
695 | // InternalCftLanguage.g:1318:49: ( '0' .. '9' )+ | 790 | // InternalCftLanguage.g:1673:51: ( '0' .. '9' )+ |
696 | int cnt3=0; | 791 | int cnt4=0; |
697 | loop3: | 792 | loop4: |
698 | do { | 793 | do { |
699 | int alt3=2; | 794 | int alt4=2; |
700 | int LA3_0 = input.LA(1); | 795 | int LA4_0 = input.LA(1); |
701 | 796 | ||
702 | if ( ((LA3_0>='0' && LA3_0<='9')) ) { | 797 | if ( ((LA4_0>='0' && LA4_0<='9')) ) { |
703 | alt3=1; | 798 | alt4=1; |
704 | } | 799 | } |
705 | 800 | ||
706 | 801 | ||
707 | switch (alt3) { | 802 | switch (alt4) { |
708 | case 1 : | 803 | case 1 : |
709 | // InternalCftLanguage.g:1318:50: '0' .. '9' | 804 | // InternalCftLanguage.g:1673:52: '0' .. '9' |
710 | { | 805 | { |
711 | matchRange('0','9'); | 806 | matchRange('0','9'); |
712 | 807 | ||
@@ -714,12 +809,12 @@ public class InternalCftLanguageLexer extends Lexer { | |||
714 | break; | 809 | break; |
715 | 810 | ||
716 | default : | 811 | default : |
717 | if ( cnt3 >= 1 ) break loop3; | 812 | if ( cnt4 >= 1 ) break loop4; |
718 | EarlyExitException eee = | 813 | EarlyExitException eee = |
719 | new EarlyExitException(3, input); | 814 | new EarlyExitException(4, input); |
720 | throw eee; | 815 | throw eee; |
721 | } | 816 | } |
722 | cnt3++; | 817 | cnt4++; |
723 | } while (true); | 818 | } while (true); |
724 | 819 | ||
725 | 820 | ||
@@ -737,14 +832,14 @@ public class InternalCftLanguageLexer extends Lexer { | |||
737 | recover(mse); | 832 | recover(mse); |
738 | throw mse;} | 833 | throw mse;} |
739 | 834 | ||
740 | // InternalCftLanguage.g:1318:73: ( '+' | '-' )? | 835 | // InternalCftLanguage.g:1673:75: ( '+' | '-' )? |
741 | int alt5=2; | 836 | int alt6=2; |
742 | int LA5_0 = input.LA(1); | 837 | int LA6_0 = input.LA(1); |
743 | 838 | ||
744 | if ( (LA5_0=='+'||LA5_0=='-') ) { | 839 | if ( (LA6_0=='+'||LA6_0=='-') ) { |
745 | alt5=1; | 840 | alt6=1; |
746 | } | 841 | } |
747 | switch (alt5) { | 842 | switch (alt6) { |
748 | case 1 : | 843 | case 1 : |
749 | // InternalCftLanguage.g: | 844 | // InternalCftLanguage.g: |
750 | { | 845 | { |
@@ -763,21 +858,21 @@ public class InternalCftLanguageLexer extends Lexer { | |||
763 | 858 | ||
764 | } | 859 | } |
765 | 860 | ||
766 | // InternalCftLanguage.g:1318:84: ( '0' .. '9' )+ | 861 | // InternalCftLanguage.g:1673:86: ( '0' .. '9' )+ |
767 | int cnt6=0; | 862 | int cnt7=0; |
768 | loop6: | 863 | loop7: |
769 | do { | 864 | do { |
770 | int alt6=2; | 865 | int alt7=2; |
771 | int LA6_0 = input.LA(1); | 866 | int LA7_0 = input.LA(1); |
772 | 867 | ||
773 | if ( ((LA6_0>='0' && LA6_0<='9')) ) { | 868 | if ( ((LA7_0>='0' && LA7_0<='9')) ) { |
774 | alt6=1; | 869 | alt7=1; |
775 | } | 870 | } |
776 | 871 | ||
777 | 872 | ||
778 | switch (alt6) { | 873 | switch (alt7) { |
779 | case 1 : | 874 | case 1 : |
780 | // InternalCftLanguage.g:1318:85: '0' .. '9' | 875 | // InternalCftLanguage.g:1673:87: '0' .. '9' |
781 | { | 876 | { |
782 | matchRange('0','9'); | 877 | matchRange('0','9'); |
783 | 878 | ||
@@ -785,12 +880,12 @@ public class InternalCftLanguageLexer extends Lexer { | |||
785 | break; | 880 | break; |
786 | 881 | ||
787 | default : | 882 | default : |
788 | if ( cnt6 >= 1 ) break loop6; | 883 | if ( cnt7 >= 1 ) break loop7; |
789 | EarlyExitException eee = | 884 | EarlyExitException eee = |
790 | new EarlyExitException(6, input); | 885 | new EarlyExitException(7, input); |
791 | throw eee; | 886 | throw eee; |
792 | } | 887 | } |
793 | cnt6++; | 888 | cnt7++; |
794 | } while (true); | 889 | } while (true); |
795 | 890 | ||
796 | 891 | ||
@@ -808,26 +903,26 @@ public class InternalCftLanguageLexer extends Lexer { | |||
808 | finally { | 903 | finally { |
809 | } | 904 | } |
810 | } | 905 | } |
811 | // $ANTLR end "RULE_DOULBE" | 906 | // $ANTLR end "RULE_T_DOUBLE" |
812 | 907 | ||
813 | // $ANTLR start "RULE_ID" | 908 | // $ANTLR start "RULE_ID" |
814 | public final void mRULE_ID() throws RecognitionException { | 909 | public final void mRULE_ID() throws RecognitionException { |
815 | try { | 910 | try { |
816 | int _type = RULE_ID; | 911 | int _type = RULE_ID; |
817 | int _channel = DEFAULT_TOKEN_CHANNEL; | 912 | int _channel = DEFAULT_TOKEN_CHANNEL; |
818 | // InternalCftLanguage.g:1320:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) | 913 | // InternalCftLanguage.g:1675:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) |
819 | // InternalCftLanguage.g:1320:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | 914 | // InternalCftLanguage.g:1675:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* |
820 | { | 915 | { |
821 | // InternalCftLanguage.g:1320:11: ( '^' )? | 916 | // InternalCftLanguage.g:1675:11: ( '^' )? |
822 | int alt8=2; | 917 | int alt9=2; |
823 | int LA8_0 = input.LA(1); | 918 | int LA9_0 = input.LA(1); |
824 | 919 | ||
825 | if ( (LA8_0=='^') ) { | 920 | if ( (LA9_0=='^') ) { |
826 | alt8=1; | 921 | alt9=1; |
827 | } | 922 | } |
828 | switch (alt8) { | 923 | switch (alt9) { |
829 | case 1 : | 924 | case 1 : |
830 | // InternalCftLanguage.g:1320:11: '^' | 925 | // InternalCftLanguage.g:1675:11: '^' |
831 | { | 926 | { |
832 | match('^'); | 927 | match('^'); |
833 | 928 | ||
@@ -845,18 +940,18 @@ public class InternalCftLanguageLexer extends Lexer { | |||
845 | recover(mse); | 940 | recover(mse); |
846 | throw mse;} | 941 | throw mse;} |
847 | 942 | ||
848 | // InternalCftLanguage.g:1320:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | 943 | // InternalCftLanguage.g:1675:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* |
849 | loop9: | 944 | loop10: |
850 | do { | 945 | do { |
851 | int alt9=2; | 946 | int alt10=2; |
852 | int LA9_0 = input.LA(1); | 947 | int LA10_0 = input.LA(1); |
853 | 948 | ||
854 | if ( ((LA9_0>='0' && LA9_0<='9')||(LA9_0>='A' && LA9_0<='Z')||LA9_0=='_'||(LA9_0>='a' && LA9_0<='z')) ) { | 949 | if ( ((LA10_0>='0' && LA10_0<='9')||(LA10_0>='A' && LA10_0<='Z')||LA10_0=='_'||(LA10_0>='a' && LA10_0<='z')) ) { |
855 | alt9=1; | 950 | alt10=1; |
856 | } | 951 | } |
857 | 952 | ||
858 | 953 | ||
859 | switch (alt9) { | 954 | switch (alt10) { |
860 | case 1 : | 955 | case 1 : |
861 | // InternalCftLanguage.g: | 956 | // InternalCftLanguage.g: |
862 | { | 957 | { |
@@ -874,7 +969,7 @@ public class InternalCftLanguageLexer extends Lexer { | |||
874 | break; | 969 | break; |
875 | 970 | ||
876 | default : | 971 | default : |
877 | break loop9; | 972 | break loop10; |
878 | } | 973 | } |
879 | } while (true); | 974 | } while (true); |
880 | 975 | ||
@@ -894,24 +989,24 @@ public class InternalCftLanguageLexer extends Lexer { | |||
894 | try { | 989 | try { |
895 | int _type = RULE_INT; | 990 | int _type = RULE_INT; |
896 | int _channel = DEFAULT_TOKEN_CHANNEL; | 991 | int _channel = DEFAULT_TOKEN_CHANNEL; |
897 | // InternalCftLanguage.g:1322:10: ( ( '0' .. '9' )+ ) | 992 | // InternalCftLanguage.g:1677:10: ( ( '0' .. '9' )+ ) |
898 | // InternalCftLanguage.g:1322:12: ( '0' .. '9' )+ | 993 | // InternalCftLanguage.g:1677:12: ( '0' .. '9' )+ |
899 | { | 994 | { |
900 | // InternalCftLanguage.g:1322:12: ( '0' .. '9' )+ | 995 | // InternalCftLanguage.g:1677:12: ( '0' .. '9' )+ |
901 | int cnt10=0; | 996 | int cnt11=0; |
902 | loop10: | 997 | loop11: |
903 | do { | 998 | do { |
904 | int alt10=2; | 999 | int alt11=2; |
905 | int LA10_0 = input.LA(1); | 1000 | int LA11_0 = input.LA(1); |
906 | 1001 | ||
907 | if ( ((LA10_0>='0' && LA10_0<='9')) ) { | 1002 | if ( ((LA11_0>='0' && LA11_0<='9')) ) { |
908 | alt10=1; | 1003 | alt11=1; |
909 | } | 1004 | } |
910 | 1005 | ||
911 | 1006 | ||
912 | switch (alt10) { | 1007 | switch (alt11) { |
913 | case 1 : | 1008 | case 1 : |
914 | // InternalCftLanguage.g:1322:13: '0' .. '9' | 1009 | // InternalCftLanguage.g:1677:13: '0' .. '9' |
915 | { | 1010 | { |
916 | matchRange('0','9'); | 1011 | matchRange('0','9'); |
917 | 1012 | ||
@@ -919,12 +1014,12 @@ public class InternalCftLanguageLexer extends Lexer { | |||
919 | break; | 1014 | break; |
920 | 1015 | ||
921 | default : | 1016 | default : |
922 | if ( cnt10 >= 1 ) break loop10; | 1017 | if ( cnt11 >= 1 ) break loop11; |
923 | EarlyExitException eee = | 1018 | EarlyExitException eee = |
924 | new EarlyExitException(10, input); | 1019 | new EarlyExitException(11, input); |
925 | throw eee; | 1020 | throw eee; |
926 | } | 1021 | } |
927 | cnt10++; | 1022 | cnt11++; |
928 | } while (true); | 1023 | } while (true); |
929 | 1024 | ||
930 | 1025 | ||
@@ -943,47 +1038,47 @@ public class InternalCftLanguageLexer extends Lexer { | |||
943 | try { | 1038 | try { |
944 | int _type = RULE_STRING; | 1039 | int _type = RULE_STRING; |
945 | int _channel = DEFAULT_TOKEN_CHANNEL; | 1040 | int _channel = DEFAULT_TOKEN_CHANNEL; |
946 | // InternalCftLanguage.g:1324:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) ) | 1041 | // InternalCftLanguage.g:1679:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) ) |
947 | // InternalCftLanguage.g:1324:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) | 1042 | // InternalCftLanguage.g:1679:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) |
948 | { | 1043 | { |
949 | // InternalCftLanguage.g:1324:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) | 1044 | // InternalCftLanguage.g:1679:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) |
950 | int alt13=2; | 1045 | int alt14=2; |
951 | int LA13_0 = input.LA(1); | 1046 | int LA14_0 = input.LA(1); |
952 | 1047 | ||
953 | if ( (LA13_0=='\"') ) { | 1048 | if ( (LA14_0=='\"') ) { |
954 | alt13=1; | 1049 | alt14=1; |
955 | } | 1050 | } |
956 | else if ( (LA13_0=='\'') ) { | 1051 | else if ( (LA14_0=='\'') ) { |
957 | alt13=2; | 1052 | alt14=2; |
958 | } | 1053 | } |
959 | else { | 1054 | else { |
960 | NoViableAltException nvae = | 1055 | NoViableAltException nvae = |
961 | new NoViableAltException("", 13, 0, input); | 1056 | new NoViableAltException("", 14, 0, input); |
962 | 1057 | ||
963 | throw nvae; | 1058 | throw nvae; |
964 | } | 1059 | } |
965 | switch (alt13) { | 1060 | switch (alt14) { |
966 | case 1 : | 1061 | case 1 : |
967 | // InternalCftLanguage.g:1324:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | 1062 | // InternalCftLanguage.g:1679:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' |
968 | { | 1063 | { |
969 | match('\"'); | 1064 | match('\"'); |
970 | // InternalCftLanguage.g:1324:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* | 1065 | // InternalCftLanguage.g:1679:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* |
971 | loop11: | 1066 | loop12: |
972 | do { | 1067 | do { |
973 | int alt11=3; | 1068 | int alt12=3; |
974 | int LA11_0 = input.LA(1); | 1069 | int LA12_0 = input.LA(1); |
975 | 1070 | ||
976 | if ( (LA11_0=='\\') ) { | 1071 | if ( (LA12_0=='\\') ) { |
977 | alt11=1; | 1072 | alt12=1; |
978 | } | 1073 | } |
979 | else if ( ((LA11_0>='\u0000' && LA11_0<='!')||(LA11_0>='#' && LA11_0<='[')||(LA11_0>=']' && LA11_0<='\uFFFF')) ) { | 1074 | else if ( ((LA12_0>='\u0000' && LA12_0<='!')||(LA12_0>='#' && LA12_0<='[')||(LA12_0>=']' && LA12_0<='\uFFFF')) ) { |
980 | alt11=2; | 1075 | alt12=2; |
981 | } | 1076 | } |
982 | 1077 | ||
983 | 1078 | ||
984 | switch (alt11) { | 1079 | switch (alt12) { |
985 | case 1 : | 1080 | case 1 : |
986 | // InternalCftLanguage.g:1324:21: '\\\\' . | 1081 | // InternalCftLanguage.g:1679:21: '\\\\' . |
987 | { | 1082 | { |
988 | match('\\'); | 1083 | match('\\'); |
989 | matchAny(); | 1084 | matchAny(); |
@@ -991,7 +1086,7 @@ public class InternalCftLanguageLexer extends Lexer { | |||
991 | } | 1086 | } |
992 | break; | 1087 | break; |
993 | case 2 : | 1088 | case 2 : |
994 | // InternalCftLanguage.g:1324:28: ~ ( ( '\\\\' | '\"' ) ) | 1089 | // InternalCftLanguage.g:1679:28: ~ ( ( '\\\\' | '\"' ) ) |
995 | { | 1090 | { |
996 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { | 1091 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { |
997 | input.consume(); | 1092 | input.consume(); |
@@ -1007,7 +1102,7 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1007 | break; | 1102 | break; |
1008 | 1103 | ||
1009 | default : | 1104 | default : |
1010 | break loop11; | 1105 | break loop12; |
1011 | } | 1106 | } |
1012 | } while (true); | 1107 | } while (true); |
1013 | 1108 | ||
@@ -1016,26 +1111,26 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1016 | } | 1111 | } |
1017 | break; | 1112 | break; |
1018 | case 2 : | 1113 | case 2 : |
1019 | // InternalCftLanguage.g:1324:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' | 1114 | // InternalCftLanguage.g:1679:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' |
1020 | { | 1115 | { |
1021 | match('\''); | 1116 | match('\''); |
1022 | // InternalCftLanguage.g:1324:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* | 1117 | // InternalCftLanguage.g:1679:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* |
1023 | loop12: | 1118 | loop13: |
1024 | do { | 1119 | do { |
1025 | int alt12=3; | 1120 | int alt13=3; |
1026 | int LA12_0 = input.LA(1); | 1121 | int LA13_0 = input.LA(1); |
1027 | 1122 | ||
1028 | if ( (LA12_0=='\\') ) { | 1123 | if ( (LA13_0=='\\') ) { |
1029 | alt12=1; | 1124 | alt13=1; |
1030 | } | 1125 | } |
1031 | else if ( ((LA12_0>='\u0000' && LA12_0<='&')||(LA12_0>='(' && LA12_0<='[')||(LA12_0>=']' && LA12_0<='\uFFFF')) ) { | 1126 | else if ( ((LA13_0>='\u0000' && LA13_0<='&')||(LA13_0>='(' && LA13_0<='[')||(LA13_0>=']' && LA13_0<='\uFFFF')) ) { |
1032 | alt12=2; | 1127 | alt13=2; |
1033 | } | 1128 | } |
1034 | 1129 | ||
1035 | 1130 | ||
1036 | switch (alt12) { | 1131 | switch (alt13) { |
1037 | case 1 : | 1132 | case 1 : |
1038 | // InternalCftLanguage.g:1324:54: '\\\\' . | 1133 | // InternalCftLanguage.g:1679:54: '\\\\' . |
1039 | { | 1134 | { |
1040 | match('\\'); | 1135 | match('\\'); |
1041 | matchAny(); | 1136 | matchAny(); |
@@ -1043,7 +1138,7 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1043 | } | 1138 | } |
1044 | break; | 1139 | break; |
1045 | case 2 : | 1140 | case 2 : |
1046 | // InternalCftLanguage.g:1324:61: ~ ( ( '\\\\' | '\\'' ) ) | 1141 | // InternalCftLanguage.g:1679:61: ~ ( ( '\\\\' | '\\'' ) ) |
1047 | { | 1142 | { |
1048 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { | 1143 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { |
1049 | input.consume(); | 1144 | input.consume(); |
@@ -1059,7 +1154,7 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1059 | break; | 1154 | break; |
1060 | 1155 | ||
1061 | default : | 1156 | default : |
1062 | break loop12; | 1157 | break loop13; |
1063 | } | 1158 | } |
1064 | } while (true); | 1159 | } while (true); |
1065 | 1160 | ||
@@ -1086,37 +1181,37 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1086 | try { | 1181 | try { |
1087 | int _type = RULE_ML_COMMENT; | 1182 | int _type = RULE_ML_COMMENT; |
1088 | int _channel = DEFAULT_TOKEN_CHANNEL; | 1183 | int _channel = DEFAULT_TOKEN_CHANNEL; |
1089 | // InternalCftLanguage.g:1326:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) | 1184 | // InternalCftLanguage.g:1681:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) |
1090 | // InternalCftLanguage.g:1326:19: '/*' ( options {greedy=false; } : . )* '*/' | 1185 | // InternalCftLanguage.g:1681:19: '/*' ( options {greedy=false; } : . )* '*/' |
1091 | { | 1186 | { |
1092 | match("/*"); | 1187 | match("/*"); |
1093 | 1188 | ||
1094 | // InternalCftLanguage.g:1326:24: ( options {greedy=false; } : . )* | 1189 | // InternalCftLanguage.g:1681:24: ( options {greedy=false; } : . )* |
1095 | loop14: | 1190 | loop15: |
1096 | do { | 1191 | do { |
1097 | int alt14=2; | 1192 | int alt15=2; |
1098 | int LA14_0 = input.LA(1); | 1193 | int LA15_0 = input.LA(1); |
1099 | 1194 | ||
1100 | if ( (LA14_0=='*') ) { | 1195 | if ( (LA15_0=='*') ) { |
1101 | int LA14_1 = input.LA(2); | 1196 | int LA15_1 = input.LA(2); |
1102 | 1197 | ||
1103 | if ( (LA14_1=='/') ) { | 1198 | if ( (LA15_1=='/') ) { |
1104 | alt14=2; | 1199 | alt15=2; |
1105 | } | 1200 | } |
1106 | else if ( ((LA14_1>='\u0000' && LA14_1<='.')||(LA14_1>='0' && LA14_1<='\uFFFF')) ) { | 1201 | else if ( ((LA15_1>='\u0000' && LA15_1<='.')||(LA15_1>='0' && LA15_1<='\uFFFF')) ) { |
1107 | alt14=1; | 1202 | alt15=1; |
1108 | } | 1203 | } |
1109 | 1204 | ||
1110 | 1205 | ||
1111 | } | 1206 | } |
1112 | else if ( ((LA14_0>='\u0000' && LA14_0<=')')||(LA14_0>='+' && LA14_0<='\uFFFF')) ) { | 1207 | else if ( ((LA15_0>='\u0000' && LA15_0<=')')||(LA15_0>='+' && LA15_0<='\uFFFF')) ) { |
1113 | alt14=1; | 1208 | alt15=1; |
1114 | } | 1209 | } |
1115 | 1210 | ||
1116 | 1211 | ||
1117 | switch (alt14) { | 1212 | switch (alt15) { |
1118 | case 1 : | 1213 | case 1 : |
1119 | // InternalCftLanguage.g:1326:52: . | 1214 | // InternalCftLanguage.g:1681:52: . |
1120 | { | 1215 | { |
1121 | matchAny(); | 1216 | matchAny(); |
1122 | 1217 | ||
@@ -1124,7 +1219,7 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1124 | break; | 1219 | break; |
1125 | 1220 | ||
1126 | default : | 1221 | default : |
1127 | break loop14; | 1222 | break loop15; |
1128 | } | 1223 | } |
1129 | } while (true); | 1224 | } while (true); |
1130 | 1225 | ||
@@ -1146,25 +1241,25 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1146 | try { | 1241 | try { |
1147 | int _type = RULE_SL_COMMENT; | 1242 | int _type = RULE_SL_COMMENT; |
1148 | int _channel = DEFAULT_TOKEN_CHANNEL; | 1243 | int _channel = DEFAULT_TOKEN_CHANNEL; |
1149 | // InternalCftLanguage.g:1328:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) | 1244 | // InternalCftLanguage.g:1683:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) |
1150 | // InternalCftLanguage.g:1328:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? | 1245 | // InternalCftLanguage.g:1683:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? |
1151 | { | 1246 | { |
1152 | match("//"); | 1247 | match("//"); |
1153 | 1248 | ||
1154 | // InternalCftLanguage.g:1328:24: (~ ( ( '\\n' | '\\r' ) ) )* | 1249 | // InternalCftLanguage.g:1683:24: (~ ( ( '\\n' | '\\r' ) ) )* |
1155 | loop15: | 1250 | loop16: |
1156 | do { | 1251 | do { |
1157 | int alt15=2; | 1252 | int alt16=2; |
1158 | int LA15_0 = input.LA(1); | 1253 | int LA16_0 = input.LA(1); |
1159 | 1254 | ||
1160 | if ( ((LA15_0>='\u0000' && LA15_0<='\t')||(LA15_0>='\u000B' && LA15_0<='\f')||(LA15_0>='\u000E' && LA15_0<='\uFFFF')) ) { | 1255 | if ( ((LA16_0>='\u0000' && LA16_0<='\t')||(LA16_0>='\u000B' && LA16_0<='\f')||(LA16_0>='\u000E' && LA16_0<='\uFFFF')) ) { |
1161 | alt15=1; | 1256 | alt16=1; |
1162 | } | 1257 | } |
1163 | 1258 | ||
1164 | 1259 | ||
1165 | switch (alt15) { | 1260 | switch (alt16) { |
1166 | case 1 : | 1261 | case 1 : |
1167 | // InternalCftLanguage.g:1328:24: ~ ( ( '\\n' | '\\r' ) ) | 1262 | // InternalCftLanguage.g:1683:24: ~ ( ( '\\n' | '\\r' ) ) |
1168 | { | 1263 | { |
1169 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) { | 1264 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) { |
1170 | input.consume(); | 1265 | input.consume(); |
@@ -1180,31 +1275,31 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1180 | break; | 1275 | break; |
1181 | 1276 | ||
1182 | default : | 1277 | default : |
1183 | break loop15; | 1278 | break loop16; |
1184 | } | 1279 | } |
1185 | } while (true); | 1280 | } while (true); |
1186 | 1281 | ||
1187 | // InternalCftLanguage.g:1328:40: ( ( '\\r' )? '\\n' )? | 1282 | // InternalCftLanguage.g:1683:40: ( ( '\\r' )? '\\n' )? |
1188 | int alt17=2; | 1283 | int alt18=2; |
1189 | int LA17_0 = input.LA(1); | 1284 | int LA18_0 = input.LA(1); |
1190 | 1285 | ||
1191 | if ( (LA17_0=='\n'||LA17_0=='\r') ) { | 1286 | if ( (LA18_0=='\n'||LA18_0=='\r') ) { |
1192 | alt17=1; | 1287 | alt18=1; |
1193 | } | 1288 | } |
1194 | switch (alt17) { | 1289 | switch (alt18) { |
1195 | case 1 : | 1290 | case 1 : |
1196 | // InternalCftLanguage.g:1328:41: ( '\\r' )? '\\n' | 1291 | // InternalCftLanguage.g:1683:41: ( '\\r' )? '\\n' |
1197 | { | 1292 | { |
1198 | // InternalCftLanguage.g:1328:41: ( '\\r' )? | 1293 | // InternalCftLanguage.g:1683:41: ( '\\r' )? |
1199 | int alt16=2; | 1294 | int alt17=2; |
1200 | int LA16_0 = input.LA(1); | 1295 | int LA17_0 = input.LA(1); |
1201 | 1296 | ||
1202 | if ( (LA16_0=='\r') ) { | 1297 | if ( (LA17_0=='\r') ) { |
1203 | alt16=1; | 1298 | alt17=1; |
1204 | } | 1299 | } |
1205 | switch (alt16) { | 1300 | switch (alt17) { |
1206 | case 1 : | 1301 | case 1 : |
1207 | // InternalCftLanguage.g:1328:41: '\\r' | 1302 | // InternalCftLanguage.g:1683:41: '\\r' |
1208 | { | 1303 | { |
1209 | match('\r'); | 1304 | match('\r'); |
1210 | 1305 | ||
@@ -1236,22 +1331,22 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1236 | try { | 1331 | try { |
1237 | int _type = RULE_WS; | 1332 | int _type = RULE_WS; |
1238 | int _channel = DEFAULT_TOKEN_CHANNEL; | 1333 | int _channel = DEFAULT_TOKEN_CHANNEL; |
1239 | // InternalCftLanguage.g:1330:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) | 1334 | // InternalCftLanguage.g:1685:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) |
1240 | // InternalCftLanguage.g:1330:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ | 1335 | // InternalCftLanguage.g:1685:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ |
1241 | { | 1336 | { |
1242 | // InternalCftLanguage.g:1330:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ | 1337 | // InternalCftLanguage.g:1685:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ |
1243 | int cnt18=0; | 1338 | int cnt19=0; |
1244 | loop18: | 1339 | loop19: |
1245 | do { | 1340 | do { |
1246 | int alt18=2; | 1341 | int alt19=2; |
1247 | int LA18_0 = input.LA(1); | 1342 | int LA19_0 = input.LA(1); |
1248 | 1343 | ||
1249 | if ( ((LA18_0>='\t' && LA18_0<='\n')||LA18_0=='\r'||LA18_0==' ') ) { | 1344 | if ( ((LA19_0>='\t' && LA19_0<='\n')||LA19_0=='\r'||LA19_0==' ') ) { |
1250 | alt18=1; | 1345 | alt19=1; |
1251 | } | 1346 | } |
1252 | 1347 | ||
1253 | 1348 | ||
1254 | switch (alt18) { | 1349 | switch (alt19) { |
1255 | case 1 : | 1350 | case 1 : |
1256 | // InternalCftLanguage.g: | 1351 | // InternalCftLanguage.g: |
1257 | { | 1352 | { |
@@ -1269,12 +1364,12 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1269 | break; | 1364 | break; |
1270 | 1365 | ||
1271 | default : | 1366 | default : |
1272 | if ( cnt18 >= 1 ) break loop18; | 1367 | if ( cnt19 >= 1 ) break loop19; |
1273 | EarlyExitException eee = | 1368 | EarlyExitException eee = |
1274 | new EarlyExitException(18, input); | 1369 | new EarlyExitException(19, input); |
1275 | throw eee; | 1370 | throw eee; |
1276 | } | 1371 | } |
1277 | cnt18++; | 1372 | cnt19++; |
1278 | } while (true); | 1373 | } while (true); |
1279 | 1374 | ||
1280 | 1375 | ||
@@ -1293,8 +1388,8 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1293 | try { | 1388 | try { |
1294 | int _type = RULE_ANY_OTHER; | 1389 | int _type = RULE_ANY_OTHER; |
1295 | int _channel = DEFAULT_TOKEN_CHANNEL; | 1390 | int _channel = DEFAULT_TOKEN_CHANNEL; |
1296 | // InternalCftLanguage.g:1332:16: ( . ) | 1391 | // InternalCftLanguage.g:1687:16: ( . ) |
1297 | // InternalCftLanguage.g:1332:18: . | 1392 | // InternalCftLanguage.g:1687:18: . |
1298 | { | 1393 | { |
1299 | matchAny(); | 1394 | matchAny(); |
1300 | 1395 | ||
@@ -1309,243 +1404,264 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1309 | // $ANTLR end "RULE_ANY_OTHER" | 1404 | // $ANTLR end "RULE_ANY_OTHER" |
1310 | 1405 | ||
1311 | public void mTokens() throws RecognitionException { | 1406 | public void mTokens() throws RecognitionException { |
1312 | // InternalCftLanguage.g:1:8: ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | RULE_DOULBE | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER ) | 1407 | // InternalCftLanguage.g:1:8: ( T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | RULE_OF_INT | RULE_T_DOUBLE | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER ) |
1313 | int alt19=34; | 1408 | int alt20=37; |
1314 | alt19 = dfa19.predict(input); | 1409 | alt20 = dfa20.predict(input); |
1315 | switch (alt19) { | 1410 | switch (alt20) { |
1316 | case 1 : | 1411 | case 1 : |
1317 | // InternalCftLanguage.g:1:10: T__12 | 1412 | // InternalCftLanguage.g:1:10: T__13 |
1318 | { | 1413 | { |
1319 | mT__12(); | 1414 | mT__13(); |
1320 | 1415 | ||
1321 | } | 1416 | } |
1322 | break; | 1417 | break; |
1323 | case 2 : | 1418 | case 2 : |
1324 | // InternalCftLanguage.g:1:16: T__13 | 1419 | // InternalCftLanguage.g:1:16: T__14 |
1325 | { | 1420 | { |
1326 | mT__13(); | 1421 | mT__14(); |
1327 | 1422 | ||
1328 | } | 1423 | } |
1329 | break; | 1424 | break; |
1330 | case 3 : | 1425 | case 3 : |
1331 | // InternalCftLanguage.g:1:22: T__14 | 1426 | // InternalCftLanguage.g:1:22: T__15 |
1332 | { | 1427 | { |
1333 | mT__14(); | 1428 | mT__15(); |
1334 | 1429 | ||
1335 | } | 1430 | } |
1336 | break; | 1431 | break; |
1337 | case 4 : | 1432 | case 4 : |
1338 | // InternalCftLanguage.g:1:28: T__15 | 1433 | // InternalCftLanguage.g:1:28: T__16 |
1339 | { | 1434 | { |
1340 | mT__15(); | 1435 | mT__16(); |
1341 | 1436 | ||
1342 | } | 1437 | } |
1343 | break; | 1438 | break; |
1344 | case 5 : | 1439 | case 5 : |
1345 | // InternalCftLanguage.g:1:34: T__16 | 1440 | // InternalCftLanguage.g:1:34: T__17 |
1346 | { | 1441 | { |
1347 | mT__16(); | 1442 | mT__17(); |
1348 | 1443 | ||
1349 | } | 1444 | } |
1350 | break; | 1445 | break; |
1351 | case 6 : | 1446 | case 6 : |
1352 | // InternalCftLanguage.g:1:40: T__17 | 1447 | // InternalCftLanguage.g:1:40: T__18 |
1353 | { | 1448 | { |
1354 | mT__17(); | 1449 | mT__18(); |
1355 | 1450 | ||
1356 | } | 1451 | } |
1357 | break; | 1452 | break; |
1358 | case 7 : | 1453 | case 7 : |
1359 | // InternalCftLanguage.g:1:46: T__18 | 1454 | // InternalCftLanguage.g:1:46: T__19 |
1360 | { | 1455 | { |
1361 | mT__18(); | 1456 | mT__19(); |
1362 | 1457 | ||
1363 | } | 1458 | } |
1364 | break; | 1459 | break; |
1365 | case 8 : | 1460 | case 8 : |
1366 | // InternalCftLanguage.g:1:52: T__19 | 1461 | // InternalCftLanguage.g:1:52: T__20 |
1367 | { | 1462 | { |
1368 | mT__19(); | 1463 | mT__20(); |
1369 | 1464 | ||
1370 | } | 1465 | } |
1371 | break; | 1466 | break; |
1372 | case 9 : | 1467 | case 9 : |
1373 | // InternalCftLanguage.g:1:58: T__20 | 1468 | // InternalCftLanguage.g:1:58: T__21 |
1374 | { | 1469 | { |
1375 | mT__20(); | 1470 | mT__21(); |
1376 | 1471 | ||
1377 | } | 1472 | } |
1378 | break; | 1473 | break; |
1379 | case 10 : | 1474 | case 10 : |
1380 | // InternalCftLanguage.g:1:64: T__21 | 1475 | // InternalCftLanguage.g:1:64: T__22 |
1381 | { | 1476 | { |
1382 | mT__21(); | 1477 | mT__22(); |
1383 | 1478 | ||
1384 | } | 1479 | } |
1385 | break; | 1480 | break; |
1386 | case 11 : | 1481 | case 11 : |
1387 | // InternalCftLanguage.g:1:70: T__22 | 1482 | // InternalCftLanguage.g:1:70: T__23 |
1388 | { | 1483 | { |
1389 | mT__22(); | 1484 | mT__23(); |
1390 | 1485 | ||
1391 | } | 1486 | } |
1392 | break; | 1487 | break; |
1393 | case 12 : | 1488 | case 12 : |
1394 | // InternalCftLanguage.g:1:76: T__23 | 1489 | // InternalCftLanguage.g:1:76: T__24 |
1395 | { | 1490 | { |
1396 | mT__23(); | 1491 | mT__24(); |
1397 | 1492 | ||
1398 | } | 1493 | } |
1399 | break; | 1494 | break; |
1400 | case 13 : | 1495 | case 13 : |
1401 | // InternalCftLanguage.g:1:82: T__24 | 1496 | // InternalCftLanguage.g:1:82: T__25 |
1402 | { | 1497 | { |
1403 | mT__24(); | 1498 | mT__25(); |
1404 | 1499 | ||
1405 | } | 1500 | } |
1406 | break; | 1501 | break; |
1407 | case 14 : | 1502 | case 14 : |
1408 | // InternalCftLanguage.g:1:88: T__25 | 1503 | // InternalCftLanguage.g:1:88: T__26 |
1409 | { | 1504 | { |
1410 | mT__25(); | 1505 | mT__26(); |
1411 | 1506 | ||
1412 | } | 1507 | } |
1413 | break; | 1508 | break; |
1414 | case 15 : | 1509 | case 15 : |
1415 | // InternalCftLanguage.g:1:94: T__26 | 1510 | // InternalCftLanguage.g:1:94: T__27 |
1416 | { | 1511 | { |
1417 | mT__26(); | 1512 | mT__27(); |
1418 | 1513 | ||
1419 | } | 1514 | } |
1420 | break; | 1515 | break; |
1421 | case 16 : | 1516 | case 16 : |
1422 | // InternalCftLanguage.g:1:100: T__27 | 1517 | // InternalCftLanguage.g:1:100: T__28 |
1423 | { | 1518 | { |
1424 | mT__27(); | 1519 | mT__28(); |
1425 | 1520 | ||
1426 | } | 1521 | } |
1427 | break; | 1522 | break; |
1428 | case 17 : | 1523 | case 17 : |
1429 | // InternalCftLanguage.g:1:106: T__28 | 1524 | // InternalCftLanguage.g:1:106: T__29 |
1430 | { | 1525 | { |
1431 | mT__28(); | 1526 | mT__29(); |
1432 | 1527 | ||
1433 | } | 1528 | } |
1434 | break; | 1529 | break; |
1435 | case 18 : | 1530 | case 18 : |
1436 | // InternalCftLanguage.g:1:112: T__29 | 1531 | // InternalCftLanguage.g:1:112: T__30 |
1437 | { | 1532 | { |
1438 | mT__29(); | 1533 | mT__30(); |
1439 | 1534 | ||
1440 | } | 1535 | } |
1441 | break; | 1536 | break; |
1442 | case 19 : | 1537 | case 19 : |
1443 | // InternalCftLanguage.g:1:118: T__30 | 1538 | // InternalCftLanguage.g:1:118: T__31 |
1444 | { | 1539 | { |
1445 | mT__30(); | 1540 | mT__31(); |
1446 | 1541 | ||
1447 | } | 1542 | } |
1448 | break; | 1543 | break; |
1449 | case 20 : | 1544 | case 20 : |
1450 | // InternalCftLanguage.g:1:124: T__31 | 1545 | // InternalCftLanguage.g:1:124: T__32 |
1451 | { | 1546 | { |
1452 | mT__31(); | 1547 | mT__32(); |
1453 | 1548 | ||
1454 | } | 1549 | } |
1455 | break; | 1550 | break; |
1456 | case 21 : | 1551 | case 21 : |
1457 | // InternalCftLanguage.g:1:130: T__32 | 1552 | // InternalCftLanguage.g:1:130: T__33 |
1458 | { | 1553 | { |
1459 | mT__32(); | 1554 | mT__33(); |
1460 | 1555 | ||
1461 | } | 1556 | } |
1462 | break; | 1557 | break; |
1463 | case 22 : | 1558 | case 22 : |
1464 | // InternalCftLanguage.g:1:136: T__33 | 1559 | // InternalCftLanguage.g:1:136: T__34 |
1465 | { | 1560 | { |
1466 | mT__33(); | 1561 | mT__34(); |
1467 | 1562 | ||
1468 | } | 1563 | } |
1469 | break; | 1564 | break; |
1470 | case 23 : | 1565 | case 23 : |
1471 | // InternalCftLanguage.g:1:142: T__34 | 1566 | // InternalCftLanguage.g:1:142: T__35 |
1472 | { | 1567 | { |
1473 | mT__34(); | 1568 | mT__35(); |
1474 | 1569 | ||
1475 | } | 1570 | } |
1476 | break; | 1571 | break; |
1477 | case 24 : | 1572 | case 24 : |
1478 | // InternalCftLanguage.g:1:148: T__35 | 1573 | // InternalCftLanguage.g:1:148: T__36 |
1479 | { | 1574 | { |
1480 | mT__35(); | 1575 | mT__36(); |
1481 | 1576 | ||
1482 | } | 1577 | } |
1483 | break; | 1578 | break; |
1484 | case 25 : | 1579 | case 25 : |
1485 | // InternalCftLanguage.g:1:154: T__36 | 1580 | // InternalCftLanguage.g:1:154: T__37 |
1486 | { | 1581 | { |
1487 | mT__36(); | 1582 | mT__37(); |
1488 | 1583 | ||
1489 | } | 1584 | } |
1490 | break; | 1585 | break; |
1491 | case 26 : | 1586 | case 26 : |
1492 | // InternalCftLanguage.g:1:160: T__37 | 1587 | // InternalCftLanguage.g:1:160: T__38 |
1493 | { | 1588 | { |
1494 | mT__37(); | 1589 | mT__38(); |
1495 | 1590 | ||
1496 | } | 1591 | } |
1497 | break; | 1592 | break; |
1498 | case 27 : | 1593 | case 27 : |
1499 | // InternalCftLanguage.g:1:166: RULE_DOULBE | 1594 | // InternalCftLanguage.g:1:166: T__39 |
1500 | { | 1595 | { |
1501 | mRULE_DOULBE(); | 1596 | mT__39(); |
1502 | 1597 | ||
1503 | } | 1598 | } |
1504 | break; | 1599 | break; |
1505 | case 28 : | 1600 | case 28 : |
1506 | // InternalCftLanguage.g:1:178: RULE_ID | 1601 | // InternalCftLanguage.g:1:172: T__40 |
1507 | { | 1602 | { |
1508 | mRULE_ID(); | 1603 | mT__40(); |
1509 | 1604 | ||
1510 | } | 1605 | } |
1511 | break; | 1606 | break; |
1512 | case 29 : | 1607 | case 29 : |
1513 | // InternalCftLanguage.g:1:186: RULE_INT | 1608 | // InternalCftLanguage.g:1:178: RULE_OF_INT |
1514 | { | 1609 | { |
1515 | mRULE_INT(); | 1610 | mRULE_OF_INT(); |
1516 | 1611 | ||
1517 | } | 1612 | } |
1518 | break; | 1613 | break; |
1519 | case 30 : | 1614 | case 30 : |
1520 | // InternalCftLanguage.g:1:195: RULE_STRING | 1615 | // InternalCftLanguage.g:1:190: RULE_T_DOUBLE |
1521 | { | 1616 | { |
1522 | mRULE_STRING(); | 1617 | mRULE_T_DOUBLE(); |
1523 | 1618 | ||
1524 | } | 1619 | } |
1525 | break; | 1620 | break; |
1526 | case 31 : | 1621 | case 31 : |
1527 | // InternalCftLanguage.g:1:207: RULE_ML_COMMENT | 1622 | // InternalCftLanguage.g:1:204: RULE_ID |
1528 | { | 1623 | { |
1529 | mRULE_ML_COMMENT(); | 1624 | mRULE_ID(); |
1530 | 1625 | ||
1531 | } | 1626 | } |
1532 | break; | 1627 | break; |
1533 | case 32 : | 1628 | case 32 : |
1534 | // InternalCftLanguage.g:1:223: RULE_SL_COMMENT | 1629 | // InternalCftLanguage.g:1:212: RULE_INT |
1535 | { | 1630 | { |
1536 | mRULE_SL_COMMENT(); | 1631 | mRULE_INT(); |
1537 | 1632 | ||
1538 | } | 1633 | } |
1539 | break; | 1634 | break; |
1540 | case 33 : | 1635 | case 33 : |
1541 | // InternalCftLanguage.g:1:239: RULE_WS | 1636 | // InternalCftLanguage.g:1:221: RULE_STRING |
1542 | { | 1637 | { |
1543 | mRULE_WS(); | 1638 | mRULE_STRING(); |
1544 | 1639 | ||
1545 | } | 1640 | } |
1546 | break; | 1641 | break; |
1547 | case 34 : | 1642 | case 34 : |
1548 | // InternalCftLanguage.g:1:247: RULE_ANY_OTHER | 1643 | // InternalCftLanguage.g:1:233: RULE_ML_COMMENT |
1644 | { | ||
1645 | mRULE_ML_COMMENT(); | ||
1646 | |||
1647 | } | ||
1648 | break; | ||
1649 | case 35 : | ||
1650 | // InternalCftLanguage.g:1:249: RULE_SL_COMMENT | ||
1651 | { | ||
1652 | mRULE_SL_COMMENT(); | ||
1653 | |||
1654 | } | ||
1655 | break; | ||
1656 | case 36 : | ||
1657 | // InternalCftLanguage.g:1:265: RULE_WS | ||
1658 | { | ||
1659 | mRULE_WS(); | ||
1660 | |||
1661 | } | ||
1662 | break; | ||
1663 | case 37 : | ||
1664 | // InternalCftLanguage.g:1:273: RULE_ANY_OTHER | ||
1549 | { | 1665 | { |
1550 | mRULE_ANY_OTHER(); | 1666 | mRULE_ANY_OTHER(); |
1551 | 1667 | ||
@@ -1557,21 +1673,21 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1557 | } | 1673 | } |
1558 | 1674 | ||
1559 | 1675 | ||
1560 | protected DFA7 dfa7 = new DFA7(this); | 1676 | protected DFA8 dfa8 = new DFA8(this); |
1561 | protected DFA19 dfa19 = new DFA19(this); | 1677 | protected DFA20 dfa20 = new DFA20(this); |
1562 | static final String DFA7_eotS = | 1678 | static final String DFA8_eotS = |
1563 | "\3\uffff\1\4\1\uffff"; | 1679 | "\3\uffff\1\4\1\uffff"; |
1564 | static final String DFA7_eofS = | 1680 | static final String DFA8_eofS = |
1565 | "\5\uffff"; | 1681 | "\5\uffff"; |
1566 | static final String DFA7_minS = | 1682 | static final String DFA8_minS = |
1567 | "\1\56\1\60\1\uffff\1\60\1\uffff"; | 1683 | "\1\56\1\60\1\uffff\1\60\1\uffff"; |
1568 | static final String DFA7_maxS = | 1684 | static final String DFA8_maxS = |
1569 | "\1\145\1\71\1\uffff\1\145\1\uffff"; | 1685 | "\1\145\1\71\1\uffff\1\145\1\uffff"; |
1570 | static final String DFA7_acceptS = | 1686 | static final String DFA8_acceptS = |
1571 | "\2\uffff\1\2\1\uffff\1\1"; | 1687 | "\2\uffff\1\2\1\uffff\1\1"; |
1572 | static final String DFA7_specialS = | 1688 | static final String DFA8_specialS = |
1573 | "\5\uffff}>"; | 1689 | "\5\uffff}>"; |
1574 | static final String[] DFA7_transitionS = { | 1690 | static final String[] DFA8_transitionS = { |
1575 | "\1\1\26\uffff\1\2\37\uffff\1\2", | 1691 | "\1\1\26\uffff\1\2\37\uffff\1\2", |
1576 | "\12\3", | 1692 | "\12\3", |
1577 | "", | 1693 | "", |
@@ -1579,101 +1695,103 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1579 | "" | 1695 | "" |
1580 | }; | 1696 | }; |
1581 | 1697 | ||
1582 | static final short[] DFA7_eot = DFA.unpackEncodedString(DFA7_eotS); | 1698 | static final short[] DFA8_eot = DFA.unpackEncodedString(DFA8_eotS); |
1583 | static final short[] DFA7_eof = DFA.unpackEncodedString(DFA7_eofS); | 1699 | static final short[] DFA8_eof = DFA.unpackEncodedString(DFA8_eofS); |
1584 | static final char[] DFA7_min = DFA.unpackEncodedStringToUnsignedChars(DFA7_minS); | 1700 | static final char[] DFA8_min = DFA.unpackEncodedStringToUnsignedChars(DFA8_minS); |
1585 | static final char[] DFA7_max = DFA.unpackEncodedStringToUnsignedChars(DFA7_maxS); | 1701 | static final char[] DFA8_max = DFA.unpackEncodedStringToUnsignedChars(DFA8_maxS); |
1586 | static final short[] DFA7_accept = DFA.unpackEncodedString(DFA7_acceptS); | 1702 | static final short[] DFA8_accept = DFA.unpackEncodedString(DFA8_acceptS); |
1587 | static final short[] DFA7_special = DFA.unpackEncodedString(DFA7_specialS); | 1703 | static final short[] DFA8_special = DFA.unpackEncodedString(DFA8_specialS); |
1588 | static final short[][] DFA7_transition; | 1704 | static final short[][] DFA8_transition; |
1589 | 1705 | ||
1590 | static { | 1706 | static { |
1591 | int numStates = DFA7_transitionS.length; | 1707 | int numStates = DFA8_transitionS.length; |
1592 | DFA7_transition = new short[numStates][]; | 1708 | DFA8_transition = new short[numStates][]; |
1593 | for (int i=0; i<numStates; i++) { | 1709 | for (int i=0; i<numStates; i++) { |
1594 | DFA7_transition[i] = DFA.unpackEncodedString(DFA7_transitionS[i]); | 1710 | DFA8_transition[i] = DFA.unpackEncodedString(DFA8_transitionS[i]); |
1595 | } | 1711 | } |
1596 | } | 1712 | } |
1597 | 1713 | ||
1598 | class DFA7 extends DFA { | 1714 | class DFA8 extends DFA { |
1599 | 1715 | ||
1600 | public DFA7(BaseRecognizer recognizer) { | 1716 | public DFA8(BaseRecognizer recognizer) { |
1601 | this.recognizer = recognizer; | 1717 | this.recognizer = recognizer; |
1602 | this.decisionNumber = 7; | 1718 | this.decisionNumber = 8; |
1603 | this.eot = DFA7_eot; | 1719 | this.eot = DFA8_eot; |
1604 | this.eof = DFA7_eof; | 1720 | this.eof = DFA8_eof; |
1605 | this.min = DFA7_min; | 1721 | this.min = DFA8_min; |
1606 | this.max = DFA7_max; | 1722 | this.max = DFA8_max; |
1607 | this.accept = DFA7_accept; | 1723 | this.accept = DFA8_accept; |
1608 | this.special = DFA7_special; | 1724 | this.special = DFA8_special; |
1609 | this.transition = DFA7_transition; | 1725 | this.transition = DFA8_transition; |
1610 | } | 1726 | } |
1611 | public String getDescription() { | 1727 | public String getDescription() { |
1612 | return "1318:27: ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ )"; | 1728 | return "1673:29: ( '.' ( '0' .. '9' )+ | ( '.' ( '0' .. '9' )+ )? ( 'e' | 'E' ) ( '+' | '-' )? ( '0' .. '9' )+ )"; |
1613 | } | 1729 | } |
1614 | } | 1730 | } |
1615 | static final String DFA19_eotS = | 1731 | static final String DFA20_eotS = |
1616 | "\1\uffff\1\36\1\uffff\2\36\1\uffff\1\36\1\uffff\1\34\1\36\1\53\3\36\3\uffff\2\34\2\uffff\1\72\1\34\1\uffff\3\34\2\uffff\1\36\2\uffff\1\36\1\101\1\36\1\uffff\1\36\1\104\2\uffff\2\36\2\uffff\1\36\1\110\3\36\10\uffff\1\72\5\uffff\2\36\1\uffff\1\116\1\117\1\uffff\2\36\1\122\1\uffff\5\36\2\uffff\2\36\1\uffff\13\36\1\145\1\146\1\147\3\36\1\153\3\uffff\2\36\1\156\1\uffff\1\36\1\160\1\uffff\1\36\1\uffff\4\36\1\166\1\uffff"; | 1732 | "\1\uffff\1\36\1\uffff\2\37\1\uffff\1\37\1\uffff\1\34\1\53\4\37\3\uffff\2\34\2\uffff\1\72\1\34\1\uffff\3\34\2\uffff\1\37\3\uffff\1\37\1\103\1\37\1\uffff\1\37\1\106\1\110\4\uffff\3\37\1\114\3\37\10\uffff\1\72\5\uffff\2\37\1\uffff\1\122\1\123\1\uffff\1\124\1\uffff\2\37\1\127\1\uffff\5\37\3\uffff\2\37\1\uffff\13\37\1\152\1\153\1\154\3\37\1\160\3\uffff\2\37\1\163\1\uffff\1\37\1\165\1\uffff\1\37\1\uffff\4\37\1\173\1\uffff"; |
1617 | static final String DFA19_eofS = | 1733 | static final String DFA20_eofS = |
1618 | "\167\uffff"; | 1734 | "\174\uffff"; |
1619 | static final String DFA19_minS = | 1735 | static final String DFA20_minS = |
1620 | "\1\0\1\141\1\uffff\1\155\1\146\1\uffff\1\162\1\uffff\1\135\1\141\1\76\1\156\1\157\1\141\3\uffff\2\75\2\uffff\1\56\1\101\1\uffff\2\0\1\52\2\uffff\1\143\2\uffff\1\160\1\60\1\164\1\uffff\1\164\1\60\2\uffff\1\155\1\157\2\uffff\1\144\1\60\1\141\2\160\10\uffff\1\56\5\uffff\1\153\1\157\1\uffff\2\60\1\uffff\1\142\1\153\1\60\1\uffff\1\156\1\154\1\160\1\141\1\162\2\uffff\1\144\1\165\1\uffff\1\163\1\145\1\151\1\147\1\164\1\141\1\160\1\146\1\166\1\156\1\145\3\60\1\157\1\145\1\147\1\60\3\uffff\1\162\1\154\1\60\1\uffff\1\155\1\60\1\uffff\1\141\1\uffff\1\164\1\151\1\157\1\156\1\60\1\uffff"; | 1736 | "\1\0\1\60\1\uffff\1\155\1\146\1\uffff\1\146\1\uffff\1\135\1\76\1\141\1\156\1\157\1\141\3\uffff\2\75\2\uffff\1\56\1\101\1\uffff\2\0\1\52\2\uffff\1\143\3\uffff\1\160\1\60\1\164\1\uffff\1\164\2\60\4\uffff\1\155\1\157\1\144\1\60\1\141\2\160\10\uffff\1\56\5\uffff\1\153\1\157\1\uffff\2\60\1\uffff\1\60\1\uffff\1\142\1\153\1\60\1\uffff\1\156\1\154\1\160\1\141\1\162\3\uffff\1\144\1\165\1\uffff\1\163\1\145\1\151\1\147\1\164\1\141\1\160\1\146\1\166\1\156\1\145\3\60\1\157\1\145\1\147\1\60\3\uffff\1\162\1\154\1\60\1\uffff\1\155\1\60\1\uffff\1\141\1\uffff\1\164\1\151\1\157\1\156\1\60\1\uffff"; |
1621 | static final String DFA19_maxS = | 1737 | static final String DFA20_maxS = |
1622 | "\1\uffff\1\141\1\uffff\1\156\1\146\1\uffff\1\165\1\uffff\1\135\1\157\1\76\1\163\1\162\1\141\3\uffff\2\75\2\uffff\1\145\1\172\1\uffff\2\uffff\1\57\2\uffff\1\143\2\uffff\1\160\1\172\1\164\1\uffff\1\164\1\172\2\uffff\1\155\1\157\2\uffff\1\144\1\172\1\141\2\160\10\uffff\1\145\5\uffff\1\153\1\157\1\uffff\2\172\1\uffff\1\142\1\153\1\172\1\uffff\1\156\1\154\1\160\1\141\1\162\2\uffff\1\144\1\165\1\uffff\1\163\1\145\1\151\1\147\1\164\1\141\1\160\1\146\1\166\1\156\1\145\3\172\1\157\1\145\1\147\1\172\3\uffff\1\162\1\154\1\172\1\uffff\1\155\1\172\1\uffff\1\141\1\uffff\1\164\1\151\1\157\1\156\1\172\1\uffff"; | 1738 | "\1\uffff\1\172\1\uffff\1\156\1\146\1\uffff\1\165\1\uffff\1\135\1\76\1\157\1\163\1\162\1\141\3\uffff\2\75\2\uffff\1\145\1\172\1\uffff\2\uffff\1\57\2\uffff\1\143\3\uffff\1\160\1\172\1\164\1\uffff\1\164\2\172\4\uffff\1\155\1\157\1\144\1\172\1\141\2\160\10\uffff\1\145\5\uffff\1\153\1\157\1\uffff\2\172\1\uffff\1\172\1\uffff\1\142\1\153\1\172\1\uffff\1\156\1\154\1\160\1\141\1\162\3\uffff\1\144\1\165\1\uffff\1\163\1\145\1\151\1\147\1\164\1\141\1\160\1\146\1\166\1\156\1\145\3\172\1\157\1\145\1\147\1\172\3\uffff\1\162\1\154\1\172\1\uffff\1\155\1\172\1\uffff\1\141\1\uffff\1\164\1\151\1\157\1\156\1\172\1\uffff"; |
1623 | static final String DFA19_acceptS = | 1739 | static final String DFA20_acceptS = |
1624 | "\2\uffff\1\2\2\uffff\1\5\1\uffff\1\10\6\uffff\1\21\1\22\1\23\2\uffff\1\30\1\32\2\uffff\1\34\3\uffff\1\41\1\42\1\uffff\1\34\1\2\3\uffff\1\5\2\uffff\1\10\1\11\2\uffff\1\31\1\13\5\uffff\1\21\1\22\1\23\1\26\1\27\1\30\1\32\1\33\1\uffff\1\35\1\36\1\37\1\40\1\41\2\uffff\1\6\2\uffff\1\15\3\uffff\1\25\5\uffff\1\4\1\7\2\uffff\1\14\22\uffff\1\3\1\12\1\24\3\uffff\1\1\2\uffff\1\20\1\uffff\1\17\5\uffff\1\16"; | 1740 | "\2\uffff\1\2\2\uffff\1\5\1\uffff\1\10\6\uffff\1\23\1\24\1\25\2\uffff\1\32\1\34\2\uffff\1\37\3\uffff\1\44\1\45\1\uffff\1\12\1\37\1\2\3\uffff\1\5\3\uffff\1\10\1\11\1\33\1\13\7\uffff\1\23\1\24\1\25\1\30\1\31\1\32\1\34\1\40\1\uffff\1\36\1\41\1\42\1\43\1\44\2\uffff\1\6\2\uffff\1\16\1\uffff\1\17\3\uffff\1\27\5\uffff\1\4\1\7\1\35\2\uffff\1\15\22\uffff\1\3\1\14\1\26\3\uffff\1\1\2\uffff\1\22\1\uffff\1\21\5\uffff\1\20"; |
1625 | static final String DFA19_specialS = | 1741 | static final String DFA20_specialS = |
1626 | "\1\0\27\uffff\1\2\1\1\135\uffff}>"; | 1742 | "\1\1\27\uffff\1\2\1\0\142\uffff}>"; |
1627 | static final String[] DFA19_transitionS = { | 1743 | static final String[] DFA20_transitionS = { |
1628 | "\11\34\2\33\2\34\1\33\22\34\1\33\1\34\1\30\4\34\1\31\1\16\1\20\1\24\1\21\1\17\1\34\1\23\1\32\12\25\1\22\1\2\1\34\1\12\3\34\32\27\1\10\2\34\1\26\1\27\1\34\1\13\1\27\1\4\5\27\1\3\2\27\1\11\1\15\1\27\1\6\1\1\3\27\1\14\6\27\1\5\1\34\1\7\uff82\34", | 1744 | "\11\34\2\33\2\34\1\33\22\34\1\33\1\34\1\30\4\34\1\31\1\16\1\20\1\24\1\21\1\17\1\34\1\23\1\32\12\25\1\22\1\2\1\34\1\11\3\34\32\27\1\10\2\34\1\26\1\27\1\34\1\13\1\27\1\4\5\27\1\3\2\27\1\12\1\15\1\27\1\6\1\1\3\27\1\14\6\27\1\5\1\34\1\7\uff82\34", |
1629 | "\1\35", | 1745 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\1\35\31\37", |
1630 | "", | 1746 | "", |
1631 | "\1\40\1\41", | 1747 | "\1\41\1\42", |
1632 | "\1\42", | 1748 | "\1\43", |
1633 | "", | 1749 | "", |
1634 | "\1\45\2\uffff\1\44", | 1750 | "\1\47\13\uffff\1\46\2\uffff\1\45", |
1635 | "", | 1751 | "", |
1636 | "\1\47", | 1752 | "\1\51", |
1637 | "\1\50\15\uffff\1\51", | ||
1638 | "\1\52", | 1753 | "\1\52", |
1639 | "\1\54\4\uffff\1\55", | 1754 | "\1\54\15\uffff\1\55", |
1640 | "\1\57\2\uffff\1\56", | 1755 | "\1\56\4\uffff\1\57", |
1641 | "\1\60", | 1756 | "\1\61\2\uffff\1\60", |
1757 | "\1\62", | ||
1758 | "", | ||
1642 | "", | 1759 | "", |
1643 | "", | 1760 | "", |
1761 | "\1\66", | ||
1762 | "\1\67", | ||
1644 | "", | 1763 | "", |
1645 | "\1\64", | ||
1646 | "\1\65", | ||
1647 | "", | 1764 | "", |
1765 | "\1\74\1\uffff\12\73\13\uffff\1\74\37\uffff\1\74", | ||
1766 | "\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1648 | "", | 1767 | "", |
1649 | "\1\70\1\uffff\12\71\13\uffff\1\70\37\uffff\1\70", | 1768 | "\0\75", |
1650 | "\32\36\4\uffff\1\36\1\uffff\32\36", | 1769 | "\0\75", |
1770 | "\1\76\4\uffff\1\77", | ||
1651 | "", | 1771 | "", |
1652 | "\0\73", | ||
1653 | "\0\73", | ||
1654 | "\1\74\4\uffff\1\75", | ||
1655 | "", | 1772 | "", |
1773 | "\1\101", | ||
1656 | "", | 1774 | "", |
1657 | "\1\77", | ||
1658 | "", | 1775 | "", |
1659 | "", | 1776 | "", |
1660 | "\1\100", | ||
1661 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1662 | "\1\102", | 1777 | "\1\102", |
1778 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1779 | "\1\104", | ||
1663 | "", | 1780 | "", |
1664 | "\1\103", | 1781 | "\1\105", |
1665 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | 1782 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
1783 | "\12\107\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1666 | "", | 1784 | "", |
1667 | "", | 1785 | "", |
1668 | "\1\105", | ||
1669 | "\1\106", | ||
1670 | "", | 1786 | "", |
1671 | "", | 1787 | "", |
1672 | "\1\107", | ||
1673 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1674 | "\1\111", | 1788 | "\1\111", |
1675 | "\1\112", | 1789 | "\1\112", |
1676 | "\1\113", | 1790 | "\1\113", |
1791 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1792 | "\1\115", | ||
1793 | "\1\116", | ||
1794 | "\1\117", | ||
1677 | "", | 1795 | "", |
1678 | "", | 1796 | "", |
1679 | "", | 1797 | "", |
@@ -1682,183 +1800,186 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1682 | "", | 1800 | "", |
1683 | "", | 1801 | "", |
1684 | "", | 1802 | "", |
1685 | "\1\70\1\uffff\12\71\13\uffff\1\70\37\uffff\1\70", | 1803 | "\1\74\1\uffff\12\73\13\uffff\1\74\37\uffff\1\74", |
1686 | "", | ||
1687 | "", | ||
1688 | "", | 1804 | "", |
1689 | "", | 1805 | "", |
1690 | "", | 1806 | "", |
1691 | "\1\114", | ||
1692 | "\1\115", | ||
1693 | "", | 1807 | "", |
1694 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1695 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1696 | "", | 1808 | "", |
1697 | "\1\120", | 1809 | "\1\120", |
1698 | "\1\121", | 1810 | "\1\121", |
1699 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | ||
1700 | "", | 1811 | "", |
1701 | "\1\123", | 1812 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
1702 | "\1\124", | 1813 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
1814 | "", | ||
1815 | "\12\107\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1816 | "", | ||
1703 | "\1\125", | 1817 | "\1\125", |
1704 | "\1\126", | 1818 | "\1\126", |
1705 | "\1\127", | 1819 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
1706 | "", | ||
1707 | "", | 1820 | "", |
1708 | "\1\130", | 1821 | "\1\130", |
1709 | "\1\131", | 1822 | "\1\131", |
1710 | "", | ||
1711 | "\1\132", | 1823 | "\1\132", |
1712 | "\1\133", | 1824 | "\1\133", |
1713 | "\1\134", | 1825 | "\1\134", |
1826 | "", | ||
1827 | "", | ||
1828 | "", | ||
1714 | "\1\135", | 1829 | "\1\135", |
1715 | "\1\136", | 1830 | "\1\136", |
1831 | "", | ||
1716 | "\1\137", | 1832 | "\1\137", |
1717 | "\1\140", | 1833 | "\1\140", |
1718 | "\1\141", | 1834 | "\1\141", |
1719 | "\1\142", | 1835 | "\1\142", |
1720 | "\1\143", | 1836 | "\1\143", |
1721 | "\1\144", | 1837 | "\1\144", |
1722 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | 1838 | "\1\145", |
1723 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | 1839 | "\1\146", |
1724 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | 1840 | "\1\147", |
1725 | "\1\150", | 1841 | "\1\150", |
1726 | "\1\151", | 1842 | "\1\151", |
1727 | "\1\152", | 1843 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
1728 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | 1844 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
1729 | "", | 1845 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
1730 | "", | ||
1731 | "", | ||
1732 | "\1\154", | ||
1733 | "\1\155", | 1846 | "\1\155", |
1734 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | 1847 | "\1\156", |
1735 | "", | ||
1736 | "\1\157", | 1848 | "\1\157", |
1737 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | 1849 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
1738 | "", | 1850 | "", |
1739 | "\1\161", | ||
1740 | "", | 1851 | "", |
1852 | "", | ||
1853 | "\1\161", | ||
1741 | "\1\162", | 1854 | "\1\162", |
1742 | "\1\163", | 1855 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
1856 | "", | ||
1743 | "\1\164", | 1857 | "\1\164", |
1744 | "\1\165", | 1858 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", |
1745 | "\12\36\7\uffff\32\36\4\uffff\1\36\1\uffff\32\36", | 1859 | "", |
1860 | "\1\166", | ||
1861 | "", | ||
1862 | "\1\167", | ||
1863 | "\1\170", | ||
1864 | "\1\171", | ||
1865 | "\1\172", | ||
1866 | "\12\37\7\uffff\32\37\4\uffff\1\37\1\uffff\32\37", | ||
1746 | "" | 1867 | "" |
1747 | }; | 1868 | }; |
1748 | 1869 | ||
1749 | static final short[] DFA19_eot = DFA.unpackEncodedString(DFA19_eotS); | 1870 | static final short[] DFA20_eot = DFA.unpackEncodedString(DFA20_eotS); |
1750 | static final short[] DFA19_eof = DFA.unpackEncodedString(DFA19_eofS); | 1871 | static final short[] DFA20_eof = DFA.unpackEncodedString(DFA20_eofS); |
1751 | static final char[] DFA19_min = DFA.unpackEncodedStringToUnsignedChars(DFA19_minS); | 1872 | static final char[] DFA20_min = DFA.unpackEncodedStringToUnsignedChars(DFA20_minS); |
1752 | static final char[] DFA19_max = DFA.unpackEncodedStringToUnsignedChars(DFA19_maxS); | 1873 | static final char[] DFA20_max = DFA.unpackEncodedStringToUnsignedChars(DFA20_maxS); |
1753 | static final short[] DFA19_accept = DFA.unpackEncodedString(DFA19_acceptS); | 1874 | static final short[] DFA20_accept = DFA.unpackEncodedString(DFA20_acceptS); |
1754 | static final short[] DFA19_special = DFA.unpackEncodedString(DFA19_specialS); | 1875 | static final short[] DFA20_special = DFA.unpackEncodedString(DFA20_specialS); |
1755 | static final short[][] DFA19_transition; | 1876 | static final short[][] DFA20_transition; |
1756 | 1877 | ||
1757 | static { | 1878 | static { |
1758 | int numStates = DFA19_transitionS.length; | 1879 | int numStates = DFA20_transitionS.length; |
1759 | DFA19_transition = new short[numStates][]; | 1880 | DFA20_transition = new short[numStates][]; |
1760 | for (int i=0; i<numStates; i++) { | 1881 | for (int i=0; i<numStates; i++) { |
1761 | DFA19_transition[i] = DFA.unpackEncodedString(DFA19_transitionS[i]); | 1882 | DFA20_transition[i] = DFA.unpackEncodedString(DFA20_transitionS[i]); |
1762 | } | 1883 | } |
1763 | } | 1884 | } |
1764 | 1885 | ||
1765 | class DFA19 extends DFA { | 1886 | class DFA20 extends DFA { |
1766 | 1887 | ||
1767 | public DFA19(BaseRecognizer recognizer) { | 1888 | public DFA20(BaseRecognizer recognizer) { |
1768 | this.recognizer = recognizer; | 1889 | this.recognizer = recognizer; |
1769 | this.decisionNumber = 19; | 1890 | this.decisionNumber = 20; |
1770 | this.eot = DFA19_eot; | 1891 | this.eot = DFA20_eot; |
1771 | this.eof = DFA19_eof; | 1892 | this.eof = DFA20_eof; |
1772 | this.min = DFA19_min; | 1893 | this.min = DFA20_min; |
1773 | this.max = DFA19_max; | 1894 | this.max = DFA20_max; |
1774 | this.accept = DFA19_accept; | 1895 | this.accept = DFA20_accept; |
1775 | this.special = DFA19_special; | 1896 | this.special = DFA20_special; |
1776 | this.transition = DFA19_transition; | 1897 | this.transition = DFA20_transition; |
1777 | } | 1898 | } |
1778 | public String getDescription() { | 1899 | public String getDescription() { |
1779 | return "1:1: Tokens : ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | RULE_DOULBE | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER );"; | 1900 | return "1:1: Tokens : ( T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | RULE_OF_INT | RULE_T_DOUBLE | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER );"; |
1780 | } | 1901 | } |
1781 | public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { | 1902 | public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { |
1782 | IntStream input = _input; | 1903 | IntStream input = _input; |
1783 | int _s = s; | 1904 | int _s = s; |
1784 | switch ( s ) { | 1905 | switch ( s ) { |
1785 | case 0 : | 1906 | case 0 : |
1786 | int LA19_0 = input.LA(1); | 1907 | int LA20_25 = input.LA(1); |
1787 | 1908 | ||
1788 | s = -1; | 1909 | s = -1; |
1789 | if ( (LA19_0=='p') ) {s = 1;} | 1910 | if ( ((LA20_25>='\u0000' && LA20_25<='\uFFFF')) ) {s = 61;} |
1790 | 1911 | ||
1791 | else if ( (LA19_0==';') ) {s = 2;} | 1912 | else s = 28; |
1792 | 1913 | ||
1793 | else if ( (LA19_0=='i') ) {s = 3;} | 1914 | if ( s>=0 ) return s; |
1915 | break; | ||
1916 | case 1 : | ||
1917 | int LA20_0 = input.LA(1); | ||
1794 | 1918 | ||
1795 | else if ( (LA19_0=='c') ) {s = 4;} | 1919 | s = -1; |
1920 | if ( (LA20_0=='p') ) {s = 1;} | ||
1796 | 1921 | ||
1797 | else if ( (LA19_0=='{') ) {s = 5;} | 1922 | else if ( (LA20_0==';') ) {s = 2;} |
1798 | 1923 | ||
1799 | else if ( (LA19_0=='o') ) {s = 6;} | 1924 | else if ( (LA20_0=='i') ) {s = 3;} |
1800 | 1925 | ||
1801 | else if ( (LA19_0=='}') ) {s = 7;} | 1926 | else if ( (LA20_0=='c') ) {s = 4;} |
1802 | 1927 | ||
1803 | else if ( (LA19_0=='[') ) {s = 8;} | 1928 | else if ( (LA20_0=='{') ) {s = 5;} |
1804 | 1929 | ||
1805 | else if ( (LA19_0=='l') ) {s = 9;} | 1930 | else if ( (LA20_0=='o') ) {s = 6;} |
1806 | 1931 | ||
1807 | else if ( (LA19_0=='=') ) {s = 10;} | 1932 | else if ( (LA20_0=='}') ) {s = 7;} |
1808 | 1933 | ||
1809 | else if ( (LA19_0=='a') ) {s = 11;} | 1934 | else if ( (LA20_0=='[') ) {s = 8;} |
1810 | 1935 | ||
1811 | else if ( (LA19_0=='t') ) {s = 12;} | 1936 | else if ( (LA20_0=='=') ) {s = 9;} |
1812 | 1937 | ||
1813 | else if ( (LA19_0=='m') ) {s = 13;} | 1938 | else if ( (LA20_0=='l') ) {s = 10;} |
1814 | 1939 | ||
1815 | else if ( (LA19_0=='(') ) {s = 14;} | 1940 | else if ( (LA20_0=='a') ) {s = 11;} |
1816 | 1941 | ||
1817 | else if ( (LA19_0==',') ) {s = 15;} | 1942 | else if ( (LA20_0=='t') ) {s = 12;} |
1818 | 1943 | ||
1819 | else if ( (LA19_0==')') ) {s = 16;} | 1944 | else if ( (LA20_0=='m') ) {s = 13;} |
1820 | 1945 | ||
1821 | else if ( (LA19_0=='+') ) {s = 17;} | 1946 | else if ( (LA20_0=='(') ) {s = 14;} |
1822 | 1947 | ||
1823 | else if ( (LA19_0==':') ) {s = 18;} | 1948 | else if ( (LA20_0==',') ) {s = 15;} |
1824 | 1949 | ||
1825 | else if ( (LA19_0=='.') ) {s = 19;} | 1950 | else if ( (LA20_0==')') ) {s = 16;} |
1826 | 1951 | ||
1827 | else if ( (LA19_0=='*') ) {s = 20;} | 1952 | else if ( (LA20_0=='+') ) {s = 17;} |
1828 | 1953 | ||
1829 | else if ( ((LA19_0>='0' && LA19_0<='9')) ) {s = 21;} | 1954 | else if ( (LA20_0==':') ) {s = 18;} |
1830 | 1955 | ||
1831 | else if ( (LA19_0=='^') ) {s = 22;} | 1956 | else if ( (LA20_0=='.') ) {s = 19;} |
1832 | 1957 | ||
1833 | else if ( ((LA19_0>='A' && LA19_0<='Z')||LA19_0=='_'||LA19_0=='b'||(LA19_0>='d' && LA19_0<='h')||(LA19_0>='j' && LA19_0<='k')||LA19_0=='n'||(LA19_0>='q' && LA19_0<='s')||(LA19_0>='u' && LA19_0<='z')) ) {s = 23;} | 1958 | else if ( (LA20_0=='*') ) {s = 20;} |
1834 | 1959 | ||
1835 | else if ( (LA19_0=='\"') ) {s = 24;} | 1960 | else if ( ((LA20_0>='0' && LA20_0<='9')) ) {s = 21;} |
1836 | 1961 | ||
1837 | else if ( (LA19_0=='\'') ) {s = 25;} | 1962 | else if ( (LA20_0=='^') ) {s = 22;} |
1838 | 1963 | ||
1839 | else if ( (LA19_0=='/') ) {s = 26;} | 1964 | else if ( ((LA20_0>='A' && LA20_0<='Z')||LA20_0=='_'||LA20_0=='b'||(LA20_0>='d' && LA20_0<='h')||(LA20_0>='j' && LA20_0<='k')||LA20_0=='n'||(LA20_0>='q' && LA20_0<='s')||(LA20_0>='u' && LA20_0<='z')) ) {s = 23;} |
1840 | 1965 | ||
1841 | else if ( ((LA19_0>='\t' && LA19_0<='\n')||LA19_0=='\r'||LA19_0==' ') ) {s = 27;} | 1966 | else if ( (LA20_0=='\"') ) {s = 24;} |
1842 | 1967 | ||
1843 | else if ( ((LA19_0>='\u0000' && LA19_0<='\b')||(LA19_0>='\u000B' && LA19_0<='\f')||(LA19_0>='\u000E' && LA19_0<='\u001F')||LA19_0=='!'||(LA19_0>='#' && LA19_0<='&')||LA19_0=='-'||LA19_0=='<'||(LA19_0>='>' && LA19_0<='@')||(LA19_0>='\\' && LA19_0<=']')||LA19_0=='`'||LA19_0=='|'||(LA19_0>='~' && LA19_0<='\uFFFF')) ) {s = 28;} | 1968 | else if ( (LA20_0=='\'') ) {s = 25;} |
1844 | 1969 | ||
1845 | if ( s>=0 ) return s; | 1970 | else if ( (LA20_0=='/') ) {s = 26;} |
1846 | break; | ||
1847 | case 1 : | ||
1848 | int LA19_25 = input.LA(1); | ||
1849 | 1971 | ||
1850 | s = -1; | 1972 | else if ( ((LA20_0>='\t' && LA20_0<='\n')||LA20_0=='\r'||LA20_0==' ') ) {s = 27;} |
1851 | if ( ((LA19_25>='\u0000' && LA19_25<='\uFFFF')) ) {s = 59;} | ||
1852 | 1973 | ||
1853 | else s = 28; | 1974 | else if ( ((LA20_0>='\u0000' && LA20_0<='\b')||(LA20_0>='\u000B' && LA20_0<='\f')||(LA20_0>='\u000E' && LA20_0<='\u001F')||LA20_0=='!'||(LA20_0>='#' && LA20_0<='&')||LA20_0=='-'||LA20_0=='<'||(LA20_0>='>' && LA20_0<='@')||(LA20_0>='\\' && LA20_0<=']')||LA20_0=='`'||LA20_0=='|'||(LA20_0>='~' && LA20_0<='\uFFFF')) ) {s = 28;} |
1854 | 1975 | ||
1855 | if ( s>=0 ) return s; | 1976 | if ( s>=0 ) return s; |
1856 | break; | 1977 | break; |
1857 | case 2 : | 1978 | case 2 : |
1858 | int LA19_24 = input.LA(1); | 1979 | int LA20_24 = input.LA(1); |
1859 | 1980 | ||
1860 | s = -1; | 1981 | s = -1; |
1861 | if ( ((LA19_24>='\u0000' && LA19_24<='\uFFFF')) ) {s = 59;} | 1982 | if ( ((LA20_24>='\u0000' && LA20_24<='\uFFFF')) ) {s = 61;} |
1862 | 1983 | ||
1863 | else s = 28; | 1984 | else s = 28; |
1864 | 1985 | ||
@@ -1866,7 +1987,7 @@ public class InternalCftLanguageLexer extends Lexer { | |||
1866 | break; | 1987 | break; |
1867 | } | 1988 | } |
1868 | NoViableAltException nvae = | 1989 | NoViableAltException nvae = |
1869 | new NoViableAltException(getDescription(), 19, _s, input); | 1990 | new NoViableAltException(getDescription(), 20, _s, input); |
1870 | error(nvae); | 1991 | error(nvae); |
1871 | throw nvae; | 1992 | throw nvae; |
1872 | } | 1993 | } |
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java index 29c15563..4727763e 100644 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/parser/antlr/internal/InternalCftLanguageParser.java | |||
@@ -21,19 +21,21 @@ import java.util.ArrayList; | |||
21 | @SuppressWarnings("all") | 21 | @SuppressWarnings("all") |
22 | public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | 22 | public class InternalCftLanguageParser extends AbstractInternalAntlrParser { |
23 | public static final String[] tokenNames = new String[] { | 23 | public static final String[] tokenNames = new String[] { |
24 | "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_ID", "RULE_DOULBE", "RULE_INT", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'package'", "';'", "'import'", "'cft'", "'{'", "'in'", "'out'", "'}'", "'[]'", "'lambda'", "'='", "'and'", "'or'", "'transformation'", "'toplevel'", "'mapping'", "'('", "','", "')'", "'lookup'", "'as'", "'+='", "':='", "'.'", "'=>'", "'*'" | 24 | "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_INT", "RULE_OF_INT", "RULE_ID", "RULE_T_DOUBLE", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'package'", "';'", "'import'", "'cft'", "'{'", "'in'", "'out'", "'}'", "'[]'", "'p'", "'='", "'lambda'", "'and'", "'or'", "'of'", "'transformation'", "'toplevel'", "'mapping'", "'('", "','", "')'", "'lookup'", "'as'", "'+='", "':='", "'.'", "'=>'", "'*'" |
25 | }; | 25 | }; |
26 | public static final int RULE_STRING=7; | 26 | public static final int RULE_STRING=8; |
27 | public static final int RULE_SL_COMMENT=9; | 27 | public static final int RULE_SL_COMMENT=10; |
28 | public static final int T__19=19; | 28 | public static final int T__19=19; |
29 | public static final int T__15=15; | 29 | public static final int T__15=15; |
30 | public static final int T__37=37; | 30 | public static final int T__37=37; |
31 | public static final int T__16=16; | 31 | public static final int T__16=16; |
32 | public static final int T__38=38; | ||
32 | public static final int T__17=17; | 33 | public static final int T__17=17; |
34 | public static final int T__39=39; | ||
33 | public static final int T__18=18; | 35 | public static final int T__18=18; |
34 | public static final int T__33=33; | 36 | public static final int T__33=33; |
35 | public static final int T__12=12; | ||
36 | public static final int T__34=34; | 37 | public static final int T__34=34; |
38 | public static final int RULE_T_DOUBLE=7; | ||
37 | public static final int T__13=13; | 39 | public static final int T__13=13; |
38 | public static final int T__35=35; | 40 | public static final int T__35=35; |
39 | public static final int T__14=14; | 41 | public static final int T__14=14; |
@@ -42,20 +44,21 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
42 | public static final int T__30=30; | 44 | public static final int T__30=30; |
43 | public static final int T__31=31; | 45 | public static final int T__31=31; |
44 | public static final int T__32=32; | 46 | public static final int T__32=32; |
45 | public static final int RULE_ID=4; | 47 | public static final int RULE_OF_INT=5; |
46 | public static final int RULE_WS=10; | 48 | public static final int RULE_ID=6; |
47 | public static final int RULE_DOULBE=5; | 49 | public static final int RULE_WS=11; |
48 | public static final int RULE_ANY_OTHER=11; | 50 | public static final int RULE_ANY_OTHER=12; |
49 | public static final int T__26=26; | 51 | public static final int T__26=26; |
50 | public static final int T__27=27; | 52 | public static final int T__27=27; |
51 | public static final int T__28=28; | 53 | public static final int T__28=28; |
52 | public static final int RULE_INT=6; | 54 | public static final int RULE_INT=4; |
53 | public static final int T__29=29; | 55 | public static final int T__29=29; |
54 | public static final int T__22=22; | 56 | public static final int T__22=22; |
55 | public static final int RULE_ML_COMMENT=8; | 57 | public static final int RULE_ML_COMMENT=9; |
56 | public static final int T__23=23; | 58 | public static final int T__23=23; |
57 | public static final int T__24=24; | 59 | public static final int T__24=24; |
58 | public static final int T__25=25; | 60 | public static final int T__25=25; |
61 | public static final int T__40=40; | ||
59 | public static final int T__20=20; | 62 | public static final int T__20=20; |
60 | public static final int T__21=21; | 63 | public static final int T__21=21; |
61 | 64 | ||
@@ -160,7 +163,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
160 | // InternalCftLanguage.g:78:2: (otherlv_0= 'package' ( (lv_packageName_1_0= ruleQualifiedName ) ) (otherlv_2= ';' )? ( (lv_imports_3_0= ruleImportDeclaration ) )* ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* ) | 163 | // InternalCftLanguage.g:78:2: (otherlv_0= 'package' ( (lv_packageName_1_0= ruleQualifiedName ) ) (otherlv_2= ';' )? ( (lv_imports_3_0= ruleImportDeclaration ) )* ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* ) |
161 | // InternalCftLanguage.g:79:3: otherlv_0= 'package' ( (lv_packageName_1_0= ruleQualifiedName ) ) (otherlv_2= ';' )? ( (lv_imports_3_0= ruleImportDeclaration ) )* ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* | 164 | // InternalCftLanguage.g:79:3: otherlv_0= 'package' ( (lv_packageName_1_0= ruleQualifiedName ) ) (otherlv_2= ';' )? ( (lv_imports_3_0= ruleImportDeclaration ) )* ( ( (lv_componentDefinitions_4_0= ruleComponentDefinition ) ) | ( (lv_transformationDefinitions_5_0= ruleTransformationDefinition ) ) )* |
162 | { | 165 | { |
163 | otherlv_0=(Token)match(input,12,FOLLOW_3); | 166 | otherlv_0=(Token)match(input,13,FOLLOW_3); |
164 | 167 | ||
165 | newLeafNode(otherlv_0, grammarAccess.getCftModelAccess().getPackageKeyword_0()); | 168 | newLeafNode(otherlv_0, grammarAccess.getCftModelAccess().getPackageKeyword_0()); |
166 | 169 | ||
@@ -199,14 +202,14 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
199 | int alt1=2; | 202 | int alt1=2; |
200 | int LA1_0 = input.LA(1); | 203 | int LA1_0 = input.LA(1); |
201 | 204 | ||
202 | if ( (LA1_0==13) ) { | 205 | if ( (LA1_0==14) ) { |
203 | alt1=1; | 206 | alt1=1; |
204 | } | 207 | } |
205 | switch (alt1) { | 208 | switch (alt1) { |
206 | case 1 : | 209 | case 1 : |
207 | // InternalCftLanguage.g:103:4: otherlv_2= ';' | 210 | // InternalCftLanguage.g:103:4: otherlv_2= ';' |
208 | { | 211 | { |
209 | otherlv_2=(Token)match(input,13,FOLLOW_5); | 212 | otherlv_2=(Token)match(input,14,FOLLOW_5); |
210 | 213 | ||
211 | newLeafNode(otherlv_2, grammarAccess.getCftModelAccess().getSemicolonKeyword_2()); | 214 | newLeafNode(otherlv_2, grammarAccess.getCftModelAccess().getSemicolonKeyword_2()); |
212 | 215 | ||
@@ -222,7 +225,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
222 | int alt2=2; | 225 | int alt2=2; |
223 | int LA2_0 = input.LA(1); | 226 | int LA2_0 = input.LA(1); |
224 | 227 | ||
225 | if ( (LA2_0==14) ) { | 228 | if ( (LA2_0==15) ) { |
226 | alt2=1; | 229 | alt2=1; |
227 | } | 230 | } |
228 | 231 | ||
@@ -271,10 +274,10 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
271 | int alt3=3; | 274 | int alt3=3; |
272 | int LA3_0 = input.LA(1); | 275 | int LA3_0 = input.LA(1); |
273 | 276 | ||
274 | if ( (LA3_0==15) ) { | 277 | if ( (LA3_0==16) ) { |
275 | alt3=1; | 278 | alt3=1; |
276 | } | 279 | } |
277 | else if ( (LA3_0==25) ) { | 280 | else if ( (LA3_0==28) ) { |
278 | alt3=2; | 281 | alt3=2; |
279 | } | 282 | } |
280 | 283 | ||
@@ -438,7 +441,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
438 | // InternalCftLanguage.g:186:2: (otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? ) | 441 | // InternalCftLanguage.g:186:2: (otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? ) |
439 | // InternalCftLanguage.g:187:3: otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? | 442 | // InternalCftLanguage.g:187:3: otherlv_0= 'import' ( (lv_importedNamespace_1_0= ruleQualifiedNameWithWildcard ) ) (otherlv_2= ';' )? |
440 | { | 443 | { |
441 | otherlv_0=(Token)match(input,14,FOLLOW_3); | 444 | otherlv_0=(Token)match(input,15,FOLLOW_3); |
442 | 445 | ||
443 | newLeafNode(otherlv_0, grammarAccess.getImportDeclarationAccess().getImportKeyword_0()); | 446 | newLeafNode(otherlv_0, grammarAccess.getImportDeclarationAccess().getImportKeyword_0()); |
444 | 447 | ||
@@ -477,14 +480,14 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
477 | int alt4=2; | 480 | int alt4=2; |
478 | int LA4_0 = input.LA(1); | 481 | int LA4_0 = input.LA(1); |
479 | 482 | ||
480 | if ( (LA4_0==13) ) { | 483 | if ( (LA4_0==14) ) { |
481 | alt4=1; | 484 | alt4=1; |
482 | } | 485 | } |
483 | switch (alt4) { | 486 | switch (alt4) { |
484 | case 1 : | 487 | case 1 : |
485 | // InternalCftLanguage.g:211:4: otherlv_2= ';' | 488 | // InternalCftLanguage.g:211:4: otherlv_2= ';' |
486 | { | 489 | { |
487 | otherlv_2=(Token)match(input,13,FOLLOW_2); | 490 | otherlv_2=(Token)match(input,14,FOLLOW_2); |
488 | 491 | ||
489 | newLeafNode(otherlv_2, grammarAccess.getImportDeclarationAccess().getSemicolonKeyword_2()); | 492 | newLeafNode(otherlv_2, grammarAccess.getImportDeclarationAccess().getSemicolonKeyword_2()); |
490 | 493 | ||
@@ -553,20 +556,20 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
553 | 556 | ||
554 | 557 | ||
555 | // $ANTLR start "ruleComponentDefinition" | 558 | // $ANTLR start "ruleComponentDefinition" |
556 | // InternalCftLanguage.g:227:1: ruleComponentDefinition returns [EObject current=null] : (otherlv_0= 'cft' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) ; | 559 | // InternalCftLanguage.g:227:1: ruleComponentDefinition returns [EObject current=null] : (otherlv_0= 'cft' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) ; |
557 | public final EObject ruleComponentDefinition() throws RecognitionException { | 560 | public final EObject ruleComponentDefinition() throws RecognitionException { |
558 | EObject current = null; | 561 | EObject current = null; |
559 | 562 | ||
560 | Token otherlv_0=null; | 563 | Token otherlv_0=null; |
561 | Token lv_name_1_0=null; | ||
562 | Token otherlv_2=null; | 564 | Token otherlv_2=null; |
563 | Token otherlv_4=null; | 565 | Token otherlv_4=null; |
564 | Token otherlv_6=null; | 566 | Token otherlv_6=null; |
565 | Token otherlv_7=null; | 567 | Token otherlv_7=null; |
566 | Token otherlv_8=null; | ||
567 | Token otherlv_9=null; | 568 | Token otherlv_9=null; |
568 | Token otherlv_11=null; | 569 | Token otherlv_11=null; |
569 | Token otherlv_12=null; | 570 | Token otherlv_12=null; |
571 | AntlrDatatypeRuleToken lv_name_1_0 = null; | ||
572 | |||
570 | EObject lv_inputEvents_5_0 = null; | 573 | EObject lv_inputEvents_5_0 = null; |
571 | 574 | ||
572 | EObject lv_eventDefinitions_10_0 = null; | 575 | EObject lv_eventDefinitions_10_0 = null; |
@@ -576,35 +579,40 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
576 | enterRule(); | 579 | enterRule(); |
577 | 580 | ||
578 | try { | 581 | try { |
579 | // InternalCftLanguage.g:233:2: ( (otherlv_0= 'cft' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) ) | 582 | // InternalCftLanguage.g:233:2: ( (otherlv_0= 'cft' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) ) |
580 | // InternalCftLanguage.g:234:2: (otherlv_0= 'cft' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) | 583 | // InternalCftLanguage.g:234:2: (otherlv_0= 'cft' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) |
581 | { | 584 | { |
582 | // InternalCftLanguage.g:234:2: (otherlv_0= 'cft' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) | 585 | // InternalCftLanguage.g:234:2: (otherlv_0= 'cft' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' ) |
583 | // InternalCftLanguage.g:235:3: otherlv_0= 'cft' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' | 586 | // InternalCftLanguage.g:235:3: otherlv_0= 'cft' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* otherlv_12= '}' |
584 | { | 587 | { |
585 | otherlv_0=(Token)match(input,15,FOLLOW_3); | 588 | otherlv_0=(Token)match(input,16,FOLLOW_3); |
586 | 589 | ||
587 | newLeafNode(otherlv_0, grammarAccess.getComponentDefinitionAccess().getCftKeyword_0()); | 590 | newLeafNode(otherlv_0, grammarAccess.getComponentDefinitionAccess().getCftKeyword_0()); |
588 | 591 | ||
589 | // InternalCftLanguage.g:239:3: ( (lv_name_1_0= RULE_ID ) ) | 592 | // InternalCftLanguage.g:239:3: ( (lv_name_1_0= ruleValidId ) ) |
590 | // InternalCftLanguage.g:240:4: (lv_name_1_0= RULE_ID ) | 593 | // InternalCftLanguage.g:240:4: (lv_name_1_0= ruleValidId ) |
591 | { | 594 | { |
592 | // InternalCftLanguage.g:240:4: (lv_name_1_0= RULE_ID ) | 595 | // InternalCftLanguage.g:240:4: (lv_name_1_0= ruleValidId ) |
593 | // InternalCftLanguage.g:241:5: lv_name_1_0= RULE_ID | 596 | // InternalCftLanguage.g:241:5: lv_name_1_0= ruleValidId |
594 | { | 597 | { |
595 | lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_8); | ||
596 | 598 | ||
597 | newLeafNode(lv_name_1_0, grammarAccess.getComponentDefinitionAccess().getNameIDTerminalRuleCall_1_0()); | 599 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getNameValidIdParserRuleCall_1_0()); |
598 | 600 | ||
601 | pushFollow(FOLLOW_8); | ||
602 | lv_name_1_0=ruleValidId(); | ||
603 | |||
604 | state._fsp--; | ||
605 | |||
599 | 606 | ||
600 | if (current==null) { | 607 | if (current==null) { |
601 | current = createModelElement(grammarAccess.getComponentDefinitionRule()); | 608 | current = createModelElementForParent(grammarAccess.getComponentDefinitionRule()); |
602 | } | 609 | } |
603 | setWithLastConsumed( | 610 | set( |
604 | current, | 611 | current, |
605 | "name", | 612 | "name", |
606 | lv_name_1_0, | 613 | lv_name_1_0, |
607 | "org.eclipse.xtext.common.Terminals.ID"); | 614 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
615 | afterParserOrEnumRuleCall(); | ||
608 | 616 | ||
609 | 617 | ||
610 | } | 618 | } |
@@ -612,82 +620,82 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
612 | 620 | ||
613 | } | 621 | } |
614 | 622 | ||
615 | otherlv_2=(Token)match(input,16,FOLLOW_9); | 623 | otherlv_2=(Token)match(input,17,FOLLOW_9); |
616 | 624 | ||
617 | newLeafNode(otherlv_2, grammarAccess.getComponentDefinitionAccess().getLeftCurlyBracketKeyword_2()); | 625 | newLeafNode(otherlv_2, grammarAccess.getComponentDefinitionAccess().getLeftCurlyBracketKeyword_2()); |
618 | 626 | ||
619 | // InternalCftLanguage.g:261:3: ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) | 627 | // InternalCftLanguage.g:262:3: ( ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) ) |
620 | // InternalCftLanguage.g:262:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) | 628 | // InternalCftLanguage.g:263:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) |
621 | { | 629 | { |
622 | // InternalCftLanguage.g:262:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) ) | 630 | // InternalCftLanguage.g:263:4: ( ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) ) |
623 | // InternalCftLanguage.g:263:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) | 631 | // InternalCftLanguage.g:264:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) |
624 | { | 632 | { |
625 | 633 | ||
626 | getUnorderedGroupHelper().enter(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); | 634 | getUnorderedGroupHelper().enter(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3()); |
627 | 635 | ||
628 | // InternalCftLanguage.g:266:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* ) | 636 | // InternalCftLanguage.g:267:5: ( ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* ) |
629 | // InternalCftLanguage.g:267:6: ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* | 637 | // InternalCftLanguage.g:268:6: ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* |
630 | { | 638 | { |
631 | // InternalCftLanguage.g:267:6: ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) )* | 639 | // InternalCftLanguage.g:268:6: ( ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) )* |
632 | loop7: | 640 | loop7: |
633 | do { | 641 | do { |
634 | int alt7=3; | 642 | int alt7=3; |
635 | int LA7_0 = input.LA(1); | 643 | int LA7_0 = input.LA(1); |
636 | 644 | ||
637 | if ( LA7_0 == 17 && getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0) ) { | 645 | if ( LA7_0 == 18 && getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0) ) { |
638 | alt7=1; | 646 | alt7=1; |
639 | } | 647 | } |
640 | else if ( LA7_0 == 18 && getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1) ) { | 648 | else if ( LA7_0 == 19 && getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1) ) { |
641 | alt7=2; | 649 | alt7=2; |
642 | } | 650 | } |
643 | 651 | ||
644 | 652 | ||
645 | switch (alt7) { | 653 | switch (alt7) { |
646 | case 1 : | 654 | case 1 : |
647 | // InternalCftLanguage.g:268:4: ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | 655 | // InternalCftLanguage.g:269:4: ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) |
648 | { | 656 | { |
649 | // InternalCftLanguage.g:268:4: ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) | 657 | // InternalCftLanguage.g:269:4: ({...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) ) |
650 | // InternalCftLanguage.g:269:5: {...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) | 658 | // InternalCftLanguage.g:270:5: {...}? => ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) |
651 | { | 659 | { |
652 | if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0) ) { | 660 | if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0) ) { |
653 | throw new FailedPredicateException(input, "ruleComponentDefinition", "getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0)"); | 661 | throw new FailedPredicateException(input, "ruleComponentDefinition", "getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0)"); |
654 | } | 662 | } |
655 | // InternalCftLanguage.g:269:116: ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) | 663 | // InternalCftLanguage.g:270:116: ( ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) ) |
656 | // InternalCftLanguage.g:270:6: ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) | 664 | // InternalCftLanguage.g:271:6: ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) |
657 | { | 665 | { |
658 | 666 | ||
659 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0); | 667 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 0); |
660 | 668 | ||
661 | // InternalCftLanguage.g:273:9: ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) | 669 | // InternalCftLanguage.g:274:9: ({...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) ) |
662 | // InternalCftLanguage.g:273:10: {...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) | 670 | // InternalCftLanguage.g:274:10: {...}? => (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) |
663 | { | 671 | { |
664 | if ( !((true)) ) { | 672 | if ( !((true)) ) { |
665 | throw new FailedPredicateException(input, "ruleComponentDefinition", "true"); | 673 | throw new FailedPredicateException(input, "ruleComponentDefinition", "true"); |
666 | } | 674 | } |
667 | // InternalCftLanguage.g:273:19: (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) | 675 | // InternalCftLanguage.g:274:19: (otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' ) |
668 | // InternalCftLanguage.g:273:20: otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' | 676 | // InternalCftLanguage.g:274:20: otherlv_4= 'in' ( (lv_inputEvents_5_0= ruleInputEvent ) )* otherlv_6= ';' |
669 | { | 677 | { |
670 | otherlv_4=(Token)match(input,17,FOLLOW_10); | 678 | otherlv_4=(Token)match(input,18,FOLLOW_10); |
671 | 679 | ||
672 | newLeafNode(otherlv_4, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()); | 680 | newLeafNode(otherlv_4, grammarAccess.getComponentDefinitionAccess().getInKeyword_3_0_0()); |
673 | 681 | ||
674 | // InternalCftLanguage.g:277:9: ( (lv_inputEvents_5_0= ruleInputEvent ) )* | 682 | // InternalCftLanguage.g:278:9: ( (lv_inputEvents_5_0= ruleInputEvent ) )* |
675 | loop5: | 683 | loop5: |
676 | do { | 684 | do { |
677 | int alt5=2; | 685 | int alt5=2; |
678 | int LA5_0 = input.LA(1); | 686 | int LA5_0 = input.LA(1); |
679 | 687 | ||
680 | if ( (LA5_0==RULE_ID) ) { | 688 | if ( ((LA5_0>=RULE_OF_INT && LA5_0<=RULE_ID)) ) { |
681 | alt5=1; | 689 | alt5=1; |
682 | } | 690 | } |
683 | 691 | ||
684 | 692 | ||
685 | switch (alt5) { | 693 | switch (alt5) { |
686 | case 1 : | 694 | case 1 : |
687 | // InternalCftLanguage.g:278:10: (lv_inputEvents_5_0= ruleInputEvent ) | 695 | // InternalCftLanguage.g:279:10: (lv_inputEvents_5_0= ruleInputEvent ) |
688 | { | 696 | { |
689 | // InternalCftLanguage.g:278:10: (lv_inputEvents_5_0= ruleInputEvent ) | 697 | // InternalCftLanguage.g:279:10: (lv_inputEvents_5_0= ruleInputEvent ) |
690 | // InternalCftLanguage.g:279:11: lv_inputEvents_5_0= ruleInputEvent | 698 | // InternalCftLanguage.g:280:11: lv_inputEvents_5_0= ruleInputEvent |
691 | { | 699 | { |
692 | 700 | ||
693 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getInputEventsInputEventParserRuleCall_3_0_1_0()); | 701 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getInputEventsInputEventParserRuleCall_3_0_1_0()); |
@@ -720,7 +728,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
720 | } | 728 | } |
721 | } while (true); | 729 | } while (true); |
722 | 730 | ||
723 | otherlv_6=(Token)match(input,13,FOLLOW_9); | 731 | otherlv_6=(Token)match(input,14,FOLLOW_9); |
724 | 732 | ||
725 | newLeafNode(otherlv_6, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()); | 733 | newLeafNode(otherlv_6, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_0_2()); |
726 | 734 | ||
@@ -743,59 +751,66 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
743 | } | 751 | } |
744 | break; | 752 | break; |
745 | case 2 : | 753 | case 2 : |
746 | // InternalCftLanguage.g:306:4: ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) | 754 | // InternalCftLanguage.g:307:4: ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) |
747 | { | 755 | { |
748 | // InternalCftLanguage.g:306:4: ({...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) ) | 756 | // InternalCftLanguage.g:307:4: ({...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) ) |
749 | // InternalCftLanguage.g:307:5: {...}? => ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) | 757 | // InternalCftLanguage.g:308:5: {...}? => ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) |
750 | { | 758 | { |
751 | if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1) ) { | 759 | if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1) ) { |
752 | throw new FailedPredicateException(input, "ruleComponentDefinition", "getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1)"); | 760 | throw new FailedPredicateException(input, "ruleComponentDefinition", "getUnorderedGroupHelper().canSelect(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1)"); |
753 | } | 761 | } |
754 | // InternalCftLanguage.g:307:116: ( ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) ) | 762 | // InternalCftLanguage.g:308:116: ( ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) ) |
755 | // InternalCftLanguage.g:308:6: ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) | 763 | // InternalCftLanguage.g:309:6: ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) |
756 | { | 764 | { |
757 | 765 | ||
758 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1); | 766 | getUnorderedGroupHelper().select(grammarAccess.getComponentDefinitionAccess().getUnorderedGroup_3(), 1); |
759 | 767 | ||
760 | // InternalCftLanguage.g:311:9: ({...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) ) | 768 | // InternalCftLanguage.g:312:9: ({...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) ) |
761 | // InternalCftLanguage.g:311:10: {...}? => (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) | 769 | // InternalCftLanguage.g:312:10: {...}? => (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) |
762 | { | 770 | { |
763 | if ( !((true)) ) { | 771 | if ( !((true)) ) { |
764 | throw new FailedPredicateException(input, "ruleComponentDefinition", "true"); | 772 | throw new FailedPredicateException(input, "ruleComponentDefinition", "true"); |
765 | } | 773 | } |
766 | // InternalCftLanguage.g:311:19: (otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' ) | 774 | // InternalCftLanguage.g:312:19: (otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' ) |
767 | // InternalCftLanguage.g:311:20: otherlv_7= 'out' ( (otherlv_8= RULE_ID ) )* otherlv_9= ';' | 775 | // InternalCftLanguage.g:312:20: otherlv_7= 'out' ( ( ruleValidId ) )* otherlv_9= ';' |
768 | { | 776 | { |
769 | otherlv_7=(Token)match(input,18,FOLLOW_10); | 777 | otherlv_7=(Token)match(input,19,FOLLOW_10); |
770 | 778 | ||
771 | newLeafNode(otherlv_7, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()); | 779 | newLeafNode(otherlv_7, grammarAccess.getComponentDefinitionAccess().getOutKeyword_3_1_0()); |
772 | 780 | ||
773 | // InternalCftLanguage.g:315:9: ( (otherlv_8= RULE_ID ) )* | 781 | // InternalCftLanguage.g:316:9: ( ( ruleValidId ) )* |
774 | loop6: | 782 | loop6: |
775 | do { | 783 | do { |
776 | int alt6=2; | 784 | int alt6=2; |
777 | int LA6_0 = input.LA(1); | 785 | int LA6_0 = input.LA(1); |
778 | 786 | ||
779 | if ( (LA6_0==RULE_ID) ) { | 787 | if ( ((LA6_0>=RULE_OF_INT && LA6_0<=RULE_ID)) ) { |
780 | alt6=1; | 788 | alt6=1; |
781 | } | 789 | } |
782 | 790 | ||
783 | 791 | ||
784 | switch (alt6) { | 792 | switch (alt6) { |
785 | case 1 : | 793 | case 1 : |
786 | // InternalCftLanguage.g:316:10: (otherlv_8= RULE_ID ) | 794 | // InternalCftLanguage.g:317:10: ( ruleValidId ) |
787 | { | 795 | { |
788 | // InternalCftLanguage.g:316:10: (otherlv_8= RULE_ID ) | 796 | // InternalCftLanguage.g:317:10: ( ruleValidId ) |
789 | // InternalCftLanguage.g:317:11: otherlv_8= RULE_ID | 797 | // InternalCftLanguage.g:318:11: ruleValidId |
790 | { | 798 | { |
791 | 799 | ||
792 | if (current==null) { | 800 | if (current==null) { |
793 | current = createModelElement(grammarAccess.getComponentDefinitionRule()); | 801 | current = createModelElement(grammarAccess.getComponentDefinitionRule()); |
794 | } | 802 | } |
795 | 803 | ||
796 | otherlv_8=(Token)match(input,RULE_ID,FOLLOW_10); | ||
797 | 804 | ||
798 | newLeafNode(otherlv_8, grammarAccess.getComponentDefinitionAccess().getOutputEventsEventDeclarationCrossReference_3_1_1_0()); | 805 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getOutputEventsEventDeclarationCrossReference_3_1_1_0()); |
806 | |||
807 | pushFollow(FOLLOW_10); | ||
808 | ruleValidId(); | ||
809 | |||
810 | state._fsp--; | ||
811 | |||
812 | |||
813 | afterParserOrEnumRuleCall(); | ||
799 | 814 | ||
800 | 815 | ||
801 | } | 816 | } |
@@ -809,7 +824,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
809 | } | 824 | } |
810 | } while (true); | 825 | } while (true); |
811 | 826 | ||
812 | otherlv_9=(Token)match(input,13,FOLLOW_9); | 827 | otherlv_9=(Token)match(input,14,FOLLOW_9); |
813 | 828 | ||
814 | newLeafNode(otherlv_9, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()); | 829 | newLeafNode(otherlv_9, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_3_1_2()); |
815 | 830 | ||
@@ -849,26 +864,26 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
849 | 864 | ||
850 | } | 865 | } |
851 | 866 | ||
852 | // InternalCftLanguage.g:345:3: ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* | 867 | // InternalCftLanguage.g:349:3: ( ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' )* |
853 | loop8: | 868 | loop8: |
854 | do { | 869 | do { |
855 | int alt8=2; | 870 | int alt8=2; |
856 | int LA8_0 = input.LA(1); | 871 | int LA8_0 = input.LA(1); |
857 | 872 | ||
858 | if ( (LA8_0==RULE_ID) ) { | 873 | if ( ((LA8_0>=RULE_OF_INT && LA8_0<=RULE_ID)) ) { |
859 | alt8=1; | 874 | alt8=1; |
860 | } | 875 | } |
861 | 876 | ||
862 | 877 | ||
863 | switch (alt8) { | 878 | switch (alt8) { |
864 | case 1 : | 879 | case 1 : |
865 | // InternalCftLanguage.g:346:4: ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' | 880 | // InternalCftLanguage.g:350:4: ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) otherlv_11= ';' |
866 | { | 881 | { |
867 | // InternalCftLanguage.g:346:4: ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) | 882 | // InternalCftLanguage.g:350:4: ( (lv_eventDefinitions_10_0= ruleEventDefinition ) ) |
868 | // InternalCftLanguage.g:347:5: (lv_eventDefinitions_10_0= ruleEventDefinition ) | 883 | // InternalCftLanguage.g:351:5: (lv_eventDefinitions_10_0= ruleEventDefinition ) |
869 | { | 884 | { |
870 | // InternalCftLanguage.g:347:5: (lv_eventDefinitions_10_0= ruleEventDefinition ) | 885 | // InternalCftLanguage.g:351:5: (lv_eventDefinitions_10_0= ruleEventDefinition ) |
871 | // InternalCftLanguage.g:348:6: lv_eventDefinitions_10_0= ruleEventDefinition | 886 | // InternalCftLanguage.g:352:6: lv_eventDefinitions_10_0= ruleEventDefinition |
872 | { | 887 | { |
873 | 888 | ||
874 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getEventDefinitionsEventDefinitionParserRuleCall_4_0_0()); | 889 | newCompositeNode(grammarAccess.getComponentDefinitionAccess().getEventDefinitionsEventDefinitionParserRuleCall_4_0_0()); |
@@ -895,7 +910,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
895 | 910 | ||
896 | } | 911 | } |
897 | 912 | ||
898 | otherlv_11=(Token)match(input,13,FOLLOW_12); | 913 | otherlv_11=(Token)match(input,14,FOLLOW_12); |
899 | 914 | ||
900 | newLeafNode(otherlv_11, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_4_1()); | 915 | newLeafNode(otherlv_11, grammarAccess.getComponentDefinitionAccess().getSemicolonKeyword_4_1()); |
901 | 916 | ||
@@ -908,7 +923,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
908 | } | 923 | } |
909 | } while (true); | 924 | } while (true); |
910 | 925 | ||
911 | otherlv_12=(Token)match(input,19,FOLLOW_2); | 926 | otherlv_12=(Token)match(input,20,FOLLOW_2); |
912 | 927 | ||
913 | newLeafNode(otherlv_12, grammarAccess.getComponentDefinitionAccess().getRightCurlyBracketKeyword_5()); | 928 | newLeafNode(otherlv_12, grammarAccess.getComponentDefinitionAccess().getRightCurlyBracketKeyword_5()); |
914 | 929 | ||
@@ -935,7 +950,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
935 | 950 | ||
936 | 951 | ||
937 | // $ANTLR start "entryRuleInputEvent" | 952 | // $ANTLR start "entryRuleInputEvent" |
938 | // InternalCftLanguage.g:378:1: entryRuleInputEvent returns [EObject current=null] : iv_ruleInputEvent= ruleInputEvent EOF ; | 953 | // InternalCftLanguage.g:382:1: entryRuleInputEvent returns [EObject current=null] : iv_ruleInputEvent= ruleInputEvent EOF ; |
939 | public final EObject entryRuleInputEvent() throws RecognitionException { | 954 | public final EObject entryRuleInputEvent() throws RecognitionException { |
940 | EObject current = null; | 955 | EObject current = null; |
941 | 956 | ||
@@ -943,8 +958,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
943 | 958 | ||
944 | 959 | ||
945 | try { | 960 | try { |
946 | // InternalCftLanguage.g:378:51: (iv_ruleInputEvent= ruleInputEvent EOF ) | 961 | // InternalCftLanguage.g:382:51: (iv_ruleInputEvent= ruleInputEvent EOF ) |
947 | // InternalCftLanguage.g:379:2: iv_ruleInputEvent= ruleInputEvent EOF | 962 | // InternalCftLanguage.g:383:2: iv_ruleInputEvent= ruleInputEvent EOF |
948 | { | 963 | { |
949 | newCompositeNode(grammarAccess.getInputEventRule()); | 964 | newCompositeNode(grammarAccess.getInputEventRule()); |
950 | pushFollow(FOLLOW_1); | 965 | pushFollow(FOLLOW_1); |
@@ -971,42 +986,48 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
971 | 986 | ||
972 | 987 | ||
973 | // $ANTLR start "ruleInputEvent" | 988 | // $ANTLR start "ruleInputEvent" |
974 | // InternalCftLanguage.g:385:1: ruleInputEvent returns [EObject current=null] : ( ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? ) ; | 989 | // InternalCftLanguage.g:389:1: ruleInputEvent returns [EObject current=null] : ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_multiple_1_0= '[]' ) )? ) ; |
975 | public final EObject ruleInputEvent() throws RecognitionException { | 990 | public final EObject ruleInputEvent() throws RecognitionException { |
976 | EObject current = null; | 991 | EObject current = null; |
977 | 992 | ||
978 | Token lv_name_0_0=null; | ||
979 | Token lv_multiple_1_0=null; | 993 | Token lv_multiple_1_0=null; |
994 | AntlrDatatypeRuleToken lv_name_0_0 = null; | ||
995 | |||
980 | 996 | ||
981 | 997 | ||
982 | enterRule(); | 998 | enterRule(); |
983 | 999 | ||
984 | try { | 1000 | try { |
985 | // InternalCftLanguage.g:391:2: ( ( ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? ) ) | 1001 | // InternalCftLanguage.g:395:2: ( ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_multiple_1_0= '[]' ) )? ) ) |
986 | // InternalCftLanguage.g:392:2: ( ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? ) | 1002 | // InternalCftLanguage.g:396:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_multiple_1_0= '[]' ) )? ) |
987 | { | 1003 | { |
988 | // InternalCftLanguage.g:392:2: ( ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? ) | 1004 | // InternalCftLanguage.g:396:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_multiple_1_0= '[]' ) )? ) |
989 | // InternalCftLanguage.g:393:3: ( (lv_name_0_0= RULE_ID ) ) ( (lv_multiple_1_0= '[]' ) )? | 1005 | // InternalCftLanguage.g:397:3: ( (lv_name_0_0= ruleValidId ) ) ( (lv_multiple_1_0= '[]' ) )? |
990 | { | 1006 | { |
991 | // InternalCftLanguage.g:393:3: ( (lv_name_0_0= RULE_ID ) ) | 1007 | // InternalCftLanguage.g:397:3: ( (lv_name_0_0= ruleValidId ) ) |
992 | // InternalCftLanguage.g:394:4: (lv_name_0_0= RULE_ID ) | 1008 | // InternalCftLanguage.g:398:4: (lv_name_0_0= ruleValidId ) |
993 | { | 1009 | { |
994 | // InternalCftLanguage.g:394:4: (lv_name_0_0= RULE_ID ) | 1010 | // InternalCftLanguage.g:398:4: (lv_name_0_0= ruleValidId ) |
995 | // InternalCftLanguage.g:395:5: lv_name_0_0= RULE_ID | 1011 | // InternalCftLanguage.g:399:5: lv_name_0_0= ruleValidId |
996 | { | 1012 | { |
997 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_13); | ||
998 | 1013 | ||
999 | newLeafNode(lv_name_0_0, grammarAccess.getInputEventAccess().getNameIDTerminalRuleCall_0_0()); | 1014 | newCompositeNode(grammarAccess.getInputEventAccess().getNameValidIdParserRuleCall_0_0()); |
1000 | 1015 | ||
1016 | pushFollow(FOLLOW_13); | ||
1017 | lv_name_0_0=ruleValidId(); | ||
1018 | |||
1019 | state._fsp--; | ||
1020 | |||
1001 | 1021 | ||
1002 | if (current==null) { | 1022 | if (current==null) { |
1003 | current = createModelElement(grammarAccess.getInputEventRule()); | 1023 | current = createModelElementForParent(grammarAccess.getInputEventRule()); |
1004 | } | 1024 | } |
1005 | setWithLastConsumed( | 1025 | set( |
1006 | current, | 1026 | current, |
1007 | "name", | 1027 | "name", |
1008 | lv_name_0_0, | 1028 | lv_name_0_0, |
1009 | "org.eclipse.xtext.common.Terminals.ID"); | 1029 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
1030 | afterParserOrEnumRuleCall(); | ||
1010 | 1031 | ||
1011 | 1032 | ||
1012 | } | 1033 | } |
@@ -1014,21 +1035,21 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1014 | 1035 | ||
1015 | } | 1036 | } |
1016 | 1037 | ||
1017 | // InternalCftLanguage.g:411:3: ( (lv_multiple_1_0= '[]' ) )? | 1038 | // InternalCftLanguage.g:416:3: ( (lv_multiple_1_0= '[]' ) )? |
1018 | int alt9=2; | 1039 | int alt9=2; |
1019 | int LA9_0 = input.LA(1); | 1040 | int LA9_0 = input.LA(1); |
1020 | 1041 | ||
1021 | if ( (LA9_0==20) ) { | 1042 | if ( (LA9_0==21) ) { |
1022 | alt9=1; | 1043 | alt9=1; |
1023 | } | 1044 | } |
1024 | switch (alt9) { | 1045 | switch (alt9) { |
1025 | case 1 : | 1046 | case 1 : |
1026 | // InternalCftLanguage.g:412:4: (lv_multiple_1_0= '[]' ) | 1047 | // InternalCftLanguage.g:417:4: (lv_multiple_1_0= '[]' ) |
1027 | { | 1048 | { |
1028 | // InternalCftLanguage.g:412:4: (lv_multiple_1_0= '[]' ) | 1049 | // InternalCftLanguage.g:417:4: (lv_multiple_1_0= '[]' ) |
1029 | // InternalCftLanguage.g:413:5: lv_multiple_1_0= '[]' | 1050 | // InternalCftLanguage.g:418:5: lv_multiple_1_0= '[]' |
1030 | { | 1051 | { |
1031 | lv_multiple_1_0=(Token)match(input,20,FOLLOW_2); | 1052 | lv_multiple_1_0=(Token)match(input,21,FOLLOW_2); |
1032 | 1053 | ||
1033 | newLeafNode(lv_multiple_1_0, grammarAccess.getInputEventAccess().getMultipleLeftSquareBracketRightSquareBracketKeyword_1_0()); | 1054 | newLeafNode(lv_multiple_1_0, grammarAccess.getInputEventAccess().getMultipleLeftSquareBracketRightSquareBracketKeyword_1_0()); |
1034 | 1055 | ||
@@ -1070,7 +1091,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1070 | 1091 | ||
1071 | 1092 | ||
1072 | // $ANTLR start "entryRuleEventDefinition" | 1093 | // $ANTLR start "entryRuleEventDefinition" |
1073 | // InternalCftLanguage.g:429:1: entryRuleEventDefinition returns [EObject current=null] : iv_ruleEventDefinition= ruleEventDefinition EOF ; | 1094 | // InternalCftLanguage.g:434:1: entryRuleEventDefinition returns [EObject current=null] : iv_ruleEventDefinition= ruleEventDefinition EOF ; |
1074 | public final EObject entryRuleEventDefinition() throws RecognitionException { | 1095 | public final EObject entryRuleEventDefinition() throws RecognitionException { |
1075 | EObject current = null; | 1096 | EObject current = null; |
1076 | 1097 | ||
@@ -1078,8 +1099,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1078 | 1099 | ||
1079 | 1100 | ||
1080 | try { | 1101 | try { |
1081 | // InternalCftLanguage.g:429:56: (iv_ruleEventDefinition= ruleEventDefinition EOF ) | 1102 | // InternalCftLanguage.g:434:56: (iv_ruleEventDefinition= ruleEventDefinition EOF ) |
1082 | // InternalCftLanguage.g:430:2: iv_ruleEventDefinition= ruleEventDefinition EOF | 1103 | // InternalCftLanguage.g:435:2: iv_ruleEventDefinition= ruleEventDefinition EOF |
1083 | { | 1104 | { |
1084 | newCompositeNode(grammarAccess.getEventDefinitionRule()); | 1105 | newCompositeNode(grammarAccess.getEventDefinitionRule()); |
1085 | pushFollow(FOLLOW_1); | 1106 | pushFollow(FOLLOW_1); |
@@ -1106,7 +1127,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1106 | 1127 | ||
1107 | 1128 | ||
1108 | // $ANTLR start "ruleEventDefinition" | 1129 | // $ANTLR start "ruleEventDefinition" |
1109 | // InternalCftLanguage.g:436:1: ruleEventDefinition returns [EObject current=null] : (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) ; | 1130 | // InternalCftLanguage.g:441:1: ruleEventDefinition returns [EObject current=null] : (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) ; |
1110 | public final EObject ruleEventDefinition() throws RecognitionException { | 1131 | public final EObject ruleEventDefinition() throws RecognitionException { |
1111 | EObject current = null; | 1132 | EObject current = null; |
1112 | 1133 | ||
@@ -1119,20 +1140,20 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1119 | enterRule(); | 1140 | enterRule(); |
1120 | 1141 | ||
1121 | try { | 1142 | try { |
1122 | // InternalCftLanguage.g:442:2: ( (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) ) | 1143 | // InternalCftLanguage.g:447:2: ( (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) ) |
1123 | // InternalCftLanguage.g:443:2: (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) | 1144 | // InternalCftLanguage.g:448:2: (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) |
1124 | { | 1145 | { |
1125 | // InternalCftLanguage.g:443:2: (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) | 1146 | // InternalCftLanguage.g:448:2: (this_BasicEventDefinition_0= ruleBasicEventDefinition | this_GateDefinition_1= ruleGateDefinition ) |
1126 | int alt10=2; | 1147 | int alt10=2; |
1127 | int LA10_0 = input.LA(1); | 1148 | int LA10_0 = input.LA(1); |
1128 | 1149 | ||
1129 | if ( (LA10_0==RULE_ID) ) { | 1150 | if ( (LA10_0==RULE_ID) ) { |
1130 | int LA10_1 = input.LA(2); | 1151 | int LA10_1 = input.LA(2); |
1131 | 1152 | ||
1132 | if ( ((LA10_1>=23 && LA10_1<=24)) ) { | 1153 | if ( (LA10_1==RULE_INT||(LA10_1>=25 && LA10_1<=26)) ) { |
1133 | alt10=2; | 1154 | alt10=2; |
1134 | } | 1155 | } |
1135 | else if ( (LA10_1==21) ) { | 1156 | else if ( (LA10_1==22||LA10_1==24) ) { |
1136 | alt10=1; | 1157 | alt10=1; |
1137 | } | 1158 | } |
1138 | else { | 1159 | else { |
@@ -1142,6 +1163,22 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1142 | throw nvae; | 1163 | throw nvae; |
1143 | } | 1164 | } |
1144 | } | 1165 | } |
1166 | else if ( (LA10_0==RULE_OF_INT) ) { | ||
1167 | int LA10_2 = input.LA(2); | ||
1168 | |||
1169 | if ( (LA10_2==22||LA10_2==24) ) { | ||
1170 | alt10=1; | ||
1171 | } | ||
1172 | else if ( (LA10_2==RULE_INT||(LA10_2>=25 && LA10_2<=26)) ) { | ||
1173 | alt10=2; | ||
1174 | } | ||
1175 | else { | ||
1176 | NoViableAltException nvae = | ||
1177 | new NoViableAltException("", 10, 2, input); | ||
1178 | |||
1179 | throw nvae; | ||
1180 | } | ||
1181 | } | ||
1145 | else { | 1182 | else { |
1146 | NoViableAltException nvae = | 1183 | NoViableAltException nvae = |
1147 | new NoViableAltException("", 10, 0, input); | 1184 | new NoViableAltException("", 10, 0, input); |
@@ -1150,7 +1187,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1150 | } | 1187 | } |
1151 | switch (alt10) { | 1188 | switch (alt10) { |
1152 | case 1 : | 1189 | case 1 : |
1153 | // InternalCftLanguage.g:444:3: this_BasicEventDefinition_0= ruleBasicEventDefinition | 1190 | // InternalCftLanguage.g:449:3: this_BasicEventDefinition_0= ruleBasicEventDefinition |
1154 | { | 1191 | { |
1155 | 1192 | ||
1156 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getBasicEventDefinitionParserRuleCall_0()); | 1193 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getBasicEventDefinitionParserRuleCall_0()); |
@@ -1168,7 +1205,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1168 | } | 1205 | } |
1169 | break; | 1206 | break; |
1170 | case 2 : | 1207 | case 2 : |
1171 | // InternalCftLanguage.g:453:3: this_GateDefinition_1= ruleGateDefinition | 1208 | // InternalCftLanguage.g:458:3: this_GateDefinition_1= ruleGateDefinition |
1172 | { | 1209 | { |
1173 | 1210 | ||
1174 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getGateDefinitionParserRuleCall_1()); | 1211 | newCompositeNode(grammarAccess.getEventDefinitionAccess().getGateDefinitionParserRuleCall_1()); |
@@ -1208,7 +1245,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1208 | 1245 | ||
1209 | 1246 | ||
1210 | // $ANTLR start "entryRuleBasicEventDefinition" | 1247 | // $ANTLR start "entryRuleBasicEventDefinition" |
1211 | // InternalCftLanguage.g:465:1: entryRuleBasicEventDefinition returns [EObject current=null] : iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF ; | 1248 | // InternalCftLanguage.g:470:1: entryRuleBasicEventDefinition returns [EObject current=null] : iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF ; |
1212 | public final EObject entryRuleBasicEventDefinition() throws RecognitionException { | 1249 | public final EObject entryRuleBasicEventDefinition() throws RecognitionException { |
1213 | EObject current = null; | 1250 | EObject current = null; |
1214 | 1251 | ||
@@ -1216,8 +1253,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1216 | 1253 | ||
1217 | 1254 | ||
1218 | try { | 1255 | try { |
1219 | // InternalCftLanguage.g:465:61: (iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF ) | 1256 | // InternalCftLanguage.g:470:61: (iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF ) |
1220 | // InternalCftLanguage.g:466:2: iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF | 1257 | // InternalCftLanguage.g:471:2: iv_ruleBasicEventDefinition= ruleBasicEventDefinition EOF |
1221 | { | 1258 | { |
1222 | newCompositeNode(grammarAccess.getBasicEventDefinitionRule()); | 1259 | newCompositeNode(grammarAccess.getBasicEventDefinitionRule()); |
1223 | pushFollow(FOLLOW_1); | 1260 | pushFollow(FOLLOW_1); |
@@ -1244,44 +1281,325 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1244 | 1281 | ||
1245 | 1282 | ||
1246 | // $ANTLR start "ruleBasicEventDefinition" | 1283 | // $ANTLR start "ruleBasicEventDefinition" |
1247 | // InternalCftLanguage.g:472:1: ruleBasicEventDefinition returns [EObject current=null] : ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) ) ; | 1284 | // InternalCftLanguage.g:477:1: ruleBasicEventDefinition returns [EObject current=null] : ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_distribution_1_0= ruleDistribution ) ) ) ; |
1248 | public final EObject ruleBasicEventDefinition() throws RecognitionException { | 1285 | public final EObject ruleBasicEventDefinition() throws RecognitionException { |
1249 | EObject current = null; | 1286 | EObject current = null; |
1250 | 1287 | ||
1251 | Token lv_name_0_0=null; | 1288 | AntlrDatatypeRuleToken lv_name_0_0 = null; |
1252 | Token otherlv_1=null; | 1289 | |
1253 | Token otherlv_2=null; | 1290 | EObject lv_distribution_1_0 = null; |
1254 | Token lv_rate_3_0=null; | 1291 | |
1255 | 1292 | ||
1256 | 1293 | ||
1257 | enterRule(); | 1294 | enterRule(); |
1258 | 1295 | ||
1259 | try { | 1296 | try { |
1260 | // InternalCftLanguage.g:478:2: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) ) ) | 1297 | // InternalCftLanguage.g:483:2: ( ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_distribution_1_0= ruleDistribution ) ) ) ) |
1261 | // InternalCftLanguage.g:479:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) ) | 1298 | // InternalCftLanguage.g:484:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_distribution_1_0= ruleDistribution ) ) ) |
1262 | { | 1299 | { |
1263 | // InternalCftLanguage.g:479:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) ) | 1300 | // InternalCftLanguage.g:484:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_distribution_1_0= ruleDistribution ) ) ) |
1264 | // InternalCftLanguage.g:480:3: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'lambda' otherlv_2= '=' ( (lv_rate_3_0= RULE_DOULBE ) ) | 1301 | // InternalCftLanguage.g:485:3: ( (lv_name_0_0= ruleValidId ) ) ( (lv_distribution_1_0= ruleDistribution ) ) |
1265 | { | 1302 | { |
1266 | // InternalCftLanguage.g:480:3: ( (lv_name_0_0= RULE_ID ) ) | 1303 | // InternalCftLanguage.g:485:3: ( (lv_name_0_0= ruleValidId ) ) |
1267 | // InternalCftLanguage.g:481:4: (lv_name_0_0= RULE_ID ) | 1304 | // InternalCftLanguage.g:486:4: (lv_name_0_0= ruleValidId ) |
1268 | { | 1305 | { |
1269 | // InternalCftLanguage.g:481:4: (lv_name_0_0= RULE_ID ) | 1306 | // InternalCftLanguage.g:486:4: (lv_name_0_0= ruleValidId ) |
1270 | // InternalCftLanguage.g:482:5: lv_name_0_0= RULE_ID | 1307 | // InternalCftLanguage.g:487:5: lv_name_0_0= ruleValidId |
1271 | { | 1308 | { |
1272 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_14); | ||
1273 | 1309 | ||
1274 | newLeafNode(lv_name_0_0, grammarAccess.getBasicEventDefinitionAccess().getNameIDTerminalRuleCall_0_0()); | 1310 | newCompositeNode(grammarAccess.getBasicEventDefinitionAccess().getNameValidIdParserRuleCall_0_0()); |
1275 | 1311 | ||
1312 | pushFollow(FOLLOW_14); | ||
1313 | lv_name_0_0=ruleValidId(); | ||
1314 | |||
1315 | state._fsp--; | ||
1316 | |||
1276 | 1317 | ||
1277 | if (current==null) { | 1318 | if (current==null) { |
1278 | current = createModelElement(grammarAccess.getBasicEventDefinitionRule()); | 1319 | current = createModelElementForParent(grammarAccess.getBasicEventDefinitionRule()); |
1279 | } | 1320 | } |
1280 | setWithLastConsumed( | 1321 | set( |
1281 | current, | 1322 | current, |
1282 | "name", | 1323 | "name", |
1283 | lv_name_0_0, | 1324 | lv_name_0_0, |
1284 | "org.eclipse.xtext.common.Terminals.ID"); | 1325 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
1326 | afterParserOrEnumRuleCall(); | ||
1327 | |||
1328 | |||
1329 | } | ||
1330 | |||
1331 | |||
1332 | } | ||
1333 | |||
1334 | // InternalCftLanguage.g:504:3: ( (lv_distribution_1_0= ruleDistribution ) ) | ||
1335 | // InternalCftLanguage.g:505:4: (lv_distribution_1_0= ruleDistribution ) | ||
1336 | { | ||
1337 | // InternalCftLanguage.g:505:4: (lv_distribution_1_0= ruleDistribution ) | ||
1338 | // InternalCftLanguage.g:506:5: lv_distribution_1_0= ruleDistribution | ||
1339 | { | ||
1340 | |||
1341 | newCompositeNode(grammarAccess.getBasicEventDefinitionAccess().getDistributionDistributionParserRuleCall_1_0()); | ||
1342 | |||
1343 | pushFollow(FOLLOW_2); | ||
1344 | lv_distribution_1_0=ruleDistribution(); | ||
1345 | |||
1346 | state._fsp--; | ||
1347 | |||
1348 | |||
1349 | if (current==null) { | ||
1350 | current = createModelElementForParent(grammarAccess.getBasicEventDefinitionRule()); | ||
1351 | } | ||
1352 | set( | ||
1353 | current, | ||
1354 | "distribution", | ||
1355 | lv_distribution_1_0, | ||
1356 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Distribution"); | ||
1357 | afterParserOrEnumRuleCall(); | ||
1358 | |||
1359 | |||
1360 | } | ||
1361 | |||
1362 | |||
1363 | } | ||
1364 | |||
1365 | |||
1366 | } | ||
1367 | |||
1368 | |||
1369 | } | ||
1370 | |||
1371 | |||
1372 | leaveRule(); | ||
1373 | |||
1374 | } | ||
1375 | |||
1376 | catch (RecognitionException re) { | ||
1377 | recover(input,re); | ||
1378 | appendSkippedTokens(); | ||
1379 | } | ||
1380 | finally { | ||
1381 | } | ||
1382 | return current; | ||
1383 | } | ||
1384 | // $ANTLR end "ruleBasicEventDefinition" | ||
1385 | |||
1386 | |||
1387 | // $ANTLR start "entryRuleDistribution" | ||
1388 | // InternalCftLanguage.g:527:1: entryRuleDistribution returns [EObject current=null] : iv_ruleDistribution= ruleDistribution EOF ; | ||
1389 | public final EObject entryRuleDistribution() throws RecognitionException { | ||
1390 | EObject current = null; | ||
1391 | |||
1392 | EObject iv_ruleDistribution = null; | ||
1393 | |||
1394 | |||
1395 | try { | ||
1396 | // InternalCftLanguage.g:527:53: (iv_ruleDistribution= ruleDistribution EOF ) | ||
1397 | // InternalCftLanguage.g:528:2: iv_ruleDistribution= ruleDistribution EOF | ||
1398 | { | ||
1399 | newCompositeNode(grammarAccess.getDistributionRule()); | ||
1400 | pushFollow(FOLLOW_1); | ||
1401 | iv_ruleDistribution=ruleDistribution(); | ||
1402 | |||
1403 | state._fsp--; | ||
1404 | |||
1405 | current =iv_ruleDistribution; | ||
1406 | match(input,EOF,FOLLOW_2); | ||
1407 | |||
1408 | } | ||
1409 | |||
1410 | } | ||
1411 | |||
1412 | catch (RecognitionException re) { | ||
1413 | recover(input,re); | ||
1414 | appendSkippedTokens(); | ||
1415 | } | ||
1416 | finally { | ||
1417 | } | ||
1418 | return current; | ||
1419 | } | ||
1420 | // $ANTLR end "entryRuleDistribution" | ||
1421 | |||
1422 | |||
1423 | // $ANTLR start "ruleDistribution" | ||
1424 | // InternalCftLanguage.g:534:1: ruleDistribution returns [EObject current=null] : (this_ConstantDistribution_0= ruleConstantDistribution | this_ExponentialDistribution_1= ruleExponentialDistribution ) ; | ||
1425 | public final EObject ruleDistribution() throws RecognitionException { | ||
1426 | EObject current = null; | ||
1427 | |||
1428 | EObject this_ConstantDistribution_0 = null; | ||
1429 | |||
1430 | EObject this_ExponentialDistribution_1 = null; | ||
1431 | |||
1432 | |||
1433 | |||
1434 | enterRule(); | ||
1435 | |||
1436 | try { | ||
1437 | // InternalCftLanguage.g:540:2: ( (this_ConstantDistribution_0= ruleConstantDistribution | this_ExponentialDistribution_1= ruleExponentialDistribution ) ) | ||
1438 | // InternalCftLanguage.g:541:2: (this_ConstantDistribution_0= ruleConstantDistribution | this_ExponentialDistribution_1= ruleExponentialDistribution ) | ||
1439 | { | ||
1440 | // InternalCftLanguage.g:541:2: (this_ConstantDistribution_0= ruleConstantDistribution | this_ExponentialDistribution_1= ruleExponentialDistribution ) | ||
1441 | int alt11=2; | ||
1442 | int LA11_0 = input.LA(1); | ||
1443 | |||
1444 | if ( (LA11_0==22) ) { | ||
1445 | alt11=1; | ||
1446 | } | ||
1447 | else if ( (LA11_0==24) ) { | ||
1448 | alt11=2; | ||
1449 | } | ||
1450 | else { | ||
1451 | NoViableAltException nvae = | ||
1452 | new NoViableAltException("", 11, 0, input); | ||
1453 | |||
1454 | throw nvae; | ||
1455 | } | ||
1456 | switch (alt11) { | ||
1457 | case 1 : | ||
1458 | // InternalCftLanguage.g:542:3: this_ConstantDistribution_0= ruleConstantDistribution | ||
1459 | { | ||
1460 | |||
1461 | newCompositeNode(grammarAccess.getDistributionAccess().getConstantDistributionParserRuleCall_0()); | ||
1462 | |||
1463 | pushFollow(FOLLOW_2); | ||
1464 | this_ConstantDistribution_0=ruleConstantDistribution(); | ||
1465 | |||
1466 | state._fsp--; | ||
1467 | |||
1468 | |||
1469 | current = this_ConstantDistribution_0; | ||
1470 | afterParserOrEnumRuleCall(); | ||
1471 | |||
1472 | |||
1473 | } | ||
1474 | break; | ||
1475 | case 2 : | ||
1476 | // InternalCftLanguage.g:551:3: this_ExponentialDistribution_1= ruleExponentialDistribution | ||
1477 | { | ||
1478 | |||
1479 | newCompositeNode(grammarAccess.getDistributionAccess().getExponentialDistributionParserRuleCall_1()); | ||
1480 | |||
1481 | pushFollow(FOLLOW_2); | ||
1482 | this_ExponentialDistribution_1=ruleExponentialDistribution(); | ||
1483 | |||
1484 | state._fsp--; | ||
1485 | |||
1486 | |||
1487 | current = this_ExponentialDistribution_1; | ||
1488 | afterParserOrEnumRuleCall(); | ||
1489 | |||
1490 | |||
1491 | } | ||
1492 | break; | ||
1493 | |||
1494 | } | ||
1495 | |||
1496 | |||
1497 | } | ||
1498 | |||
1499 | |||
1500 | leaveRule(); | ||
1501 | |||
1502 | } | ||
1503 | |||
1504 | catch (RecognitionException re) { | ||
1505 | recover(input,re); | ||
1506 | appendSkippedTokens(); | ||
1507 | } | ||
1508 | finally { | ||
1509 | } | ||
1510 | return current; | ||
1511 | } | ||
1512 | // $ANTLR end "ruleDistribution" | ||
1513 | |||
1514 | |||
1515 | // $ANTLR start "entryRuleConstantDistribution" | ||
1516 | // InternalCftLanguage.g:563:1: entryRuleConstantDistribution returns [EObject current=null] : iv_ruleConstantDistribution= ruleConstantDistribution EOF ; | ||
1517 | public final EObject entryRuleConstantDistribution() throws RecognitionException { | ||
1518 | EObject current = null; | ||
1519 | |||
1520 | EObject iv_ruleConstantDistribution = null; | ||
1521 | |||
1522 | |||
1523 | try { | ||
1524 | // InternalCftLanguage.g:563:61: (iv_ruleConstantDistribution= ruleConstantDistribution EOF ) | ||
1525 | // InternalCftLanguage.g:564:2: iv_ruleConstantDistribution= ruleConstantDistribution EOF | ||
1526 | { | ||
1527 | newCompositeNode(grammarAccess.getConstantDistributionRule()); | ||
1528 | pushFollow(FOLLOW_1); | ||
1529 | iv_ruleConstantDistribution=ruleConstantDistribution(); | ||
1530 | |||
1531 | state._fsp--; | ||
1532 | |||
1533 | current =iv_ruleConstantDistribution; | ||
1534 | match(input,EOF,FOLLOW_2); | ||
1535 | |||
1536 | } | ||
1537 | |||
1538 | } | ||
1539 | |||
1540 | catch (RecognitionException re) { | ||
1541 | recover(input,re); | ||
1542 | appendSkippedTokens(); | ||
1543 | } | ||
1544 | finally { | ||
1545 | } | ||
1546 | return current; | ||
1547 | } | ||
1548 | // $ANTLR end "entryRuleConstantDistribution" | ||
1549 | |||
1550 | |||
1551 | // $ANTLR start "ruleConstantDistribution" | ||
1552 | // InternalCftLanguage.g:570:1: ruleConstantDistribution returns [EObject current=null] : (otherlv_0= 'p' otherlv_1= '=' ( (lv_p_2_0= ruleDouble ) ) ) ; | ||
1553 | public final EObject ruleConstantDistribution() throws RecognitionException { | ||
1554 | EObject current = null; | ||
1555 | |||
1556 | Token otherlv_0=null; | ||
1557 | Token otherlv_1=null; | ||
1558 | AntlrDatatypeRuleToken lv_p_2_0 = null; | ||
1559 | |||
1560 | |||
1561 | |||
1562 | enterRule(); | ||
1563 | |||
1564 | try { | ||
1565 | // InternalCftLanguage.g:576:2: ( (otherlv_0= 'p' otherlv_1= '=' ( (lv_p_2_0= ruleDouble ) ) ) ) | ||
1566 | // InternalCftLanguage.g:577:2: (otherlv_0= 'p' otherlv_1= '=' ( (lv_p_2_0= ruleDouble ) ) ) | ||
1567 | { | ||
1568 | // InternalCftLanguage.g:577:2: (otherlv_0= 'p' otherlv_1= '=' ( (lv_p_2_0= ruleDouble ) ) ) | ||
1569 | // InternalCftLanguage.g:578:3: otherlv_0= 'p' otherlv_1= '=' ( (lv_p_2_0= ruleDouble ) ) | ||
1570 | { | ||
1571 | otherlv_0=(Token)match(input,22,FOLLOW_15); | ||
1572 | |||
1573 | newLeafNode(otherlv_0, grammarAccess.getConstantDistributionAccess().getPKeyword_0()); | ||
1574 | |||
1575 | otherlv_1=(Token)match(input,23,FOLLOW_16); | ||
1576 | |||
1577 | newLeafNode(otherlv_1, grammarAccess.getConstantDistributionAccess().getEqualsSignKeyword_1()); | ||
1578 | |||
1579 | // InternalCftLanguage.g:586:3: ( (lv_p_2_0= ruleDouble ) ) | ||
1580 | // InternalCftLanguage.g:587:4: (lv_p_2_0= ruleDouble ) | ||
1581 | { | ||
1582 | // InternalCftLanguage.g:587:4: (lv_p_2_0= ruleDouble ) | ||
1583 | // InternalCftLanguage.g:588:5: lv_p_2_0= ruleDouble | ||
1584 | { | ||
1585 | |||
1586 | newCompositeNode(grammarAccess.getConstantDistributionAccess().getPDoubleParserRuleCall_2_0()); | ||
1587 | |||
1588 | pushFollow(FOLLOW_2); | ||
1589 | lv_p_2_0=ruleDouble(); | ||
1590 | |||
1591 | state._fsp--; | ||
1592 | |||
1593 | |||
1594 | if (current==null) { | ||
1595 | current = createModelElementForParent(grammarAccess.getConstantDistributionRule()); | ||
1596 | } | ||
1597 | set( | ||
1598 | current, | ||
1599 | "p", | ||
1600 | lv_p_2_0, | ||
1601 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Double"); | ||
1602 | afterParserOrEnumRuleCall(); | ||
1285 | 1603 | ||
1286 | 1604 | ||
1287 | } | 1605 | } |
@@ -1289,33 +1607,116 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1289 | 1607 | ||
1290 | } | 1608 | } |
1291 | 1609 | ||
1292 | otherlv_1=(Token)match(input,21,FOLLOW_15); | ||
1293 | 1610 | ||
1294 | newLeafNode(otherlv_1, grammarAccess.getBasicEventDefinitionAccess().getLambdaKeyword_1()); | 1611 | } |
1612 | |||
1613 | |||
1614 | } | ||
1615 | |||
1616 | |||
1617 | leaveRule(); | ||
1618 | |||
1619 | } | ||
1620 | |||
1621 | catch (RecognitionException re) { | ||
1622 | recover(input,re); | ||
1623 | appendSkippedTokens(); | ||
1624 | } | ||
1625 | finally { | ||
1626 | } | ||
1627 | return current; | ||
1628 | } | ||
1629 | // $ANTLR end "ruleConstantDistribution" | ||
1630 | |||
1631 | |||
1632 | // $ANTLR start "entryRuleExponentialDistribution" | ||
1633 | // InternalCftLanguage.g:609:1: entryRuleExponentialDistribution returns [EObject current=null] : iv_ruleExponentialDistribution= ruleExponentialDistribution EOF ; | ||
1634 | public final EObject entryRuleExponentialDistribution() throws RecognitionException { | ||
1635 | EObject current = null; | ||
1636 | |||
1637 | EObject iv_ruleExponentialDistribution = null; | ||
1638 | |||
1639 | |||
1640 | try { | ||
1641 | // InternalCftLanguage.g:609:64: (iv_ruleExponentialDistribution= ruleExponentialDistribution EOF ) | ||
1642 | // InternalCftLanguage.g:610:2: iv_ruleExponentialDistribution= ruleExponentialDistribution EOF | ||
1643 | { | ||
1644 | newCompositeNode(grammarAccess.getExponentialDistributionRule()); | ||
1645 | pushFollow(FOLLOW_1); | ||
1646 | iv_ruleExponentialDistribution=ruleExponentialDistribution(); | ||
1647 | |||
1648 | state._fsp--; | ||
1649 | |||
1650 | current =iv_ruleExponentialDistribution; | ||
1651 | match(input,EOF,FOLLOW_2); | ||
1652 | |||
1653 | } | ||
1654 | |||
1655 | } | ||
1656 | |||
1657 | catch (RecognitionException re) { | ||
1658 | recover(input,re); | ||
1659 | appendSkippedTokens(); | ||
1660 | } | ||
1661 | finally { | ||
1662 | } | ||
1663 | return current; | ||
1664 | } | ||
1665 | // $ANTLR end "entryRuleExponentialDistribution" | ||
1666 | |||
1667 | |||
1668 | // $ANTLR start "ruleExponentialDistribution" | ||
1669 | // InternalCftLanguage.g:616:1: ruleExponentialDistribution returns [EObject current=null] : (otherlv_0= 'lambda' otherlv_1= '=' ( (lv_lambda_2_0= ruleDouble ) ) ) ; | ||
1670 | public final EObject ruleExponentialDistribution() throws RecognitionException { | ||
1671 | EObject current = null; | ||
1672 | |||
1673 | Token otherlv_0=null; | ||
1674 | Token otherlv_1=null; | ||
1675 | AntlrDatatypeRuleToken lv_lambda_2_0 = null; | ||
1676 | |||
1677 | |||
1678 | |||
1679 | enterRule(); | ||
1680 | |||
1681 | try { | ||
1682 | // InternalCftLanguage.g:622:2: ( (otherlv_0= 'lambda' otherlv_1= '=' ( (lv_lambda_2_0= ruleDouble ) ) ) ) | ||
1683 | // InternalCftLanguage.g:623:2: (otherlv_0= 'lambda' otherlv_1= '=' ( (lv_lambda_2_0= ruleDouble ) ) ) | ||
1684 | { | ||
1685 | // InternalCftLanguage.g:623:2: (otherlv_0= 'lambda' otherlv_1= '=' ( (lv_lambda_2_0= ruleDouble ) ) ) | ||
1686 | // InternalCftLanguage.g:624:3: otherlv_0= 'lambda' otherlv_1= '=' ( (lv_lambda_2_0= ruleDouble ) ) | ||
1687 | { | ||
1688 | otherlv_0=(Token)match(input,24,FOLLOW_15); | ||
1689 | |||
1690 | newLeafNode(otherlv_0, grammarAccess.getExponentialDistributionAccess().getLambdaKeyword_0()); | ||
1295 | 1691 | ||
1296 | otherlv_2=(Token)match(input,22,FOLLOW_16); | 1692 | otherlv_1=(Token)match(input,23,FOLLOW_16); |
1297 | 1693 | ||
1298 | newLeafNode(otherlv_2, grammarAccess.getBasicEventDefinitionAccess().getEqualsSignKeyword_2()); | 1694 | newLeafNode(otherlv_1, grammarAccess.getExponentialDistributionAccess().getEqualsSignKeyword_1()); |
1299 | 1695 | ||
1300 | // InternalCftLanguage.g:506:3: ( (lv_rate_3_0= RULE_DOULBE ) ) | 1696 | // InternalCftLanguage.g:632:3: ( (lv_lambda_2_0= ruleDouble ) ) |
1301 | // InternalCftLanguage.g:507:4: (lv_rate_3_0= RULE_DOULBE ) | 1697 | // InternalCftLanguage.g:633:4: (lv_lambda_2_0= ruleDouble ) |
1302 | { | 1698 | { |
1303 | // InternalCftLanguage.g:507:4: (lv_rate_3_0= RULE_DOULBE ) | 1699 | // InternalCftLanguage.g:633:4: (lv_lambda_2_0= ruleDouble ) |
1304 | // InternalCftLanguage.g:508:5: lv_rate_3_0= RULE_DOULBE | 1700 | // InternalCftLanguage.g:634:5: lv_lambda_2_0= ruleDouble |
1305 | { | 1701 | { |
1306 | lv_rate_3_0=(Token)match(input,RULE_DOULBE,FOLLOW_2); | ||
1307 | 1702 | ||
1308 | newLeafNode(lv_rate_3_0, grammarAccess.getBasicEventDefinitionAccess().getRateDOULBETerminalRuleCall_3_0()); | 1703 | newCompositeNode(grammarAccess.getExponentialDistributionAccess().getLambdaDoubleParserRuleCall_2_0()); |
1309 | 1704 | ||
1705 | pushFollow(FOLLOW_2); | ||
1706 | lv_lambda_2_0=ruleDouble(); | ||
1707 | |||
1708 | state._fsp--; | ||
1709 | |||
1310 | 1710 | ||
1311 | if (current==null) { | 1711 | if (current==null) { |
1312 | current = createModelElement(grammarAccess.getBasicEventDefinitionRule()); | 1712 | current = createModelElementForParent(grammarAccess.getExponentialDistributionRule()); |
1313 | } | 1713 | } |
1314 | setWithLastConsumed( | 1714 | set( |
1315 | current, | 1715 | current, |
1316 | "rate", | 1716 | "lambda", |
1317 | lv_rate_3_0, | 1717 | lv_lambda_2_0, |
1318 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.DOULBE"); | 1718 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Double"); |
1719 | afterParserOrEnumRuleCall(); | ||
1319 | 1720 | ||
1320 | 1721 | ||
1321 | } | 1722 | } |
@@ -1342,11 +1743,11 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1342 | } | 1743 | } |
1343 | return current; | 1744 | return current; |
1344 | } | 1745 | } |
1345 | // $ANTLR end "ruleBasicEventDefinition" | 1746 | // $ANTLR end "ruleExponentialDistribution" |
1346 | 1747 | ||
1347 | 1748 | ||
1348 | // $ANTLR start "entryRuleGateDefinition" | 1749 | // $ANTLR start "entryRuleGateDefinition" |
1349 | // InternalCftLanguage.g:528:1: entryRuleGateDefinition returns [EObject current=null] : iv_ruleGateDefinition= ruleGateDefinition EOF ; | 1750 | // InternalCftLanguage.g:655:1: entryRuleGateDefinition returns [EObject current=null] : iv_ruleGateDefinition= ruleGateDefinition EOF ; |
1350 | public final EObject entryRuleGateDefinition() throws RecognitionException { | 1751 | public final EObject entryRuleGateDefinition() throws RecognitionException { |
1351 | EObject current = null; | 1752 | EObject current = null; |
1352 | 1753 | ||
@@ -1354,8 +1755,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1354 | 1755 | ||
1355 | 1756 | ||
1356 | try { | 1757 | try { |
1357 | // InternalCftLanguage.g:528:55: (iv_ruleGateDefinition= ruleGateDefinition EOF ) | 1758 | // InternalCftLanguage.g:655:55: (iv_ruleGateDefinition= ruleGateDefinition EOF ) |
1358 | // InternalCftLanguage.g:529:2: iv_ruleGateDefinition= ruleGateDefinition EOF | 1759 | // InternalCftLanguage.g:656:2: iv_ruleGateDefinition= ruleGateDefinition EOF |
1359 | { | 1760 | { |
1360 | newCompositeNode(grammarAccess.getGateDefinitionRule()); | 1761 | newCompositeNode(grammarAccess.getGateDefinitionRule()); |
1361 | pushFollow(FOLLOW_1); | 1762 | pushFollow(FOLLOW_1); |
@@ -1382,80 +1783,134 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1382 | 1783 | ||
1383 | 1784 | ||
1384 | // $ANTLR start "ruleGateDefinition" | 1785 | // $ANTLR start "ruleGateDefinition" |
1385 | // InternalCftLanguage.g:535:1: ruleGateDefinition returns [EObject current=null] : (this_AndGate_0= ruleAndGate | this_OrGate_1= ruleOrGate ) ; | 1786 | // InternalCftLanguage.g:662:1: ruleGateDefinition returns [EObject current=null] : (this_AndGateDefinition_0= ruleAndGateDefinition | this_OrGateDefinition_1= ruleOrGateDefinition | this_KOfMGateDefinition_2= ruleKOfMGateDefinition ) ; |
1386 | public final EObject ruleGateDefinition() throws RecognitionException { | 1787 | public final EObject ruleGateDefinition() throws RecognitionException { |
1387 | EObject current = null; | 1788 | EObject current = null; |
1388 | 1789 | ||
1389 | EObject this_AndGate_0 = null; | 1790 | EObject this_AndGateDefinition_0 = null; |
1390 | 1791 | ||
1391 | EObject this_OrGate_1 = null; | 1792 | EObject this_OrGateDefinition_1 = null; |
1793 | |||
1794 | EObject this_KOfMGateDefinition_2 = null; | ||
1392 | 1795 | ||
1393 | 1796 | ||
1394 | 1797 | ||
1395 | enterRule(); | 1798 | enterRule(); |
1396 | 1799 | ||
1397 | try { | 1800 | try { |
1398 | // InternalCftLanguage.g:541:2: ( (this_AndGate_0= ruleAndGate | this_OrGate_1= ruleOrGate ) ) | 1801 | // InternalCftLanguage.g:668:2: ( (this_AndGateDefinition_0= ruleAndGateDefinition | this_OrGateDefinition_1= ruleOrGateDefinition | this_KOfMGateDefinition_2= ruleKOfMGateDefinition ) ) |
1399 | // InternalCftLanguage.g:542:2: (this_AndGate_0= ruleAndGate | this_OrGate_1= ruleOrGate ) | 1802 | // InternalCftLanguage.g:669:2: (this_AndGateDefinition_0= ruleAndGateDefinition | this_OrGateDefinition_1= ruleOrGateDefinition | this_KOfMGateDefinition_2= ruleKOfMGateDefinition ) |
1400 | { | 1803 | { |
1401 | // InternalCftLanguage.g:542:2: (this_AndGate_0= ruleAndGate | this_OrGate_1= ruleOrGate ) | 1804 | // InternalCftLanguage.g:669:2: (this_AndGateDefinition_0= ruleAndGateDefinition | this_OrGateDefinition_1= ruleOrGateDefinition | this_KOfMGateDefinition_2= ruleKOfMGateDefinition ) |
1402 | int alt11=2; | 1805 | int alt12=3; |
1403 | int LA11_0 = input.LA(1); | 1806 | int LA12_0 = input.LA(1); |
1404 | 1807 | ||
1405 | if ( (LA11_0==RULE_ID) ) { | 1808 | if ( (LA12_0==RULE_ID) ) { |
1406 | int LA11_1 = input.LA(2); | 1809 | switch ( input.LA(2) ) { |
1810 | case RULE_INT: | ||
1811 | { | ||
1812 | alt12=3; | ||
1813 | } | ||
1814 | break; | ||
1815 | case 26: | ||
1816 | { | ||
1817 | alt12=2; | ||
1818 | } | ||
1819 | break; | ||
1820 | case 25: | ||
1821 | { | ||
1822 | alt12=1; | ||
1823 | } | ||
1824 | break; | ||
1825 | default: | ||
1826 | NoViableAltException nvae = | ||
1827 | new NoViableAltException("", 12, 1, input); | ||
1407 | 1828 | ||
1408 | if ( (LA11_1==24) ) { | 1829 | throw nvae; |
1409 | alt11=2; | ||
1410 | } | ||
1411 | else if ( (LA11_1==23) ) { | ||
1412 | alt11=1; | ||
1413 | } | 1830 | } |
1414 | else { | 1831 | |
1832 | } | ||
1833 | else if ( (LA12_0==RULE_OF_INT) ) { | ||
1834 | switch ( input.LA(2) ) { | ||
1835 | case RULE_INT: | ||
1836 | { | ||
1837 | alt12=3; | ||
1838 | } | ||
1839 | break; | ||
1840 | case 26: | ||
1841 | { | ||
1842 | alt12=2; | ||
1843 | } | ||
1844 | break; | ||
1845 | case 25: | ||
1846 | { | ||
1847 | alt12=1; | ||
1848 | } | ||
1849 | break; | ||
1850 | default: | ||
1415 | NoViableAltException nvae = | 1851 | NoViableAltException nvae = |
1416 | new NoViableAltException("", 11, 1, input); | 1852 | new NoViableAltException("", 12, 2, input); |
1417 | 1853 | ||
1418 | throw nvae; | 1854 | throw nvae; |
1419 | } | 1855 | } |
1856 | |||
1420 | } | 1857 | } |
1421 | else { | 1858 | else { |
1422 | NoViableAltException nvae = | 1859 | NoViableAltException nvae = |
1423 | new NoViableAltException("", 11, 0, input); | 1860 | new NoViableAltException("", 12, 0, input); |
1424 | 1861 | ||
1425 | throw nvae; | 1862 | throw nvae; |
1426 | } | 1863 | } |
1427 | switch (alt11) { | 1864 | switch (alt12) { |
1428 | case 1 : | 1865 | case 1 : |
1429 | // InternalCftLanguage.g:543:3: this_AndGate_0= ruleAndGate | 1866 | // InternalCftLanguage.g:670:3: this_AndGateDefinition_0= ruleAndGateDefinition |
1430 | { | 1867 | { |
1431 | 1868 | ||
1432 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getAndGateParserRuleCall_0()); | 1869 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getAndGateDefinitionParserRuleCall_0()); |
1433 | 1870 | ||
1434 | pushFollow(FOLLOW_2); | 1871 | pushFollow(FOLLOW_2); |
1435 | this_AndGate_0=ruleAndGate(); | 1872 | this_AndGateDefinition_0=ruleAndGateDefinition(); |
1436 | 1873 | ||
1437 | state._fsp--; | 1874 | state._fsp--; |
1438 | 1875 | ||
1439 | 1876 | ||
1440 | current = this_AndGate_0; | 1877 | current = this_AndGateDefinition_0; |
1441 | afterParserOrEnumRuleCall(); | 1878 | afterParserOrEnumRuleCall(); |
1442 | 1879 | ||
1443 | 1880 | ||
1444 | } | 1881 | } |
1445 | break; | 1882 | break; |
1446 | case 2 : | 1883 | case 2 : |
1447 | // InternalCftLanguage.g:552:3: this_OrGate_1= ruleOrGate | 1884 | // InternalCftLanguage.g:679:3: this_OrGateDefinition_1= ruleOrGateDefinition |
1448 | { | 1885 | { |
1449 | 1886 | ||
1450 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getOrGateParserRuleCall_1()); | 1887 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getOrGateDefinitionParserRuleCall_1()); |
1451 | 1888 | ||
1452 | pushFollow(FOLLOW_2); | 1889 | pushFollow(FOLLOW_2); |
1453 | this_OrGate_1=ruleOrGate(); | 1890 | this_OrGateDefinition_1=ruleOrGateDefinition(); |
1454 | 1891 | ||
1455 | state._fsp--; | 1892 | state._fsp--; |
1456 | 1893 | ||
1457 | 1894 | ||
1458 | current = this_OrGate_1; | 1895 | current = this_OrGateDefinition_1; |
1896 | afterParserOrEnumRuleCall(); | ||
1897 | |||
1898 | |||
1899 | } | ||
1900 | break; | ||
1901 | case 3 : | ||
1902 | // InternalCftLanguage.g:688:3: this_KOfMGateDefinition_2= ruleKOfMGateDefinition | ||
1903 | { | ||
1904 | |||
1905 | newCompositeNode(grammarAccess.getGateDefinitionAccess().getKOfMGateDefinitionParserRuleCall_2()); | ||
1906 | |||
1907 | pushFollow(FOLLOW_2); | ||
1908 | this_KOfMGateDefinition_2=ruleKOfMGateDefinition(); | ||
1909 | |||
1910 | state._fsp--; | ||
1911 | |||
1912 | |||
1913 | current = this_KOfMGateDefinition_2; | ||
1459 | afterParserOrEnumRuleCall(); | 1914 | afterParserOrEnumRuleCall(); |
1460 | 1915 | ||
1461 | 1916 | ||
@@ -1483,25 +1938,25 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1483 | // $ANTLR end "ruleGateDefinition" | 1938 | // $ANTLR end "ruleGateDefinition" |
1484 | 1939 | ||
1485 | 1940 | ||
1486 | // $ANTLR start "entryRuleAndGate" | 1941 | // $ANTLR start "entryRuleAndGateDefinition" |
1487 | // InternalCftLanguage.g:564:1: entryRuleAndGate returns [EObject current=null] : iv_ruleAndGate= ruleAndGate EOF ; | 1942 | // InternalCftLanguage.g:700:1: entryRuleAndGateDefinition returns [EObject current=null] : iv_ruleAndGateDefinition= ruleAndGateDefinition EOF ; |
1488 | public final EObject entryRuleAndGate() throws RecognitionException { | 1943 | public final EObject entryRuleAndGateDefinition() throws RecognitionException { |
1489 | EObject current = null; | 1944 | EObject current = null; |
1490 | 1945 | ||
1491 | EObject iv_ruleAndGate = null; | 1946 | EObject iv_ruleAndGateDefinition = null; |
1492 | 1947 | ||
1493 | 1948 | ||
1494 | try { | 1949 | try { |
1495 | // InternalCftLanguage.g:564:48: (iv_ruleAndGate= ruleAndGate EOF ) | 1950 | // InternalCftLanguage.g:700:58: (iv_ruleAndGateDefinition= ruleAndGateDefinition EOF ) |
1496 | // InternalCftLanguage.g:565:2: iv_ruleAndGate= ruleAndGate EOF | 1951 | // InternalCftLanguage.g:701:2: iv_ruleAndGateDefinition= ruleAndGateDefinition EOF |
1497 | { | 1952 | { |
1498 | newCompositeNode(grammarAccess.getAndGateRule()); | 1953 | newCompositeNode(grammarAccess.getAndGateDefinitionRule()); |
1499 | pushFollow(FOLLOW_1); | 1954 | pushFollow(FOLLOW_1); |
1500 | iv_ruleAndGate=ruleAndGate(); | 1955 | iv_ruleAndGateDefinition=ruleAndGateDefinition(); |
1501 | 1956 | ||
1502 | state._fsp--; | 1957 | state._fsp--; |
1503 | 1958 | ||
1504 | current =iv_ruleAndGate; | 1959 | current =iv_ruleAndGateDefinition; |
1505 | match(input,EOF,FOLLOW_2); | 1960 | match(input,EOF,FOLLOW_2); |
1506 | 1961 | ||
1507 | } | 1962 | } |
@@ -1516,47 +1971,52 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1516 | } | 1971 | } |
1517 | return current; | 1972 | return current; |
1518 | } | 1973 | } |
1519 | // $ANTLR end "entryRuleAndGate" | 1974 | // $ANTLR end "entryRuleAndGateDefinition" |
1520 | 1975 | ||
1521 | 1976 | ||
1522 | // $ANTLR start "ruleAndGate" | 1977 | // $ANTLR start "ruleAndGateDefinition" |
1523 | // InternalCftLanguage.g:571:1: ruleAndGate returns [EObject current=null] : ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* ) ; | 1978 | // InternalCftLanguage.g:707:1: ruleAndGateDefinition returns [EObject current=null] : ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'and' ( ( ruleValidId ) )* ) ; |
1524 | public final EObject ruleAndGate() throws RecognitionException { | 1979 | public final EObject ruleAndGateDefinition() throws RecognitionException { |
1525 | EObject current = null; | 1980 | EObject current = null; |
1526 | 1981 | ||
1527 | Token lv_name_0_0=null; | ||
1528 | Token otherlv_1=null; | 1982 | Token otherlv_1=null; |
1529 | Token otherlv_2=null; | 1983 | AntlrDatatypeRuleToken lv_name_0_0 = null; |
1984 | |||
1530 | 1985 | ||
1531 | 1986 | ||
1532 | enterRule(); | 1987 | enterRule(); |
1533 | 1988 | ||
1534 | try { | 1989 | try { |
1535 | // InternalCftLanguage.g:577:2: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* ) ) | 1990 | // InternalCftLanguage.g:713:2: ( ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'and' ( ( ruleValidId ) )* ) ) |
1536 | // InternalCftLanguage.g:578:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* ) | 1991 | // InternalCftLanguage.g:714:2: ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'and' ( ( ruleValidId ) )* ) |
1537 | { | 1992 | { |
1538 | // InternalCftLanguage.g:578:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* ) | 1993 | // InternalCftLanguage.g:714:2: ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'and' ( ( ruleValidId ) )* ) |
1539 | // InternalCftLanguage.g:579:3: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'and' ( (otherlv_2= RULE_ID ) )* | 1994 | // InternalCftLanguage.g:715:3: ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'and' ( ( ruleValidId ) )* |
1540 | { | 1995 | { |
1541 | // InternalCftLanguage.g:579:3: ( (lv_name_0_0= RULE_ID ) ) | 1996 | // InternalCftLanguage.g:715:3: ( (lv_name_0_0= ruleValidId ) ) |
1542 | // InternalCftLanguage.g:580:4: (lv_name_0_0= RULE_ID ) | 1997 | // InternalCftLanguage.g:716:4: (lv_name_0_0= ruleValidId ) |
1543 | { | 1998 | { |
1544 | // InternalCftLanguage.g:580:4: (lv_name_0_0= RULE_ID ) | 1999 | // InternalCftLanguage.g:716:4: (lv_name_0_0= ruleValidId ) |
1545 | // InternalCftLanguage.g:581:5: lv_name_0_0= RULE_ID | 2000 | // InternalCftLanguage.g:717:5: lv_name_0_0= ruleValidId |
1546 | { | 2001 | { |
1547 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_17); | ||
1548 | 2002 | ||
1549 | newLeafNode(lv_name_0_0, grammarAccess.getAndGateAccess().getNameIDTerminalRuleCall_0_0()); | 2003 | newCompositeNode(grammarAccess.getAndGateDefinitionAccess().getNameValidIdParserRuleCall_0_0()); |
1550 | 2004 | ||
2005 | pushFollow(FOLLOW_17); | ||
2006 | lv_name_0_0=ruleValidId(); | ||
2007 | |||
2008 | state._fsp--; | ||
2009 | |||
1551 | 2010 | ||
1552 | if (current==null) { | 2011 | if (current==null) { |
1553 | current = createModelElement(grammarAccess.getAndGateRule()); | 2012 | current = createModelElementForParent(grammarAccess.getAndGateDefinitionRule()); |
1554 | } | 2013 | } |
1555 | setWithLastConsumed( | 2014 | set( |
1556 | current, | 2015 | current, |
1557 | "name", | 2016 | "name", |
1558 | lv_name_0_0, | 2017 | lv_name_0_0, |
1559 | "org.eclipse.xtext.common.Terminals.ID"); | 2018 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
2019 | afterParserOrEnumRuleCall(); | ||
1560 | 2020 | ||
1561 | 2021 | ||
1562 | } | 2022 | } |
@@ -1564,36 +2024,43 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1564 | 2024 | ||
1565 | } | 2025 | } |
1566 | 2026 | ||
1567 | otherlv_1=(Token)match(input,23,FOLLOW_18); | 2027 | otherlv_1=(Token)match(input,25,FOLLOW_18); |
1568 | 2028 | ||
1569 | newLeafNode(otherlv_1, grammarAccess.getAndGateAccess().getAndKeyword_1()); | 2029 | newLeafNode(otherlv_1, grammarAccess.getAndGateDefinitionAccess().getAndKeyword_1()); |
1570 | 2030 | ||
1571 | // InternalCftLanguage.g:601:3: ( (otherlv_2= RULE_ID ) )* | 2031 | // InternalCftLanguage.g:738:3: ( ( ruleValidId ) )* |
1572 | loop12: | 2032 | loop13: |
1573 | do { | 2033 | do { |
1574 | int alt12=2; | 2034 | int alt13=2; |
1575 | int LA12_0 = input.LA(1); | 2035 | int LA13_0 = input.LA(1); |
1576 | 2036 | ||
1577 | if ( (LA12_0==RULE_ID) ) { | 2037 | if ( ((LA13_0>=RULE_OF_INT && LA13_0<=RULE_ID)) ) { |
1578 | alt12=1; | 2038 | alt13=1; |
1579 | } | 2039 | } |
1580 | 2040 | ||
1581 | 2041 | ||
1582 | switch (alt12) { | 2042 | switch (alt13) { |
1583 | case 1 : | 2043 | case 1 : |
1584 | // InternalCftLanguage.g:602:4: (otherlv_2= RULE_ID ) | 2044 | // InternalCftLanguage.g:739:4: ( ruleValidId ) |
1585 | { | 2045 | { |
1586 | // InternalCftLanguage.g:602:4: (otherlv_2= RULE_ID ) | 2046 | // InternalCftLanguage.g:739:4: ( ruleValidId ) |
1587 | // InternalCftLanguage.g:603:5: otherlv_2= RULE_ID | 2047 | // InternalCftLanguage.g:740:5: ruleValidId |
1588 | { | 2048 | { |
1589 | 2049 | ||
1590 | if (current==null) { | 2050 | if (current==null) { |
1591 | current = createModelElement(grammarAccess.getAndGateRule()); | 2051 | current = createModelElement(grammarAccess.getAndGateDefinitionRule()); |
1592 | } | 2052 | } |
1593 | 2053 | ||
1594 | otherlv_2=(Token)match(input,RULE_ID,FOLLOW_18); | ||
1595 | 2054 | ||
1596 | newLeafNode(otherlv_2, grammarAccess.getAndGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); | 2055 | newCompositeNode(grammarAccess.getAndGateDefinitionAccess().getInputEventsEventDeclarationCrossReference_2_0()); |
2056 | |||
2057 | pushFollow(FOLLOW_18); | ||
2058 | ruleValidId(); | ||
2059 | |||
2060 | state._fsp--; | ||
2061 | |||
2062 | |||
2063 | afterParserOrEnumRuleCall(); | ||
1597 | 2064 | ||
1598 | 2065 | ||
1599 | } | 2066 | } |
@@ -1603,7 +2070,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1603 | break; | 2070 | break; |
1604 | 2071 | ||
1605 | default : | 2072 | default : |
1606 | break loop12; | 2073 | break loop13; |
1607 | } | 2074 | } |
1608 | } while (true); | 2075 | } while (true); |
1609 | 2076 | ||
@@ -1626,28 +2093,28 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1626 | } | 2093 | } |
1627 | return current; | 2094 | return current; |
1628 | } | 2095 | } |
1629 | // $ANTLR end "ruleAndGate" | 2096 | // $ANTLR end "ruleAndGateDefinition" |
1630 | 2097 | ||
1631 | 2098 | ||
1632 | // $ANTLR start "entryRuleOrGate" | 2099 | // $ANTLR start "entryRuleOrGateDefinition" |
1633 | // InternalCftLanguage.g:618:1: entryRuleOrGate returns [EObject current=null] : iv_ruleOrGate= ruleOrGate EOF ; | 2100 | // InternalCftLanguage.g:758:1: entryRuleOrGateDefinition returns [EObject current=null] : iv_ruleOrGateDefinition= ruleOrGateDefinition EOF ; |
1634 | public final EObject entryRuleOrGate() throws RecognitionException { | 2101 | public final EObject entryRuleOrGateDefinition() throws RecognitionException { |
1635 | EObject current = null; | 2102 | EObject current = null; |
1636 | 2103 | ||
1637 | EObject iv_ruleOrGate = null; | 2104 | EObject iv_ruleOrGateDefinition = null; |
1638 | 2105 | ||
1639 | 2106 | ||
1640 | try { | 2107 | try { |
1641 | // InternalCftLanguage.g:618:47: (iv_ruleOrGate= ruleOrGate EOF ) | 2108 | // InternalCftLanguage.g:758:57: (iv_ruleOrGateDefinition= ruleOrGateDefinition EOF ) |
1642 | // InternalCftLanguage.g:619:2: iv_ruleOrGate= ruleOrGate EOF | 2109 | // InternalCftLanguage.g:759:2: iv_ruleOrGateDefinition= ruleOrGateDefinition EOF |
1643 | { | 2110 | { |
1644 | newCompositeNode(grammarAccess.getOrGateRule()); | 2111 | newCompositeNode(grammarAccess.getOrGateDefinitionRule()); |
1645 | pushFollow(FOLLOW_1); | 2112 | pushFollow(FOLLOW_1); |
1646 | iv_ruleOrGate=ruleOrGate(); | 2113 | iv_ruleOrGateDefinition=ruleOrGateDefinition(); |
1647 | 2114 | ||
1648 | state._fsp--; | 2115 | state._fsp--; |
1649 | 2116 | ||
1650 | current =iv_ruleOrGate; | 2117 | current =iv_ruleOrGateDefinition; |
1651 | match(input,EOF,FOLLOW_2); | 2118 | match(input,EOF,FOLLOW_2); |
1652 | 2119 | ||
1653 | } | 2120 | } |
@@ -1662,47 +2129,52 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1662 | } | 2129 | } |
1663 | return current; | 2130 | return current; |
1664 | } | 2131 | } |
1665 | // $ANTLR end "entryRuleOrGate" | 2132 | // $ANTLR end "entryRuleOrGateDefinition" |
1666 | 2133 | ||
1667 | 2134 | ||
1668 | // $ANTLR start "ruleOrGate" | 2135 | // $ANTLR start "ruleOrGateDefinition" |
1669 | // InternalCftLanguage.g:625:1: ruleOrGate returns [EObject current=null] : ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* ) ; | 2136 | // InternalCftLanguage.g:765:1: ruleOrGateDefinition returns [EObject current=null] : ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'or' ( ( ruleValidId ) )* ) ; |
1670 | public final EObject ruleOrGate() throws RecognitionException { | 2137 | public final EObject ruleOrGateDefinition() throws RecognitionException { |
1671 | EObject current = null; | 2138 | EObject current = null; |
1672 | 2139 | ||
1673 | Token lv_name_0_0=null; | ||
1674 | Token otherlv_1=null; | 2140 | Token otherlv_1=null; |
1675 | Token otherlv_2=null; | 2141 | AntlrDatatypeRuleToken lv_name_0_0 = null; |
2142 | |||
1676 | 2143 | ||
1677 | 2144 | ||
1678 | enterRule(); | 2145 | enterRule(); |
1679 | 2146 | ||
1680 | try { | 2147 | try { |
1681 | // InternalCftLanguage.g:631:2: ( ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* ) ) | 2148 | // InternalCftLanguage.g:771:2: ( ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'or' ( ( ruleValidId ) )* ) ) |
1682 | // InternalCftLanguage.g:632:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* ) | 2149 | // InternalCftLanguage.g:772:2: ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'or' ( ( ruleValidId ) )* ) |
1683 | { | 2150 | { |
1684 | // InternalCftLanguage.g:632:2: ( ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* ) | 2151 | // InternalCftLanguage.g:772:2: ( ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'or' ( ( ruleValidId ) )* ) |
1685 | // InternalCftLanguage.g:633:3: ( (lv_name_0_0= RULE_ID ) ) otherlv_1= 'or' ( (otherlv_2= RULE_ID ) )* | 2152 | // InternalCftLanguage.g:773:3: ( (lv_name_0_0= ruleValidId ) ) otherlv_1= 'or' ( ( ruleValidId ) )* |
1686 | { | 2153 | { |
1687 | // InternalCftLanguage.g:633:3: ( (lv_name_0_0= RULE_ID ) ) | 2154 | // InternalCftLanguage.g:773:3: ( (lv_name_0_0= ruleValidId ) ) |
1688 | // InternalCftLanguage.g:634:4: (lv_name_0_0= RULE_ID ) | 2155 | // InternalCftLanguage.g:774:4: (lv_name_0_0= ruleValidId ) |
1689 | { | 2156 | { |
1690 | // InternalCftLanguage.g:634:4: (lv_name_0_0= RULE_ID ) | 2157 | // InternalCftLanguage.g:774:4: (lv_name_0_0= ruleValidId ) |
1691 | // InternalCftLanguage.g:635:5: lv_name_0_0= RULE_ID | 2158 | // InternalCftLanguage.g:775:5: lv_name_0_0= ruleValidId |
1692 | { | 2159 | { |
1693 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_19); | ||
1694 | 2160 | ||
1695 | newLeafNode(lv_name_0_0, grammarAccess.getOrGateAccess().getNameIDTerminalRuleCall_0_0()); | 2161 | newCompositeNode(grammarAccess.getOrGateDefinitionAccess().getNameValidIdParserRuleCall_0_0()); |
1696 | 2162 | ||
2163 | pushFollow(FOLLOW_19); | ||
2164 | lv_name_0_0=ruleValidId(); | ||
2165 | |||
2166 | state._fsp--; | ||
2167 | |||
1697 | 2168 | ||
1698 | if (current==null) { | 2169 | if (current==null) { |
1699 | current = createModelElement(grammarAccess.getOrGateRule()); | 2170 | current = createModelElementForParent(grammarAccess.getOrGateDefinitionRule()); |
1700 | } | 2171 | } |
1701 | setWithLastConsumed( | 2172 | set( |
1702 | current, | 2173 | current, |
1703 | "name", | 2174 | "name", |
1704 | lv_name_0_0, | 2175 | lv_name_0_0, |
1705 | "org.eclipse.xtext.common.Terminals.ID"); | 2176 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
2177 | afterParserOrEnumRuleCall(); | ||
1706 | 2178 | ||
1707 | 2179 | ||
1708 | } | 2180 | } |
@@ -1710,36 +2182,43 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1710 | 2182 | ||
1711 | } | 2183 | } |
1712 | 2184 | ||
1713 | otherlv_1=(Token)match(input,24,FOLLOW_18); | 2185 | otherlv_1=(Token)match(input,26,FOLLOW_18); |
1714 | 2186 | ||
1715 | newLeafNode(otherlv_1, grammarAccess.getOrGateAccess().getOrKeyword_1()); | 2187 | newLeafNode(otherlv_1, grammarAccess.getOrGateDefinitionAccess().getOrKeyword_1()); |
1716 | 2188 | ||
1717 | // InternalCftLanguage.g:655:3: ( (otherlv_2= RULE_ID ) )* | 2189 | // InternalCftLanguage.g:796:3: ( ( ruleValidId ) )* |
1718 | loop13: | 2190 | loop14: |
1719 | do { | 2191 | do { |
1720 | int alt13=2; | 2192 | int alt14=2; |
1721 | int LA13_0 = input.LA(1); | 2193 | int LA14_0 = input.LA(1); |
1722 | 2194 | ||
1723 | if ( (LA13_0==RULE_ID) ) { | 2195 | if ( ((LA14_0>=RULE_OF_INT && LA14_0<=RULE_ID)) ) { |
1724 | alt13=1; | 2196 | alt14=1; |
1725 | } | 2197 | } |
1726 | 2198 | ||
1727 | 2199 | ||
1728 | switch (alt13) { | 2200 | switch (alt14) { |
1729 | case 1 : | 2201 | case 1 : |
1730 | // InternalCftLanguage.g:656:4: (otherlv_2= RULE_ID ) | 2202 | // InternalCftLanguage.g:797:4: ( ruleValidId ) |
1731 | { | 2203 | { |
1732 | // InternalCftLanguage.g:656:4: (otherlv_2= RULE_ID ) | 2204 | // InternalCftLanguage.g:797:4: ( ruleValidId ) |
1733 | // InternalCftLanguage.g:657:5: otherlv_2= RULE_ID | 2205 | // InternalCftLanguage.g:798:5: ruleValidId |
1734 | { | 2206 | { |
1735 | 2207 | ||
1736 | if (current==null) { | 2208 | if (current==null) { |
1737 | current = createModelElement(grammarAccess.getOrGateRule()); | 2209 | current = createModelElement(grammarAccess.getOrGateDefinitionRule()); |
1738 | } | 2210 | } |
1739 | 2211 | ||
1740 | otherlv_2=(Token)match(input,RULE_ID,FOLLOW_18); | ||
1741 | 2212 | ||
1742 | newLeafNode(otherlv_2, grammarAccess.getOrGateAccess().getInputEventsEventDeclarationCrossReference_2_0()); | 2213 | newCompositeNode(grammarAccess.getOrGateDefinitionAccess().getInputEventsEventDeclarationCrossReference_2_0()); |
2214 | |||
2215 | pushFollow(FOLLOW_18); | ||
2216 | ruleValidId(); | ||
2217 | |||
2218 | state._fsp--; | ||
2219 | |||
2220 | |||
2221 | afterParserOrEnumRuleCall(); | ||
1743 | 2222 | ||
1744 | 2223 | ||
1745 | } | 2224 | } |
@@ -1749,7 +2228,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1749 | break; | 2228 | break; |
1750 | 2229 | ||
1751 | default : | 2230 | default : |
1752 | break loop13; | 2231 | break loop14; |
1753 | } | 2232 | } |
1754 | } while (true); | 2233 | } while (true); |
1755 | 2234 | ||
@@ -1772,11 +2251,288 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1772 | } | 2251 | } |
1773 | return current; | 2252 | return current; |
1774 | } | 2253 | } |
1775 | // $ANTLR end "ruleOrGate" | 2254 | // $ANTLR end "ruleOrGateDefinition" |
2255 | |||
2256 | |||
2257 | // $ANTLR start "entryRuleKOfMGateDefinition" | ||
2258 | // InternalCftLanguage.g:816:1: entryRuleKOfMGateDefinition returns [EObject current=null] : iv_ruleKOfMGateDefinition= ruleKOfMGateDefinition EOF ; | ||
2259 | public final EObject entryRuleKOfMGateDefinition() throws RecognitionException { | ||
2260 | EObject current = null; | ||
2261 | |||
2262 | EObject iv_ruleKOfMGateDefinition = null; | ||
2263 | |||
2264 | |||
2265 | try { | ||
2266 | // InternalCftLanguage.g:816:59: (iv_ruleKOfMGateDefinition= ruleKOfMGateDefinition EOF ) | ||
2267 | // InternalCftLanguage.g:817:2: iv_ruleKOfMGateDefinition= ruleKOfMGateDefinition EOF | ||
2268 | { | ||
2269 | newCompositeNode(grammarAccess.getKOfMGateDefinitionRule()); | ||
2270 | pushFollow(FOLLOW_1); | ||
2271 | iv_ruleKOfMGateDefinition=ruleKOfMGateDefinition(); | ||
2272 | |||
2273 | state._fsp--; | ||
2274 | |||
2275 | current =iv_ruleKOfMGateDefinition; | ||
2276 | match(input,EOF,FOLLOW_2); | ||
2277 | |||
2278 | } | ||
2279 | |||
2280 | } | ||
2281 | |||
2282 | catch (RecognitionException re) { | ||
2283 | recover(input,re); | ||
2284 | appendSkippedTokens(); | ||
2285 | } | ||
2286 | finally { | ||
2287 | } | ||
2288 | return current; | ||
2289 | } | ||
2290 | // $ANTLR end "entryRuleKOfMGateDefinition" | ||
2291 | |||
2292 | |||
2293 | // $ANTLR start "ruleKOfMGateDefinition" | ||
2294 | // InternalCftLanguage.g:823:1: ruleKOfMGateDefinition returns [EObject current=null] : ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_k_1_0= RULE_INT ) ) ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) ( ( ruleValidId ) )* ) ; | ||
2295 | public final EObject ruleKOfMGateDefinition() throws RecognitionException { | ||
2296 | EObject current = null; | ||
2297 | |||
2298 | Token lv_k_1_0=null; | ||
2299 | Token otherlv_2=null; | ||
2300 | Token lv_m_3_0=null; | ||
2301 | Token lv_m_4_0=null; | ||
2302 | AntlrDatatypeRuleToken lv_name_0_0 = null; | ||
2303 | |||
2304 | |||
2305 | |||
2306 | enterRule(); | ||
2307 | |||
2308 | try { | ||
2309 | // InternalCftLanguage.g:829:2: ( ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_k_1_0= RULE_INT ) ) ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) ( ( ruleValidId ) )* ) ) | ||
2310 | // InternalCftLanguage.g:830:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_k_1_0= RULE_INT ) ) ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) ( ( ruleValidId ) )* ) | ||
2311 | { | ||
2312 | // InternalCftLanguage.g:830:2: ( ( (lv_name_0_0= ruleValidId ) ) ( (lv_k_1_0= RULE_INT ) ) ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) ( ( ruleValidId ) )* ) | ||
2313 | // InternalCftLanguage.g:831:3: ( (lv_name_0_0= ruleValidId ) ) ( (lv_k_1_0= RULE_INT ) ) ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) ( ( ruleValidId ) )* | ||
2314 | { | ||
2315 | // InternalCftLanguage.g:831:3: ( (lv_name_0_0= ruleValidId ) ) | ||
2316 | // InternalCftLanguage.g:832:4: (lv_name_0_0= ruleValidId ) | ||
2317 | { | ||
2318 | // InternalCftLanguage.g:832:4: (lv_name_0_0= ruleValidId ) | ||
2319 | // InternalCftLanguage.g:833:5: lv_name_0_0= ruleValidId | ||
2320 | { | ||
2321 | |||
2322 | newCompositeNode(grammarAccess.getKOfMGateDefinitionAccess().getNameValidIdParserRuleCall_0_0()); | ||
2323 | |||
2324 | pushFollow(FOLLOW_20); | ||
2325 | lv_name_0_0=ruleValidId(); | ||
2326 | |||
2327 | state._fsp--; | ||
2328 | |||
2329 | |||
2330 | if (current==null) { | ||
2331 | current = createModelElementForParent(grammarAccess.getKOfMGateDefinitionRule()); | ||
2332 | } | ||
2333 | set( | ||
2334 | current, | ||
2335 | "name", | ||
2336 | lv_name_0_0, | ||
2337 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); | ||
2338 | afterParserOrEnumRuleCall(); | ||
2339 | |||
2340 | |||
2341 | } | ||
2342 | |||
2343 | |||
2344 | } | ||
2345 | |||
2346 | // InternalCftLanguage.g:850:3: ( (lv_k_1_0= RULE_INT ) ) | ||
2347 | // InternalCftLanguage.g:851:4: (lv_k_1_0= RULE_INT ) | ||
2348 | { | ||
2349 | // InternalCftLanguage.g:851:4: (lv_k_1_0= RULE_INT ) | ||
2350 | // InternalCftLanguage.g:852:5: lv_k_1_0= RULE_INT | ||
2351 | { | ||
2352 | lv_k_1_0=(Token)match(input,RULE_INT,FOLLOW_21); | ||
2353 | |||
2354 | newLeafNode(lv_k_1_0, grammarAccess.getKOfMGateDefinitionAccess().getKINTTerminalRuleCall_1_0()); | ||
2355 | |||
2356 | |||
2357 | if (current==null) { | ||
2358 | current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
2359 | } | ||
2360 | setWithLastConsumed( | ||
2361 | current, | ||
2362 | "k", | ||
2363 | lv_k_1_0, | ||
2364 | "org.eclipse.xtext.common.Terminals.INT"); | ||
2365 | |||
2366 | |||
2367 | } | ||
2368 | |||
2369 | |||
2370 | } | ||
2371 | |||
2372 | // InternalCftLanguage.g:868:3: ( (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ( (lv_m_4_0= RULE_OF_INT ) ) ) | ||
2373 | int alt15=2; | ||
2374 | int LA15_0 = input.LA(1); | ||
2375 | |||
2376 | if ( (LA15_0==27) ) { | ||
2377 | alt15=1; | ||
2378 | } | ||
2379 | else if ( (LA15_0==RULE_OF_INT) ) { | ||
2380 | alt15=2; | ||
2381 | } | ||
2382 | else { | ||
2383 | NoViableAltException nvae = | ||
2384 | new NoViableAltException("", 15, 0, input); | ||
2385 | |||
2386 | throw nvae; | ||
2387 | } | ||
2388 | switch (alt15) { | ||
2389 | case 1 : | ||
2390 | // InternalCftLanguage.g:869:4: (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ||
2391 | { | ||
2392 | // InternalCftLanguage.g:869:4: (otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) ) | ||
2393 | // InternalCftLanguage.g:870:5: otherlv_2= 'of' ( (lv_m_3_0= RULE_INT ) ) | ||
2394 | { | ||
2395 | otherlv_2=(Token)match(input,27,FOLLOW_20); | ||
2396 | |||
2397 | newLeafNode(otherlv_2, grammarAccess.getKOfMGateDefinitionAccess().getOfKeyword_2_0_0()); | ||
2398 | |||
2399 | // InternalCftLanguage.g:874:5: ( (lv_m_3_0= RULE_INT ) ) | ||
2400 | // InternalCftLanguage.g:875:6: (lv_m_3_0= RULE_INT ) | ||
2401 | { | ||
2402 | // InternalCftLanguage.g:875:6: (lv_m_3_0= RULE_INT ) | ||
2403 | // InternalCftLanguage.g:876:7: lv_m_3_0= RULE_INT | ||
2404 | { | ||
2405 | lv_m_3_0=(Token)match(input,RULE_INT,FOLLOW_18); | ||
2406 | |||
2407 | newLeafNode(lv_m_3_0, grammarAccess.getKOfMGateDefinitionAccess().getMINTTerminalRuleCall_2_0_1_0()); | ||
2408 | |||
2409 | |||
2410 | if (current==null) { | ||
2411 | current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
2412 | } | ||
2413 | setWithLastConsumed( | ||
2414 | current, | ||
2415 | "m", | ||
2416 | lv_m_3_0, | ||
2417 | "org.eclipse.xtext.common.Terminals.INT"); | ||
2418 | |||
2419 | |||
2420 | } | ||
2421 | |||
2422 | |||
2423 | } | ||
2424 | |||
2425 | |||
2426 | } | ||
2427 | |||
2428 | |||
2429 | } | ||
2430 | break; | ||
2431 | case 2 : | ||
2432 | // InternalCftLanguage.g:894:4: ( (lv_m_4_0= RULE_OF_INT ) ) | ||
2433 | { | ||
2434 | // InternalCftLanguage.g:894:4: ( (lv_m_4_0= RULE_OF_INT ) ) | ||
2435 | // InternalCftLanguage.g:895:5: (lv_m_4_0= RULE_OF_INT ) | ||
2436 | { | ||
2437 | // InternalCftLanguage.g:895:5: (lv_m_4_0= RULE_OF_INT ) | ||
2438 | // InternalCftLanguage.g:896:6: lv_m_4_0= RULE_OF_INT | ||
2439 | { | ||
2440 | lv_m_4_0=(Token)match(input,RULE_OF_INT,FOLLOW_18); | ||
2441 | |||
2442 | newLeafNode(lv_m_4_0, grammarAccess.getKOfMGateDefinitionAccess().getMOF_INTTerminalRuleCall_2_1_0()); | ||
2443 | |||
2444 | |||
2445 | if (current==null) { | ||
2446 | current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
2447 | } | ||
2448 | setWithLastConsumed( | ||
2449 | current, | ||
2450 | "m", | ||
2451 | lv_m_4_0, | ||
2452 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.OF_INT"); | ||
2453 | |||
2454 | |||
2455 | } | ||
2456 | |||
2457 | |||
2458 | } | ||
2459 | |||
2460 | |||
2461 | } | ||
2462 | break; | ||
2463 | |||
2464 | } | ||
2465 | |||
2466 | // InternalCftLanguage.g:913:3: ( ( ruleValidId ) )* | ||
2467 | loop16: | ||
2468 | do { | ||
2469 | int alt16=2; | ||
2470 | int LA16_0 = input.LA(1); | ||
2471 | |||
2472 | if ( ((LA16_0>=RULE_OF_INT && LA16_0<=RULE_ID)) ) { | ||
2473 | alt16=1; | ||
2474 | } | ||
2475 | |||
2476 | |||
2477 | switch (alt16) { | ||
2478 | case 1 : | ||
2479 | // InternalCftLanguage.g:914:4: ( ruleValidId ) | ||
2480 | { | ||
2481 | // InternalCftLanguage.g:914:4: ( ruleValidId ) | ||
2482 | // InternalCftLanguage.g:915:5: ruleValidId | ||
2483 | { | ||
2484 | |||
2485 | if (current==null) { | ||
2486 | current = createModelElement(grammarAccess.getKOfMGateDefinitionRule()); | ||
2487 | } | ||
2488 | |||
2489 | |||
2490 | newCompositeNode(grammarAccess.getKOfMGateDefinitionAccess().getInputEventsEventDeclarationCrossReference_3_0()); | ||
2491 | |||
2492 | pushFollow(FOLLOW_18); | ||
2493 | ruleValidId(); | ||
2494 | |||
2495 | state._fsp--; | ||
2496 | |||
2497 | |||
2498 | afterParserOrEnumRuleCall(); | ||
2499 | |||
2500 | |||
2501 | } | ||
2502 | |||
2503 | |||
2504 | } | ||
2505 | break; | ||
2506 | |||
2507 | default : | ||
2508 | break loop16; | ||
2509 | } | ||
2510 | } while (true); | ||
2511 | |||
2512 | |||
2513 | } | ||
2514 | |||
2515 | |||
2516 | } | ||
2517 | |||
2518 | |||
2519 | leaveRule(); | ||
2520 | |||
2521 | } | ||
2522 | |||
2523 | catch (RecognitionException re) { | ||
2524 | recover(input,re); | ||
2525 | appendSkippedTokens(); | ||
2526 | } | ||
2527 | finally { | ||
2528 | } | ||
2529 | return current; | ||
2530 | } | ||
2531 | // $ANTLR end "ruleKOfMGateDefinition" | ||
1776 | 2532 | ||
1777 | 2533 | ||
1778 | // $ANTLR start "entryRuleTransformationDefinition" | 2534 | // $ANTLR start "entryRuleTransformationDefinition" |
1779 | // InternalCftLanguage.g:672:1: entryRuleTransformationDefinition returns [EObject current=null] : iv_ruleTransformationDefinition= ruleTransformationDefinition EOF ; | 2535 | // InternalCftLanguage.g:933:1: entryRuleTransformationDefinition returns [EObject current=null] : iv_ruleTransformationDefinition= ruleTransformationDefinition EOF ; |
1780 | public final EObject entryRuleTransformationDefinition() throws RecognitionException { | 2536 | public final EObject entryRuleTransformationDefinition() throws RecognitionException { |
1781 | EObject current = null; | 2537 | EObject current = null; |
1782 | 2538 | ||
@@ -1784,8 +2540,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1784 | 2540 | ||
1785 | 2541 | ||
1786 | try { | 2542 | try { |
1787 | // InternalCftLanguage.g:672:65: (iv_ruleTransformationDefinition= ruleTransformationDefinition EOF ) | 2543 | // InternalCftLanguage.g:933:65: (iv_ruleTransformationDefinition= ruleTransformationDefinition EOF ) |
1788 | // InternalCftLanguage.g:673:2: iv_ruleTransformationDefinition= ruleTransformationDefinition EOF | 2544 | // InternalCftLanguage.g:934:2: iv_ruleTransformationDefinition= ruleTransformationDefinition EOF |
1789 | { | 2545 | { |
1790 | newCompositeNode(grammarAccess.getTransformationDefinitionRule()); | 2546 | newCompositeNode(grammarAccess.getTransformationDefinitionRule()); |
1791 | pushFollow(FOLLOW_1); | 2547 | pushFollow(FOLLOW_1); |
@@ -1812,14 +2568,15 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1812 | 2568 | ||
1813 | 2569 | ||
1814 | // $ANTLR start "ruleTransformationDefinition" | 2570 | // $ANTLR start "ruleTransformationDefinition" |
1815 | // InternalCftLanguage.g:679:1: ruleTransformationDefinition returns [EObject current=null] : (otherlv_0= 'transformation' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) ; | 2571 | // InternalCftLanguage.g:940:1: ruleTransformationDefinition returns [EObject current=null] : (otherlv_0= 'transformation' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) ; |
1816 | public final EObject ruleTransformationDefinition() throws RecognitionException { | 2572 | public final EObject ruleTransformationDefinition() throws RecognitionException { |
1817 | EObject current = null; | 2573 | EObject current = null; |
1818 | 2574 | ||
1819 | Token otherlv_0=null; | 2575 | Token otherlv_0=null; |
1820 | Token lv_name_1_0=null; | ||
1821 | Token otherlv_2=null; | 2576 | Token otherlv_2=null; |
1822 | Token otherlv_4=null; | 2577 | Token otherlv_4=null; |
2578 | AntlrDatatypeRuleToken lv_name_1_0 = null; | ||
2579 | |||
1823 | EObject lv_mappingDefinitions_3_0 = null; | 2580 | EObject lv_mappingDefinitions_3_0 = null; |
1824 | 2581 | ||
1825 | 2582 | ||
@@ -1827,35 +2584,40 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1827 | enterRule(); | 2584 | enterRule(); |
1828 | 2585 | ||
1829 | try { | 2586 | try { |
1830 | // InternalCftLanguage.g:685:2: ( (otherlv_0= 'transformation' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) ) | 2587 | // InternalCftLanguage.g:946:2: ( (otherlv_0= 'transformation' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) ) |
1831 | // InternalCftLanguage.g:686:2: (otherlv_0= 'transformation' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) | 2588 | // InternalCftLanguage.g:947:2: (otherlv_0= 'transformation' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) |
1832 | { | 2589 | { |
1833 | // InternalCftLanguage.g:686:2: (otherlv_0= 'transformation' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) | 2590 | // InternalCftLanguage.g:947:2: (otherlv_0= 'transformation' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' ) |
1834 | // InternalCftLanguage.g:687:3: otherlv_0= 'transformation' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' | 2591 | // InternalCftLanguage.g:948:3: otherlv_0= 'transformation' ( (lv_name_1_0= ruleValidId ) ) otherlv_2= '{' ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* otherlv_4= '}' |
1835 | { | 2592 | { |
1836 | otherlv_0=(Token)match(input,25,FOLLOW_3); | 2593 | otherlv_0=(Token)match(input,28,FOLLOW_3); |
1837 | 2594 | ||
1838 | newLeafNode(otherlv_0, grammarAccess.getTransformationDefinitionAccess().getTransformationKeyword_0()); | 2595 | newLeafNode(otherlv_0, grammarAccess.getTransformationDefinitionAccess().getTransformationKeyword_0()); |
1839 | 2596 | ||
1840 | // InternalCftLanguage.g:691:3: ( (lv_name_1_0= RULE_ID ) ) | 2597 | // InternalCftLanguage.g:952:3: ( (lv_name_1_0= ruleValidId ) ) |
1841 | // InternalCftLanguage.g:692:4: (lv_name_1_0= RULE_ID ) | 2598 | // InternalCftLanguage.g:953:4: (lv_name_1_0= ruleValidId ) |
1842 | { | 2599 | { |
1843 | // InternalCftLanguage.g:692:4: (lv_name_1_0= RULE_ID ) | 2600 | // InternalCftLanguage.g:953:4: (lv_name_1_0= ruleValidId ) |
1844 | // InternalCftLanguage.g:693:5: lv_name_1_0= RULE_ID | 2601 | // InternalCftLanguage.g:954:5: lv_name_1_0= ruleValidId |
1845 | { | 2602 | { |
1846 | lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_8); | ||
1847 | 2603 | ||
1848 | newLeafNode(lv_name_1_0, grammarAccess.getTransformationDefinitionAccess().getNameIDTerminalRuleCall_1_0()); | 2604 | newCompositeNode(grammarAccess.getTransformationDefinitionAccess().getNameValidIdParserRuleCall_1_0()); |
1849 | 2605 | ||
2606 | pushFollow(FOLLOW_8); | ||
2607 | lv_name_1_0=ruleValidId(); | ||
2608 | |||
2609 | state._fsp--; | ||
2610 | |||
1850 | 2611 | ||
1851 | if (current==null) { | 2612 | if (current==null) { |
1852 | current = createModelElement(grammarAccess.getTransformationDefinitionRule()); | 2613 | current = createModelElementForParent(grammarAccess.getTransformationDefinitionRule()); |
1853 | } | 2614 | } |
1854 | setWithLastConsumed( | 2615 | set( |
1855 | current, | 2616 | current, |
1856 | "name", | 2617 | "name", |
1857 | lv_name_1_0, | 2618 | lv_name_1_0, |
1858 | "org.eclipse.xtext.common.Terminals.ID"); | 2619 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
2620 | afterParserOrEnumRuleCall(); | ||
1859 | 2621 | ||
1860 | 2622 | ||
1861 | } | 2623 | } |
@@ -1863,32 +2625,32 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1863 | 2625 | ||
1864 | } | 2626 | } |
1865 | 2627 | ||
1866 | otherlv_2=(Token)match(input,16,FOLLOW_20); | 2628 | otherlv_2=(Token)match(input,17,FOLLOW_22); |
1867 | 2629 | ||
1868 | newLeafNode(otherlv_2, grammarAccess.getTransformationDefinitionAccess().getLeftCurlyBracketKeyword_2()); | 2630 | newLeafNode(otherlv_2, grammarAccess.getTransformationDefinitionAccess().getLeftCurlyBracketKeyword_2()); |
1869 | 2631 | ||
1870 | // InternalCftLanguage.g:713:3: ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* | 2632 | // InternalCftLanguage.g:975:3: ( (lv_mappingDefinitions_3_0= ruleMappingDefinition ) )* |
1871 | loop14: | 2633 | loop17: |
1872 | do { | 2634 | do { |
1873 | int alt14=2; | 2635 | int alt17=2; |
1874 | int LA14_0 = input.LA(1); | 2636 | int LA17_0 = input.LA(1); |
1875 | 2637 | ||
1876 | if ( ((LA14_0>=26 && LA14_0<=27)) ) { | 2638 | if ( ((LA17_0>=29 && LA17_0<=30)) ) { |
1877 | alt14=1; | 2639 | alt17=1; |
1878 | } | 2640 | } |
1879 | 2641 | ||
1880 | 2642 | ||
1881 | switch (alt14) { | 2643 | switch (alt17) { |
1882 | case 1 : | 2644 | case 1 : |
1883 | // InternalCftLanguage.g:714:4: (lv_mappingDefinitions_3_0= ruleMappingDefinition ) | 2645 | // InternalCftLanguage.g:976:4: (lv_mappingDefinitions_3_0= ruleMappingDefinition ) |
1884 | { | 2646 | { |
1885 | // InternalCftLanguage.g:714:4: (lv_mappingDefinitions_3_0= ruleMappingDefinition ) | 2647 | // InternalCftLanguage.g:976:4: (lv_mappingDefinitions_3_0= ruleMappingDefinition ) |
1886 | // InternalCftLanguage.g:715:5: lv_mappingDefinitions_3_0= ruleMappingDefinition | 2648 | // InternalCftLanguage.g:977:5: lv_mappingDefinitions_3_0= ruleMappingDefinition |
1887 | { | 2649 | { |
1888 | 2650 | ||
1889 | newCompositeNode(grammarAccess.getTransformationDefinitionAccess().getMappingDefinitionsMappingDefinitionParserRuleCall_3_0()); | 2651 | newCompositeNode(grammarAccess.getTransformationDefinitionAccess().getMappingDefinitionsMappingDefinitionParserRuleCall_3_0()); |
1890 | 2652 | ||
1891 | pushFollow(FOLLOW_20); | 2653 | pushFollow(FOLLOW_22); |
1892 | lv_mappingDefinitions_3_0=ruleMappingDefinition(); | 2654 | lv_mappingDefinitions_3_0=ruleMappingDefinition(); |
1893 | 2655 | ||
1894 | state._fsp--; | 2656 | state._fsp--; |
@@ -1912,11 +2674,11 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1912 | break; | 2674 | break; |
1913 | 2675 | ||
1914 | default : | 2676 | default : |
1915 | break loop14; | 2677 | break loop17; |
1916 | } | 2678 | } |
1917 | } while (true); | 2679 | } while (true); |
1918 | 2680 | ||
1919 | otherlv_4=(Token)match(input,19,FOLLOW_2); | 2681 | otherlv_4=(Token)match(input,20,FOLLOW_2); |
1920 | 2682 | ||
1921 | newLeafNode(otherlv_4, grammarAccess.getTransformationDefinitionAccess().getRightCurlyBracketKeyword_4()); | 2683 | newLeafNode(otherlv_4, grammarAccess.getTransformationDefinitionAccess().getRightCurlyBracketKeyword_4()); |
1922 | 2684 | ||
@@ -1943,7 +2705,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1943 | 2705 | ||
1944 | 2706 | ||
1945 | // $ANTLR start "entryRuleMappingDefinition" | 2707 | // $ANTLR start "entryRuleMappingDefinition" |
1946 | // InternalCftLanguage.g:740:1: entryRuleMappingDefinition returns [EObject current=null] : iv_ruleMappingDefinition= ruleMappingDefinition EOF ; | 2708 | // InternalCftLanguage.g:1002:1: entryRuleMappingDefinition returns [EObject current=null] : iv_ruleMappingDefinition= ruleMappingDefinition EOF ; |
1947 | public final EObject entryRuleMappingDefinition() throws RecognitionException { | 2709 | public final EObject entryRuleMappingDefinition() throws RecognitionException { |
1948 | EObject current = null; | 2710 | EObject current = null; |
1949 | 2711 | ||
@@ -1951,8 +2713,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1951 | 2713 | ||
1952 | 2714 | ||
1953 | try { | 2715 | try { |
1954 | // InternalCftLanguage.g:740:58: (iv_ruleMappingDefinition= ruleMappingDefinition EOF ) | 2716 | // InternalCftLanguage.g:1002:58: (iv_ruleMappingDefinition= ruleMappingDefinition EOF ) |
1955 | // InternalCftLanguage.g:741:2: iv_ruleMappingDefinition= ruleMappingDefinition EOF | 2717 | // InternalCftLanguage.g:1003:2: iv_ruleMappingDefinition= ruleMappingDefinition EOF |
1956 | { | 2718 | { |
1957 | newCompositeNode(grammarAccess.getMappingDefinitionRule()); | 2719 | newCompositeNode(grammarAccess.getMappingDefinitionRule()); |
1958 | pushFollow(FOLLOW_1); | 2720 | pushFollow(FOLLOW_1); |
@@ -1979,7 +2741,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
1979 | 2741 | ||
1980 | 2742 | ||
1981 | // $ANTLR start "ruleMappingDefinition" | 2743 | // $ANTLR start "ruleMappingDefinition" |
1982 | // InternalCftLanguage.g:747:1: ruleMappingDefinition returns [EObject current=null] : ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) ; | 2744 | // InternalCftLanguage.g:1009:1: ruleMappingDefinition returns [EObject current=null] : ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) ; |
1983 | public final EObject ruleMappingDefinition() throws RecognitionException { | 2745 | public final EObject ruleMappingDefinition() throws RecognitionException { |
1984 | EObject current = null; | 2746 | EObject current = null; |
1985 | 2747 | ||
@@ -2006,27 +2768,27 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2006 | enterRule(); | 2768 | enterRule(); |
2007 | 2769 | ||
2008 | try { | 2770 | try { |
2009 | // InternalCftLanguage.g:753:2: ( ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) ) | 2771 | // InternalCftLanguage.g:1015:2: ( ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) ) |
2010 | // InternalCftLanguage.g:754:2: ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) | 2772 | // InternalCftLanguage.g:1016:2: ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) |
2011 | { | 2773 | { |
2012 | // InternalCftLanguage.g:754:2: ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) | 2774 | // InternalCftLanguage.g:1016:2: ( ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? ) |
2013 | // InternalCftLanguage.g:755:3: ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? | 2775 | // InternalCftLanguage.g:1017:3: ( (lv_topLevel_0_0= 'toplevel' ) )? otherlv_1= 'mapping' ( ( ruleQualifiedName ) ) otherlv_3= '(' ( (lv_parameters_4_0= ruleMappingParameter ) ) (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* otherlv_7= ')' ( (lv_componentInstance_8_0= ruleComponentInstance ) )? (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? |
2014 | { | 2776 | { |
2015 | // InternalCftLanguage.g:755:3: ( (lv_topLevel_0_0= 'toplevel' ) )? | 2777 | // InternalCftLanguage.g:1017:3: ( (lv_topLevel_0_0= 'toplevel' ) )? |
2016 | int alt15=2; | 2778 | int alt18=2; |
2017 | int LA15_0 = input.LA(1); | 2779 | int LA18_0 = input.LA(1); |
2018 | 2780 | ||
2019 | if ( (LA15_0==26) ) { | 2781 | if ( (LA18_0==29) ) { |
2020 | alt15=1; | 2782 | alt18=1; |
2021 | } | 2783 | } |
2022 | switch (alt15) { | 2784 | switch (alt18) { |
2023 | case 1 : | 2785 | case 1 : |
2024 | // InternalCftLanguage.g:756:4: (lv_topLevel_0_0= 'toplevel' ) | 2786 | // InternalCftLanguage.g:1018:4: (lv_topLevel_0_0= 'toplevel' ) |
2025 | { | 2787 | { |
2026 | // InternalCftLanguage.g:756:4: (lv_topLevel_0_0= 'toplevel' ) | 2788 | // InternalCftLanguage.g:1018:4: (lv_topLevel_0_0= 'toplevel' ) |
2027 | // InternalCftLanguage.g:757:5: lv_topLevel_0_0= 'toplevel' | 2789 | // InternalCftLanguage.g:1019:5: lv_topLevel_0_0= 'toplevel' |
2028 | { | 2790 | { |
2029 | lv_topLevel_0_0=(Token)match(input,26,FOLLOW_21); | 2791 | lv_topLevel_0_0=(Token)match(input,29,FOLLOW_23); |
2030 | 2792 | ||
2031 | newLeafNode(lv_topLevel_0_0, grammarAccess.getMappingDefinitionAccess().getTopLevelToplevelKeyword_0_0()); | 2793 | newLeafNode(lv_topLevel_0_0, grammarAccess.getMappingDefinitionAccess().getTopLevelToplevelKeyword_0_0()); |
2032 | 2794 | ||
@@ -2045,15 +2807,15 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2045 | 2807 | ||
2046 | } | 2808 | } |
2047 | 2809 | ||
2048 | otherlv_1=(Token)match(input,27,FOLLOW_3); | 2810 | otherlv_1=(Token)match(input,30,FOLLOW_3); |
2049 | 2811 | ||
2050 | newLeafNode(otherlv_1, grammarAccess.getMappingDefinitionAccess().getMappingKeyword_1()); | 2812 | newLeafNode(otherlv_1, grammarAccess.getMappingDefinitionAccess().getMappingKeyword_1()); |
2051 | 2813 | ||
2052 | // InternalCftLanguage.g:773:3: ( ( ruleQualifiedName ) ) | 2814 | // InternalCftLanguage.g:1035:3: ( ( ruleQualifiedName ) ) |
2053 | // InternalCftLanguage.g:774:4: ( ruleQualifiedName ) | 2815 | // InternalCftLanguage.g:1036:4: ( ruleQualifiedName ) |
2054 | { | 2816 | { |
2055 | // InternalCftLanguage.g:774:4: ( ruleQualifiedName ) | 2817 | // InternalCftLanguage.g:1036:4: ( ruleQualifiedName ) |
2056 | // InternalCftLanguage.g:775:5: ruleQualifiedName | 2818 | // InternalCftLanguage.g:1037:5: ruleQualifiedName |
2057 | { | 2819 | { |
2058 | 2820 | ||
2059 | if (current==null) { | 2821 | if (current==null) { |
@@ -2063,7 +2825,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2063 | 2825 | ||
2064 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getPatternPatternCrossReference_2_0()); | 2826 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getPatternPatternCrossReference_2_0()); |
2065 | 2827 | ||
2066 | pushFollow(FOLLOW_22); | 2828 | pushFollow(FOLLOW_24); |
2067 | ruleQualifiedName(); | 2829 | ruleQualifiedName(); |
2068 | 2830 | ||
2069 | state._fsp--; | 2831 | state._fsp--; |
@@ -2077,20 +2839,20 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2077 | 2839 | ||
2078 | } | 2840 | } |
2079 | 2841 | ||
2080 | otherlv_3=(Token)match(input,28,FOLLOW_3); | 2842 | otherlv_3=(Token)match(input,31,FOLLOW_3); |
2081 | 2843 | ||
2082 | newLeafNode(otherlv_3, grammarAccess.getMappingDefinitionAccess().getLeftParenthesisKeyword_3()); | 2844 | newLeafNode(otherlv_3, grammarAccess.getMappingDefinitionAccess().getLeftParenthesisKeyword_3()); |
2083 | 2845 | ||
2084 | // InternalCftLanguage.g:793:3: ( (lv_parameters_4_0= ruleMappingParameter ) ) | 2846 | // InternalCftLanguage.g:1055:3: ( (lv_parameters_4_0= ruleMappingParameter ) ) |
2085 | // InternalCftLanguage.g:794:4: (lv_parameters_4_0= ruleMappingParameter ) | 2847 | // InternalCftLanguage.g:1056:4: (lv_parameters_4_0= ruleMappingParameter ) |
2086 | { | 2848 | { |
2087 | // InternalCftLanguage.g:794:4: (lv_parameters_4_0= ruleMappingParameter ) | 2849 | // InternalCftLanguage.g:1056:4: (lv_parameters_4_0= ruleMappingParameter ) |
2088 | // InternalCftLanguage.g:795:5: lv_parameters_4_0= ruleMappingParameter | 2850 | // InternalCftLanguage.g:1057:5: lv_parameters_4_0= ruleMappingParameter |
2089 | { | 2851 | { |
2090 | 2852 | ||
2091 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_4_0()); | 2853 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_4_0()); |
2092 | 2854 | ||
2093 | pushFollow(FOLLOW_23); | 2855 | pushFollow(FOLLOW_25); |
2094 | lv_parameters_4_0=ruleMappingParameter(); | 2856 | lv_parameters_4_0=ruleMappingParameter(); |
2095 | 2857 | ||
2096 | state._fsp--; | 2858 | state._fsp--; |
@@ -2112,35 +2874,35 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2112 | 2874 | ||
2113 | } | 2875 | } |
2114 | 2876 | ||
2115 | // InternalCftLanguage.g:812:3: (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* | 2877 | // InternalCftLanguage.g:1074:3: (otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) )* |
2116 | loop16: | 2878 | loop19: |
2117 | do { | 2879 | do { |
2118 | int alt16=2; | 2880 | int alt19=2; |
2119 | int LA16_0 = input.LA(1); | 2881 | int LA19_0 = input.LA(1); |
2120 | 2882 | ||
2121 | if ( (LA16_0==29) ) { | 2883 | if ( (LA19_0==32) ) { |
2122 | alt16=1; | 2884 | alt19=1; |
2123 | } | 2885 | } |
2124 | 2886 | ||
2125 | 2887 | ||
2126 | switch (alt16) { | 2888 | switch (alt19) { |
2127 | case 1 : | 2889 | case 1 : |
2128 | // InternalCftLanguage.g:813:4: otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) | 2890 | // InternalCftLanguage.g:1075:4: otherlv_5= ',' ( (lv_parameters_6_0= ruleMappingParameter ) ) |
2129 | { | 2891 | { |
2130 | otherlv_5=(Token)match(input,29,FOLLOW_3); | 2892 | otherlv_5=(Token)match(input,32,FOLLOW_3); |
2131 | 2893 | ||
2132 | newLeafNode(otherlv_5, grammarAccess.getMappingDefinitionAccess().getCommaKeyword_5_0()); | 2894 | newLeafNode(otherlv_5, grammarAccess.getMappingDefinitionAccess().getCommaKeyword_5_0()); |
2133 | 2895 | ||
2134 | // InternalCftLanguage.g:817:4: ( (lv_parameters_6_0= ruleMappingParameter ) ) | 2896 | // InternalCftLanguage.g:1079:4: ( (lv_parameters_6_0= ruleMappingParameter ) ) |
2135 | // InternalCftLanguage.g:818:5: (lv_parameters_6_0= ruleMappingParameter ) | 2897 | // InternalCftLanguage.g:1080:5: (lv_parameters_6_0= ruleMappingParameter ) |
2136 | { | 2898 | { |
2137 | // InternalCftLanguage.g:818:5: (lv_parameters_6_0= ruleMappingParameter ) | 2899 | // InternalCftLanguage.g:1080:5: (lv_parameters_6_0= ruleMappingParameter ) |
2138 | // InternalCftLanguage.g:819:6: lv_parameters_6_0= ruleMappingParameter | 2900 | // InternalCftLanguage.g:1081:6: lv_parameters_6_0= ruleMappingParameter |
2139 | { | 2901 | { |
2140 | 2902 | ||
2141 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_5_1_0()); | 2903 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getParametersMappingParameterParserRuleCall_5_1_0()); |
2142 | 2904 | ||
2143 | pushFollow(FOLLOW_23); | 2905 | pushFollow(FOLLOW_25); |
2144 | lv_parameters_6_0=ruleMappingParameter(); | 2906 | lv_parameters_6_0=ruleMappingParameter(); |
2145 | 2907 | ||
2146 | state._fsp--; | 2908 | state._fsp--; |
@@ -2167,32 +2929,32 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2167 | break; | 2929 | break; |
2168 | 2930 | ||
2169 | default : | 2931 | default : |
2170 | break loop16; | 2932 | break loop19; |
2171 | } | 2933 | } |
2172 | } while (true); | 2934 | } while (true); |
2173 | 2935 | ||
2174 | otherlv_7=(Token)match(input,30,FOLLOW_24); | 2936 | otherlv_7=(Token)match(input,33,FOLLOW_26); |
2175 | 2937 | ||
2176 | newLeafNode(otherlv_7, grammarAccess.getMappingDefinitionAccess().getRightParenthesisKeyword_6()); | 2938 | newLeafNode(otherlv_7, grammarAccess.getMappingDefinitionAccess().getRightParenthesisKeyword_6()); |
2177 | 2939 | ||
2178 | // InternalCftLanguage.g:841:3: ( (lv_componentInstance_8_0= ruleComponentInstance ) )? | 2940 | // InternalCftLanguage.g:1103:3: ( (lv_componentInstance_8_0= ruleComponentInstance ) )? |
2179 | int alt17=2; | 2941 | int alt20=2; |
2180 | int LA17_0 = input.LA(1); | 2942 | int LA20_0 = input.LA(1); |
2181 | 2943 | ||
2182 | if ( (LA17_0==36) ) { | 2944 | if ( (LA20_0==39) ) { |
2183 | alt17=1; | 2945 | alt20=1; |
2184 | } | 2946 | } |
2185 | switch (alt17) { | 2947 | switch (alt20) { |
2186 | case 1 : | 2948 | case 1 : |
2187 | // InternalCftLanguage.g:842:4: (lv_componentInstance_8_0= ruleComponentInstance ) | 2949 | // InternalCftLanguage.g:1104:4: (lv_componentInstance_8_0= ruleComponentInstance ) |
2188 | { | 2950 | { |
2189 | // InternalCftLanguage.g:842:4: (lv_componentInstance_8_0= ruleComponentInstance ) | 2951 | // InternalCftLanguage.g:1104:4: (lv_componentInstance_8_0= ruleComponentInstance ) |
2190 | // InternalCftLanguage.g:843:5: lv_componentInstance_8_0= ruleComponentInstance | 2952 | // InternalCftLanguage.g:1105:5: lv_componentInstance_8_0= ruleComponentInstance |
2191 | { | 2953 | { |
2192 | 2954 | ||
2193 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getComponentInstanceComponentInstanceParserRuleCall_7_0()); | 2955 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getComponentInstanceComponentInstanceParserRuleCall_7_0()); |
2194 | 2956 | ||
2195 | pushFollow(FOLLOW_25); | 2957 | pushFollow(FOLLOW_27); |
2196 | lv_componentInstance_8_0=ruleComponentInstance(); | 2958 | lv_componentInstance_8_0=ruleComponentInstance(); |
2197 | 2959 | ||
2198 | state._fsp--; | 2960 | state._fsp--; |
@@ -2217,61 +2979,61 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2217 | 2979 | ||
2218 | } | 2980 | } |
2219 | 2981 | ||
2220 | // InternalCftLanguage.g:860:3: (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? | 2982 | // InternalCftLanguage.g:1122:3: (otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' )? |
2221 | int alt20=2; | 2983 | int alt23=2; |
2222 | int LA20_0 = input.LA(1); | 2984 | int LA23_0 = input.LA(1); |
2223 | 2985 | ||
2224 | if ( (LA20_0==16) ) { | 2986 | if ( (LA23_0==17) ) { |
2225 | alt20=1; | 2987 | alt23=1; |
2226 | } | 2988 | } |
2227 | switch (alt20) { | 2989 | switch (alt23) { |
2228 | case 1 : | 2990 | case 1 : |
2229 | // InternalCftLanguage.g:861:4: otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' | 2991 | // InternalCftLanguage.g:1123:4: otherlv_9= '{' ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* otherlv_13= '}' |
2230 | { | 2992 | { |
2231 | otherlv_9=(Token)match(input,16,FOLLOW_26); | 2993 | otherlv_9=(Token)match(input,17,FOLLOW_28); |
2232 | 2994 | ||
2233 | newLeafNode(otherlv_9, grammarAccess.getMappingDefinitionAccess().getLeftCurlyBracketKeyword_8_0()); | 2995 | newLeafNode(otherlv_9, grammarAccess.getMappingDefinitionAccess().getLeftCurlyBracketKeyword_8_0()); |
2234 | 2996 | ||
2235 | // InternalCftLanguage.g:865:4: ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* | 2997 | // InternalCftLanguage.g:1127:4: ( ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' )* |
2236 | loop19: | 2998 | loop22: |
2237 | do { | 2999 | do { |
2238 | int alt19=2; | 3000 | int alt22=2; |
2239 | int LA19_0 = input.LA(1); | 3001 | int LA22_0 = input.LA(1); |
2240 | 3002 | ||
2241 | if ( (LA19_0==RULE_ID||LA19_0==31) ) { | 3003 | if ( ((LA22_0>=RULE_OF_INT && LA22_0<=RULE_ID)||LA22_0==34) ) { |
2242 | alt19=1; | 3004 | alt22=1; |
2243 | } | 3005 | } |
2244 | 3006 | ||
2245 | 3007 | ||
2246 | switch (alt19) { | 3008 | switch (alt22) { |
2247 | case 1 : | 3009 | case 1 : |
2248 | // InternalCftLanguage.g:866:5: ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' | 3010 | // InternalCftLanguage.g:1128:5: ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) otherlv_12= ';' |
2249 | { | 3011 | { |
2250 | // InternalCftLanguage.g:866:5: ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) | 3012 | // InternalCftLanguage.g:1128:5: ( ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | ( (lv_assignments_11_0= ruleAssignment ) ) ) |
2251 | int alt18=2; | 3013 | int alt21=2; |
2252 | int LA18_0 = input.LA(1); | 3014 | int LA21_0 = input.LA(1); |
2253 | 3015 | ||
2254 | if ( (LA18_0==31) ) { | 3016 | if ( (LA21_0==34) ) { |
2255 | alt18=1; | 3017 | alt21=1; |
2256 | } | 3018 | } |
2257 | else if ( (LA18_0==RULE_ID) ) { | 3019 | else if ( ((LA21_0>=RULE_OF_INT && LA21_0<=RULE_ID)) ) { |
2258 | alt18=2; | 3020 | alt21=2; |
2259 | } | 3021 | } |
2260 | else { | 3022 | else { |
2261 | NoViableAltException nvae = | 3023 | NoViableAltException nvae = |
2262 | new NoViableAltException("", 18, 0, input); | 3024 | new NoViableAltException("", 21, 0, input); |
2263 | 3025 | ||
2264 | throw nvae; | 3026 | throw nvae; |
2265 | } | 3027 | } |
2266 | switch (alt18) { | 3028 | switch (alt21) { |
2267 | case 1 : | 3029 | case 1 : |
2268 | // InternalCftLanguage.g:867:6: ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | 3030 | // InternalCftLanguage.g:1129:6: ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) |
2269 | { | 3031 | { |
2270 | // InternalCftLanguage.g:867:6: ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) | 3032 | // InternalCftLanguage.g:1129:6: ( (lv_lookupDefinitions_10_0= ruleLookupDefinition ) ) |
2271 | // InternalCftLanguage.g:868:7: (lv_lookupDefinitions_10_0= ruleLookupDefinition ) | 3033 | // InternalCftLanguage.g:1130:7: (lv_lookupDefinitions_10_0= ruleLookupDefinition ) |
2272 | { | 3034 | { |
2273 | // InternalCftLanguage.g:868:7: (lv_lookupDefinitions_10_0= ruleLookupDefinition ) | 3035 | // InternalCftLanguage.g:1130:7: (lv_lookupDefinitions_10_0= ruleLookupDefinition ) |
2274 | // InternalCftLanguage.g:869:8: lv_lookupDefinitions_10_0= ruleLookupDefinition | 3036 | // InternalCftLanguage.g:1131:8: lv_lookupDefinitions_10_0= ruleLookupDefinition |
2275 | { | 3037 | { |
2276 | 3038 | ||
2277 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0()); | 3039 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0()); |
@@ -2302,13 +3064,13 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2302 | } | 3064 | } |
2303 | break; | 3065 | break; |
2304 | case 2 : | 3066 | case 2 : |
2305 | // InternalCftLanguage.g:887:6: ( (lv_assignments_11_0= ruleAssignment ) ) | 3067 | // InternalCftLanguage.g:1149:6: ( (lv_assignments_11_0= ruleAssignment ) ) |
2306 | { | 3068 | { |
2307 | // InternalCftLanguage.g:887:6: ( (lv_assignments_11_0= ruleAssignment ) ) | 3069 | // InternalCftLanguage.g:1149:6: ( (lv_assignments_11_0= ruleAssignment ) ) |
2308 | // InternalCftLanguage.g:888:7: (lv_assignments_11_0= ruleAssignment ) | 3070 | // InternalCftLanguage.g:1150:7: (lv_assignments_11_0= ruleAssignment ) |
2309 | { | 3071 | { |
2310 | // InternalCftLanguage.g:888:7: (lv_assignments_11_0= ruleAssignment ) | 3072 | // InternalCftLanguage.g:1150:7: (lv_assignments_11_0= ruleAssignment ) |
2311 | // InternalCftLanguage.g:889:8: lv_assignments_11_0= ruleAssignment | 3073 | // InternalCftLanguage.g:1151:8: lv_assignments_11_0= ruleAssignment |
2312 | { | 3074 | { |
2313 | 3075 | ||
2314 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getAssignmentsAssignmentParserRuleCall_8_1_0_1_0()); | 3076 | newCompositeNode(grammarAccess.getMappingDefinitionAccess().getAssignmentsAssignmentParserRuleCall_8_1_0_1_0()); |
@@ -2341,7 +3103,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2341 | 3103 | ||
2342 | } | 3104 | } |
2343 | 3105 | ||
2344 | otherlv_12=(Token)match(input,13,FOLLOW_26); | 3106 | otherlv_12=(Token)match(input,14,FOLLOW_28); |
2345 | 3107 | ||
2346 | newLeafNode(otherlv_12, grammarAccess.getMappingDefinitionAccess().getSemicolonKeyword_8_1_1()); | 3108 | newLeafNode(otherlv_12, grammarAccess.getMappingDefinitionAccess().getSemicolonKeyword_8_1_1()); |
2347 | 3109 | ||
@@ -2350,11 +3112,11 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2350 | break; | 3112 | break; |
2351 | 3113 | ||
2352 | default : | 3114 | default : |
2353 | break loop19; | 3115 | break loop22; |
2354 | } | 3116 | } |
2355 | } while (true); | 3117 | } while (true); |
2356 | 3118 | ||
2357 | otherlv_13=(Token)match(input,19,FOLLOW_2); | 3119 | otherlv_13=(Token)match(input,20,FOLLOW_2); |
2358 | 3120 | ||
2359 | newLeafNode(otherlv_13, grammarAccess.getMappingDefinitionAccess().getRightCurlyBracketKeyword_8_2()); | 3121 | newLeafNode(otherlv_13, grammarAccess.getMappingDefinitionAccess().getRightCurlyBracketKeyword_8_2()); |
2360 | 3122 | ||
@@ -2387,7 +3149,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2387 | 3149 | ||
2388 | 3150 | ||
2389 | // $ANTLR start "entryRuleMappingParameter" | 3151 | // $ANTLR start "entryRuleMappingParameter" |
2390 | // InternalCftLanguage.g:921:1: entryRuleMappingParameter returns [EObject current=null] : iv_ruleMappingParameter= ruleMappingParameter EOF ; | 3152 | // InternalCftLanguage.g:1183:1: entryRuleMappingParameter returns [EObject current=null] : iv_ruleMappingParameter= ruleMappingParameter EOF ; |
2391 | public final EObject entryRuleMappingParameter() throws RecognitionException { | 3153 | public final EObject entryRuleMappingParameter() throws RecognitionException { |
2392 | EObject current = null; | 3154 | EObject current = null; |
2393 | 3155 | ||
@@ -2395,8 +3157,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2395 | 3157 | ||
2396 | 3158 | ||
2397 | try { | 3159 | try { |
2398 | // InternalCftLanguage.g:921:57: (iv_ruleMappingParameter= ruleMappingParameter EOF ) | 3160 | // InternalCftLanguage.g:1183:57: (iv_ruleMappingParameter= ruleMappingParameter EOF ) |
2399 | // InternalCftLanguage.g:922:2: iv_ruleMappingParameter= ruleMappingParameter EOF | 3161 | // InternalCftLanguage.g:1184:2: iv_ruleMappingParameter= ruleMappingParameter EOF |
2400 | { | 3162 | { |
2401 | newCompositeNode(grammarAccess.getMappingParameterRule()); | 3163 | newCompositeNode(grammarAccess.getMappingParameterRule()); |
2402 | pushFollow(FOLLOW_1); | 3164 | pushFollow(FOLLOW_1); |
@@ -2423,38 +3185,44 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2423 | 3185 | ||
2424 | 3186 | ||
2425 | // $ANTLR start "ruleMappingParameter" | 3187 | // $ANTLR start "ruleMappingParameter" |
2426 | // InternalCftLanguage.g:928:1: ruleMappingParameter returns [EObject current=null] : ( (lv_name_0_0= RULE_ID ) ) ; | 3188 | // InternalCftLanguage.g:1190:1: ruleMappingParameter returns [EObject current=null] : ( (lv_name_0_0= ruleValidId ) ) ; |
2427 | public final EObject ruleMappingParameter() throws RecognitionException { | 3189 | public final EObject ruleMappingParameter() throws RecognitionException { |
2428 | EObject current = null; | 3190 | EObject current = null; |
2429 | 3191 | ||
2430 | Token lv_name_0_0=null; | 3192 | AntlrDatatypeRuleToken lv_name_0_0 = null; |
3193 | |||
2431 | 3194 | ||
2432 | 3195 | ||
2433 | enterRule(); | 3196 | enterRule(); |
2434 | 3197 | ||
2435 | try { | 3198 | try { |
2436 | // InternalCftLanguage.g:934:2: ( ( (lv_name_0_0= RULE_ID ) ) ) | 3199 | // InternalCftLanguage.g:1196:2: ( ( (lv_name_0_0= ruleValidId ) ) ) |
2437 | // InternalCftLanguage.g:935:2: ( (lv_name_0_0= RULE_ID ) ) | 3200 | // InternalCftLanguage.g:1197:2: ( (lv_name_0_0= ruleValidId ) ) |
2438 | { | 3201 | { |
2439 | // InternalCftLanguage.g:935:2: ( (lv_name_0_0= RULE_ID ) ) | 3202 | // InternalCftLanguage.g:1197:2: ( (lv_name_0_0= ruleValidId ) ) |
2440 | // InternalCftLanguage.g:936:3: (lv_name_0_0= RULE_ID ) | 3203 | // InternalCftLanguage.g:1198:3: (lv_name_0_0= ruleValidId ) |
2441 | { | 3204 | { |
2442 | // InternalCftLanguage.g:936:3: (lv_name_0_0= RULE_ID ) | 3205 | // InternalCftLanguage.g:1198:3: (lv_name_0_0= ruleValidId ) |
2443 | // InternalCftLanguage.g:937:4: lv_name_0_0= RULE_ID | 3206 | // InternalCftLanguage.g:1199:4: lv_name_0_0= ruleValidId |
2444 | { | 3207 | { |
2445 | lv_name_0_0=(Token)match(input,RULE_ID,FOLLOW_2); | ||
2446 | 3208 | ||
2447 | newLeafNode(lv_name_0_0, grammarAccess.getMappingParameterAccess().getNameIDTerminalRuleCall_0()); | 3209 | newCompositeNode(grammarAccess.getMappingParameterAccess().getNameValidIdParserRuleCall_0()); |
2448 | 3210 | ||
3211 | pushFollow(FOLLOW_2); | ||
3212 | lv_name_0_0=ruleValidId(); | ||
3213 | |||
3214 | state._fsp--; | ||
3215 | |||
2449 | 3216 | ||
2450 | if (current==null) { | 3217 | if (current==null) { |
2451 | current = createModelElement(grammarAccess.getMappingParameterRule()); | 3218 | current = createModelElementForParent(grammarAccess.getMappingParameterRule()); |
2452 | } | 3219 | } |
2453 | setWithLastConsumed( | 3220 | set( |
2454 | current, | 3221 | current, |
2455 | "name", | 3222 | "name", |
2456 | lv_name_0_0, | 3223 | lv_name_0_0, |
2457 | "org.eclipse.xtext.common.Terminals.ID"); | 3224 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
3225 | afterParserOrEnumRuleCall(); | ||
2458 | 3226 | ||
2459 | 3227 | ||
2460 | } | 3228 | } |
@@ -2482,7 +3250,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2482 | 3250 | ||
2483 | 3251 | ||
2484 | // $ANTLR start "entryRuleLookupDefinition" | 3252 | // $ANTLR start "entryRuleLookupDefinition" |
2485 | // InternalCftLanguage.g:956:1: entryRuleLookupDefinition returns [EObject current=null] : iv_ruleLookupDefinition= ruleLookupDefinition EOF ; | 3253 | // InternalCftLanguage.g:1219:1: entryRuleLookupDefinition returns [EObject current=null] : iv_ruleLookupDefinition= ruleLookupDefinition EOF ; |
2486 | public final EObject entryRuleLookupDefinition() throws RecognitionException { | 3254 | public final EObject entryRuleLookupDefinition() throws RecognitionException { |
2487 | EObject current = null; | 3255 | EObject current = null; |
2488 | 3256 | ||
@@ -2490,8 +3258,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2490 | 3258 | ||
2491 | 3259 | ||
2492 | try { | 3260 | try { |
2493 | // InternalCftLanguage.g:956:57: (iv_ruleLookupDefinition= ruleLookupDefinition EOF ) | 3261 | // InternalCftLanguage.g:1219:57: (iv_ruleLookupDefinition= ruleLookupDefinition EOF ) |
2494 | // InternalCftLanguage.g:957:2: iv_ruleLookupDefinition= ruleLookupDefinition EOF | 3262 | // InternalCftLanguage.g:1220:2: iv_ruleLookupDefinition= ruleLookupDefinition EOF |
2495 | { | 3263 | { |
2496 | newCompositeNode(grammarAccess.getLookupDefinitionRule()); | 3264 | newCompositeNode(grammarAccess.getLookupDefinitionRule()); |
2497 | pushFollow(FOLLOW_1); | 3265 | pushFollow(FOLLOW_1); |
@@ -2518,48 +3286,53 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2518 | 3286 | ||
2519 | 3287 | ||
2520 | // $ANTLR start "ruleLookupDefinition" | 3288 | // $ANTLR start "ruleLookupDefinition" |
2521 | // InternalCftLanguage.g:963:1: ruleLookupDefinition returns [EObject current=null] : (otherlv_0= 'lookup' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( (otherlv_3= RULE_ID ) ) (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= RULE_ID ) ) ) ; | 3289 | // InternalCftLanguage.g:1226:1: ruleLookupDefinition returns [EObject current=null] : (otherlv_0= 'lookup' ( ( ruleQualifiedName ) ) otherlv_2= '(' ( ( ruleValidId ) ) (otherlv_4= ',' ( ( ruleValidId ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= ruleValidId ) ) ) ; |
2522 | public final EObject ruleLookupDefinition() throws RecognitionException { | 3290 | public final EObject ruleLookupDefinition() throws RecognitionException { |
2523 | EObject current = null; | 3291 | EObject current = null; |
2524 | 3292 | ||
2525 | Token otherlv_0=null; | 3293 | Token otherlv_0=null; |
2526 | Token otherlv_1=null; | ||
2527 | Token otherlv_2=null; | 3294 | Token otherlv_2=null; |
2528 | Token otherlv_3=null; | ||
2529 | Token otherlv_4=null; | 3295 | Token otherlv_4=null; |
2530 | Token otherlv_5=null; | ||
2531 | Token otherlv_6=null; | 3296 | Token otherlv_6=null; |
2532 | Token otherlv_7=null; | 3297 | Token otherlv_7=null; |
2533 | Token lv_name_8_0=null; | 3298 | AntlrDatatypeRuleToken lv_name_8_0 = null; |
3299 | |||
2534 | 3300 | ||
2535 | 3301 | ||
2536 | enterRule(); | 3302 | enterRule(); |
2537 | 3303 | ||
2538 | try { | 3304 | try { |
2539 | // InternalCftLanguage.g:969:2: ( (otherlv_0= 'lookup' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( (otherlv_3= RULE_ID ) ) (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= RULE_ID ) ) ) ) | 3305 | // InternalCftLanguage.g:1232:2: ( (otherlv_0= 'lookup' ( ( ruleQualifiedName ) ) otherlv_2= '(' ( ( ruleValidId ) ) (otherlv_4= ',' ( ( ruleValidId ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= ruleValidId ) ) ) ) |
2540 | // InternalCftLanguage.g:970:2: (otherlv_0= 'lookup' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( (otherlv_3= RULE_ID ) ) (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= RULE_ID ) ) ) | 3306 | // InternalCftLanguage.g:1233:2: (otherlv_0= 'lookup' ( ( ruleQualifiedName ) ) otherlv_2= '(' ( ( ruleValidId ) ) (otherlv_4= ',' ( ( ruleValidId ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= ruleValidId ) ) ) |
2541 | { | 3307 | { |
2542 | // InternalCftLanguage.g:970:2: (otherlv_0= 'lookup' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( (otherlv_3= RULE_ID ) ) (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= RULE_ID ) ) ) | 3308 | // InternalCftLanguage.g:1233:2: (otherlv_0= 'lookup' ( ( ruleQualifiedName ) ) otherlv_2= '(' ( ( ruleValidId ) ) (otherlv_4= ',' ( ( ruleValidId ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= ruleValidId ) ) ) |
2543 | // InternalCftLanguage.g:971:3: otherlv_0= 'lookup' ( (otherlv_1= RULE_ID ) ) otherlv_2= '(' ( (otherlv_3= RULE_ID ) ) (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= RULE_ID ) ) | 3309 | // InternalCftLanguage.g:1234:3: otherlv_0= 'lookup' ( ( ruleQualifiedName ) ) otherlv_2= '(' ( ( ruleValidId ) ) (otherlv_4= ',' ( ( ruleValidId ) ) )* otherlv_6= ')' otherlv_7= 'as' ( (lv_name_8_0= ruleValidId ) ) |
2544 | { | 3310 | { |
2545 | otherlv_0=(Token)match(input,31,FOLLOW_3); | 3311 | otherlv_0=(Token)match(input,34,FOLLOW_3); |
2546 | 3312 | ||
2547 | newLeafNode(otherlv_0, grammarAccess.getLookupDefinitionAccess().getLookupKeyword_0()); | 3313 | newLeafNode(otherlv_0, grammarAccess.getLookupDefinitionAccess().getLookupKeyword_0()); |
2548 | 3314 | ||
2549 | // InternalCftLanguage.g:975:3: ( (otherlv_1= RULE_ID ) ) | 3315 | // InternalCftLanguage.g:1238:3: ( ( ruleQualifiedName ) ) |
2550 | // InternalCftLanguage.g:976:4: (otherlv_1= RULE_ID ) | 3316 | // InternalCftLanguage.g:1239:4: ( ruleQualifiedName ) |
2551 | { | 3317 | { |
2552 | // InternalCftLanguage.g:976:4: (otherlv_1= RULE_ID ) | 3318 | // InternalCftLanguage.g:1239:4: ( ruleQualifiedName ) |
2553 | // InternalCftLanguage.g:977:5: otherlv_1= RULE_ID | 3319 | // InternalCftLanguage.g:1240:5: ruleQualifiedName |
2554 | { | 3320 | { |
2555 | 3321 | ||
2556 | if (current==null) { | 3322 | if (current==null) { |
2557 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | 3323 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); |
2558 | } | 3324 | } |
2559 | 3325 | ||
2560 | otherlv_1=(Token)match(input,RULE_ID,FOLLOW_22); | ||
2561 | 3326 | ||
2562 | newLeafNode(otherlv_1, grammarAccess.getLookupDefinitionAccess().getMappingMappingDefinitionCrossReference_1_0()); | 3327 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getMappingMappingDefinitionCrossReference_1_0()); |
3328 | |||
3329 | pushFollow(FOLLOW_24); | ||
3330 | ruleQualifiedName(); | ||
3331 | |||
3332 | state._fsp--; | ||
3333 | |||
3334 | |||
3335 | afterParserOrEnumRuleCall(); | ||
2563 | 3336 | ||
2564 | 3337 | ||
2565 | } | 3338 | } |
@@ -2567,24 +3340,31 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2567 | 3340 | ||
2568 | } | 3341 | } |
2569 | 3342 | ||
2570 | otherlv_2=(Token)match(input,28,FOLLOW_3); | 3343 | otherlv_2=(Token)match(input,31,FOLLOW_3); |
2571 | 3344 | ||
2572 | newLeafNode(otherlv_2, grammarAccess.getLookupDefinitionAccess().getLeftParenthesisKeyword_2()); | 3345 | newLeafNode(otherlv_2, grammarAccess.getLookupDefinitionAccess().getLeftParenthesisKeyword_2()); |
2573 | 3346 | ||
2574 | // InternalCftLanguage.g:992:3: ( (otherlv_3= RULE_ID ) ) | 3347 | // InternalCftLanguage.g:1258:3: ( ( ruleValidId ) ) |
2575 | // InternalCftLanguage.g:993:4: (otherlv_3= RULE_ID ) | 3348 | // InternalCftLanguage.g:1259:4: ( ruleValidId ) |
2576 | { | 3349 | { |
2577 | // InternalCftLanguage.g:993:4: (otherlv_3= RULE_ID ) | 3350 | // InternalCftLanguage.g:1259:4: ( ruleValidId ) |
2578 | // InternalCftLanguage.g:994:5: otherlv_3= RULE_ID | 3351 | // InternalCftLanguage.g:1260:5: ruleValidId |
2579 | { | 3352 | { |
2580 | 3353 | ||
2581 | if (current==null) { | 3354 | if (current==null) { |
2582 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | 3355 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); |
2583 | } | 3356 | } |
2584 | 3357 | ||
2585 | otherlv_3=(Token)match(input,RULE_ID,FOLLOW_23); | ||
2586 | 3358 | ||
2587 | newLeafNode(otherlv_3, grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_3_0()); | 3359 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_3_0()); |
3360 | |||
3361 | pushFollow(FOLLOW_25); | ||
3362 | ruleValidId(); | ||
3363 | |||
3364 | state._fsp--; | ||
3365 | |||
3366 | |||
3367 | afterParserOrEnumRuleCall(); | ||
2588 | 3368 | ||
2589 | 3369 | ||
2590 | } | 3370 | } |
@@ -2592,39 +3372,46 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2592 | 3372 | ||
2593 | } | 3373 | } |
2594 | 3374 | ||
2595 | // InternalCftLanguage.g:1005:3: (otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) )* | 3375 | // InternalCftLanguage.g:1274:3: (otherlv_4= ',' ( ( ruleValidId ) ) )* |
2596 | loop21: | 3376 | loop24: |
2597 | do { | 3377 | do { |
2598 | int alt21=2; | 3378 | int alt24=2; |
2599 | int LA21_0 = input.LA(1); | 3379 | int LA24_0 = input.LA(1); |
2600 | 3380 | ||
2601 | if ( (LA21_0==29) ) { | 3381 | if ( (LA24_0==32) ) { |
2602 | alt21=1; | 3382 | alt24=1; |
2603 | } | 3383 | } |
2604 | 3384 | ||
2605 | 3385 | ||
2606 | switch (alt21) { | 3386 | switch (alt24) { |
2607 | case 1 : | 3387 | case 1 : |
2608 | // InternalCftLanguage.g:1006:4: otherlv_4= ',' ( (otherlv_5= RULE_ID ) ) | 3388 | // InternalCftLanguage.g:1275:4: otherlv_4= ',' ( ( ruleValidId ) ) |
2609 | { | 3389 | { |
2610 | otherlv_4=(Token)match(input,29,FOLLOW_3); | 3390 | otherlv_4=(Token)match(input,32,FOLLOW_3); |
2611 | 3391 | ||
2612 | newLeafNode(otherlv_4, grammarAccess.getLookupDefinitionAccess().getCommaKeyword_4_0()); | 3392 | newLeafNode(otherlv_4, grammarAccess.getLookupDefinitionAccess().getCommaKeyword_4_0()); |
2613 | 3393 | ||
2614 | // InternalCftLanguage.g:1010:4: ( (otherlv_5= RULE_ID ) ) | 3394 | // InternalCftLanguage.g:1279:4: ( ( ruleValidId ) ) |
2615 | // InternalCftLanguage.g:1011:5: (otherlv_5= RULE_ID ) | 3395 | // InternalCftLanguage.g:1280:5: ( ruleValidId ) |
2616 | { | 3396 | { |
2617 | // InternalCftLanguage.g:1011:5: (otherlv_5= RULE_ID ) | 3397 | // InternalCftLanguage.g:1280:5: ( ruleValidId ) |
2618 | // InternalCftLanguage.g:1012:6: otherlv_5= RULE_ID | 3398 | // InternalCftLanguage.g:1281:6: ruleValidId |
2619 | { | 3399 | { |
2620 | 3400 | ||
2621 | if (current==null) { | 3401 | if (current==null) { |
2622 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | 3402 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); |
2623 | } | 3403 | } |
2624 | 3404 | ||
2625 | otherlv_5=(Token)match(input,RULE_ID,FOLLOW_23); | ||
2626 | 3405 | ||
2627 | newLeafNode(otherlv_5, grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_4_1_0()); | 3406 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getArgumentsMappingParameterCrossReference_4_1_0()); |
3407 | |||
3408 | pushFollow(FOLLOW_25); | ||
3409 | ruleValidId(); | ||
3410 | |||
3411 | state._fsp--; | ||
3412 | |||
3413 | |||
3414 | afterParserOrEnumRuleCall(); | ||
2628 | 3415 | ||
2629 | 3416 | ||
2630 | } | 3417 | } |
@@ -2637,37 +3424,42 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2637 | break; | 3424 | break; |
2638 | 3425 | ||
2639 | default : | 3426 | default : |
2640 | break loop21; | 3427 | break loop24; |
2641 | } | 3428 | } |
2642 | } while (true); | 3429 | } while (true); |
2643 | 3430 | ||
2644 | otherlv_6=(Token)match(input,30,FOLLOW_27); | 3431 | otherlv_6=(Token)match(input,33,FOLLOW_29); |
2645 | 3432 | ||
2646 | newLeafNode(otherlv_6, grammarAccess.getLookupDefinitionAccess().getRightParenthesisKeyword_5()); | 3433 | newLeafNode(otherlv_6, grammarAccess.getLookupDefinitionAccess().getRightParenthesisKeyword_5()); |
2647 | 3434 | ||
2648 | otherlv_7=(Token)match(input,32,FOLLOW_3); | 3435 | otherlv_7=(Token)match(input,35,FOLLOW_3); |
2649 | 3436 | ||
2650 | newLeafNode(otherlv_7, grammarAccess.getLookupDefinitionAccess().getAsKeyword_6()); | 3437 | newLeafNode(otherlv_7, grammarAccess.getLookupDefinitionAccess().getAsKeyword_6()); |
2651 | 3438 | ||
2652 | // InternalCftLanguage.g:1032:3: ( (lv_name_8_0= RULE_ID ) ) | 3439 | // InternalCftLanguage.g:1304:3: ( (lv_name_8_0= ruleValidId ) ) |
2653 | // InternalCftLanguage.g:1033:4: (lv_name_8_0= RULE_ID ) | 3440 | // InternalCftLanguage.g:1305:4: (lv_name_8_0= ruleValidId ) |
2654 | { | 3441 | { |
2655 | // InternalCftLanguage.g:1033:4: (lv_name_8_0= RULE_ID ) | 3442 | // InternalCftLanguage.g:1305:4: (lv_name_8_0= ruleValidId ) |
2656 | // InternalCftLanguage.g:1034:5: lv_name_8_0= RULE_ID | 3443 | // InternalCftLanguage.g:1306:5: lv_name_8_0= ruleValidId |
2657 | { | 3444 | { |
2658 | lv_name_8_0=(Token)match(input,RULE_ID,FOLLOW_2); | ||
2659 | 3445 | ||
2660 | newLeafNode(lv_name_8_0, grammarAccess.getLookupDefinitionAccess().getNameIDTerminalRuleCall_7_0()); | 3446 | newCompositeNode(grammarAccess.getLookupDefinitionAccess().getNameValidIdParserRuleCall_7_0()); |
2661 | 3447 | ||
3448 | pushFollow(FOLLOW_2); | ||
3449 | lv_name_8_0=ruleValidId(); | ||
3450 | |||
3451 | state._fsp--; | ||
3452 | |||
2662 | 3453 | ||
2663 | if (current==null) { | 3454 | if (current==null) { |
2664 | current = createModelElement(grammarAccess.getLookupDefinitionRule()); | 3455 | current = createModelElementForParent(grammarAccess.getLookupDefinitionRule()); |
2665 | } | 3456 | } |
2666 | setWithLastConsumed( | 3457 | set( |
2667 | current, | 3458 | current, |
2668 | "name", | 3459 | "name", |
2669 | lv_name_8_0, | 3460 | lv_name_8_0, |
2670 | "org.eclipse.xtext.common.Terminals.ID"); | 3461 | "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ValidId"); |
3462 | afterParserOrEnumRuleCall(); | ||
2671 | 3463 | ||
2672 | 3464 | ||
2673 | } | 3465 | } |
@@ -2698,7 +3490,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2698 | 3490 | ||
2699 | 3491 | ||
2700 | // $ANTLR start "entryRuleAssignment" | 3492 | // $ANTLR start "entryRuleAssignment" |
2701 | // InternalCftLanguage.g:1054:1: entryRuleAssignment returns [EObject current=null] : iv_ruleAssignment= ruleAssignment EOF ; | 3493 | // InternalCftLanguage.g:1327:1: entryRuleAssignment returns [EObject current=null] : iv_ruleAssignment= ruleAssignment EOF ; |
2702 | public final EObject entryRuleAssignment() throws RecognitionException { | 3494 | public final EObject entryRuleAssignment() throws RecognitionException { |
2703 | EObject current = null; | 3495 | EObject current = null; |
2704 | 3496 | ||
@@ -2706,8 +3498,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2706 | 3498 | ||
2707 | 3499 | ||
2708 | try { | 3500 | try { |
2709 | // InternalCftLanguage.g:1054:51: (iv_ruleAssignment= ruleAssignment EOF ) | 3501 | // InternalCftLanguage.g:1327:51: (iv_ruleAssignment= ruleAssignment EOF ) |
2710 | // InternalCftLanguage.g:1055:2: iv_ruleAssignment= ruleAssignment EOF | 3502 | // InternalCftLanguage.g:1328:2: iv_ruleAssignment= ruleAssignment EOF |
2711 | { | 3503 | { |
2712 | newCompositeNode(grammarAccess.getAssignmentRule()); | 3504 | newCompositeNode(grammarAccess.getAssignmentRule()); |
2713 | pushFollow(FOLLOW_1); | 3505 | pushFollow(FOLLOW_1); |
@@ -2734,7 +3526,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2734 | 3526 | ||
2735 | 3527 | ||
2736 | // $ANTLR start "ruleAssignment" | 3528 | // $ANTLR start "ruleAssignment" |
2737 | // InternalCftLanguage.g:1061:1: ruleAssignment returns [EObject current=null] : ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) ; | 3529 | // InternalCftLanguage.g:1334:1: ruleAssignment returns [EObject current=null] : ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) ; |
2738 | public final EObject ruleAssignment() throws RecognitionException { | 3530 | public final EObject ruleAssignment() throws RecognitionException { |
2739 | EObject current = null; | 3531 | EObject current = null; |
2740 | 3532 | ||
@@ -2749,22 +3541,22 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2749 | enterRule(); | 3541 | enterRule(); |
2750 | 3542 | ||
2751 | try { | 3543 | try { |
2752 | // InternalCftLanguage.g:1067:2: ( ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) ) | 3544 | // InternalCftLanguage.g:1340:2: ( ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) ) |
2753 | // InternalCftLanguage.g:1068:2: ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) | 3545 | // InternalCftLanguage.g:1341:2: ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) |
2754 | { | 3546 | { |
2755 | // InternalCftLanguage.g:1068:2: ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) | 3547 | // InternalCftLanguage.g:1341:2: ( ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) ) |
2756 | // InternalCftLanguage.g:1069:3: ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) | 3548 | // InternalCftLanguage.g:1342:3: ( (lv_input_0_0= ruleEventReference ) ) ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) ( (lv_output_3_0= ruleEventReference ) ) |
2757 | { | 3549 | { |
2758 | // InternalCftLanguage.g:1069:3: ( (lv_input_0_0= ruleEventReference ) ) | 3550 | // InternalCftLanguage.g:1342:3: ( (lv_input_0_0= ruleEventReference ) ) |
2759 | // InternalCftLanguage.g:1070:4: (lv_input_0_0= ruleEventReference ) | 3551 | // InternalCftLanguage.g:1343:4: (lv_input_0_0= ruleEventReference ) |
2760 | { | 3552 | { |
2761 | // InternalCftLanguage.g:1070:4: (lv_input_0_0= ruleEventReference ) | 3553 | // InternalCftLanguage.g:1343:4: (lv_input_0_0= ruleEventReference ) |
2762 | // InternalCftLanguage.g:1071:5: lv_input_0_0= ruleEventReference | 3554 | // InternalCftLanguage.g:1344:5: lv_input_0_0= ruleEventReference |
2763 | { | 3555 | { |
2764 | 3556 | ||
2765 | newCompositeNode(grammarAccess.getAssignmentAccess().getInputEventReferenceParserRuleCall_0_0()); | 3557 | newCompositeNode(grammarAccess.getAssignmentAccess().getInputEventReferenceParserRuleCall_0_0()); |
2766 | 3558 | ||
2767 | pushFollow(FOLLOW_28); | 3559 | pushFollow(FOLLOW_30); |
2768 | lv_input_0_0=ruleEventReference(); | 3560 | lv_input_0_0=ruleEventReference(); |
2769 | 3561 | ||
2770 | state._fsp--; | 3562 | state._fsp--; |
@@ -2786,33 +3578,33 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2786 | 3578 | ||
2787 | } | 3579 | } |
2788 | 3580 | ||
2789 | // InternalCftLanguage.g:1088:3: ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) | 3581 | // InternalCftLanguage.g:1361:3: ( ( (lv_multiple_1_0= '+=' ) ) | otherlv_2= ':=' ) |
2790 | int alt22=2; | 3582 | int alt25=2; |
2791 | int LA22_0 = input.LA(1); | 3583 | int LA25_0 = input.LA(1); |
2792 | 3584 | ||
2793 | if ( (LA22_0==33) ) { | 3585 | if ( (LA25_0==36) ) { |
2794 | alt22=1; | 3586 | alt25=1; |
2795 | } | 3587 | } |
2796 | else if ( (LA22_0==34) ) { | 3588 | else if ( (LA25_0==37) ) { |
2797 | alt22=2; | 3589 | alt25=2; |
2798 | } | 3590 | } |
2799 | else { | 3591 | else { |
2800 | NoViableAltException nvae = | 3592 | NoViableAltException nvae = |
2801 | new NoViableAltException("", 22, 0, input); | 3593 | new NoViableAltException("", 25, 0, input); |
2802 | 3594 | ||
2803 | throw nvae; | 3595 | throw nvae; |
2804 | } | 3596 | } |
2805 | switch (alt22) { | 3597 | switch (alt25) { |
2806 | case 1 : | 3598 | case 1 : |
2807 | // InternalCftLanguage.g:1089:4: ( (lv_multiple_1_0= '+=' ) ) | 3599 | // InternalCftLanguage.g:1362:4: ( (lv_multiple_1_0= '+=' ) ) |
2808 | { | 3600 | { |
2809 | // InternalCftLanguage.g:1089:4: ( (lv_multiple_1_0= '+=' ) ) | 3601 | // InternalCftLanguage.g:1362:4: ( (lv_multiple_1_0= '+=' ) ) |
2810 | // InternalCftLanguage.g:1090:5: (lv_multiple_1_0= '+=' ) | 3602 | // InternalCftLanguage.g:1363:5: (lv_multiple_1_0= '+=' ) |
2811 | { | 3603 | { |
2812 | // InternalCftLanguage.g:1090:5: (lv_multiple_1_0= '+=' ) | 3604 | // InternalCftLanguage.g:1363:5: (lv_multiple_1_0= '+=' ) |
2813 | // InternalCftLanguage.g:1091:6: lv_multiple_1_0= '+=' | 3605 | // InternalCftLanguage.g:1364:6: lv_multiple_1_0= '+=' |
2814 | { | 3606 | { |
2815 | lv_multiple_1_0=(Token)match(input,33,FOLLOW_29); | 3607 | lv_multiple_1_0=(Token)match(input,36,FOLLOW_31); |
2816 | 3608 | ||
2817 | newLeafNode(lv_multiple_1_0, grammarAccess.getAssignmentAccess().getMultiplePlusSignEqualsSignKeyword_1_0_0()); | 3609 | newLeafNode(lv_multiple_1_0, grammarAccess.getAssignmentAccess().getMultiplePlusSignEqualsSignKeyword_1_0_0()); |
2818 | 3610 | ||
@@ -2832,9 +3624,9 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2832 | } | 3624 | } |
2833 | break; | 3625 | break; |
2834 | case 2 : | 3626 | case 2 : |
2835 | // InternalCftLanguage.g:1104:4: otherlv_2= ':=' | 3627 | // InternalCftLanguage.g:1377:4: otherlv_2= ':=' |
2836 | { | 3628 | { |
2837 | otherlv_2=(Token)match(input,34,FOLLOW_29); | 3629 | otherlv_2=(Token)match(input,37,FOLLOW_31); |
2838 | 3630 | ||
2839 | newLeafNode(otherlv_2, grammarAccess.getAssignmentAccess().getColonEqualsSignKeyword_1_1()); | 3631 | newLeafNode(otherlv_2, grammarAccess.getAssignmentAccess().getColonEqualsSignKeyword_1_1()); |
2840 | 3632 | ||
@@ -2844,11 +3636,11 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2844 | 3636 | ||
2845 | } | 3637 | } |
2846 | 3638 | ||
2847 | // InternalCftLanguage.g:1109:3: ( (lv_output_3_0= ruleEventReference ) ) | 3639 | // InternalCftLanguage.g:1382:3: ( (lv_output_3_0= ruleEventReference ) ) |
2848 | // InternalCftLanguage.g:1110:4: (lv_output_3_0= ruleEventReference ) | 3640 | // InternalCftLanguage.g:1383:4: (lv_output_3_0= ruleEventReference ) |
2849 | { | 3641 | { |
2850 | // InternalCftLanguage.g:1110:4: (lv_output_3_0= ruleEventReference ) | 3642 | // InternalCftLanguage.g:1383:4: (lv_output_3_0= ruleEventReference ) |
2851 | // InternalCftLanguage.g:1111:5: lv_output_3_0= ruleEventReference | 3643 | // InternalCftLanguage.g:1384:5: lv_output_3_0= ruleEventReference |
2852 | { | 3644 | { |
2853 | 3645 | ||
2854 | newCompositeNode(grammarAccess.getAssignmentAccess().getOutputEventReferenceParserRuleCall_2_0()); | 3646 | newCompositeNode(grammarAccess.getAssignmentAccess().getOutputEventReferenceParserRuleCall_2_0()); |
@@ -2898,7 +3690,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2898 | 3690 | ||
2899 | 3691 | ||
2900 | // $ANTLR start "entryRuleEventReference" | 3692 | // $ANTLR start "entryRuleEventReference" |
2901 | // InternalCftLanguage.g:1132:1: entryRuleEventReference returns [EObject current=null] : iv_ruleEventReference= ruleEventReference EOF ; | 3693 | // InternalCftLanguage.g:1405:1: entryRuleEventReference returns [EObject current=null] : iv_ruleEventReference= ruleEventReference EOF ; |
2902 | public final EObject entryRuleEventReference() throws RecognitionException { | 3694 | public final EObject entryRuleEventReference() throws RecognitionException { |
2903 | EObject current = null; | 3695 | EObject current = null; |
2904 | 3696 | ||
@@ -2906,8 +3698,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2906 | 3698 | ||
2907 | 3699 | ||
2908 | try { | 3700 | try { |
2909 | // InternalCftLanguage.g:1132:55: (iv_ruleEventReference= ruleEventReference EOF ) | 3701 | // InternalCftLanguage.g:1405:55: (iv_ruleEventReference= ruleEventReference EOF ) |
2910 | // InternalCftLanguage.g:1133:2: iv_ruleEventReference= ruleEventReference EOF | 3702 | // InternalCftLanguage.g:1406:2: iv_ruleEventReference= ruleEventReference EOF |
2911 | { | 3703 | { |
2912 | newCompositeNode(grammarAccess.getEventReferenceRule()); | 3704 | newCompositeNode(grammarAccess.getEventReferenceRule()); |
2913 | pushFollow(FOLLOW_1); | 3705 | pushFollow(FOLLOW_1); |
@@ -2934,38 +3726,43 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2934 | 3726 | ||
2935 | 3727 | ||
2936 | // $ANTLR start "ruleEventReference" | 3728 | // $ANTLR start "ruleEventReference" |
2937 | // InternalCftLanguage.g:1139:1: ruleEventReference returns [EObject current=null] : ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) ; | 3729 | // InternalCftLanguage.g:1412:1: ruleEventReference returns [EObject current=null] : ( ( ( ruleValidId ) ) otherlv_1= '.' ( ( ruleValidId ) ) ) ; |
2938 | public final EObject ruleEventReference() throws RecognitionException { | 3730 | public final EObject ruleEventReference() throws RecognitionException { |
2939 | EObject current = null; | 3731 | EObject current = null; |
2940 | 3732 | ||
2941 | Token otherlv_0=null; | ||
2942 | Token otherlv_1=null; | 3733 | Token otherlv_1=null; |
2943 | Token otherlv_2=null; | ||
2944 | 3734 | ||
2945 | 3735 | ||
2946 | enterRule(); | 3736 | enterRule(); |
2947 | 3737 | ||
2948 | try { | 3738 | try { |
2949 | // InternalCftLanguage.g:1145:2: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) ) | 3739 | // InternalCftLanguage.g:1418:2: ( ( ( ( ruleValidId ) ) otherlv_1= '.' ( ( ruleValidId ) ) ) ) |
2950 | // InternalCftLanguage.g:1146:2: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) | 3740 | // InternalCftLanguage.g:1419:2: ( ( ( ruleValidId ) ) otherlv_1= '.' ( ( ruleValidId ) ) ) |
2951 | { | 3741 | { |
2952 | // InternalCftLanguage.g:1146:2: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) ) | 3742 | // InternalCftLanguage.g:1419:2: ( ( ( ruleValidId ) ) otherlv_1= '.' ( ( ruleValidId ) ) ) |
2953 | // InternalCftLanguage.g:1147:3: ( (otherlv_0= RULE_ID ) ) otherlv_1= '.' ( (otherlv_2= RULE_ID ) ) | 3743 | // InternalCftLanguage.g:1420:3: ( ( ruleValidId ) ) otherlv_1= '.' ( ( ruleValidId ) ) |
2954 | { | 3744 | { |
2955 | // InternalCftLanguage.g:1147:3: ( (otherlv_0= RULE_ID ) ) | 3745 | // InternalCftLanguage.g:1420:3: ( ( ruleValidId ) ) |
2956 | // InternalCftLanguage.g:1148:4: (otherlv_0= RULE_ID ) | 3746 | // InternalCftLanguage.g:1421:4: ( ruleValidId ) |
2957 | { | 3747 | { |
2958 | // InternalCftLanguage.g:1148:4: (otherlv_0= RULE_ID ) | 3748 | // InternalCftLanguage.g:1421:4: ( ruleValidId ) |
2959 | // InternalCftLanguage.g:1149:5: otherlv_0= RULE_ID | 3749 | // InternalCftLanguage.g:1422:5: ruleValidId |
2960 | { | 3750 | { |
2961 | 3751 | ||
2962 | if (current==null) { | 3752 | if (current==null) { |
2963 | current = createModelElement(grammarAccess.getEventReferenceRule()); | 3753 | current = createModelElement(grammarAccess.getEventReferenceRule()); |
2964 | } | 3754 | } |
2965 | 3755 | ||
2966 | otherlv_0=(Token)match(input,RULE_ID,FOLLOW_30); | ||
2967 | 3756 | ||
2968 | newLeafNode(otherlv_0, grammarAccess.getEventReferenceAccess().getComponentVariableCrossReference_0_0()); | 3757 | newCompositeNode(grammarAccess.getEventReferenceAccess().getComponentVariableCrossReference_0_0()); |
3758 | |||
3759 | pushFollow(FOLLOW_32); | ||
3760 | ruleValidId(); | ||
3761 | |||
3762 | state._fsp--; | ||
3763 | |||
3764 | |||
3765 | afterParserOrEnumRuleCall(); | ||
2969 | 3766 | ||
2970 | 3767 | ||
2971 | } | 3768 | } |
@@ -2973,24 +3770,31 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
2973 | 3770 | ||
2974 | } | 3771 | } |
2975 | 3772 | ||
2976 | otherlv_1=(Token)match(input,35,FOLLOW_3); | 3773 | otherlv_1=(Token)match(input,38,FOLLOW_3); |
2977 | 3774 | ||
2978 | newLeafNode(otherlv_1, grammarAccess.getEventReferenceAccess().getFullStopKeyword_1()); | 3775 | newLeafNode(otherlv_1, grammarAccess.getEventReferenceAccess().getFullStopKeyword_1()); |
2979 | 3776 | ||
2980 | // InternalCftLanguage.g:1164:3: ( (otherlv_2= RULE_ID ) ) | 3777 | // InternalCftLanguage.g:1440:3: ( ( ruleValidId ) ) |
2981 | // InternalCftLanguage.g:1165:4: (otherlv_2= RULE_ID ) | 3778 | // InternalCftLanguage.g:1441:4: ( ruleValidId ) |
2982 | { | 3779 | { |
2983 | // InternalCftLanguage.g:1165:4: (otherlv_2= RULE_ID ) | 3780 | // InternalCftLanguage.g:1441:4: ( ruleValidId ) |
2984 | // InternalCftLanguage.g:1166:5: otherlv_2= RULE_ID | 3781 | // InternalCftLanguage.g:1442:5: ruleValidId |
2985 | { | 3782 | { |
2986 | 3783 | ||
2987 | if (current==null) { | 3784 | if (current==null) { |
2988 | current = createModelElement(grammarAccess.getEventReferenceRule()); | 3785 | current = createModelElement(grammarAccess.getEventReferenceRule()); |
2989 | } | 3786 | } |
2990 | 3787 | ||
2991 | otherlv_2=(Token)match(input,RULE_ID,FOLLOW_2); | ||
2992 | 3788 | ||
2993 | newLeafNode(otherlv_2, grammarAccess.getEventReferenceAccess().getEventEventDeclarationCrossReference_2_0()); | 3789 | newCompositeNode(grammarAccess.getEventReferenceAccess().getEventEventDeclarationCrossReference_2_0()); |
3790 | |||
3791 | pushFollow(FOLLOW_2); | ||
3792 | ruleValidId(); | ||
3793 | |||
3794 | state._fsp--; | ||
3795 | |||
3796 | |||
3797 | afterParserOrEnumRuleCall(); | ||
2994 | 3798 | ||
2995 | 3799 | ||
2996 | } | 3800 | } |
@@ -3021,7 +3825,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3021 | 3825 | ||
3022 | 3826 | ||
3023 | // $ANTLR start "entryRuleComponentInstance" | 3827 | // $ANTLR start "entryRuleComponentInstance" |
3024 | // InternalCftLanguage.g:1181:1: entryRuleComponentInstance returns [EObject current=null] : iv_ruleComponentInstance= ruleComponentInstance EOF ; | 3828 | // InternalCftLanguage.g:1460:1: entryRuleComponentInstance returns [EObject current=null] : iv_ruleComponentInstance= ruleComponentInstance EOF ; |
3025 | public final EObject entryRuleComponentInstance() throws RecognitionException { | 3829 | public final EObject entryRuleComponentInstance() throws RecognitionException { |
3026 | EObject current = null; | 3830 | EObject current = null; |
3027 | 3831 | ||
@@ -3029,8 +3833,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3029 | 3833 | ||
3030 | 3834 | ||
3031 | try { | 3835 | try { |
3032 | // InternalCftLanguage.g:1181:58: (iv_ruleComponentInstance= ruleComponentInstance EOF ) | 3836 | // InternalCftLanguage.g:1460:58: (iv_ruleComponentInstance= ruleComponentInstance EOF ) |
3033 | // InternalCftLanguage.g:1182:2: iv_ruleComponentInstance= ruleComponentInstance EOF | 3837 | // InternalCftLanguage.g:1461:2: iv_ruleComponentInstance= ruleComponentInstance EOF |
3034 | { | 3838 | { |
3035 | newCompositeNode(grammarAccess.getComponentInstanceRule()); | 3839 | newCompositeNode(grammarAccess.getComponentInstanceRule()); |
3036 | pushFollow(FOLLOW_1); | 3840 | pushFollow(FOLLOW_1); |
@@ -3057,7 +3861,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3057 | 3861 | ||
3058 | 3862 | ||
3059 | // $ANTLR start "ruleComponentInstance" | 3863 | // $ANTLR start "ruleComponentInstance" |
3060 | // InternalCftLanguage.g:1188:1: ruleComponentInstance returns [EObject current=null] : (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) ; | 3864 | // InternalCftLanguage.g:1467:1: ruleComponentInstance returns [EObject current=null] : (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) ; |
3061 | public final EObject ruleComponentInstance() throws RecognitionException { | 3865 | public final EObject ruleComponentInstance() throws RecognitionException { |
3062 | EObject current = null; | 3866 | EObject current = null; |
3063 | 3867 | ||
@@ -3068,21 +3872,21 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3068 | enterRule(); | 3872 | enterRule(); |
3069 | 3873 | ||
3070 | try { | 3874 | try { |
3071 | // InternalCftLanguage.g:1194:2: ( (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) ) | 3875 | // InternalCftLanguage.g:1473:2: ( (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) ) |
3072 | // InternalCftLanguage.g:1195:2: (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) | 3876 | // InternalCftLanguage.g:1474:2: (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) |
3073 | { | 3877 | { |
3074 | // InternalCftLanguage.g:1195:2: (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) | 3878 | // InternalCftLanguage.g:1474:2: (otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? ) |
3075 | // InternalCftLanguage.g:1196:3: otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? | 3879 | // InternalCftLanguage.g:1475:3: otherlv_0= '=>' ( ( ruleQualifiedName ) ) ( (lv_name_2_0= RULE_ID ) )? |
3076 | { | 3880 | { |
3077 | otherlv_0=(Token)match(input,36,FOLLOW_3); | 3881 | otherlv_0=(Token)match(input,39,FOLLOW_3); |
3078 | 3882 | ||
3079 | newLeafNode(otherlv_0, grammarAccess.getComponentInstanceAccess().getEqualsSignGreaterThanSignKeyword_0()); | 3883 | newLeafNode(otherlv_0, grammarAccess.getComponentInstanceAccess().getEqualsSignGreaterThanSignKeyword_0()); |
3080 | 3884 | ||
3081 | // InternalCftLanguage.g:1200:3: ( ( ruleQualifiedName ) ) | 3885 | // InternalCftLanguage.g:1479:3: ( ( ruleQualifiedName ) ) |
3082 | // InternalCftLanguage.g:1201:4: ( ruleQualifiedName ) | 3886 | // InternalCftLanguage.g:1480:4: ( ruleQualifiedName ) |
3083 | { | 3887 | { |
3084 | // InternalCftLanguage.g:1201:4: ( ruleQualifiedName ) | 3888 | // InternalCftLanguage.g:1480:4: ( ruleQualifiedName ) |
3085 | // InternalCftLanguage.g:1202:5: ruleQualifiedName | 3889 | // InternalCftLanguage.g:1481:5: ruleQualifiedName |
3086 | { | 3890 | { |
3087 | 3891 | ||
3088 | if (current==null) { | 3892 | if (current==null) { |
@@ -3092,7 +3896,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3092 | 3896 | ||
3093 | newCompositeNode(grammarAccess.getComponentInstanceAccess().getComponentTypeComponentDefinitionCrossReference_1_0()); | 3897 | newCompositeNode(grammarAccess.getComponentInstanceAccess().getComponentTypeComponentDefinitionCrossReference_1_0()); |
3094 | 3898 | ||
3095 | pushFollow(FOLLOW_18); | 3899 | pushFollow(FOLLOW_33); |
3096 | ruleQualifiedName(); | 3900 | ruleQualifiedName(); |
3097 | 3901 | ||
3098 | state._fsp--; | 3902 | state._fsp--; |
@@ -3106,19 +3910,19 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3106 | 3910 | ||
3107 | } | 3911 | } |
3108 | 3912 | ||
3109 | // InternalCftLanguage.g:1216:3: ( (lv_name_2_0= RULE_ID ) )? | 3913 | // InternalCftLanguage.g:1495:3: ( (lv_name_2_0= RULE_ID ) )? |
3110 | int alt23=2; | 3914 | int alt26=2; |
3111 | int LA23_0 = input.LA(1); | 3915 | int LA26_0 = input.LA(1); |
3112 | 3916 | ||
3113 | if ( (LA23_0==RULE_ID) ) { | 3917 | if ( (LA26_0==RULE_ID) ) { |
3114 | alt23=1; | 3918 | alt26=1; |
3115 | } | 3919 | } |
3116 | switch (alt23) { | 3920 | switch (alt26) { |
3117 | case 1 : | 3921 | case 1 : |
3118 | // InternalCftLanguage.g:1217:4: (lv_name_2_0= RULE_ID ) | 3922 | // InternalCftLanguage.g:1496:4: (lv_name_2_0= RULE_ID ) |
3119 | { | 3923 | { |
3120 | // InternalCftLanguage.g:1217:4: (lv_name_2_0= RULE_ID ) | 3924 | // InternalCftLanguage.g:1496:4: (lv_name_2_0= RULE_ID ) |
3121 | // InternalCftLanguage.g:1218:5: lv_name_2_0= RULE_ID | 3925 | // InternalCftLanguage.g:1497:5: lv_name_2_0= RULE_ID |
3122 | { | 3926 | { |
3123 | lv_name_2_0=(Token)match(input,RULE_ID,FOLLOW_2); | 3927 | lv_name_2_0=(Token)match(input,RULE_ID,FOLLOW_2); |
3124 | 3928 | ||
@@ -3166,7 +3970,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3166 | 3970 | ||
3167 | 3971 | ||
3168 | // $ANTLR start "entryRuleQualifiedName" | 3972 | // $ANTLR start "entryRuleQualifiedName" |
3169 | // InternalCftLanguage.g:1238:1: entryRuleQualifiedName returns [String current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ; | 3973 | // InternalCftLanguage.g:1517:1: entryRuleQualifiedName returns [String current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ; |
3170 | public final String entryRuleQualifiedName() throws RecognitionException { | 3974 | public final String entryRuleQualifiedName() throws RecognitionException { |
3171 | String current = null; | 3975 | String current = null; |
3172 | 3976 | ||
@@ -3174,8 +3978,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3174 | 3978 | ||
3175 | 3979 | ||
3176 | try { | 3980 | try { |
3177 | // InternalCftLanguage.g:1238:53: (iv_ruleQualifiedName= ruleQualifiedName EOF ) | 3981 | // InternalCftLanguage.g:1517:53: (iv_ruleQualifiedName= ruleQualifiedName EOF ) |
3178 | // InternalCftLanguage.g:1239:2: iv_ruleQualifiedName= ruleQualifiedName EOF | 3982 | // InternalCftLanguage.g:1518:2: iv_ruleQualifiedName= ruleQualifiedName EOF |
3179 | { | 3983 | { |
3180 | newCompositeNode(grammarAccess.getQualifiedNameRule()); | 3984 | newCompositeNode(grammarAccess.getQualifiedNameRule()); |
3181 | pushFollow(FOLLOW_1); | 3985 | pushFollow(FOLLOW_1); |
@@ -3202,70 +4006,86 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3202 | 4006 | ||
3203 | 4007 | ||
3204 | // $ANTLR start "ruleQualifiedName" | 4008 | // $ANTLR start "ruleQualifiedName" |
3205 | // InternalCftLanguage.g:1245:1: ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) ; | 4009 | // InternalCftLanguage.g:1524:1: ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ValidId_0= ruleValidId (kw= '.' this_ValidId_2= ruleValidId )* ) ; |
3206 | public final AntlrDatatypeRuleToken ruleQualifiedName() throws RecognitionException { | 4010 | public final AntlrDatatypeRuleToken ruleQualifiedName() throws RecognitionException { |
3207 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); | 4011 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
3208 | 4012 | ||
3209 | Token this_ID_0=null; | ||
3210 | Token kw=null; | 4013 | Token kw=null; |
3211 | Token this_ID_2=null; | 4014 | AntlrDatatypeRuleToken this_ValidId_0 = null; |
4015 | |||
4016 | AntlrDatatypeRuleToken this_ValidId_2 = null; | ||
4017 | |||
3212 | 4018 | ||
3213 | 4019 | ||
3214 | enterRule(); | 4020 | enterRule(); |
3215 | 4021 | ||
3216 | try { | 4022 | try { |
3217 | // InternalCftLanguage.g:1251:2: ( (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) ) | 4023 | // InternalCftLanguage.g:1530:2: ( (this_ValidId_0= ruleValidId (kw= '.' this_ValidId_2= ruleValidId )* ) ) |
3218 | // InternalCftLanguage.g:1252:2: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) | 4024 | // InternalCftLanguage.g:1531:2: (this_ValidId_0= ruleValidId (kw= '.' this_ValidId_2= ruleValidId )* ) |
3219 | { | 4025 | { |
3220 | // InternalCftLanguage.g:1252:2: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) | 4026 | // InternalCftLanguage.g:1531:2: (this_ValidId_0= ruleValidId (kw= '.' this_ValidId_2= ruleValidId )* ) |
3221 | // InternalCftLanguage.g:1253:3: this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* | 4027 | // InternalCftLanguage.g:1532:3: this_ValidId_0= ruleValidId (kw= '.' this_ValidId_2= ruleValidId )* |
3222 | { | 4028 | { |
3223 | this_ID_0=(Token)match(input,RULE_ID,FOLLOW_31); | ||
3224 | 4029 | ||
3225 | current.merge(this_ID_0); | 4030 | newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIdParserRuleCall_0()); |
3226 | 4031 | ||
4032 | pushFollow(FOLLOW_34); | ||
4033 | this_ValidId_0=ruleValidId(); | ||
4034 | |||
4035 | state._fsp--; | ||
4036 | |||
3227 | 4037 | ||
3228 | newLeafNode(this_ID_0, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); | 4038 | current.merge(this_ValidId_0); |
3229 | 4039 | ||
3230 | // InternalCftLanguage.g:1260:3: (kw= '.' this_ID_2= RULE_ID )* | 4040 | |
3231 | loop24: | 4041 | afterParserOrEnumRuleCall(); |
4042 | |||
4043 | // InternalCftLanguage.g:1542:3: (kw= '.' this_ValidId_2= ruleValidId )* | ||
4044 | loop27: | ||
3232 | do { | 4045 | do { |
3233 | int alt24=2; | 4046 | int alt27=2; |
3234 | int LA24_0 = input.LA(1); | 4047 | int LA27_0 = input.LA(1); |
3235 | 4048 | ||
3236 | if ( (LA24_0==35) ) { | 4049 | if ( (LA27_0==38) ) { |
3237 | int LA24_2 = input.LA(2); | 4050 | int LA27_2 = input.LA(2); |
3238 | 4051 | ||
3239 | if ( (LA24_2==RULE_ID) ) { | 4052 | if ( ((LA27_2>=RULE_OF_INT && LA27_2<=RULE_ID)) ) { |
3240 | alt24=1; | 4053 | alt27=1; |
3241 | } | 4054 | } |
3242 | 4055 | ||
3243 | 4056 | ||
3244 | } | 4057 | } |
3245 | 4058 | ||
3246 | 4059 | ||
3247 | switch (alt24) { | 4060 | switch (alt27) { |
3248 | case 1 : | 4061 | case 1 : |
3249 | // InternalCftLanguage.g:1261:4: kw= '.' this_ID_2= RULE_ID | 4062 | // InternalCftLanguage.g:1543:4: kw= '.' this_ValidId_2= ruleValidId |
3250 | { | 4063 | { |
3251 | kw=(Token)match(input,35,FOLLOW_3); | 4064 | kw=(Token)match(input,38,FOLLOW_3); |
3252 | 4065 | ||
3253 | current.merge(kw); | 4066 | current.merge(kw); |
3254 | newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); | 4067 | newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); |
3255 | 4068 | ||
3256 | this_ID_2=(Token)match(input,RULE_ID,FOLLOW_31); | ||
3257 | 4069 | ||
3258 | current.merge(this_ID_2); | 4070 | newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIdParserRuleCall_1_1()); |
3259 | 4071 | ||
4072 | pushFollow(FOLLOW_34); | ||
4073 | this_ValidId_2=ruleValidId(); | ||
4074 | |||
4075 | state._fsp--; | ||
4076 | |||
3260 | 4077 | ||
3261 | newLeafNode(this_ID_2, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); | 4078 | current.merge(this_ValidId_2); |
4079 | |||
4080 | |||
4081 | afterParserOrEnumRuleCall(); | ||
3262 | 4082 | ||
3263 | 4083 | ||
3264 | } | 4084 | } |
3265 | break; | 4085 | break; |
3266 | 4086 | ||
3267 | default : | 4087 | default : |
3268 | break loop24; | 4088 | break loop27; |
3269 | } | 4089 | } |
3270 | } while (true); | 4090 | } while (true); |
3271 | 4091 | ||
@@ -3292,7 +4112,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3292 | 4112 | ||
3293 | 4113 | ||
3294 | // $ANTLR start "entryRuleQualifiedNameWithWildcard" | 4114 | // $ANTLR start "entryRuleQualifiedNameWithWildcard" |
3295 | // InternalCftLanguage.g:1278:1: entryRuleQualifiedNameWithWildcard returns [String current=null] : iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ; | 4115 | // InternalCftLanguage.g:1563:1: entryRuleQualifiedNameWithWildcard returns [String current=null] : iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ; |
3296 | public final String entryRuleQualifiedNameWithWildcard() throws RecognitionException { | 4116 | public final String entryRuleQualifiedNameWithWildcard() throws RecognitionException { |
3297 | String current = null; | 4117 | String current = null; |
3298 | 4118 | ||
@@ -3300,8 +4120,8 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3300 | 4120 | ||
3301 | 4121 | ||
3302 | try { | 4122 | try { |
3303 | // InternalCftLanguage.g:1278:65: (iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ) | 4123 | // InternalCftLanguage.g:1563:65: (iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ) |
3304 | // InternalCftLanguage.g:1279:2: iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF | 4124 | // InternalCftLanguage.g:1564:2: iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF |
3305 | { | 4125 | { |
3306 | newCompositeNode(grammarAccess.getQualifiedNameWithWildcardRule()); | 4126 | newCompositeNode(grammarAccess.getQualifiedNameWithWildcardRule()); |
3307 | pushFollow(FOLLOW_1); | 4127 | pushFollow(FOLLOW_1); |
@@ -3328,7 +4148,7 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3328 | 4148 | ||
3329 | 4149 | ||
3330 | // $ANTLR start "ruleQualifiedNameWithWildcard" | 4150 | // $ANTLR start "ruleQualifiedNameWithWildcard" |
3331 | // InternalCftLanguage.g:1285:1: ruleQualifiedNameWithWildcard returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) ; | 4151 | // InternalCftLanguage.g:1570:1: ruleQualifiedNameWithWildcard returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) ; |
3332 | public final AntlrDatatypeRuleToken ruleQualifiedNameWithWildcard() throws RecognitionException { | 4152 | public final AntlrDatatypeRuleToken ruleQualifiedNameWithWildcard() throws RecognitionException { |
3333 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); | 4153 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); |
3334 | 4154 | ||
@@ -3340,16 +4160,16 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3340 | enterRule(); | 4160 | enterRule(); |
3341 | 4161 | ||
3342 | try { | 4162 | try { |
3343 | // InternalCftLanguage.g:1291:2: ( (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) ) | 4163 | // InternalCftLanguage.g:1576:2: ( (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) ) |
3344 | // InternalCftLanguage.g:1292:2: (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) | 4164 | // InternalCftLanguage.g:1577:2: (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) |
3345 | { | 4165 | { |
3346 | // InternalCftLanguage.g:1292:2: (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) | 4166 | // InternalCftLanguage.g:1577:2: (this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? ) |
3347 | // InternalCftLanguage.g:1293:3: this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? | 4167 | // InternalCftLanguage.g:1578:3: this_QualifiedName_0= ruleQualifiedName (kw= '.' kw= '*' )? |
3348 | { | 4168 | { |
3349 | 4169 | ||
3350 | newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); | 4170 | newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); |
3351 | 4171 | ||
3352 | pushFollow(FOLLOW_31); | 4172 | pushFollow(FOLLOW_34); |
3353 | this_QualifiedName_0=ruleQualifiedName(); | 4173 | this_QualifiedName_0=ruleQualifiedName(); |
3354 | 4174 | ||
3355 | state._fsp--; | 4175 | state._fsp--; |
@@ -3360,23 +4180,23 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3360 | 4180 | ||
3361 | afterParserOrEnumRuleCall(); | 4181 | afterParserOrEnumRuleCall(); |
3362 | 4182 | ||
3363 | // InternalCftLanguage.g:1303:3: (kw= '.' kw= '*' )? | 4183 | // InternalCftLanguage.g:1588:3: (kw= '.' kw= '*' )? |
3364 | int alt25=2; | 4184 | int alt28=2; |
3365 | int LA25_0 = input.LA(1); | 4185 | int LA28_0 = input.LA(1); |
3366 | 4186 | ||
3367 | if ( (LA25_0==35) ) { | 4187 | if ( (LA28_0==38) ) { |
3368 | alt25=1; | 4188 | alt28=1; |
3369 | } | 4189 | } |
3370 | switch (alt25) { | 4190 | switch (alt28) { |
3371 | case 1 : | 4191 | case 1 : |
3372 | // InternalCftLanguage.g:1304:4: kw= '.' kw= '*' | 4192 | // InternalCftLanguage.g:1589:4: kw= '.' kw= '*' |
3373 | { | 4193 | { |
3374 | kw=(Token)match(input,35,FOLLOW_32); | 4194 | kw=(Token)match(input,38,FOLLOW_35); |
3375 | 4195 | ||
3376 | current.merge(kw); | 4196 | current.merge(kw); |
3377 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1_0()); | 4197 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1_0()); |
3378 | 4198 | ||
3379 | kw=(Token)match(input,37,FOLLOW_2); | 4199 | kw=(Token)match(input,40,FOLLOW_2); |
3380 | 4200 | ||
3381 | current.merge(kw); | 4201 | current.merge(kw); |
3382 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_1_1()); | 4202 | newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_1_1()); |
@@ -3408,6 +4228,238 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3408 | } | 4228 | } |
3409 | // $ANTLR end "ruleQualifiedNameWithWildcard" | 4229 | // $ANTLR end "ruleQualifiedNameWithWildcard" |
3410 | 4230 | ||
4231 | |||
4232 | // $ANTLR start "entryRuleValidId" | ||
4233 | // InternalCftLanguage.g:1604:1: entryRuleValidId returns [String current=null] : iv_ruleValidId= ruleValidId EOF ; | ||
4234 | public final String entryRuleValidId() throws RecognitionException { | ||
4235 | String current = null; | ||
4236 | |||
4237 | AntlrDatatypeRuleToken iv_ruleValidId = null; | ||
4238 | |||
4239 | |||
4240 | try { | ||
4241 | // InternalCftLanguage.g:1604:47: (iv_ruleValidId= ruleValidId EOF ) | ||
4242 | // InternalCftLanguage.g:1605:2: iv_ruleValidId= ruleValidId EOF | ||
4243 | { | ||
4244 | newCompositeNode(grammarAccess.getValidIdRule()); | ||
4245 | pushFollow(FOLLOW_1); | ||
4246 | iv_ruleValidId=ruleValidId(); | ||
4247 | |||
4248 | state._fsp--; | ||
4249 | |||
4250 | current =iv_ruleValidId.getText(); | ||
4251 | match(input,EOF,FOLLOW_2); | ||
4252 | |||
4253 | } | ||
4254 | |||
4255 | } | ||
4256 | |||
4257 | catch (RecognitionException re) { | ||
4258 | recover(input,re); | ||
4259 | appendSkippedTokens(); | ||
4260 | } | ||
4261 | finally { | ||
4262 | } | ||
4263 | return current; | ||
4264 | } | ||
4265 | // $ANTLR end "entryRuleValidId" | ||
4266 | |||
4267 | |||
4268 | // $ANTLR start "ruleValidId" | ||
4269 | // InternalCftLanguage.g:1611:1: ruleValidId returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ID_0= RULE_ID | this_OF_INT_1= RULE_OF_INT ) ; | ||
4270 | public final AntlrDatatypeRuleToken ruleValidId() throws RecognitionException { | ||
4271 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); | ||
4272 | |||
4273 | Token this_ID_0=null; | ||
4274 | Token this_OF_INT_1=null; | ||
4275 | |||
4276 | |||
4277 | enterRule(); | ||
4278 | |||
4279 | try { | ||
4280 | // InternalCftLanguage.g:1617:2: ( (this_ID_0= RULE_ID | this_OF_INT_1= RULE_OF_INT ) ) | ||
4281 | // InternalCftLanguage.g:1618:2: (this_ID_0= RULE_ID | this_OF_INT_1= RULE_OF_INT ) | ||
4282 | { | ||
4283 | // InternalCftLanguage.g:1618:2: (this_ID_0= RULE_ID | this_OF_INT_1= RULE_OF_INT ) | ||
4284 | int alt29=2; | ||
4285 | int LA29_0 = input.LA(1); | ||
4286 | |||
4287 | if ( (LA29_0==RULE_ID) ) { | ||
4288 | alt29=1; | ||
4289 | } | ||
4290 | else if ( (LA29_0==RULE_OF_INT) ) { | ||
4291 | alt29=2; | ||
4292 | } | ||
4293 | else { | ||
4294 | NoViableAltException nvae = | ||
4295 | new NoViableAltException("", 29, 0, input); | ||
4296 | |||
4297 | throw nvae; | ||
4298 | } | ||
4299 | switch (alt29) { | ||
4300 | case 1 : | ||
4301 | // InternalCftLanguage.g:1619:3: this_ID_0= RULE_ID | ||
4302 | { | ||
4303 | this_ID_0=(Token)match(input,RULE_ID,FOLLOW_2); | ||
4304 | |||
4305 | current.merge(this_ID_0); | ||
4306 | |||
4307 | |||
4308 | newLeafNode(this_ID_0, grammarAccess.getValidIdAccess().getIDTerminalRuleCall_0()); | ||
4309 | |||
4310 | |||
4311 | } | ||
4312 | break; | ||
4313 | case 2 : | ||
4314 | // InternalCftLanguage.g:1627:3: this_OF_INT_1= RULE_OF_INT | ||
4315 | { | ||
4316 | this_OF_INT_1=(Token)match(input,RULE_OF_INT,FOLLOW_2); | ||
4317 | |||
4318 | current.merge(this_OF_INT_1); | ||
4319 | |||
4320 | |||
4321 | newLeafNode(this_OF_INT_1, grammarAccess.getValidIdAccess().getOF_INTTerminalRuleCall_1()); | ||
4322 | |||
4323 | |||
4324 | } | ||
4325 | break; | ||
4326 | |||
4327 | } | ||
4328 | |||
4329 | |||
4330 | } | ||
4331 | |||
4332 | |||
4333 | leaveRule(); | ||
4334 | |||
4335 | } | ||
4336 | |||
4337 | catch (RecognitionException re) { | ||
4338 | recover(input,re); | ||
4339 | appendSkippedTokens(); | ||
4340 | } | ||
4341 | finally { | ||
4342 | } | ||
4343 | return current; | ||
4344 | } | ||
4345 | // $ANTLR end "ruleValidId" | ||
4346 | |||
4347 | |||
4348 | // $ANTLR start "entryRuleDouble" | ||
4349 | // InternalCftLanguage.g:1638:1: entryRuleDouble returns [String current=null] : iv_ruleDouble= ruleDouble EOF ; | ||
4350 | public final String entryRuleDouble() throws RecognitionException { | ||
4351 | String current = null; | ||
4352 | |||
4353 | AntlrDatatypeRuleToken iv_ruleDouble = null; | ||
4354 | |||
4355 | |||
4356 | try { | ||
4357 | // InternalCftLanguage.g:1638:46: (iv_ruleDouble= ruleDouble EOF ) | ||
4358 | // InternalCftLanguage.g:1639:2: iv_ruleDouble= ruleDouble EOF | ||
4359 | { | ||
4360 | newCompositeNode(grammarAccess.getDoubleRule()); | ||
4361 | pushFollow(FOLLOW_1); | ||
4362 | iv_ruleDouble=ruleDouble(); | ||
4363 | |||
4364 | state._fsp--; | ||
4365 | |||
4366 | current =iv_ruleDouble.getText(); | ||
4367 | match(input,EOF,FOLLOW_2); | ||
4368 | |||
4369 | } | ||
4370 | |||
4371 | } | ||
4372 | |||
4373 | catch (RecognitionException re) { | ||
4374 | recover(input,re); | ||
4375 | appendSkippedTokens(); | ||
4376 | } | ||
4377 | finally { | ||
4378 | } | ||
4379 | return current; | ||
4380 | } | ||
4381 | // $ANTLR end "entryRuleDouble" | ||
4382 | |||
4383 | |||
4384 | // $ANTLR start "ruleDouble" | ||
4385 | // InternalCftLanguage.g:1645:1: ruleDouble returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_INT_0= RULE_INT | this_T_DOUBLE_1= RULE_T_DOUBLE ) ; | ||
4386 | public final AntlrDatatypeRuleToken ruleDouble() throws RecognitionException { | ||
4387 | AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); | ||
4388 | |||
4389 | Token this_INT_0=null; | ||
4390 | Token this_T_DOUBLE_1=null; | ||
4391 | |||
4392 | |||
4393 | enterRule(); | ||
4394 | |||
4395 | try { | ||
4396 | // InternalCftLanguage.g:1651:2: ( (this_INT_0= RULE_INT | this_T_DOUBLE_1= RULE_T_DOUBLE ) ) | ||
4397 | // InternalCftLanguage.g:1652:2: (this_INT_0= RULE_INT | this_T_DOUBLE_1= RULE_T_DOUBLE ) | ||
4398 | { | ||
4399 | // InternalCftLanguage.g:1652:2: (this_INT_0= RULE_INT | this_T_DOUBLE_1= RULE_T_DOUBLE ) | ||
4400 | int alt30=2; | ||
4401 | int LA30_0 = input.LA(1); | ||
4402 | |||
4403 | if ( (LA30_0==RULE_INT) ) { | ||
4404 | alt30=1; | ||
4405 | } | ||
4406 | else if ( (LA30_0==RULE_T_DOUBLE) ) { | ||
4407 | alt30=2; | ||
4408 | } | ||
4409 | else { | ||
4410 | NoViableAltException nvae = | ||
4411 | new NoViableAltException("", 30, 0, input); | ||
4412 | |||
4413 | throw nvae; | ||
4414 | } | ||
4415 | switch (alt30) { | ||
4416 | case 1 : | ||
4417 | // InternalCftLanguage.g:1653:3: this_INT_0= RULE_INT | ||
4418 | { | ||
4419 | this_INT_0=(Token)match(input,RULE_INT,FOLLOW_2); | ||
4420 | |||
4421 | current.merge(this_INT_0); | ||
4422 | |||
4423 | |||
4424 | newLeafNode(this_INT_0, grammarAccess.getDoubleAccess().getINTTerminalRuleCall_0()); | ||
4425 | |||
4426 | |||
4427 | } | ||
4428 | break; | ||
4429 | case 2 : | ||
4430 | // InternalCftLanguage.g:1661:3: this_T_DOUBLE_1= RULE_T_DOUBLE | ||
4431 | { | ||
4432 | this_T_DOUBLE_1=(Token)match(input,RULE_T_DOUBLE,FOLLOW_2); | ||
4433 | |||
4434 | current.merge(this_T_DOUBLE_1); | ||
4435 | |||
4436 | |||
4437 | newLeafNode(this_T_DOUBLE_1, grammarAccess.getDoubleAccess().getT_DOUBLETerminalRuleCall_1()); | ||
4438 | |||
4439 | |||
4440 | } | ||
4441 | break; | ||
4442 | |||
4443 | } | ||
4444 | |||
4445 | |||
4446 | } | ||
4447 | |||
4448 | |||
4449 | leaveRule(); | ||
4450 | |||
4451 | } | ||
4452 | |||
4453 | catch (RecognitionException re) { | ||
4454 | recover(input,re); | ||
4455 | appendSkippedTokens(); | ||
4456 | } | ||
4457 | finally { | ||
4458 | } | ||
4459 | return current; | ||
4460 | } | ||
4461 | // $ANTLR end "ruleDouble" | ||
4462 | |||
3411 | // Delegated rules | 4463 | // Delegated rules |
3412 | 4464 | ||
3413 | 4465 | ||
@@ -3415,35 +4467,38 @@ public class InternalCftLanguageParser extends AbstractInternalAntlrParser { | |||
3415 | 4467 | ||
3416 | public static final BitSet FOLLOW_1 = new BitSet(new long[]{0x0000000000000000L}); | 4468 | public static final BitSet FOLLOW_1 = new BitSet(new long[]{0x0000000000000000L}); |
3417 | public static final BitSet FOLLOW_2 = new BitSet(new long[]{0x0000000000000002L}); | 4469 | public static final BitSet FOLLOW_2 = new BitSet(new long[]{0x0000000000000002L}); |
3418 | public static final BitSet FOLLOW_3 = new BitSet(new long[]{0x0000000000000010L}); | 4470 | public static final BitSet FOLLOW_3 = new BitSet(new long[]{0x0000000000000060L}); |
3419 | public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x000000000200E002L}); | 4471 | public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x000000001001C002L}); |
3420 | public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x000000000200C002L}); | 4472 | public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000010018002L}); |
3421 | public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000002008002L}); | 4473 | public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000010010002L}); |
3422 | public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000002002L}); | 4474 | public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000004002L}); |
3423 | public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000010000L}); | 4475 | public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000020000L}); |
3424 | public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x00000000000E0010L}); | 4476 | public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x00000000001C0060L}); |
3425 | public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000002010L}); | 4477 | public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000004060L}); |
3426 | public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000000002000L}); | 4478 | public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000000004000L}); |
3427 | public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000000080010L}); | 4479 | public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000000100060L}); |
3428 | public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000000100002L}); | 4480 | public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000000200002L}); |
3429 | public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000000200000L}); | 4481 | public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000001400000L}); |
3430 | public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000000400000L}); | 4482 | public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000000800000L}); |
3431 | public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000000000020L}); | 4483 | public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000000000090L}); |
3432 | public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000000000800000L}); | 4484 | public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000000002000000L}); |
3433 | public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000000000012L}); | 4485 | public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000000000062L}); |
3434 | public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0000000001000000L}); | 4486 | public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0000000004000000L}); |
3435 | public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x000000000C080000L}); | 4487 | public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x0000000000000010L}); |
3436 | public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000000008000000L}); | 4488 | public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000000008000020L}); |
3437 | public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0000000010000000L}); | 4489 | public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0000000060100000L}); |
3438 | public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000000060000000L}); | 4490 | public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000000040000000L}); |
3439 | public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000001000010002L}); | 4491 | public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000000080000000L}); |
3440 | public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0000000000010002L}); | 4492 | public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0000000300000000L}); |
3441 | public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000000080080010L}); | 4493 | public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000008000020002L}); |
3442 | public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0000000100000000L}); | 4494 | public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0000000000020002L}); |
3443 | public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0000000600000000L}); | 4495 | public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0000000400100060L}); |
3444 | public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0000000080000010L}); | 4496 | public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0000000800000000L}); |
3445 | public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x0000000800000000L}); | 4497 | public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x0000003000000000L}); |
3446 | public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0000000800000002L}); | 4498 | public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0000000400000060L}); |
3447 | public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x0000002000000000L}); | 4499 | public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x0000004000000000L}); |
4500 | public static final BitSet FOLLOW_33 = new BitSet(new long[]{0x0000000000000042L}); | ||
4501 | public static final BitSet FOLLOW_34 = new BitSet(new long[]{0x0000004000000002L}); | ||
4502 | public static final BitSet FOLLOW_35 = new BitSet(new long[]{0x0000010000000000L}); | ||
3448 | 4503 | ||
3449 | } | 4504 | } |