Ignore:
Timestamp:
10/12/16 15:29:26 (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/services/EbnfGrammarAccess.java

    r95 r100  
    172172                private final Assignment cRuleAssignment_1 = (Assignment)cAlternatives.eContents().get(1); 
    173173                private final RuleCall cRuleRuleParserRuleCall_1_0 = (RuleCall)cRuleAssignment_1.eContents().get(0); 
     174                private final Assignment cCommentAssignment_2 = (Assignment)cAlternatives.eContents().get(2); 
     175                private final RuleCall cCommentCommentParserRuleCall_2_0 = (RuleCall)cCommentAssignment_2.eContents().get(0); 
    174176                 
    175177                //BnfEntry: 
    176                 //      sectionheader=SectionHeading | rule=Rule; 
    177                 public ParserRule getRule() { return rule; } 
    178  
    179                 //sectionheader=SectionHeading | rule=Rule 
     178                //      sectionheader=SectionHeading | rule=Rule | comment=Comment; 
     179                public ParserRule getRule() { return rule; } 
     180 
     181                //sectionheader=SectionHeading | rule=Rule | comment=Comment 
    180182                public Alternatives getAlternatives() { return cAlternatives; } 
    181183 
     
    191193                //Rule 
    192194                public RuleCall getRuleRuleParserRuleCall_1_0() { return cRuleRuleParserRuleCall_1_0; } 
     195 
     196                //comment=Comment 
     197                public Assignment getCommentAssignment_2() { return cCommentAssignment_2; } 
     198 
     199                //Comment 
     200                public RuleCall getCommentCommentParserRuleCall_2_0() { return cCommentCommentParserRuleCall_2_0; } 
    193201        } 
    194202 
     
    279287                //SECTIONHEADER 
    280288                public RuleCall getSectionHeaderSECTIONHEADERTerminalRuleCall_1_0() { return cSectionHeaderSECTIONHEADERTerminalRuleCall_1_0; } 
     289        } 
     290 
     291        public class CommentElements extends AbstractParserRuleElementFinder { 
     292                private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Comment"); 
     293                private final Group cGroup = (Group)rule.eContents().get(1); 
     294                private final Action cCommentAction_0 = (Action)cGroup.eContents().get(0); 
     295                private final Assignment cContentAssignment_1 = (Assignment)cGroup.eContents().get(1); 
     296                private final RuleCall cContentML_COMMENTTerminalRuleCall_1_0 = (RuleCall)cContentAssignment_1.eContents().get(0); 
     297                 
     298                //Comment: 
     299                //      {Comment} content=ML_COMMENT; 
     300                public ParserRule getRule() { return rule; } 
     301 
     302                //{Comment} content=ML_COMMENT 
     303                public Group getGroup() { return cGroup; } 
     304 
     305                //{Comment} 
     306                public Action getCommentAction_0() { return cCommentAction_0; } 
     307 
     308                //content=ML_COMMENT 
     309                public Assignment getContentAssignment_1() { return cContentAssignment_1; } 
     310 
     311                //ML_COMMENT 
     312                public RuleCall getContentML_COMMENTTerminalRuleCall_1_0() { return cContentML_COMMENTTerminalRuleCall_1_0; } 
    281313        } 
    282314 
     
    10771109        private MergeEntryElements pMergeEntry; 
    10781110        private SectionHeadingElements pSectionHeading; 
     1111        private CommentElements pComment; 
    10791112        private ImportElements pImport; 
    10801113        private RuleElements pRule; 
     
    11601193 
    11611194        //BnfEntry: 
    1162         //      sectionheader=SectionHeading | rule=Rule; 
     1195        //      sectionheader=SectionHeading | rule=Rule | comment=Comment; 
    11631196        public BnfEntryElements getBnfEntryAccess() { 
    11641197                return (pBnfEntry != null) ? pBnfEntry : (pBnfEntry = new BnfEntryElements()); 
     
    11971230        public ParserRule getSectionHeadingRule() { 
    11981231                return getSectionHeadingAccess().getRule(); 
     1232        } 
     1233 
     1234        //Comment: 
     1235        //      {Comment} content=ML_COMMENT; 
     1236        public CommentElements getCommentAccess() { 
     1237                return (pComment != null) ? pComment : (pComment = new CommentElements()); 
     1238        } 
     1239         
     1240        public ParserRule getCommentRule() { 
     1241                return getCommentAccess().getRule(); 
    11991242        } 
    12001243 
Note: See TracChangeset for help on using the changeset viewer.