diff options
author | 2021-06-27 01:43:59 +0200 | |
---|---|---|
committer | 2021-06-27 02:01:19 +0200 | |
commit | b88c842ba625753ea185e6166cd967e694160798 (patch) | |
tree | 51931f892dff12d253f7697179e137bdfe705155 /org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.ide/src/main/xtext-gen/org/eclipse/viatra/solver/language/ide/contentassist/antlr/internal/InternalProblem.g | |
parent | Opposite reference scope (diff) | |
download | refinery-b88c842ba625753ea185e6166cd967e694160798.tar.gz refinery-b88c842ba625753ea185e6166cd967e694160798.tar.zst refinery-b88c842ba625753ea185e6166cd967e694160798.zip |
Add enum support
Diffstat (limited to 'org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.ide/src/main/xtext-gen/org/eclipse/viatra/solver/language/ide/contentassist/antlr/internal/InternalProblem.g')
-rw-r--r-- | org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.ide/src/main/xtext-gen/org/eclipse/viatra/solver/language/ide/contentassist/antlr/internal/InternalProblem.g | 663 |
1 files changed, 608 insertions, 55 deletions
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.ide/src/main/xtext-gen/org/eclipse/viatra/solver/language/ide/contentassist/antlr/internal/InternalProblem.g b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.ide/src/main/xtext-gen/org/eclipse/viatra/solver/language/ide/contentassist/antlr/internal/InternalProblem.g index 01a6fd6e..0a7c03ba 100644 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.ide/src/main/xtext-gen/org/eclipse/viatra/solver/language/ide/contentassist/antlr/internal/InternalProblem.g +++ b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.ide/src/main/xtext-gen/org/eclipse/viatra/solver/language/ide/contentassist/antlr/internal/InternalProblem.g | |||
@@ -124,6 +124,56 @@ finally { | |||
124 | restoreStackSize(stackSize); | 124 | restoreStackSize(stackSize); |
125 | } | 125 | } |
126 | 126 | ||
127 | // Entry rule entryRuleEnumDeclaration | ||
128 | entryRuleEnumDeclaration | ||
129 | : | ||
130 | { before(grammarAccess.getEnumDeclarationRule()); } | ||
131 | ruleEnumDeclaration | ||
132 | { after(grammarAccess.getEnumDeclarationRule()); } | ||
133 | EOF | ||
134 | ; | ||
135 | |||
136 | // Rule EnumDeclaration | ||
137 | ruleEnumDeclaration | ||
138 | @init { | ||
139 | int stackSize = keepStackSize(); | ||
140 | } | ||
141 | : | ||
142 | ( | ||
143 | { before(grammarAccess.getEnumDeclarationAccess().getGroup()); } | ||
144 | (rule__EnumDeclaration__Group__0) | ||
145 | { after(grammarAccess.getEnumDeclarationAccess().getGroup()); } | ||
146 | ) | ||
147 | ; | ||
148 | finally { | ||
149 | restoreStackSize(stackSize); | ||
150 | } | ||
151 | |||
152 | // Entry rule entryRuleEnumLiteral | ||
153 | entryRuleEnumLiteral | ||
154 | : | ||
155 | { before(grammarAccess.getEnumLiteralRule()); } | ||
156 | ruleEnumLiteral | ||
157 | { after(grammarAccess.getEnumLiteralRule()); } | ||
158 | EOF | ||
159 | ; | ||
160 | |||
161 | // Rule EnumLiteral | ||
162 | ruleEnumLiteral | ||
163 | @init { | ||
164 | int stackSize = keepStackSize(); | ||
165 | } | ||
166 | : | ||
167 | ( | ||
168 | { before(grammarAccess.getEnumLiteralAccess().getNameAssignment()); } | ||
169 | (rule__EnumLiteral__NameAssignment) | ||
170 | { after(grammarAccess.getEnumLiteralAccess().getNameAssignment()); } | ||
171 | ) | ||
172 | ; | ||
173 | finally { | ||
174 | restoreStackSize(stackSize); | ||
175 | } | ||
176 | |||
127 | // Entry rule entryRuleReferenceDeclaration | 177 | // Entry rule entryRuleReferenceDeclaration |
128 | entryRuleReferenceDeclaration | 178 | entryRuleReferenceDeclaration |
129 | : | 179 | : |
@@ -315,9 +365,9 @@ ruleArgument | |||
315 | } | 365 | } |
316 | : | 366 | : |
317 | ( | 367 | ( |
318 | { before(grammarAccess.getArgumentAccess().getVariableAssignment()); } | 368 | { before(grammarAccess.getArgumentAccess().getVariableOrNodeAssignment()); } |
319 | (rule__Argument__VariableAssignment) | 369 | (rule__Argument__VariableOrNodeAssignment) |
320 | { after(grammarAccess.getArgumentAccess().getVariableAssignment()); } | 370 | { after(grammarAccess.getArgumentAccess().getVariableOrNodeAssignment()); } |
321 | ) | 371 | ) |
322 | ; | 372 | ; |
323 | finally { | 373 | finally { |
@@ -549,6 +599,31 @@ finally { | |||
549 | restoreStackSize(stackSize); | 599 | restoreStackSize(stackSize); |
550 | } | 600 | } |
551 | 601 | ||
602 | // Entry rule entryRuleQuotedOrUnquotedId | ||
603 | entryRuleQuotedOrUnquotedId | ||
604 | : | ||
605 | { before(grammarAccess.getQuotedOrUnquotedIdRule()); } | ||
606 | ruleQuotedOrUnquotedId | ||
607 | { after(grammarAccess.getQuotedOrUnquotedIdRule()); } | ||
608 | EOF | ||
609 | ; | ||
610 | |||
611 | // Rule QuotedOrUnquotedId | ||
612 | ruleQuotedOrUnquotedId | ||
613 | @init { | ||
614 | int stackSize = keepStackSize(); | ||
615 | } | ||
616 | : | ||
617 | ( | ||
618 | { before(grammarAccess.getQuotedOrUnquotedIdAccess().getAlternatives()); } | ||
619 | (rule__QuotedOrUnquotedId__Alternatives) | ||
620 | { after(grammarAccess.getQuotedOrUnquotedIdAccess().getAlternatives()); } | ||
621 | ) | ||
622 | ; | ||
623 | finally { | ||
624 | restoreStackSize(stackSize); | ||
625 | } | ||
626 | |||
552 | // Entry rule entryRuleQualifiedName | 627 | // Entry rule entryRuleQualifiedName |
553 | entryRuleQualifiedName | 628 | entryRuleQualifiedName |
554 | : | 629 | : |
@@ -574,6 +649,31 @@ finally { | |||
574 | restoreStackSize(stackSize); | 649 | restoreStackSize(stackSize); |
575 | } | 650 | } |
576 | 651 | ||
652 | // Entry rule entryRuleIdentifier | ||
653 | entryRuleIdentifier | ||
654 | : | ||
655 | { before(grammarAccess.getIdentifierRule()); } | ||
656 | ruleIdentifier | ||
657 | { after(grammarAccess.getIdentifierRule()); } | ||
658 | EOF | ||
659 | ; | ||
660 | |||
661 | // Rule Identifier | ||
662 | ruleIdentifier | ||
663 | @init { | ||
664 | int stackSize = keepStackSize(); | ||
665 | } | ||
666 | : | ||
667 | ( | ||
668 | { before(grammarAccess.getIdentifierAccess().getAlternatives()); } | ||
669 | (rule__Identifier__Alternatives) | ||
670 | { after(grammarAccess.getIdentifierAccess().getAlternatives()); } | ||
671 | ) | ||
672 | ; | ||
673 | finally { | ||
674 | restoreStackSize(stackSize); | ||
675 | } | ||
676 | |||
577 | // Rule LogicValue | 677 | // Rule LogicValue |
578 | ruleLogicValue | 678 | ruleLogicValue |
579 | @init { | 679 | @init { |
@@ -618,21 +718,27 @@ rule__Statement__Alternatives | |||
618 | ) | 718 | ) |
619 | | | 719 | | |
620 | ( | 720 | ( |
621 | { before(grammarAccess.getStatementAccess().getPredicateDefinitionParserRuleCall_1()); } | 721 | { before(grammarAccess.getStatementAccess().getEnumDeclarationParserRuleCall_1()); } |
722 | ruleEnumDeclaration | ||
723 | { after(grammarAccess.getStatementAccess().getEnumDeclarationParserRuleCall_1()); } | ||
724 | ) | ||
725 | | | ||
726 | ( | ||
727 | { before(grammarAccess.getStatementAccess().getPredicateDefinitionParserRuleCall_2()); } | ||
622 | rulePredicateDefinition | 728 | rulePredicateDefinition |
623 | { after(grammarAccess.getStatementAccess().getPredicateDefinitionParserRuleCall_1()); } | 729 | { after(grammarAccess.getStatementAccess().getPredicateDefinitionParserRuleCall_2()); } |
624 | ) | 730 | ) |
625 | | | 731 | | |
626 | ( | 732 | ( |
627 | { before(grammarAccess.getStatementAccess().getAssertionParserRuleCall_2()); } | 733 | { before(grammarAccess.getStatementAccess().getAssertionParserRuleCall_3()); } |
628 | ruleAssertion | 734 | ruleAssertion |
629 | { after(grammarAccess.getStatementAccess().getAssertionParserRuleCall_2()); } | 735 | { after(grammarAccess.getStatementAccess().getAssertionParserRuleCall_3()); } |
630 | ) | 736 | ) |
631 | | | 737 | | |
632 | ( | 738 | ( |
633 | { before(grammarAccess.getStatementAccess().getScopeDeclarationParserRuleCall_3()); } | 739 | { before(grammarAccess.getStatementAccess().getScopeDeclarationParserRuleCall_4()); } |
634 | ruleScopeDeclaration | 740 | ruleScopeDeclaration |
635 | { after(grammarAccess.getStatementAccess().getScopeDeclarationParserRuleCall_3()); } | 741 | { after(grammarAccess.getStatementAccess().getScopeDeclarationParserRuleCall_4()); } |
636 | ) | 742 | ) |
637 | ; | 743 | ; |
638 | finally { | 744 | finally { |
@@ -660,6 +766,48 @@ finally { | |||
660 | restoreStackSize(stackSize); | 766 | restoreStackSize(stackSize); |
661 | } | 767 | } |
662 | 768 | ||
769 | rule__EnumDeclaration__Alternatives_2 | ||
770 | @init { | ||
771 | int stackSize = keepStackSize(); | ||
772 | } | ||
773 | : | ||
774 | ( | ||
775 | { before(grammarAccess.getEnumDeclarationAccess().getGroup_2_0()); } | ||
776 | (rule__EnumDeclaration__Group_2_0__0) | ||
777 | { after(grammarAccess.getEnumDeclarationAccess().getGroup_2_0()); } | ||
778 | ) | ||
779 | | | ||
780 | ( | ||
781 | { before(grammarAccess.getEnumDeclarationAccess().getFullStopKeyword_2_1()); } | ||
782 | '.' | ||
783 | { after(grammarAccess.getEnumDeclarationAccess().getFullStopKeyword_2_1()); } | ||
784 | ) | ||
785 | ; | ||
786 | finally { | ||
787 | restoreStackSize(stackSize); | ||
788 | } | ||
789 | |||
790 | rule__EnumDeclaration__Alternatives_2_0_1_2 | ||
791 | @init { | ||
792 | int stackSize = keepStackSize(); | ||
793 | } | ||
794 | : | ||
795 | ( | ||
796 | { before(grammarAccess.getEnumDeclarationAccess().getCommaKeyword_2_0_1_2_0()); } | ||
797 | ',' | ||
798 | { after(grammarAccess.getEnumDeclarationAccess().getCommaKeyword_2_0_1_2_0()); } | ||
799 | ) | ||
800 | | | ||
801 | ( | ||
802 | { before(grammarAccess.getEnumDeclarationAccess().getSemicolonKeyword_2_0_1_2_1()); } | ||
803 | ';' | ||
804 | { after(grammarAccess.getEnumDeclarationAccess().getSemicolonKeyword_2_0_1_2_1()); } | ||
805 | ) | ||
806 | ; | ||
807 | finally { | ||
808 | restoreStackSize(stackSize); | ||
809 | } | ||
810 | |||
663 | rule__ReferenceDeclaration__Alternatives_0 | 811 | rule__ReferenceDeclaration__Alternatives_0 |
664 | @init { | 812 | @init { |
665 | int stackSize = keepStackSize(); | 813 | int stackSize = keepStackSize(); |
@@ -828,6 +976,27 @@ finally { | |||
828 | restoreStackSize(stackSize); | 976 | restoreStackSize(stackSize); |
829 | } | 977 | } |
830 | 978 | ||
979 | rule__QuotedOrUnquotedId__Alternatives | ||
980 | @init { | ||
981 | int stackSize = keepStackSize(); | ||
982 | } | ||
983 | : | ||
984 | ( | ||
985 | { before(grammarAccess.getQuotedOrUnquotedIdAccess().getQUOTED_IDTerminalRuleCall_0()); } | ||
986 | RULE_QUOTED_ID | ||
987 | { after(grammarAccess.getQuotedOrUnquotedIdAccess().getQUOTED_IDTerminalRuleCall_0()); } | ||
988 | ) | ||
989 | | | ||
990 | ( | ||
991 | { before(grammarAccess.getQuotedOrUnquotedIdAccess().getIdentifierParserRuleCall_1()); } | ||
992 | ruleIdentifier | ||
993 | { after(grammarAccess.getQuotedOrUnquotedIdAccess().getIdentifierParserRuleCall_1()); } | ||
994 | ) | ||
995 | ; | ||
996 | finally { | ||
997 | restoreStackSize(stackSize); | ||
998 | } | ||
999 | |||
831 | rule__QualifiedName__Alternatives | 1000 | rule__QualifiedName__Alternatives |
832 | @init { | 1001 | @init { |
833 | int stackSize = keepStackSize(); | 1002 | int stackSize = keepStackSize(); |
@@ -849,6 +1018,33 @@ finally { | |||
849 | restoreStackSize(stackSize); | 1018 | restoreStackSize(stackSize); |
850 | } | 1019 | } |
851 | 1020 | ||
1021 | rule__Identifier__Alternatives | ||
1022 | @init { | ||
1023 | int stackSize = keepStackSize(); | ||
1024 | } | ||
1025 | : | ||
1026 | ( | ||
1027 | { before(grammarAccess.getIdentifierAccess().getIDTerminalRuleCall_0()); } | ||
1028 | RULE_ID | ||
1029 | { after(grammarAccess.getIdentifierAccess().getIDTerminalRuleCall_0()); } | ||
1030 | ) | ||
1031 | | | ||
1032 | ( | ||
1033 | { before(grammarAccess.getIdentifierAccess().getTrueKeyword_1()); } | ||
1034 | 'true' | ||
1035 | { after(grammarAccess.getIdentifierAccess().getTrueKeyword_1()); } | ||
1036 | ) | ||
1037 | | | ||
1038 | ( | ||
1039 | { before(grammarAccess.getIdentifierAccess().getFalseKeyword_2()); } | ||
1040 | 'false' | ||
1041 | { after(grammarAccess.getIdentifierAccess().getFalseKeyword_2()); } | ||
1042 | ) | ||
1043 | ; | ||
1044 | finally { | ||
1045 | restoreStackSize(stackSize); | ||
1046 | } | ||
1047 | |||
852 | rule__LogicValue__Alternatives | 1048 | rule__LogicValue__Alternatives |
853 | @init { | 1049 | @init { |
854 | int stackSize = keepStackSize(); | 1050 | int stackSize = keepStackSize(); |
@@ -1437,6 +1633,303 @@ finally { | |||
1437 | } | 1633 | } |
1438 | 1634 | ||
1439 | 1635 | ||
1636 | rule__EnumDeclaration__Group__0 | ||
1637 | @init { | ||
1638 | int stackSize = keepStackSize(); | ||
1639 | } | ||
1640 | : | ||
1641 | rule__EnumDeclaration__Group__0__Impl | ||
1642 | rule__EnumDeclaration__Group__1 | ||
1643 | ; | ||
1644 | finally { | ||
1645 | restoreStackSize(stackSize); | ||
1646 | } | ||
1647 | |||
1648 | rule__EnumDeclaration__Group__0__Impl | ||
1649 | @init { | ||
1650 | int stackSize = keepStackSize(); | ||
1651 | } | ||
1652 | : | ||
1653 | ( | ||
1654 | { before(grammarAccess.getEnumDeclarationAccess().getEnumKeyword_0()); } | ||
1655 | 'enum' | ||
1656 | { after(grammarAccess.getEnumDeclarationAccess().getEnumKeyword_0()); } | ||
1657 | ) | ||
1658 | ; | ||
1659 | finally { | ||
1660 | restoreStackSize(stackSize); | ||
1661 | } | ||
1662 | |||
1663 | rule__EnumDeclaration__Group__1 | ||
1664 | @init { | ||
1665 | int stackSize = keepStackSize(); | ||
1666 | } | ||
1667 | : | ||
1668 | rule__EnumDeclaration__Group__1__Impl | ||
1669 | rule__EnumDeclaration__Group__2 | ||
1670 | ; | ||
1671 | finally { | ||
1672 | restoreStackSize(stackSize); | ||
1673 | } | ||
1674 | |||
1675 | rule__EnumDeclaration__Group__1__Impl | ||
1676 | @init { | ||
1677 | int stackSize = keepStackSize(); | ||
1678 | } | ||
1679 | : | ||
1680 | ( | ||
1681 | { before(grammarAccess.getEnumDeclarationAccess().getNameAssignment_1()); } | ||
1682 | (rule__EnumDeclaration__NameAssignment_1) | ||
1683 | { after(grammarAccess.getEnumDeclarationAccess().getNameAssignment_1()); } | ||
1684 | ) | ||
1685 | ; | ||
1686 | finally { | ||
1687 | restoreStackSize(stackSize); | ||
1688 | } | ||
1689 | |||
1690 | rule__EnumDeclaration__Group__2 | ||
1691 | @init { | ||
1692 | int stackSize = keepStackSize(); | ||
1693 | } | ||
1694 | : | ||
1695 | rule__EnumDeclaration__Group__2__Impl | ||
1696 | ; | ||
1697 | finally { | ||
1698 | restoreStackSize(stackSize); | ||
1699 | } | ||
1700 | |||
1701 | rule__EnumDeclaration__Group__2__Impl | ||
1702 | @init { | ||
1703 | int stackSize = keepStackSize(); | ||
1704 | } | ||
1705 | : | ||
1706 | ( | ||
1707 | { before(grammarAccess.getEnumDeclarationAccess().getAlternatives_2()); } | ||
1708 | (rule__EnumDeclaration__Alternatives_2) | ||
1709 | { after(grammarAccess.getEnumDeclarationAccess().getAlternatives_2()); } | ||
1710 | ) | ||
1711 | ; | ||
1712 | finally { | ||
1713 | restoreStackSize(stackSize); | ||
1714 | } | ||
1715 | |||
1716 | |||
1717 | rule__EnumDeclaration__Group_2_0__0 | ||
1718 | @init { | ||
1719 | int stackSize = keepStackSize(); | ||
1720 | } | ||
1721 | : | ||
1722 | rule__EnumDeclaration__Group_2_0__0__Impl | ||
1723 | rule__EnumDeclaration__Group_2_0__1 | ||
1724 | ; | ||
1725 | finally { | ||
1726 | restoreStackSize(stackSize); | ||
1727 | } | ||
1728 | |||
1729 | rule__EnumDeclaration__Group_2_0__0__Impl | ||
1730 | @init { | ||
1731 | int stackSize = keepStackSize(); | ||
1732 | } | ||
1733 | : | ||
1734 | ( | ||
1735 | { before(grammarAccess.getEnumDeclarationAccess().getLeftCurlyBracketKeyword_2_0_0()); } | ||
1736 | '{' | ||
1737 | { after(grammarAccess.getEnumDeclarationAccess().getLeftCurlyBracketKeyword_2_0_0()); } | ||
1738 | ) | ||
1739 | ; | ||
1740 | finally { | ||
1741 | restoreStackSize(stackSize); | ||
1742 | } | ||
1743 | |||
1744 | rule__EnumDeclaration__Group_2_0__1 | ||
1745 | @init { | ||
1746 | int stackSize = keepStackSize(); | ||
1747 | } | ||
1748 | : | ||
1749 | rule__EnumDeclaration__Group_2_0__1__Impl | ||
1750 | rule__EnumDeclaration__Group_2_0__2 | ||
1751 | ; | ||
1752 | finally { | ||
1753 | restoreStackSize(stackSize); | ||
1754 | } | ||
1755 | |||
1756 | rule__EnumDeclaration__Group_2_0__1__Impl | ||
1757 | @init { | ||
1758 | int stackSize = keepStackSize(); | ||
1759 | } | ||
1760 | : | ||
1761 | ( | ||
1762 | { before(grammarAccess.getEnumDeclarationAccess().getGroup_2_0_1()); } | ||
1763 | (rule__EnumDeclaration__Group_2_0_1__0)? | ||
1764 | { after(grammarAccess.getEnumDeclarationAccess().getGroup_2_0_1()); } | ||
1765 | ) | ||
1766 | ; | ||
1767 | finally { | ||
1768 | restoreStackSize(stackSize); | ||
1769 | } | ||
1770 | |||
1771 | rule__EnumDeclaration__Group_2_0__2 | ||
1772 | @init { | ||
1773 | int stackSize = keepStackSize(); | ||
1774 | } | ||
1775 | : | ||
1776 | rule__EnumDeclaration__Group_2_0__2__Impl | ||
1777 | ; | ||
1778 | finally { | ||
1779 | restoreStackSize(stackSize); | ||
1780 | } | ||
1781 | |||
1782 | rule__EnumDeclaration__Group_2_0__2__Impl | ||
1783 | @init { | ||
1784 | int stackSize = keepStackSize(); | ||
1785 | } | ||
1786 | : | ||
1787 | ( | ||
1788 | { before(grammarAccess.getEnumDeclarationAccess().getRightCurlyBracketKeyword_2_0_2()); } | ||
1789 | '}' | ||
1790 | { after(grammarAccess.getEnumDeclarationAccess().getRightCurlyBracketKeyword_2_0_2()); } | ||
1791 | ) | ||
1792 | ; | ||
1793 | finally { | ||
1794 | restoreStackSize(stackSize); | ||
1795 | } | ||
1796 | |||
1797 | |||
1798 | rule__EnumDeclaration__Group_2_0_1__0 | ||
1799 | @init { | ||
1800 | int stackSize = keepStackSize(); | ||
1801 | } | ||
1802 | : | ||
1803 | rule__EnumDeclaration__Group_2_0_1__0__Impl | ||
1804 | rule__EnumDeclaration__Group_2_0_1__1 | ||
1805 | ; | ||
1806 | finally { | ||
1807 | restoreStackSize(stackSize); | ||
1808 | } | ||
1809 | |||
1810 | rule__EnumDeclaration__Group_2_0_1__0__Impl | ||
1811 | @init { | ||
1812 | int stackSize = keepStackSize(); | ||
1813 | } | ||
1814 | : | ||
1815 | ( | ||
1816 | { before(grammarAccess.getEnumDeclarationAccess().getLiteralsAssignment_2_0_1_0()); } | ||
1817 | (rule__EnumDeclaration__LiteralsAssignment_2_0_1_0) | ||
1818 | { after(grammarAccess.getEnumDeclarationAccess().getLiteralsAssignment_2_0_1_0()); } | ||
1819 | ) | ||
1820 | ; | ||
1821 | finally { | ||
1822 | restoreStackSize(stackSize); | ||
1823 | } | ||
1824 | |||
1825 | rule__EnumDeclaration__Group_2_0_1__1 | ||
1826 | @init { | ||
1827 | int stackSize = keepStackSize(); | ||
1828 | } | ||
1829 | : | ||
1830 | rule__EnumDeclaration__Group_2_0_1__1__Impl | ||
1831 | rule__EnumDeclaration__Group_2_0_1__2 | ||
1832 | ; | ||
1833 | finally { | ||
1834 | restoreStackSize(stackSize); | ||
1835 | } | ||
1836 | |||
1837 | rule__EnumDeclaration__Group_2_0_1__1__Impl | ||
1838 | @init { | ||
1839 | int stackSize = keepStackSize(); | ||
1840 | } | ||
1841 | : | ||
1842 | ( | ||
1843 | { before(grammarAccess.getEnumDeclarationAccess().getGroup_2_0_1_1()); } | ||
1844 | (rule__EnumDeclaration__Group_2_0_1_1__0)* | ||
1845 | { after(grammarAccess.getEnumDeclarationAccess().getGroup_2_0_1_1()); } | ||
1846 | ) | ||
1847 | ; | ||
1848 | finally { | ||
1849 | restoreStackSize(stackSize); | ||
1850 | } | ||
1851 | |||
1852 | rule__EnumDeclaration__Group_2_0_1__2 | ||
1853 | @init { | ||
1854 | int stackSize = keepStackSize(); | ||
1855 | } | ||
1856 | : | ||
1857 | rule__EnumDeclaration__Group_2_0_1__2__Impl | ||
1858 | ; | ||
1859 | finally { | ||
1860 | restoreStackSize(stackSize); | ||
1861 | } | ||
1862 | |||
1863 | rule__EnumDeclaration__Group_2_0_1__2__Impl | ||
1864 | @init { | ||
1865 | int stackSize = keepStackSize(); | ||
1866 | } | ||
1867 | : | ||
1868 | ( | ||
1869 | { before(grammarAccess.getEnumDeclarationAccess().getAlternatives_2_0_1_2()); } | ||
1870 | (rule__EnumDeclaration__Alternatives_2_0_1_2)? | ||
1871 | { after(grammarAccess.getEnumDeclarationAccess().getAlternatives_2_0_1_2()); } | ||
1872 | ) | ||
1873 | ; | ||
1874 | finally { | ||
1875 | restoreStackSize(stackSize); | ||
1876 | } | ||
1877 | |||
1878 | |||
1879 | rule__EnumDeclaration__Group_2_0_1_1__0 | ||
1880 | @init { | ||
1881 | int stackSize = keepStackSize(); | ||
1882 | } | ||
1883 | : | ||
1884 | rule__EnumDeclaration__Group_2_0_1_1__0__Impl | ||
1885 | rule__EnumDeclaration__Group_2_0_1_1__1 | ||
1886 | ; | ||
1887 | finally { | ||
1888 | restoreStackSize(stackSize); | ||
1889 | } | ||
1890 | |||
1891 | rule__EnumDeclaration__Group_2_0_1_1__0__Impl | ||
1892 | @init { | ||
1893 | int stackSize = keepStackSize(); | ||
1894 | } | ||
1895 | : | ||
1896 | ( | ||
1897 | { before(grammarAccess.getEnumDeclarationAccess().getCommaKeyword_2_0_1_1_0()); } | ||
1898 | ',' | ||
1899 | { after(grammarAccess.getEnumDeclarationAccess().getCommaKeyword_2_0_1_1_0()); } | ||
1900 | ) | ||
1901 | ; | ||
1902 | finally { | ||
1903 | restoreStackSize(stackSize); | ||
1904 | } | ||
1905 | |||
1906 | rule__EnumDeclaration__Group_2_0_1_1__1 | ||
1907 | @init { | ||
1908 | int stackSize = keepStackSize(); | ||
1909 | } | ||
1910 | : | ||
1911 | rule__EnumDeclaration__Group_2_0_1_1__1__Impl | ||
1912 | ; | ||
1913 | finally { | ||
1914 | restoreStackSize(stackSize); | ||
1915 | } | ||
1916 | |||
1917 | rule__EnumDeclaration__Group_2_0_1_1__1__Impl | ||
1918 | @init { | ||
1919 | int stackSize = keepStackSize(); | ||
1920 | } | ||
1921 | : | ||
1922 | ( | ||
1923 | { before(grammarAccess.getEnumDeclarationAccess().getLiteralsAssignment_2_0_1_1_1()); } | ||
1924 | (rule__EnumDeclaration__LiteralsAssignment_2_0_1_1_1) | ||
1925 | { after(grammarAccess.getEnumDeclarationAccess().getLiteralsAssignment_2_0_1_1_1()); } | ||
1926 | ) | ||
1927 | ; | ||
1928 | finally { | ||
1929 | restoreStackSize(stackSize); | ||
1930 | } | ||
1931 | |||
1932 | |||
1440 | rule__ReferenceDeclaration__Group__0 | 1933 | rule__ReferenceDeclaration__Group__0 |
1441 | @init { | 1934 | @init { |
1442 | int stackSize = keepStackSize(); | 1935 | int stackSize = keepStackSize(); |
@@ -1456,7 +1949,7 @@ rule__ReferenceDeclaration__Group__0__Impl | |||
1456 | : | 1949 | : |
1457 | ( | 1950 | ( |
1458 | { before(grammarAccess.getReferenceDeclarationAccess().getAlternatives_0()); } | 1951 | { before(grammarAccess.getReferenceDeclarationAccess().getAlternatives_0()); } |
1459 | (rule__ReferenceDeclaration__Alternatives_0) | 1952 | (rule__ReferenceDeclaration__Alternatives_0)? |
1460 | { after(grammarAccess.getReferenceDeclarationAccess().getAlternatives_0()); } | 1953 | { after(grammarAccess.getReferenceDeclarationAccess().getAlternatives_0()); } |
1461 | ) | 1954 | ) |
1462 | ; | 1955 | ; |
@@ -2212,7 +2705,7 @@ rule__Parameter__Group__0__Impl | |||
2212 | : | 2705 | : |
2213 | ( | 2706 | ( |
2214 | { before(grammarAccess.getParameterAccess().getParameterTypeAssignment_0()); } | 2707 | { before(grammarAccess.getParameterAccess().getParameterTypeAssignment_0()); } |
2215 | (rule__Parameter__ParameterTypeAssignment_0) | 2708 | (rule__Parameter__ParameterTypeAssignment_0)? |
2216 | { after(grammarAccess.getParameterAccess().getParameterTypeAssignment_0()); } | 2709 | { after(grammarAccess.getParameterAccess().getParameterTypeAssignment_0()); } |
2217 | ) | 2710 | ) |
2218 | ; | 2711 | ; |
@@ -3561,9 +4054,9 @@ rule__QualifiedName__Group_1__0__Impl | |||
3561 | } | 4054 | } |
3562 | : | 4055 | : |
3563 | ( | 4056 | ( |
3564 | { before(grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_0()); } | 4057 | { before(grammarAccess.getQualifiedNameAccess().getIdentifierParserRuleCall_1_0()); } |
3565 | RULE_ID | 4058 | ruleIdentifier |
3566 | { after(grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_0()); } | 4059 | { after(grammarAccess.getQualifiedNameAccess().getIdentifierParserRuleCall_1_0()); } |
3567 | ) | 4060 | ) |
3568 | ; | 4061 | ; |
3569 | finally { | 4062 | finally { |
@@ -3668,9 +4161,9 @@ rule__QualifiedName__Group_1_1__1__Impl | |||
3668 | } | 4161 | } |
3669 | : | 4162 | : |
3670 | ( | 4163 | ( |
3671 | { before(grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1_1()); } | 4164 | { before(grammarAccess.getQualifiedNameAccess().getIdentifierParserRuleCall_1_1_1()); } |
3672 | RULE_ID | 4165 | ruleIdentifier |
3673 | { after(grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1_1()); } | 4166 | { after(grammarAccess.getQualifiedNameAccess().getIdentifierParserRuleCall_1_1_1()); } |
3674 | ) | 4167 | ) |
3675 | ; | 4168 | ; |
3676 | finally { | 4169 | finally { |
@@ -3738,9 +4231,9 @@ rule__Problem__NameAssignment_0_1 | |||
3738 | } | 4231 | } |
3739 | : | 4232 | : |
3740 | ( | 4233 | ( |
3741 | { before(grammarAccess.getProblemAccess().getNameIDTerminalRuleCall_0_1_0()); } | 4234 | { before(grammarAccess.getProblemAccess().getNameIdentifierParserRuleCall_0_1_0()); } |
3742 | RULE_ID | 4235 | ruleIdentifier |
3743 | { after(grammarAccess.getProblemAccess().getNameIDTerminalRuleCall_0_1_0()); } | 4236 | { after(grammarAccess.getProblemAccess().getNameIdentifierParserRuleCall_0_1_0()); } |
3744 | ) | 4237 | ) |
3745 | ; | 4238 | ; |
3746 | finally { | 4239 | finally { |
@@ -3787,9 +4280,9 @@ rule__ClassDeclaration__NameAssignment_2 | |||
3787 | } | 4280 | } |
3788 | : | 4281 | : |
3789 | ( | 4282 | ( |
3790 | { before(grammarAccess.getClassDeclarationAccess().getNameIDTerminalRuleCall_2_0()); } | 4283 | { before(grammarAccess.getClassDeclarationAccess().getNameIdentifierParserRuleCall_2_0()); } |
3791 | RULE_ID | 4284 | ruleIdentifier |
3792 | { after(grammarAccess.getClassDeclarationAccess().getNameIDTerminalRuleCall_2_0()); } | 4285 | { after(grammarAccess.getClassDeclarationAccess().getNameIdentifierParserRuleCall_2_0()); } |
3793 | ) | 4286 | ) |
3794 | ; | 4287 | ; |
3795 | finally { | 4288 | finally { |
@@ -3802,13 +4295,13 @@ rule__ClassDeclaration__SuperTypesAssignment_3_1 | |||
3802 | } | 4295 | } |
3803 | : | 4296 | : |
3804 | ( | 4297 | ( |
3805 | { before(grammarAccess.getClassDeclarationAccess().getSuperTypesClassDeclarationCrossReference_3_1_0()); } | 4298 | { before(grammarAccess.getClassDeclarationAccess().getSuperTypesRelationCrossReference_3_1_0()); } |
3806 | ( | 4299 | ( |
3807 | { before(grammarAccess.getClassDeclarationAccess().getSuperTypesClassDeclarationQualifiedNameParserRuleCall_3_1_0_1()); } | 4300 | { before(grammarAccess.getClassDeclarationAccess().getSuperTypesRelationQualifiedNameParserRuleCall_3_1_0_1()); } |
3808 | ruleQualifiedName | 4301 | ruleQualifiedName |
3809 | { after(grammarAccess.getClassDeclarationAccess().getSuperTypesClassDeclarationQualifiedNameParserRuleCall_3_1_0_1()); } | 4302 | { after(grammarAccess.getClassDeclarationAccess().getSuperTypesRelationQualifiedNameParserRuleCall_3_1_0_1()); } |
3810 | ) | 4303 | ) |
3811 | { after(grammarAccess.getClassDeclarationAccess().getSuperTypesClassDeclarationCrossReference_3_1_0()); } | 4304 | { after(grammarAccess.getClassDeclarationAccess().getSuperTypesRelationCrossReference_3_1_0()); } |
3812 | ) | 4305 | ) |
3813 | ; | 4306 | ; |
3814 | finally { | 4307 | finally { |
@@ -3821,13 +4314,13 @@ rule__ClassDeclaration__SuperTypesAssignment_3_2_1 | |||
3821 | } | 4314 | } |
3822 | : | 4315 | : |
3823 | ( | 4316 | ( |
3824 | { before(grammarAccess.getClassDeclarationAccess().getSuperTypesClassDeclarationCrossReference_3_2_1_0()); } | 4317 | { before(grammarAccess.getClassDeclarationAccess().getSuperTypesRelationCrossReference_3_2_1_0()); } |
3825 | ( | 4318 | ( |
3826 | { before(grammarAccess.getClassDeclarationAccess().getSuperTypesClassDeclarationQualifiedNameParserRuleCall_3_2_1_0_1()); } | 4319 | { before(grammarAccess.getClassDeclarationAccess().getSuperTypesRelationQualifiedNameParserRuleCall_3_2_1_0_1()); } |
3827 | ruleQualifiedName | 4320 | ruleQualifiedName |
3828 | { after(grammarAccess.getClassDeclarationAccess().getSuperTypesClassDeclarationQualifiedNameParserRuleCall_3_2_1_0_1()); } | 4321 | { after(grammarAccess.getClassDeclarationAccess().getSuperTypesRelationQualifiedNameParserRuleCall_3_2_1_0_1()); } |
3829 | ) | 4322 | ) |
3830 | { after(grammarAccess.getClassDeclarationAccess().getSuperTypesClassDeclarationCrossReference_3_2_1_0()); } | 4323 | { after(grammarAccess.getClassDeclarationAccess().getSuperTypesRelationCrossReference_3_2_1_0()); } |
3831 | ) | 4324 | ) |
3832 | ; | 4325 | ; |
3833 | finally { | 4326 | finally { |
@@ -3849,6 +4342,66 @@ finally { | |||
3849 | restoreStackSize(stackSize); | 4342 | restoreStackSize(stackSize); |
3850 | } | 4343 | } |
3851 | 4344 | ||
4345 | rule__EnumDeclaration__NameAssignment_1 | ||
4346 | @init { | ||
4347 | int stackSize = keepStackSize(); | ||
4348 | } | ||
4349 | : | ||
4350 | ( | ||
4351 | { before(grammarAccess.getEnumDeclarationAccess().getNameIdentifierParserRuleCall_1_0()); } | ||
4352 | ruleIdentifier | ||
4353 | { after(grammarAccess.getEnumDeclarationAccess().getNameIdentifierParserRuleCall_1_0()); } | ||
4354 | ) | ||
4355 | ; | ||
4356 | finally { | ||
4357 | restoreStackSize(stackSize); | ||
4358 | } | ||
4359 | |||
4360 | rule__EnumDeclaration__LiteralsAssignment_2_0_1_0 | ||
4361 | @init { | ||
4362 | int stackSize = keepStackSize(); | ||
4363 | } | ||
4364 | : | ||
4365 | ( | ||
4366 | { before(grammarAccess.getEnumDeclarationAccess().getLiteralsEnumLiteralParserRuleCall_2_0_1_0_0()); } | ||
4367 | ruleEnumLiteral | ||
4368 | { after(grammarAccess.getEnumDeclarationAccess().getLiteralsEnumLiteralParserRuleCall_2_0_1_0_0()); } | ||
4369 | ) | ||
4370 | ; | ||
4371 | finally { | ||
4372 | restoreStackSize(stackSize); | ||
4373 | } | ||
4374 | |||
4375 | rule__EnumDeclaration__LiteralsAssignment_2_0_1_1_1 | ||
4376 | @init { | ||
4377 | int stackSize = keepStackSize(); | ||
4378 | } | ||
4379 | : | ||
4380 | ( | ||
4381 | { before(grammarAccess.getEnumDeclarationAccess().getLiteralsEnumLiteralParserRuleCall_2_0_1_1_1_0()); } | ||
4382 | ruleEnumLiteral | ||
4383 | { after(grammarAccess.getEnumDeclarationAccess().getLiteralsEnumLiteralParserRuleCall_2_0_1_1_1_0()); } | ||
4384 | ) | ||
4385 | ; | ||
4386 | finally { | ||
4387 | restoreStackSize(stackSize); | ||
4388 | } | ||
4389 | |||
4390 | rule__EnumLiteral__NameAssignment | ||
4391 | @init { | ||
4392 | int stackSize = keepStackSize(); | ||
4393 | } | ||
4394 | : | ||
4395 | ( | ||
4396 | { before(grammarAccess.getEnumLiteralAccess().getNameQuotedOrUnquotedIdParserRuleCall_0()); } | ||
4397 | ruleQuotedOrUnquotedId | ||
4398 | { after(grammarAccess.getEnumLiteralAccess().getNameQuotedOrUnquotedIdParserRuleCall_0()); } | ||
4399 | ) | ||
4400 | ; | ||
4401 | finally { | ||
4402 | restoreStackSize(stackSize); | ||
4403 | } | ||
4404 | |||
3852 | rule__ReferenceDeclaration__ContainmentAssignment_0_0 | 4405 | rule__ReferenceDeclaration__ContainmentAssignment_0_0 |
3853 | @init { | 4406 | @init { |
3854 | int stackSize = keepStackSize(); | 4407 | int stackSize = keepStackSize(); |
@@ -3874,13 +4427,13 @@ rule__ReferenceDeclaration__ReferenceTypeAssignment_1 | |||
3874 | } | 4427 | } |
3875 | : | 4428 | : |
3876 | ( | 4429 | ( |
3877 | { before(grammarAccess.getReferenceDeclarationAccess().getReferenceTypeClassDeclarationCrossReference_1_0()); } | 4430 | { before(grammarAccess.getReferenceDeclarationAccess().getReferenceTypeRelationCrossReference_1_0()); } |
3878 | ( | 4431 | ( |
3879 | { before(grammarAccess.getReferenceDeclarationAccess().getReferenceTypeClassDeclarationQualifiedNameParserRuleCall_1_0_1()); } | 4432 | { before(grammarAccess.getReferenceDeclarationAccess().getReferenceTypeRelationQualifiedNameParserRuleCall_1_0_1()); } |
3880 | ruleQualifiedName | 4433 | ruleQualifiedName |
3881 | { after(grammarAccess.getReferenceDeclarationAccess().getReferenceTypeClassDeclarationQualifiedNameParserRuleCall_1_0_1()); } | 4434 | { after(grammarAccess.getReferenceDeclarationAccess().getReferenceTypeRelationQualifiedNameParserRuleCall_1_0_1()); } |
3882 | ) | 4435 | ) |
3883 | { after(grammarAccess.getReferenceDeclarationAccess().getReferenceTypeClassDeclarationCrossReference_1_0()); } | 4436 | { after(grammarAccess.getReferenceDeclarationAccess().getReferenceTypeRelationCrossReference_1_0()); } |
3884 | ) | 4437 | ) |
3885 | ; | 4438 | ; |
3886 | finally { | 4439 | finally { |
@@ -3908,9 +4461,9 @@ rule__ReferenceDeclaration__NameAssignment_3 | |||
3908 | } | 4461 | } |
3909 | : | 4462 | : |
3910 | ( | 4463 | ( |
3911 | { before(grammarAccess.getReferenceDeclarationAccess().getNameIDTerminalRuleCall_3_0()); } | 4464 | { before(grammarAccess.getReferenceDeclarationAccess().getNameIdentifierParserRuleCall_3_0()); } |
3912 | RULE_ID | 4465 | ruleIdentifier |
3913 | { after(grammarAccess.getReferenceDeclarationAccess().getNameIDTerminalRuleCall_3_0()); } | 4466 | { after(grammarAccess.getReferenceDeclarationAccess().getNameIdentifierParserRuleCall_3_0()); } |
3914 | ) | 4467 | ) |
3915 | ; | 4468 | ; |
3916 | finally { | 4469 | finally { |
@@ -3961,9 +4514,9 @@ rule__PredicateDefinition__NameAssignment_1 | |||
3961 | } | 4514 | } |
3962 | : | 4515 | : |
3963 | ( | 4516 | ( |
3964 | { before(grammarAccess.getPredicateDefinitionAccess().getNameIDTerminalRuleCall_1_0()); } | 4517 | { before(grammarAccess.getPredicateDefinitionAccess().getNameIdentifierParserRuleCall_1_0()); } |
3965 | RULE_ID | 4518 | ruleIdentifier |
3966 | { after(grammarAccess.getPredicateDefinitionAccess().getNameIDTerminalRuleCall_1_0()); } | 4519 | { after(grammarAccess.getPredicateDefinitionAccess().getNameIdentifierParserRuleCall_1_0()); } |
3967 | ) | 4520 | ) |
3968 | ; | 4521 | ; |
3969 | finally { | 4522 | finally { |
@@ -4036,13 +4589,13 @@ rule__Parameter__ParameterTypeAssignment_0 | |||
4036 | } | 4589 | } |
4037 | : | 4590 | : |
4038 | ( | 4591 | ( |
4039 | { before(grammarAccess.getParameterAccess().getParameterTypeClassDeclarationCrossReference_0_0()); } | 4592 | { before(grammarAccess.getParameterAccess().getParameterTypeRelationCrossReference_0_0()); } |
4040 | ( | 4593 | ( |
4041 | { before(grammarAccess.getParameterAccess().getParameterTypeClassDeclarationIDTerminalRuleCall_0_0_1()); } | 4594 | { before(grammarAccess.getParameterAccess().getParameterTypeRelationQualifiedNameParserRuleCall_0_0_1()); } |
4042 | RULE_ID | 4595 | ruleQualifiedName |
4043 | { after(grammarAccess.getParameterAccess().getParameterTypeClassDeclarationIDTerminalRuleCall_0_0_1()); } | 4596 | { after(grammarAccess.getParameterAccess().getParameterTypeRelationQualifiedNameParserRuleCall_0_0_1()); } |
4044 | ) | 4597 | ) |
4045 | { after(grammarAccess.getParameterAccess().getParameterTypeClassDeclarationCrossReference_0_0()); } | 4598 | { after(grammarAccess.getParameterAccess().getParameterTypeRelationCrossReference_0_0()); } |
4046 | ) | 4599 | ) |
4047 | ; | 4600 | ; |
4048 | finally { | 4601 | finally { |
@@ -4055,9 +4608,9 @@ rule__Parameter__NameAssignment_1 | |||
4055 | } | 4608 | } |
4056 | : | 4609 | : |
4057 | ( | 4610 | ( |
4058 | { before(grammarAccess.getParameterAccess().getNameIDTerminalRuleCall_1_0()); } | 4611 | { before(grammarAccess.getParameterAccess().getNameIdentifierParserRuleCall_1_0()); } |
4059 | RULE_ID | 4612 | ruleIdentifier |
4060 | { after(grammarAccess.getParameterAccess().getNameIDTerminalRuleCall_1_0()); } | 4613 | { after(grammarAccess.getParameterAccess().getNameIdentifierParserRuleCall_1_0()); } |
4061 | ) | 4614 | ) |
4062 | ; | 4615 | ; |
4063 | finally { | 4616 | finally { |
@@ -4177,19 +4730,19 @@ finally { | |||
4177 | restoreStackSize(stackSize); | 4730 | restoreStackSize(stackSize); |
4178 | } | 4731 | } |
4179 | 4732 | ||
4180 | rule__Argument__VariableAssignment | 4733 | rule__Argument__VariableOrNodeAssignment |
4181 | @init { | 4734 | @init { |
4182 | int stackSize = keepStackSize(); | 4735 | int stackSize = keepStackSize(); |
4183 | } | 4736 | } |
4184 | : | 4737 | : |
4185 | ( | 4738 | ( |
4186 | { before(grammarAccess.getArgumentAccess().getVariableVariableCrossReference_0()); } | 4739 | { before(grammarAccess.getArgumentAccess().getVariableOrNodeVariableOrNodeCrossReference_0()); } |
4187 | ( | 4740 | ( |
4188 | { before(grammarAccess.getArgumentAccess().getVariableVariableIDTerminalRuleCall_0_1()); } | 4741 | { before(grammarAccess.getArgumentAccess().getVariableOrNodeVariableOrNodeQualifiedNameParserRuleCall_0_1()); } |
4189 | RULE_ID | 4742 | ruleQualifiedName |
4190 | { after(grammarAccess.getArgumentAccess().getVariableVariableIDTerminalRuleCall_0_1()); } | 4743 | { after(grammarAccess.getArgumentAccess().getVariableOrNodeVariableOrNodeQualifiedNameParserRuleCall_0_1()); } |
4191 | ) | 4744 | ) |
4192 | { after(grammarAccess.getArgumentAccess().getVariableVariableCrossReference_0()); } | 4745 | { after(grammarAccess.getArgumentAccess().getVariableOrNodeVariableOrNodeCrossReference_0()); } |
4193 | ) | 4746 | ) |
4194 | ; | 4747 | ; |
4195 | finally { | 4748 | finally { |