Changeset 100 in default for v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src-gen/de/ugoe/cs/swe/bnftools/services
- Timestamp:
- 10/12/16 15:29:26 (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/services/EbnfGrammarAccess.java
r95 r100 172 172 private final Assignment cRuleAssignment_1 = (Assignment)cAlternatives.eContents().get(1); 173 173 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); 174 176 175 177 //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 180 182 public Alternatives getAlternatives() { return cAlternatives; } 181 183 … … 191 193 //Rule 192 194 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; } 193 201 } 194 202 … … 279 287 //SECTIONHEADER 280 288 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; } 281 313 } 282 314 … … 1077 1109 private MergeEntryElements pMergeEntry; 1078 1110 private SectionHeadingElements pSectionHeading; 1111 private CommentElements pComment; 1079 1112 private ImportElements pImport; 1080 1113 private RuleElements pRule; … … 1160 1193 1161 1194 //BnfEntry: 1162 // sectionheader=SectionHeading | rule=Rule ;1195 // sectionheader=SectionHeading | rule=Rule | comment=Comment; 1163 1196 public BnfEntryElements getBnfEntryAccess() { 1164 1197 return (pBnfEntry != null) ? pBnfEntry : (pBnfEntry = new BnfEntryElements()); … … 1197 1230 public ParserRule getSectionHeadingRule() { 1198 1231 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(); 1199 1242 } 1200 1243
Note: See TracChangeset
for help on using the changeset viewer.