Changeset 95 in default for v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src-gen/de/ugoe/cs/swe/bnftools/parser/antlr/internal/InternalEbnf.g
- Timestamp:
- 10/12/16 14:34:24 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src-gen/de/ugoe/cs/swe/bnftools/parser/antlr/internal/InternalEbnf.g
r61 r95 6 6 options { 7 7 superClass=AbstractInternalAntlrParser; 8 backtrack=true; 9 memoize=true; 8 10 9 11 } … … 35 37 @parser::members { 36 38 39 /* 40 This grammar contains a lot of empty actions to work around a bug in ANTLR. 41 Otherwise the ANTLR tool will create synpreds that cannot be compiled in some rare cases. 42 */ 43 37 44 private EbnfGrammarAccess grammarAccess; 38 45 … … 521 528 @after { leaveRule(); }: 522 529 (( 530 { 531 /* */ 532 } 523 533 { 524 534 $current = forceCreateModelElement( … … 967 977 @after { leaveRule(); }: 968 978 ( 979 { 980 /* */ 981 } 969 982 { 970 983 newCompositeNode(grammarAccess.getMergeRuleAccess().getGlobalCombinatorParserRuleCall_0()); … … 977 990 978 991 | 992 { 993 /* */ 994 } 979 995 { 980 996 newCompositeNode(grammarAccess.getMergeRuleAccess().getRuleCombinatorParserRuleCall_1()); … … 987 1003 988 1004 | 1005 { 1006 /* */ 1007 } 989 1008 { 990 1009 newCompositeNode(grammarAccess.getMergeRuleAccess().getHookCombinatorParserRuleCall_2()); … … 1539 1558 ( 1540 1559 ( 1560 { 1561 /* */ 1562 } 1541 1563 { 1542 1564 if ($current==null) { … … 1749 1771 newLeafNode(otherlv_2, grammarAccess.getRepeatedSequenceAccess().getRightCurlyBracketKeyword_2()); 1750 1772 } 1751 ( 1773 (( 1752 1774 ( 1753 1775 lv_morethanonce_3_0= '+' 1754 1776 { 1755 newLeafNode(lv_morethanonce_3_0, grammarAccess.getRepeatedSequenceAccess().getMorethanoncePlusSignKeyword_3_0 ());1777 newLeafNode(lv_morethanonce_3_0, grammarAccess.getRepeatedSequenceAccess().getMorethanoncePlusSignKeyword_3_0_0()); 1756 1778 } 1757 1779 … … 1764 1786 1765 1787 ) 1766 )?) 1788 )? 1789 |( 1790 ( 1791 { 1792 newCompositeNode(grammarAccess.getRepeatedSequenceAccess().getRangeRepeatRangeParserRuleCall_3_1_0()); 1793 } 1794 lv_range_4_0=ruleRepeatRange { 1795 if ($current==null) { 1796 $current = createModelElementForParent(grammarAccess.getRepeatedSequenceRule()); 1797 } 1798 set( 1799 $current, 1800 "range", 1801 lv_range_4_0, 1802 "RepeatRange"); 1803 afterParserOrEnumRuleCall(); 1804 } 1805 1806 ) 1807 )?)) 1808 ; 1809 1810 1811 1812 1813 1814 // Entry rule entryRuleRepeatRange 1815 entryRuleRepeatRange returns [EObject current=null] 1816 : 1817 { newCompositeNode(grammarAccess.getRepeatRangeRule()); } 1818 iv_ruleRepeatRange=ruleRepeatRange 1819 { $current=$iv_ruleRepeatRange.current; } 1820 EOF 1821 ; 1822 1823 // Rule RepeatRange 1824 ruleRepeatRange returns [EObject current=null] 1825 @init { enterRule(); 1826 } 1827 @after { leaveRule(); }: 1828 ( otherlv_0='#' 1829 { 1830 newLeafNode(otherlv_0, grammarAccess.getRepeatRangeAccess().getNumberSignKeyword_0()); 1831 } 1832 otherlv_1='(' 1833 { 1834 newLeafNode(otherlv_1, grammarAccess.getRepeatRangeAccess().getLeftParenthesisKeyword_1()); 1835 } 1836 ( 1837 ( 1838 lv_from_2_0=RULE_INT 1839 { 1840 newLeafNode(lv_from_2_0, grammarAccess.getRepeatRangeAccess().getFromINTTerminalRuleCall_2_0()); 1841 } 1842 { 1843 if ($current==null) { 1844 $current = createModelElement(grammarAccess.getRepeatRangeRule()); 1845 } 1846 setWithLastConsumed( 1847 $current, 1848 "from", 1849 lv_from_2_0, 1850 "INT"); 1851 } 1852 1853 ) 1854 ) otherlv_3=',' 1855 { 1856 newLeafNode(otherlv_3, grammarAccess.getRepeatRangeAccess().getCommaKeyword_3()); 1857 } 1858 ( 1859 ( 1860 lv_to_4_0=RULE_INT 1861 { 1862 newLeafNode(lv_to_4_0, grammarAccess.getRepeatRangeAccess().getToINTTerminalRuleCall_4_0()); 1863 } 1864 { 1865 if ($current==null) { 1866 $current = createModelElement(grammarAccess.getRepeatRangeRule()); 1867 } 1868 setWithLastConsumed( 1869 $current, 1870 "to", 1871 lv_to_4_0, 1872 "INT"); 1873 } 1874 1875 ) 1876 ) otherlv_5=')' 1877 { 1878 newLeafNode(otherlv_5, grammarAccess.getRepeatRangeAccess().getRightParenthesisKeyword_5()); 1879 } 1880 ) 1767 1881 ; 1768 1882
Note: See TracChangeset
for help on using the changeset viewer.