Ignore:
Timestamp:
10/12/16 14:34:24 (8 years ago)
Author:
phdmakk
Message:

+ generated resources

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  
    66options { 
    77        superClass=AbstractInternalAntlrParser; 
     8        backtrack=true; 
     9         memoize=true; 
    810         
    911} 
     
    3537@parser::members { 
    3638 
     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  
    3744        private EbnfGrammarAccess grammarAccess; 
    3845         
     
    521528    @after { leaveRule(); }: 
    522529(( 
     530        {  
     531          /* */  
     532        } 
    523533    { 
    524534        $current = forceCreateModelElement( 
     
    967977    @after { leaveRule(); }: 
    968978( 
     979        {  
     980          /* */  
     981        } 
    969982    {  
    970983        newCompositeNode(grammarAccess.getMergeRuleAccess().getGlobalCombinatorParserRuleCall_0());  
     
    977990 
    978991    | 
     992        {  
     993          /* */  
     994        } 
    979995    {  
    980996        newCompositeNode(grammarAccess.getMergeRuleAccess().getRuleCombinatorParserRuleCall_1());  
     
    9871003 
    9881004    | 
     1005        {  
     1006          /* */  
     1007        } 
    9891008    {  
    9901009        newCompositeNode(grammarAccess.getMergeRuleAccess().getHookCombinatorParserRuleCall_2());  
     
    15391558( 
    15401559( 
     1560                {  
     1561                  /* */  
     1562                } 
    15411563                { 
    15421564                        if ($current==null) { 
     
    17491771        newLeafNode(otherlv_2, grammarAccess.getRepeatedSequenceAccess().getRightCurlyBracketKeyword_2()); 
    17501772    } 
    1751 ( 
     1773(( 
    17521774( 
    17531775                lv_morethanonce_3_0=    '+'  
    17541776    { 
    1755         newLeafNode(lv_morethanonce_3_0, grammarAccess.getRepeatedSequenceAccess().getMorethanoncePlusSignKeyword_3_0()); 
     1777        newLeafNode(lv_morethanonce_3_0, grammarAccess.getRepeatedSequenceAccess().getMorethanoncePlusSignKeyword_3_0_0()); 
    17561778    } 
    17571779  
     
    17641786 
    17651787) 
    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 
     1815entryRuleRepeatRange 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 
     1824ruleRepeatRange 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) 
    17671881; 
    17681882 
Note: See TracChangeset for help on using the changeset viewer.