source: default/v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src-gen/de/ugoe/cs/swe/bnftools/services/EbnfGrammarAccess.java @ 95

Last change on this file since 95 was 95, checked in by phdmakk, 8 years ago

+ generated resources

  • Property svn:mime-type set to text/plain
File size: 63.2 KB
Line 
1/*
2* generated by Xtext
3*/
4package de.ugoe.cs.swe.bnftools.services;
5
6import com.google.inject.Singleton;
7import com.google.inject.Inject;
8
9import java.util.List;
10
11import org.eclipse.xtext.*;
12import org.eclipse.xtext.service.GrammarProvider;
13import org.eclipse.xtext.service.AbstractElementFinder.*;
14
15
16@Singleton
17public class EbnfGrammarAccess extends AbstractGrammarElementFinder {
18       
19       
20        public class EtsiBnfElements extends AbstractParserRuleElementFinder {
21                private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "EtsiBnf");
22                private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
23                private final Group cGroup_0 = (Group)cAlternatives.eContents().get(0);
24                private final Keyword cGrammarKeyword_0_0 = (Keyword)cGroup_0.eContents().get(0);
25                private final Assignment cNameAssignment_0_1 = (Assignment)cGroup_0.eContents().get(1);
26                private final RuleCall cNameIDTerminalRuleCall_0_1_0 = (RuleCall)cNameAssignment_0_1.eContents().get(0);
27                private final Group cGroup_0_2 = (Group)cGroup_0.eContents().get(2);
28                private final Assignment cTypeAssignment_0_2_0 = (Assignment)cGroup_0_2.eContents().get(0);
29                private final Keyword cTypeBnfKeyword_0_2_0_0 = (Keyword)cTypeAssignment_0_2_0.eContents().get(0);
30                private final Keyword cSemicolonKeyword_0_2_1 = (Keyword)cGroup_0_2.eContents().get(1);
31                private final Assignment cImportSectionAssignment_0_2_2 = (Assignment)cGroup_0_2.eContents().get(2);
32                private final RuleCall cImportSectionImportSectionParserRuleCall_0_2_2_0 = (RuleCall)cImportSectionAssignment_0_2_2.eContents().get(0);
33                private final Assignment cBnfEntryAssignment_0_2_3 = (Assignment)cGroup_0_2.eContents().get(3);
34                private final RuleCall cBnfEntryBnfEntryParserRuleCall_0_2_3_0 = (RuleCall)cBnfEntryAssignment_0_2_3.eContents().get(0);
35                private final Group cGroup_1 = (Group)cAlternatives.eContents().get(1);
36                private final Assignment cTypeAssignment_1_0 = (Assignment)cGroup_1.eContents().get(0);
37                private final Keyword cTypeDeltaKeyword_1_0_0 = (Keyword)cTypeAssignment_1_0.eContents().get(0);
38                private final Keyword cSemicolonKeyword_1_1 = (Keyword)cGroup_1.eContents().get(1);
39                private final Assignment cImportSectionAssignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
40                private final RuleCall cImportSectionImportSectionParserRuleCall_1_2_0 = (RuleCall)cImportSectionAssignment_1_2.eContents().get(0);
41                private final Assignment cDeltaEntryAssignment_1_3 = (Assignment)cGroup_1.eContents().get(3);
42                private final RuleCall cDeltaEntryDeltaEntryParserRuleCall_1_3_0 = (RuleCall)cDeltaEntryAssignment_1_3.eContents().get(0);
43                private final Group cGroup_2 = (Group)cAlternatives.eContents().get(2);
44                private final Assignment cTypeAssignment_2_0 = (Assignment)cGroup_2.eContents().get(0);
45                private final Keyword cTypeMergeKeyword_2_0_0 = (Keyword)cTypeAssignment_2_0.eContents().get(0);
46                private final Keyword cSemicolonKeyword_2_1 = (Keyword)cGroup_2.eContents().get(1);
47                private final Assignment cImportSectionAssignment_2_2 = (Assignment)cGroup_2.eContents().get(2);
48                private final RuleCall cImportSectionImportSectionParserRuleCall_2_2_0 = (RuleCall)cImportSectionAssignment_2_2.eContents().get(0);
49                private final Assignment cMergeEntryAssignment_2_3 = (Assignment)cGroup_2.eContents().get(3);
50                private final RuleCall cMergeEntryMergeEntryParserRuleCall_2_3_0 = (RuleCall)cMergeEntryAssignment_2_3.eContents().get(0);
51               
52                //// -----------------------------------------------------------------------------------------------
53                //// Parser Rules
54                //// -----------------------------------------------------------------------------------------------
55                //EtsiBnf:
56                //      "grammar" name=ID (type="/bnf"? ";" importSection=ImportSection? bnfEntry+=BnfEntry+) | type="/delta" ";"
57                //      importSection=ImportSection? deltaEntry+=DeltaEntry* | type="/merge" ";" importSection=ImportSection?
58                //      mergeEntry+=MergeEntry*;
59                public ParserRule getRule() { return rule; }
60
61                //"grammar" name=ID (type="/bnf"? ";" importSection=ImportSection? bnfEntry+=BnfEntry+) | type="/delta" ";"
62                //importSection=ImportSection? deltaEntry+=DeltaEntry* | type="/merge" ";" importSection=ImportSection?
63                //mergeEntry+=MergeEntry*
64                public Alternatives getAlternatives() { return cAlternatives; }
65
66                //"grammar" name=ID (type="/bnf"? ";" importSection=ImportSection? bnfEntry+=BnfEntry+)
67                public Group getGroup_0() { return cGroup_0; }
68
69                //"grammar"
70                public Keyword getGrammarKeyword_0_0() { return cGrammarKeyword_0_0; }
71
72                //name=ID
73                public Assignment getNameAssignment_0_1() { return cNameAssignment_0_1; }
74
75                //ID
76                public RuleCall getNameIDTerminalRuleCall_0_1_0() { return cNameIDTerminalRuleCall_0_1_0; }
77
78                //type="/bnf"? ";" importSection=ImportSection? bnfEntry+=BnfEntry+
79                public Group getGroup_0_2() { return cGroup_0_2; }
80
81                //type="/bnf"?
82                public Assignment getTypeAssignment_0_2_0() { return cTypeAssignment_0_2_0; }
83
84                //"/bnf"
85                public Keyword getTypeBnfKeyword_0_2_0_0() { return cTypeBnfKeyword_0_2_0_0; }
86
87                //";"
88                public Keyword getSemicolonKeyword_0_2_1() { return cSemicolonKeyword_0_2_1; }
89
90                //importSection=ImportSection?
91                public Assignment getImportSectionAssignment_0_2_2() { return cImportSectionAssignment_0_2_2; }
92
93                //ImportSection
94                public RuleCall getImportSectionImportSectionParserRuleCall_0_2_2_0() { return cImportSectionImportSectionParserRuleCall_0_2_2_0; }
95
96                //bnfEntry+=BnfEntry+
97                public Assignment getBnfEntryAssignment_0_2_3() { return cBnfEntryAssignment_0_2_3; }
98
99                //BnfEntry
100                public RuleCall getBnfEntryBnfEntryParserRuleCall_0_2_3_0() { return cBnfEntryBnfEntryParserRuleCall_0_2_3_0; }
101
102                //type="/delta" ";" importSection=ImportSection? deltaEntry+=DeltaEntry*
103                public Group getGroup_1() { return cGroup_1; }
104
105                //type="/delta"
106                public Assignment getTypeAssignment_1_0() { return cTypeAssignment_1_0; }
107
108                //"/delta"
109                public Keyword getTypeDeltaKeyword_1_0_0() { return cTypeDeltaKeyword_1_0_0; }
110
111                //";"
112                public Keyword getSemicolonKeyword_1_1() { return cSemicolonKeyword_1_1; }
113
114                //importSection=ImportSection?
115                public Assignment getImportSectionAssignment_1_2() { return cImportSectionAssignment_1_2; }
116
117                //ImportSection
118                public RuleCall getImportSectionImportSectionParserRuleCall_1_2_0() { return cImportSectionImportSectionParserRuleCall_1_2_0; }
119
120                //deltaEntry+=DeltaEntry*
121                public Assignment getDeltaEntryAssignment_1_3() { return cDeltaEntryAssignment_1_3; }
122
123                //DeltaEntry
124                public RuleCall getDeltaEntryDeltaEntryParserRuleCall_1_3_0() { return cDeltaEntryDeltaEntryParserRuleCall_1_3_0; }
125
126                //type="/merge" ";" importSection=ImportSection? mergeEntry+=MergeEntry*
127                public Group getGroup_2() { return cGroup_2; }
128
129                //type="/merge"
130                public Assignment getTypeAssignment_2_0() { return cTypeAssignment_2_0; }
131
132                //"/merge"
133                public Keyword getTypeMergeKeyword_2_0_0() { return cTypeMergeKeyword_2_0_0; }
134
135                //";"
136                public Keyword getSemicolonKeyword_2_1() { return cSemicolonKeyword_2_1; }
137
138                //importSection=ImportSection?
139                public Assignment getImportSectionAssignment_2_2() { return cImportSectionAssignment_2_2; }
140
141                //ImportSection
142                public RuleCall getImportSectionImportSectionParserRuleCall_2_2_0() { return cImportSectionImportSectionParserRuleCall_2_2_0; }
143
144                //mergeEntry+=MergeEntry*
145                public Assignment getMergeEntryAssignment_2_3() { return cMergeEntryAssignment_2_3; }
146
147                //MergeEntry
148                public RuleCall getMergeEntryMergeEntryParserRuleCall_2_3_0() { return cMergeEntryMergeEntryParserRuleCall_2_3_0; }
149        }
150
151        public class ImportSectionElements extends AbstractParserRuleElementFinder {
152                private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ImportSection");
153                private final Assignment cImportsAssignment = (Assignment)rule.eContents().get(1);
154                private final RuleCall cImportsImportParserRuleCall_0 = (RuleCall)cImportsAssignment.eContents().get(0);
155               
156                //ImportSection:
157                //      imports+=Import+;
158                public ParserRule getRule() { return rule; }
159
160                //imports+=Import+
161                public Assignment getImportsAssignment() { return cImportsAssignment; }
162
163                //Import
164                public RuleCall getImportsImportParserRuleCall_0() { return cImportsImportParserRuleCall_0; }
165        }
166
167        public class BnfEntryElements extends AbstractParserRuleElementFinder {
168                private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "BnfEntry");
169                private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
170                private final Assignment cSectionheaderAssignment_0 = (Assignment)cAlternatives.eContents().get(0);
171                private final RuleCall cSectionheaderSectionHeadingParserRuleCall_0_0 = (RuleCall)cSectionheaderAssignment_0.eContents().get(0);
172                private final Assignment cRuleAssignment_1 = (Assignment)cAlternatives.eContents().get(1);
173                private final RuleCall cRuleRuleParserRuleCall_1_0 = (RuleCall)cRuleAssignment_1.eContents().get(0);
174               
175                //BnfEntry:
176                //      sectionheader=SectionHeading | rule=Rule;
177                public ParserRule getRule() { return rule; }
178
179                //sectionheader=SectionHeading | rule=Rule
180                public Alternatives getAlternatives() { return cAlternatives; }
181
182                //sectionheader=SectionHeading
183                public Assignment getSectionheaderAssignment_0() { return cSectionheaderAssignment_0; }
184
185                //SectionHeading
186                public RuleCall getSectionheaderSectionHeadingParserRuleCall_0_0() { return cSectionheaderSectionHeadingParserRuleCall_0_0; }
187
188                //rule=Rule
189                public Assignment getRuleAssignment_1() { return cRuleAssignment_1; }
190
191                //Rule
192                public RuleCall getRuleRuleParserRuleCall_1_0() { return cRuleRuleParserRuleCall_1_0; }
193        }
194
195        public class DeltaEntryElements extends AbstractParserRuleElementFinder {
196                private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "DeltaEntry");
197                private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
198                private final Assignment cRuleAssignment_0 = (Assignment)cAlternatives.eContents().get(0);
199                private final RuleCall cRuleRuleParserRuleCall_0_0 = (RuleCall)cRuleAssignment_0.eContents().get(0);
200                private final Assignment cSectionheaderAssignment_1 = (Assignment)cAlternatives.eContents().get(1);
201                private final RuleCall cSectionheaderSectionHeadingParserRuleCall_1_0 = (RuleCall)cSectionheaderAssignment_1.eContents().get(0);
202                private final Assignment cExtRuleAssignment_2 = (Assignment)cAlternatives.eContents().get(2);
203                private final RuleCall cExtRuleExtRuleParserRuleCall_2_0 = (RuleCall)cExtRuleAssignment_2.eContents().get(0);
204               
205                //DeltaEntry:
206                //      rule=Rule | sectionheader=SectionHeading | extRule=ExtRule;
207                public ParserRule getRule() { return rule; }
208
209                //rule=Rule | sectionheader=SectionHeading | extRule=ExtRule
210                public Alternatives getAlternatives() { return cAlternatives; }
211
212                //rule=Rule
213                public Assignment getRuleAssignment_0() { return cRuleAssignment_0; }
214
215                //Rule
216                public RuleCall getRuleRuleParserRuleCall_0_0() { return cRuleRuleParserRuleCall_0_0; }
217
218                //sectionheader=SectionHeading
219                public Assignment getSectionheaderAssignment_1() { return cSectionheaderAssignment_1; }
220
221                //SectionHeading
222                public RuleCall getSectionheaderSectionHeadingParserRuleCall_1_0() { return cSectionheaderSectionHeadingParserRuleCall_1_0; }
223
224                //extRule=ExtRule
225                public Assignment getExtRuleAssignment_2() { return cExtRuleAssignment_2; }
226
227                //ExtRule
228                public RuleCall getExtRuleExtRuleParserRuleCall_2_0() { return cExtRuleExtRuleParserRuleCall_2_0; }
229        }
230
231        public class MergeEntryElements extends AbstractParserRuleElementFinder {
232                private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "MergeEntry");
233                private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
234                private final Assignment cSectionheaderAssignment_0 = (Assignment)cAlternatives.eContents().get(0);
235                private final RuleCall cSectionheaderSectionHeadingParserRuleCall_0_0 = (RuleCall)cSectionheaderAssignment_0.eContents().get(0);
236                private final Assignment cMergeRuleAssignment_1 = (Assignment)cAlternatives.eContents().get(1);
237                private final RuleCall cMergeRuleMergeRuleParserRuleCall_1_0 = (RuleCall)cMergeRuleAssignment_1.eContents().get(0);
238               
239                //MergeEntry:
240                //      sectionheader=SectionHeading | mergeRule=MergeRule;
241                public ParserRule getRule() { return rule; }
242
243                //sectionheader=SectionHeading | mergeRule=MergeRule
244                public Alternatives getAlternatives() { return cAlternatives; }
245
246                //sectionheader=SectionHeading
247                public Assignment getSectionheaderAssignment_0() { return cSectionheaderAssignment_0; }
248
249                //SectionHeading
250                public RuleCall getSectionheaderSectionHeadingParserRuleCall_0_0() { return cSectionheaderSectionHeadingParserRuleCall_0_0; }
251
252                //mergeRule=MergeRule
253                public Assignment getMergeRuleAssignment_1() { return cMergeRuleAssignment_1; }
254
255                //MergeRule
256                public RuleCall getMergeRuleMergeRuleParserRuleCall_1_0() { return cMergeRuleMergeRuleParserRuleCall_1_0; }
257        }
258
259        public class SectionHeadingElements extends AbstractParserRuleElementFinder {
260                private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "SectionHeading");
261                private final Group cGroup = (Group)rule.eContents().get(1);
262                private final Action cSectionHeadingAction_0 = (Action)cGroup.eContents().get(0);
263                private final Assignment cSectionHeaderAssignment_1 = (Assignment)cGroup.eContents().get(1);
264                private final RuleCall cSectionHeaderSECTIONHEADERTerminalRuleCall_1_0 = (RuleCall)cSectionHeaderAssignment_1.eContents().get(0);
265               
266                //SectionHeading:
267                //      {SectionHeading} sectionHeader=SECTIONHEADER;
268                public ParserRule getRule() { return rule; }
269
270                //{SectionHeading} sectionHeader=SECTIONHEADER
271                public Group getGroup() { return cGroup; }
272
273                //{SectionHeading}
274                public Action getSectionHeadingAction_0() { return cSectionHeadingAction_0; }
275
276                //sectionHeader=SECTIONHEADER
277                public Assignment getSectionHeaderAssignment_1() { return cSectionHeaderAssignment_1; }
278
279                //SECTIONHEADER
280                public RuleCall getSectionHeaderSECTIONHEADERTerminalRuleCall_1_0() { return cSectionHeaderSECTIONHEADERTerminalRuleCall_1_0; }
281        }
282
283        public class ImportElements extends AbstractParserRuleElementFinder {
284                private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Import");
285                private final Group cGroup = (Group)rule.eContents().get(1);
286                private final Keyword cImportKeyword_0 = (Keyword)cGroup.eContents().get(0);
287                private final Assignment cImportURIAssignment_1 = (Assignment)cGroup.eContents().get(1);
288                private final RuleCall cImportURISTRINGTerminalRuleCall_1_0 = (RuleCall)cImportURIAssignment_1.eContents().get(0);
289                private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
290                private final Keyword cSolidusKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0);
291                private final Alternatives cAlternatives_2_1 = (Alternatives)cGroup_2.eContents().get(1);
292                private final Assignment cGrammarTypeAssignment_2_1_0 = (Assignment)cAlternatives_2_1.eContents().get(0);
293                private final Keyword cGrammarTypeCoreKeyword_2_1_0_0 = (Keyword)cGrammarTypeAssignment_2_1_0.eContents().get(0);
294                private final Assignment cGrammarTypeAssignment_2_1_1 = (Assignment)cAlternatives_2_1.eContents().get(1);
295                private final Keyword cGrammarTypePackageKeyword_2_1_1_0 = (Keyword)cGrammarTypeAssignment_2_1_1.eContents().get(0);
296                private final Assignment cGrammarTypeAssignment_2_1_2 = (Assignment)cAlternatives_2_1.eContents().get(2);
297                private final Keyword cGrammarTypeUpdateKeyword_2_1_2_0 = (Keyword)cGrammarTypeAssignment_2_1_2.eContents().get(0);
298                private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
299                private final Keyword cLabelKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0);
300                private final Assignment cLabelAssignment_3_1 = (Assignment)cGroup_3.eContents().get(1);
301                private final RuleCall cLabelIDTerminalRuleCall_3_1_0 = (RuleCall)cLabelAssignment_3_1.eContents().get(0);
302                private final Keyword cSemicolonKeyword_4 = (Keyword)cGroup.eContents().get(4);
303               
304                //Import:
305                //      "import" importURI=STRING ("/" (grammarType="core" | grammarType="package" | grammarType="update"))? ("label:"
306                //      label=ID)? ";";
307                public ParserRule getRule() { return rule; }
308
309                //"import" importURI=STRING ("/" (grammarType="core" | grammarType="package" | grammarType="update"))? ("label:"
310                //label=ID)? ";"
311                public Group getGroup() { return cGroup; }
312
313                //"import"
314                public Keyword getImportKeyword_0() { return cImportKeyword_0; }
315
316                //importURI=STRING
317                public Assignment getImportURIAssignment_1() { return cImportURIAssignment_1; }
318
319                //STRING
320                public RuleCall getImportURISTRINGTerminalRuleCall_1_0() { return cImportURISTRINGTerminalRuleCall_1_0; }
321
322                //("/" (grammarType="core" | grammarType="package" | grammarType="update"))?
323                public Group getGroup_2() { return cGroup_2; }
324
325                //"/"
326                public Keyword getSolidusKeyword_2_0() { return cSolidusKeyword_2_0; }
327
328                //grammarType="core" | grammarType="package" | grammarType="update"
329                public Alternatives getAlternatives_2_1() { return cAlternatives_2_1; }
330
331                //grammarType="core"
332                public Assignment getGrammarTypeAssignment_2_1_0() { return cGrammarTypeAssignment_2_1_0; }
333
334                //"core"
335                public Keyword getGrammarTypeCoreKeyword_2_1_0_0() { return cGrammarTypeCoreKeyword_2_1_0_0; }
336
337                //grammarType="package"
338                public Assignment getGrammarTypeAssignment_2_1_1() { return cGrammarTypeAssignment_2_1_1; }
339
340                //"package"
341                public Keyword getGrammarTypePackageKeyword_2_1_1_0() { return cGrammarTypePackageKeyword_2_1_1_0; }
342
343                //grammarType="update"
344                public Assignment getGrammarTypeAssignment_2_1_2() { return cGrammarTypeAssignment_2_1_2; }
345
346                //"update"
347                public Keyword getGrammarTypeUpdateKeyword_2_1_2_0() { return cGrammarTypeUpdateKeyword_2_1_2_0; }
348
349                //("label:" label=ID)?
350                public Group getGroup_3() { return cGroup_3; }
351
352                //"label:"
353                public Keyword getLabelKeyword_3_0() { return cLabelKeyword_3_0; }
354
355                //label=ID
356                public Assignment getLabelAssignment_3_1() { return cLabelAssignment_3_1; }
357
358                //ID
359                public RuleCall getLabelIDTerminalRuleCall_3_1_0() { return cLabelIDTerminalRuleCall_3_1_0; }
360
361                //";"
362                public Keyword getSemicolonKeyword_4() { return cSemicolonKeyword_4; }
363        }
364
365        public class RuleElements extends AbstractParserRuleElementFinder {
366                private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Rule");
367                private final Group cGroup = (Group)rule.eContents().get(1);
368                private final Group cGroup_0 = (Group)cGroup.eContents().get(0);
369                private final Assignment cRulenumberAssignment_0_0 = (Assignment)cGroup_0.eContents().get(0);
370                private final RuleCall cRulenumberINTTerminalRuleCall_0_0_0 = (RuleCall)cRulenumberAssignment_0_0.eContents().get(0);
371                private final Assignment cRulevariantAssignment_0_1 = (Assignment)cGroup_0.eContents().get(1);
372                private final RuleCall cRulevariantIDTerminalRuleCall_0_1_0 = (RuleCall)cRulevariantAssignment_0_1.eContents().get(0);
373                private final Keyword cFullStopKeyword_0_2 = (Keyword)cGroup_0.eContents().get(2);
374                private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
375                private final RuleCall cNameIDTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
376                private final Keyword cColonColonEqualsSignKeyword_2 = (Keyword)cGroup.eContents().get(2);
377                private final Assignment cDefinitionListAssignment_3 = (Assignment)cGroup.eContents().get(3);
378                private final RuleCall cDefinitionListDefinitionListParserRuleCall_3_0 = (RuleCall)cDefinitionListAssignment_3.eContents().get(0);
379                private final Keyword cSemicolonKeyword_4 = (Keyword)cGroup.eContents().get(4);
380               
381                ////Import: 'import' importedNamespace=FqnWithWildCard;
382                ////FqnWithWildCard: Fqn('.*')? ';';
383                ////Fqn:ID('.'ID)*;
384                //Rule:
385                //      (rulenumber=INT rulevariant=ID? ".")? name=ID "::=" definitionList=DefinitionList? ";"?;
386                public ParserRule getRule() { return rule; }
387
388                //(rulenumber=INT rulevariant=ID? ".")? name=ID "::=" definitionList=DefinitionList? ";"?
389                public Group getGroup() { return cGroup; }
390
391                //(rulenumber=INT rulevariant=ID? ".")?
392                public Group getGroup_0() { return cGroup_0; }
393
394                //rulenumber=INT
395                public Assignment getRulenumberAssignment_0_0() { return cRulenumberAssignment_0_0; }
396
397                //INT
398                public RuleCall getRulenumberINTTerminalRuleCall_0_0_0() { return cRulenumberINTTerminalRuleCall_0_0_0; }
399
400                //rulevariant=ID?
401                public Assignment getRulevariantAssignment_0_1() { return cRulevariantAssignment_0_1; }
402
403                //ID
404                public RuleCall getRulevariantIDTerminalRuleCall_0_1_0() { return cRulevariantIDTerminalRuleCall_0_1_0; }
405
406                //"."
407                public Keyword getFullStopKeyword_0_2() { return cFullStopKeyword_0_2; }
408
409                //name=ID
410                public Assignment getNameAssignment_1() { return cNameAssignment_1; }
411
412                //ID
413                public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; }
414
415                //"::="
416                public Keyword getColonColonEqualsSignKeyword_2() { return cColonColonEqualsSignKeyword_2; }
417
418                //definitionList=DefinitionList?
419                public Assignment getDefinitionListAssignment_3() { return cDefinitionListAssignment_3; }
420
421                //DefinitionList
422                public RuleCall getDefinitionListDefinitionListParserRuleCall_3_0() { return cDefinitionListDefinitionListParserRuleCall_3_0; }
423
424                //";"?
425                public Keyword getSemicolonKeyword_4() { return cSemicolonKeyword_4; }
426        }
427
428        public class ExtRuleElements extends AbstractParserRuleElementFinder {
429                private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ExtRule");
430                private final Group cGroup = (Group)rule.eContents().get(1);
431                private final Group cGroup_0 = (Group)cGroup.eContents().get(0);
432                private final Assignment cRulenumberAssignment_0_0 = (Assignment)cGroup_0.eContents().get(0);
433                private final RuleCall cRulenumberINTTerminalRuleCall_0_0_0 = (RuleCall)cRulenumberAssignment_0_0.eContents().get(0);
434                private final Assignment cRulevariantAssignment_0_1 = (Assignment)cGroup_0.eContents().get(1);
435                private final RuleCall cRulevariantIDTerminalRuleCall_0_1_0 = (RuleCall)cRulevariantAssignment_0_1.eContents().get(0);
436                private final Keyword cFullStopKeyword_0_2 = (Keyword)cGroup_0.eContents().get(2);
437                private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
438                private final RuleCall cNameIDTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
439                private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
440                private final Keyword cLeftParenthesisKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0);
441                private final Assignment cRuleextAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1);
442                private final RuleCall cRuleextINTTerminalRuleCall_2_1_0 = (RuleCall)cRuleextAssignment_2_1.eContents().get(0);
443                private final Keyword cRightParenthesisKeyword_2_2 = (Keyword)cGroup_2.eContents().get(2);
444                private final Keyword cLessThanSignHyphenMinusKeyword_3 = (Keyword)cGroup.eContents().get(3);
445                private final Alternatives cAlternatives_4 = (Alternatives)cGroup.eContents().get(4);
446                private final Assignment cElementsAssignment_4_0 = (Assignment)cAlternatives_4.eContents().get(0);
447                private final RuleCall cElementsAtomParserRuleCall_4_0_0 = (RuleCall)cElementsAssignment_4_0.eContents().get(0);
448                private final Keyword cRightParenthesisKeyword_4_1 = (Keyword)cAlternatives_4.eContents().get(1);
449                private final Keyword cRightSquareBracketKeyword_4_2 = (Keyword)cAlternatives_4.eContents().get(2);
450                private final Keyword cRightCurlyBracketKeyword_4_3 = (Keyword)cAlternatives_4.eContents().get(3);
451                private final Keyword cVerticalLineKeyword_4_4 = (Keyword)cAlternatives_4.eContents().get(4);
452                private final Keyword cLeftParenthesisKeyword_4_5 = (Keyword)cAlternatives_4.eContents().get(5);
453                private final Keyword cLeftSquareBracketKeyword_4_6 = (Keyword)cAlternatives_4.eContents().get(6);
454                private final Keyword cLeftCurlyBracketKeyword_4_7 = (Keyword)cAlternatives_4.eContents().get(7);
455                private final Keyword cAsteriskKeyword_4_8 = (Keyword)cAlternatives_4.eContents().get(8);
456                private final Keyword cPlusSignKeyword_4_9 = (Keyword)cAlternatives_4.eContents().get(9);
457                private final Keyword cSemicolonKeyword_5 = (Keyword)cGroup.eContents().get(5);
458               
459                //ExtRule:
460                //      (rulenumber=INT rulevariant=ID? ".")? name=ID ("(" ruleext=INT ")") "<-" (elements+=Atom | ")" | "]" | "}" | "|" | "("
461                //      | "[" | "{" | "*" | "+")* ";"?;
462                public ParserRule getRule() { return rule; }
463
464                //(rulenumber=INT rulevariant=ID? ".")? name=ID ("(" ruleext=INT ")") "<-" (elements+=Atom | ")" | "]" | "}" | "|" | "(" |
465                //"[" | "{" | "*" | "+")* ";"?
466                public Group getGroup() { return cGroup; }
467
468                //(rulenumber=INT rulevariant=ID? ".")?
469                public Group getGroup_0() { return cGroup_0; }
470
471                //rulenumber=INT
472                public Assignment getRulenumberAssignment_0_0() { return cRulenumberAssignment_0_0; }
473
474                //INT
475                public RuleCall getRulenumberINTTerminalRuleCall_0_0_0() { return cRulenumberINTTerminalRuleCall_0_0_0; }
476
477                //rulevariant=ID?
478                public Assignment getRulevariantAssignment_0_1() { return cRulevariantAssignment_0_1; }
479
480                //ID
481                public RuleCall getRulevariantIDTerminalRuleCall_0_1_0() { return cRulevariantIDTerminalRuleCall_0_1_0; }
482
483                //"."
484                public Keyword getFullStopKeyword_0_2() { return cFullStopKeyword_0_2; }
485
486                //name=ID
487                public Assignment getNameAssignment_1() { return cNameAssignment_1; }
488
489                //ID
490                public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; }
491
492                //"(" ruleext=INT ")"
493                public Group getGroup_2() { return cGroup_2; }
494
495                //"("
496                public Keyword getLeftParenthesisKeyword_2_0() { return cLeftParenthesisKeyword_2_0; }
497
498                //ruleext=INT
499                public Assignment getRuleextAssignment_2_1() { return cRuleextAssignment_2_1; }
500
501                //INT
502                public RuleCall getRuleextINTTerminalRuleCall_2_1_0() { return cRuleextINTTerminalRuleCall_2_1_0; }
503
504                //")"
505                public Keyword getRightParenthesisKeyword_2_2() { return cRightParenthesisKeyword_2_2; }
506
507                //"<-"
508                public Keyword getLessThanSignHyphenMinusKeyword_3() { return cLessThanSignHyphenMinusKeyword_3; }
509
510                //(elements+=Atom | ")" | "]" | "}" | "|" | "(" | "[" | "{" | "*" | "+")*
511                public Alternatives getAlternatives_4() { return cAlternatives_4; }
512
513                //elements+=Atom
514                public Assignment getElementsAssignment_4_0() { return cElementsAssignment_4_0; }
515
516                //Atom
517                public RuleCall getElementsAtomParserRuleCall_4_0_0() { return cElementsAtomParserRuleCall_4_0_0; }
518
519                //")"
520                public Keyword getRightParenthesisKeyword_4_1() { return cRightParenthesisKeyword_4_1; }
521
522                //"]"
523                public Keyword getRightSquareBracketKeyword_4_2() { return cRightSquareBracketKeyword_4_2; }
524
525                //"}"
526                public Keyword getRightCurlyBracketKeyword_4_3() { return cRightCurlyBracketKeyword_4_3; }
527
528                //"|"
529                public Keyword getVerticalLineKeyword_4_4() { return cVerticalLineKeyword_4_4; }
530
531                //"("
532                public Keyword getLeftParenthesisKeyword_4_5() { return cLeftParenthesisKeyword_4_5; }
533
534                //"["
535                public Keyword getLeftSquareBracketKeyword_4_6() { return cLeftSquareBracketKeyword_4_6; }
536
537                //"{"
538                public Keyword getLeftCurlyBracketKeyword_4_7() { return cLeftCurlyBracketKeyword_4_7; }
539
540                //"*"
541                public Keyword getAsteriskKeyword_4_8() { return cAsteriskKeyword_4_8; }
542
543                //"+"
544                public Keyword getPlusSignKeyword_4_9() { return cPlusSignKeyword_4_9; }
545
546                //";"?
547                public Keyword getSemicolonKeyword_5() { return cSemicolonKeyword_5; }
548        }
549
550        public class MergeRuleElements extends AbstractParserRuleElementFinder {
551                private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "MergeRule");
552                private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
553                private final RuleCall cGlobalCombinatorParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
554                private final RuleCall cRuleCombinatorParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
555                private final RuleCall cHookCombinatorParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
556               
557                //MergeRule:
558                //      GlobalCombinator | RuleCombinator | HookCombinator;
559                public ParserRule getRule() { return rule; }
560
561                //GlobalCombinator | RuleCombinator | HookCombinator
562                public Alternatives getAlternatives() { return cAlternatives; }
563
564                //GlobalCombinator
565                public RuleCall getGlobalCombinatorParserRuleCall_0() { return cGlobalCombinatorParserRuleCall_0; }
566
567                //RuleCombinator
568                public RuleCall getRuleCombinatorParserRuleCall_1() { return cRuleCombinatorParserRuleCall_1; }
569
570                //HookCombinator
571                public RuleCall getHookCombinatorParserRuleCall_2() { return cHookCombinatorParserRuleCall_2; }
572        }
573
574        public class GlobalCombinatorElements extends AbstractParserRuleElementFinder {
575                private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "GlobalCombinator");
576                private final Group cGroup = (Group)rule.eContents().get(1);
577                private final Group cGroup_0 = (Group)cGroup.eContents().get(0);
578                private final Keyword cGlobalKeyword_0_0 = (Keyword)cGroup_0.eContents().get(0);
579                private final Keyword cCombinatorKeyword_0_1 = (Keyword)cGroup_0.eContents().get(1);
580                private final Assignment cLogicAssignment_1 = (Assignment)cGroup.eContents().get(1);
581                private final RuleCall cLogicLOGICTerminalRuleCall_1_0 = (RuleCall)cLogicAssignment_1.eContents().get(0);
582                private final Keyword cSemicolonKeyword_2 = (Keyword)cGroup.eContents().get(2);
583               
584                //GlobalCombinator:
585                //      ("global" "combinator:") logic=LOGIC ";"?;
586                public ParserRule getRule() { return rule; }
587
588                //("global" "combinator:") logic=LOGIC ";"?
589                public Group getGroup() { return cGroup; }
590
591                //"global" "combinator:"
592                public Group getGroup_0() { return cGroup_0; }
593
594                //"global"
595                public Keyword getGlobalKeyword_0_0() { return cGlobalKeyword_0_0; }
596
597                //"combinator:"
598                public Keyword getCombinatorKeyword_0_1() { return cCombinatorKeyword_0_1; }
599
600                //logic=LOGIC
601                public Assignment getLogicAssignment_1() { return cLogicAssignment_1; }
602
603                //LOGIC
604                public RuleCall getLogicLOGICTerminalRuleCall_1_0() { return cLogicLOGICTerminalRuleCall_1_0; }
605
606                //";"?
607                public Keyword getSemicolonKeyword_2() { return cSemicolonKeyword_2; }
608        }
609
610        public class RuleCombinatorElements extends AbstractParserRuleElementFinder {
611                private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "RuleCombinator");
612                private final Group cGroup = (Group)rule.eContents().get(1);
613                private final Group cGroup_0 = (Group)cGroup.eContents().get(0);
614                private final Keyword cRuleKeyword_0_0 = (Keyword)cGroup_0.eContents().get(0);
615                private final Keyword cCombinatorKeyword_0_1 = (Keyword)cGroup_0.eContents().get(1);
616                private final Assignment cNameAssignment_0_2 = (Assignment)cGroup_0.eContents().get(2);
617                private final RuleCall cNameIDTerminalRuleCall_0_2_0 = (RuleCall)cNameAssignment_0_2.eContents().get(0);
618                private final Assignment cLogicAssignment_1 = (Assignment)cGroup.eContents().get(1);
619                private final RuleCall cLogicLOGICTerminalRuleCall_1_0 = (RuleCall)cLogicAssignment_1.eContents().get(0);
620                private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
621                private final Keyword cLeftParenthesisKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0);
622                private final Assignment cLABELAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1);
623                private final RuleCall cLABELSTRINGTerminalRuleCall_2_1_0 = (RuleCall)cLABELAssignment_2_1.eContents().get(0);
624                private final Keyword cRightParenthesisKeyword_2_2 = (Keyword)cGroup_2.eContents().get(2);
625                private final Keyword cSemicolonKeyword_3 = (Keyword)cGroup.eContents().get(3);
626               
627                //RuleCombinator:
628                //      ("rule" "combinator:" name=ID) logic=LOGIC ("(" LABEL+=STRING ")")* ";"?;
629                public ParserRule getRule() { return rule; }
630
631                //("rule" "combinator:" name=ID) logic=LOGIC ("(" LABEL+=STRING ")")* ";"?
632                public Group getGroup() { return cGroup; }
633
634                //"rule" "combinator:" name=ID
635                public Group getGroup_0() { return cGroup_0; }
636
637                //"rule"
638                public Keyword getRuleKeyword_0_0() { return cRuleKeyword_0_0; }
639
640                //"combinator:"
641                public Keyword getCombinatorKeyword_0_1() { return cCombinatorKeyword_0_1; }
642
643                //name=ID
644                public Assignment getNameAssignment_0_2() { return cNameAssignment_0_2; }
645
646                //ID
647                public RuleCall getNameIDTerminalRuleCall_0_2_0() { return cNameIDTerminalRuleCall_0_2_0; }
648
649                //logic=LOGIC
650                public Assignment getLogicAssignment_1() { return cLogicAssignment_1; }
651
652                //LOGIC
653                public RuleCall getLogicLOGICTerminalRuleCall_1_0() { return cLogicLOGICTerminalRuleCall_1_0; }
654
655                //("(" LABEL+=STRING ")")*
656                public Group getGroup_2() { return cGroup_2; }
657
658                //"("
659                public Keyword getLeftParenthesisKeyword_2_0() { return cLeftParenthesisKeyword_2_0; }
660
661                //LABEL+=STRING
662                public Assignment getLABELAssignment_2_1() { return cLABELAssignment_2_1; }
663
664                //STRING
665                public RuleCall getLABELSTRINGTerminalRuleCall_2_1_0() { return cLABELSTRINGTerminalRuleCall_2_1_0; }
666
667                //")"
668                public Keyword getRightParenthesisKeyword_2_2() { return cRightParenthesisKeyword_2_2; }
669
670                //";"?
671                public Keyword getSemicolonKeyword_3() { return cSemicolonKeyword_3; }
672        }
673
674        public class HookCombinatorElements extends AbstractParserRuleElementFinder {
675                private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "HookCombinator");
676                private final Group cGroup = (Group)rule.eContents().get(1);
677                private final Keyword cHookKeyword_0 = (Keyword)cGroup.eContents().get(0);
678                private final Keyword cCombinatorKeyword_1 = (Keyword)cGroup.eContents().get(1);
679                private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
680                private final RuleCall cNameIDTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0);
681                private final Keyword cLeftParenthesisKeyword_3 = (Keyword)cGroup.eContents().get(3);
682                private final Assignment cRuleextAssignment_4 = (Assignment)cGroup.eContents().get(4);
683                private final RuleCall cRuleextINTTerminalRuleCall_4_0 = (RuleCall)cRuleextAssignment_4.eContents().get(0);
684                private final Keyword cRightParenthesisKeyword_5 = (Keyword)cGroup.eContents().get(5);
685                private final Assignment cLogicAssignment_6 = (Assignment)cGroup.eContents().get(6);
686                private final RuleCall cLogicLOGICTerminalRuleCall_6_0 = (RuleCall)cLogicAssignment_6.eContents().get(0);
687                private final Group cGroup_7 = (Group)cGroup.eContents().get(7);
688                private final Keyword cLeftParenthesisKeyword_7_0 = (Keyword)cGroup_7.eContents().get(0);
689                private final Assignment cLABELAssignment_7_1 = (Assignment)cGroup_7.eContents().get(1);
690                private final RuleCall cLABELSTRINGTerminalRuleCall_7_1_0 = (RuleCall)cLABELAssignment_7_1.eContents().get(0);
691                private final Keyword cRightParenthesisKeyword_7_2 = (Keyword)cGroup_7.eContents().get(2);
692                private final Keyword cSemicolonKeyword_8 = (Keyword)cGroup.eContents().get(8);
693               
694                //HookCombinator:
695                //      "hook" "combinator:" name=ID "(" ruleext=INT ")" logic=LOGIC? ("(" LABEL+=STRING ")")+ ";"?;
696                public ParserRule getRule() { return rule; }
697
698                //"hook" "combinator:" name=ID "(" ruleext=INT ")" logic=LOGIC? ("(" LABEL+=STRING ")")+ ";"?
699                public Group getGroup() { return cGroup; }
700
701                //"hook"
702                public Keyword getHookKeyword_0() { return cHookKeyword_0; }
703
704                //"combinator:"
705                public Keyword getCombinatorKeyword_1() { return cCombinatorKeyword_1; }
706
707                //name=ID
708                public Assignment getNameAssignment_2() { return cNameAssignment_2; }
709
710                //ID
711                public RuleCall getNameIDTerminalRuleCall_2_0() { return cNameIDTerminalRuleCall_2_0; }
712
713                //"("
714                public Keyword getLeftParenthesisKeyword_3() { return cLeftParenthesisKeyword_3; }
715
716                //ruleext=INT
717                public Assignment getRuleextAssignment_4() { return cRuleextAssignment_4; }
718
719                //INT
720                public RuleCall getRuleextINTTerminalRuleCall_4_0() { return cRuleextINTTerminalRuleCall_4_0; }
721
722                //")"
723                public Keyword getRightParenthesisKeyword_5() { return cRightParenthesisKeyword_5; }
724
725                //logic=LOGIC?
726                public Assignment getLogicAssignment_6() { return cLogicAssignment_6; }
727
728                //LOGIC
729                public RuleCall getLogicLOGICTerminalRuleCall_6_0() { return cLogicLOGICTerminalRuleCall_6_0; }
730
731                //("(" LABEL+=STRING ")")+
732                public Group getGroup_7() { return cGroup_7; }
733
734                //"("
735                public Keyword getLeftParenthesisKeyword_7_0() { return cLeftParenthesisKeyword_7_0; }
736
737                //LABEL+=STRING
738                public Assignment getLABELAssignment_7_1() { return cLABELAssignment_7_1; }
739
740                //STRING
741                public RuleCall getLABELSTRINGTerminalRuleCall_7_1_0() { return cLABELSTRINGTerminalRuleCall_7_1_0; }
742
743                //")"
744                public Keyword getRightParenthesisKeyword_7_2() { return cRightParenthesisKeyword_7_2; }
745
746                //";"?
747                public Keyword getSemicolonKeyword_8() { return cSemicolonKeyword_8; }
748        }
749
750        public class DefinitionListElements extends AbstractParserRuleElementFinder {
751                private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "DefinitionList");
752                private final Group cGroup = (Group)rule.eContents().get(1);
753                private final Assignment cSingleDefinitionAssignment_0 = (Assignment)cGroup.eContents().get(0);
754                private final RuleCall cSingleDefinitionSingleDefinitionParserRuleCall_0_0 = (RuleCall)cSingleDefinitionAssignment_0.eContents().get(0);
755                private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
756                private final Keyword cVerticalLineKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
757                private final Assignment cSingleDefinitionAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
758                private final RuleCall cSingleDefinitionSingleDefinitionParserRuleCall_1_1_0 = (RuleCall)cSingleDefinitionAssignment_1_1.eContents().get(0);
759               
760                //DefinitionList:
761                //      singleDefinition+=SingleDefinition ("|" singleDefinition+=SingleDefinition)*;
762                public ParserRule getRule() { return rule; }
763
764                //singleDefinition+=SingleDefinition ("|" singleDefinition+=SingleDefinition)*
765                public Group getGroup() { return cGroup; }
766
767                //singleDefinition+=SingleDefinition
768                public Assignment getSingleDefinitionAssignment_0() { return cSingleDefinitionAssignment_0; }
769
770                //SingleDefinition
771                public RuleCall getSingleDefinitionSingleDefinitionParserRuleCall_0_0() { return cSingleDefinitionSingleDefinitionParserRuleCall_0_0; }
772
773                //("|" singleDefinition+=SingleDefinition)*
774                public Group getGroup_1() { return cGroup_1; }
775
776                //"|"
777                public Keyword getVerticalLineKeyword_1_0() { return cVerticalLineKeyword_1_0; }
778
779                //singleDefinition+=SingleDefinition
780                public Assignment getSingleDefinitionAssignment_1_1() { return cSingleDefinitionAssignment_1_1; }
781
782                //SingleDefinition
783                public RuleCall getSingleDefinitionSingleDefinitionParserRuleCall_1_1_0() { return cSingleDefinitionSingleDefinitionParserRuleCall_1_1_0; }
784        }
785
786        public class SingleDefinitionElements extends AbstractParserRuleElementFinder {
787                private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "SingleDefinition");
788                private final Assignment cTermsAssignment = (Assignment)rule.eContents().get(1);
789                private final RuleCall cTermsTermParserRuleCall_0 = (RuleCall)cTermsAssignment.eContents().get(0);
790               
791                //SingleDefinition:
792                //      terms+=Term+;
793                public ParserRule getRule() { return rule; }
794
795                //terms+=Term+
796                public Assignment getTermsAssignment() { return cTermsAssignment; }
797
798                //Term
799                public RuleCall getTermsTermParserRuleCall_0() { return cTermsTermParserRuleCall_0; }
800        }
801
802        public class TermElements extends AbstractParserRuleElementFinder {
803                private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Term");
804                private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
805                private final Assignment cTermAtomAssignment_0 = (Assignment)cAlternatives.eContents().get(0);
806                private final RuleCall cTermAtomAtomParserRuleCall_0_0 = (RuleCall)cTermAtomAssignment_0.eContents().get(0);
807                private final Assignment cTermGroupedSequenceAssignment_1 = (Assignment)cAlternatives.eContents().get(1);
808                private final RuleCall cTermGroupedSequenceGroupedSequenceParserRuleCall_1_0 = (RuleCall)cTermGroupedSequenceAssignment_1.eContents().get(0);
809                private final Assignment cTermOptionalSequenceAssignment_2 = (Assignment)cAlternatives.eContents().get(2);
810                private final RuleCall cTermOptionalSequenceOptionalSequenceParserRuleCall_2_0 = (RuleCall)cTermOptionalSequenceAssignment_2.eContents().get(0);
811                private final Assignment cTermRepeatedSequenceAssignment_3 = (Assignment)cAlternatives.eContents().get(3);
812                private final RuleCall cTermRepeatedSequenceRepeatedSequenceParserRuleCall_3_0 = (RuleCall)cTermRepeatedSequenceAssignment_3.eContents().get(0);
813               
814                //Term:
815                //      termAtom=Atom | termGroupedSequence=GroupedSequence | termOptionalSequence=OptionalSequence |
816                //      termRepeatedSequence=RepeatedSequence;
817                public ParserRule getRule() { return rule; }
818
819                //termAtom=Atom | termGroupedSequence=GroupedSequence | termOptionalSequence=OptionalSequence |
820                //termRepeatedSequence=RepeatedSequence
821                public Alternatives getAlternatives() { return cAlternatives; }
822
823                //termAtom=Atom
824                public Assignment getTermAtomAssignment_0() { return cTermAtomAssignment_0; }
825
826                //Atom
827                public RuleCall getTermAtomAtomParserRuleCall_0_0() { return cTermAtomAtomParserRuleCall_0_0; }
828
829                //termGroupedSequence=GroupedSequence
830                public Assignment getTermGroupedSequenceAssignment_1() { return cTermGroupedSequenceAssignment_1; }
831
832                //GroupedSequence
833                public RuleCall getTermGroupedSequenceGroupedSequenceParserRuleCall_1_0() { return cTermGroupedSequenceGroupedSequenceParserRuleCall_1_0; }
834
835                //termOptionalSequence=OptionalSequence
836                public Assignment getTermOptionalSequenceAssignment_2() { return cTermOptionalSequenceAssignment_2; }
837
838                //OptionalSequence
839                public RuleCall getTermOptionalSequenceOptionalSequenceParserRuleCall_2_0() { return cTermOptionalSequenceOptionalSequenceParserRuleCall_2_0; }
840
841                //termRepeatedSequence=RepeatedSequence
842                public Assignment getTermRepeatedSequenceAssignment_3() { return cTermRepeatedSequenceAssignment_3; }
843
844                //RepeatedSequence
845                public RuleCall getTermRepeatedSequenceRepeatedSequenceParserRuleCall_3_0() { return cTermRepeatedSequenceRepeatedSequenceParserRuleCall_3_0; }
846        }
847
848        public class AtomElements extends AbstractParserRuleElementFinder {
849                private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Atom");
850                private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
851                private final Assignment cAtomStringRuleAssignment_0 = (Assignment)cAlternatives.eContents().get(0);
852                private final RuleCall cAtomStringRuleStringRuleParserRuleCall_0_0 = (RuleCall)cAtomStringRuleAssignment_0.eContents().get(0);
853                private final Assignment cAtomRuleReferenceAssignment_1 = (Assignment)cAlternatives.eContents().get(1);
854                private final RuleCall cAtomRuleReferenceRuleReferenceParserRuleCall_1_0 = (RuleCall)cAtomRuleReferenceAssignment_1.eContents().get(0);
855               
856                //Atom:
857                //      atomStringRule=StringRule | atomRuleReference=RuleReference;
858                public ParserRule getRule() { return rule; }
859
860                //atomStringRule=StringRule | atomRuleReference=RuleReference
861                public Alternatives getAlternatives() { return cAlternatives; }
862
863                //atomStringRule=StringRule
864                public Assignment getAtomStringRuleAssignment_0() { return cAtomStringRuleAssignment_0; }
865
866                //StringRule
867                public RuleCall getAtomStringRuleStringRuleParserRuleCall_0_0() { return cAtomStringRuleStringRuleParserRuleCall_0_0; }
868
869                //atomRuleReference=RuleReference
870                public Assignment getAtomRuleReferenceAssignment_1() { return cAtomRuleReferenceAssignment_1; }
871
872                //RuleReference
873                public RuleCall getAtomRuleReferenceRuleReferenceParserRuleCall_1_0() { return cAtomRuleReferenceRuleReferenceParserRuleCall_1_0; }
874        }
875
876        public class RuleReferenceElements extends AbstractParserRuleElementFinder {
877                private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "RuleReference");
878                private final Assignment cRulerefAssignment = (Assignment)rule.eContents().get(1);
879                private final CrossReference cRulerefRuleCrossReference_0 = (CrossReference)cRulerefAssignment.eContents().get(0);
880                private final RuleCall cRulerefRuleIDTerminalRuleCall_0_1 = (RuleCall)cRulerefRuleCrossReference_0.eContents().get(1);
881               
882                //RuleReference:
883                //      ruleref=[Rule];
884                public ParserRule getRule() { return rule; }
885
886                //ruleref=[Rule]
887                public Assignment getRulerefAssignment() { return cRulerefAssignment; }
888
889                //[Rule]
890                public CrossReference getRulerefRuleCrossReference_0() { return cRulerefRuleCrossReference_0; }
891
892                //ID
893                public RuleCall getRulerefRuleIDTerminalRuleCall_0_1() { return cRulerefRuleIDTerminalRuleCall_0_1; }
894        }
895
896        public class StringRuleElements extends AbstractParserRuleElementFinder {
897                private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "StringRule");
898                private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
899                private final Assignment cLiteralAssignment_0 = (Assignment)cAlternatives.eContents().get(0);
900                private final RuleCall cLiteralSTRINGTerminalRuleCall_0_0 = (RuleCall)cLiteralAssignment_0.eContents().get(0);
901                private final Assignment cColonAssignment_1 = (Assignment)cAlternatives.eContents().get(1);
902                private final RuleCall cColonCOLONTerminalRuleCall_1_0 = (RuleCall)cColonAssignment_1.eContents().get(0);
903               
904                //StringRule:
905                //      literal=STRING | colon=COLON;
906                public ParserRule getRule() { return rule; }
907
908                //literal=STRING | colon=COLON
909                public Alternatives getAlternatives() { return cAlternatives; }
910
911                //literal=STRING
912                public Assignment getLiteralAssignment_0() { return cLiteralAssignment_0; }
913
914                //STRING
915                public RuleCall getLiteralSTRINGTerminalRuleCall_0_0() { return cLiteralSTRINGTerminalRuleCall_0_0; }
916
917                //colon=COLON
918                public Assignment getColonAssignment_1() { return cColonAssignment_1; }
919
920                //COLON
921                public RuleCall getColonCOLONTerminalRuleCall_1_0() { return cColonCOLONTerminalRuleCall_1_0; }
922        }
923
924        public class GroupedSequenceElements extends AbstractParserRuleElementFinder {
925                private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "GroupedSequence");
926                private final Group cGroup = (Group)rule.eContents().get(1);
927                private final Keyword cLeftParenthesisKeyword_0 = (Keyword)cGroup.eContents().get(0);
928                private final Assignment cDefinitionListAssignment_1 = (Assignment)cGroup.eContents().get(1);
929                private final RuleCall cDefinitionListDefinitionListParserRuleCall_1_0 = (RuleCall)cDefinitionListAssignment_1.eContents().get(0);
930                private final Keyword cRightParenthesisKeyword_2 = (Keyword)cGroup.eContents().get(2);
931               
932                //GroupedSequence:
933                //      "(" definitionList+=DefinitionList ")";
934                public ParserRule getRule() { return rule; }
935
936                //"(" definitionList+=DefinitionList ")"
937                public Group getGroup() { return cGroup; }
938
939                //"("
940                public Keyword getLeftParenthesisKeyword_0() { return cLeftParenthesisKeyword_0; }
941
942                //definitionList+=DefinitionList
943                public Assignment getDefinitionListAssignment_1() { return cDefinitionListAssignment_1; }
944
945                //DefinitionList
946                public RuleCall getDefinitionListDefinitionListParserRuleCall_1_0() { return cDefinitionListDefinitionListParserRuleCall_1_0; }
947
948                //")"
949                public Keyword getRightParenthesisKeyword_2() { return cRightParenthesisKeyword_2; }
950        }
951
952        public class OptionalSequenceElements extends AbstractParserRuleElementFinder {
953                private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "OptionalSequence");
954                private final Group cGroup = (Group)rule.eContents().get(1);
955                private final Keyword cLeftSquareBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
956                private final Assignment cDefinitionListAssignment_1 = (Assignment)cGroup.eContents().get(1);
957                private final RuleCall cDefinitionListDefinitionListParserRuleCall_1_0 = (RuleCall)cDefinitionListAssignment_1.eContents().get(0);
958                private final Keyword cRightSquareBracketKeyword_2 = (Keyword)cGroup.eContents().get(2);
959               
960                //OptionalSequence:
961                //      "[" definitionList+=DefinitionList "]";
962                public ParserRule getRule() { return rule; }
963
964                //"[" definitionList+=DefinitionList "]"
965                public Group getGroup() { return cGroup; }
966
967                //"["
968                public Keyword getLeftSquareBracketKeyword_0() { return cLeftSquareBracketKeyword_0; }
969
970                //definitionList+=DefinitionList
971                public Assignment getDefinitionListAssignment_1() { return cDefinitionListAssignment_1; }
972
973                //DefinitionList
974                public RuleCall getDefinitionListDefinitionListParserRuleCall_1_0() { return cDefinitionListDefinitionListParserRuleCall_1_0; }
975
976                //"]"
977                public Keyword getRightSquareBracketKeyword_2() { return cRightSquareBracketKeyword_2; }
978        }
979
980        public class RepeatedSequenceElements extends AbstractParserRuleElementFinder {
981                private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "RepeatedSequence");
982                private final Group cGroup = (Group)rule.eContents().get(1);
983                private final Keyword cLeftCurlyBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
984                private final Assignment cDefinitionsAssignment_1 = (Assignment)cGroup.eContents().get(1);
985                private final RuleCall cDefinitionsDefinitionListParserRuleCall_1_0 = (RuleCall)cDefinitionsAssignment_1.eContents().get(0);
986                private final Keyword cRightCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2);
987                private final Alternatives cAlternatives_3 = (Alternatives)cGroup.eContents().get(3);
988                private final Assignment cMorethanonceAssignment_3_0 = (Assignment)cAlternatives_3.eContents().get(0);
989                private final Keyword cMorethanoncePlusSignKeyword_3_0_0 = (Keyword)cMorethanonceAssignment_3_0.eContents().get(0);
990                private final Assignment cRangeAssignment_3_1 = (Assignment)cAlternatives_3.eContents().get(1);
991                private final RuleCall cRangeRepeatRangeParserRuleCall_3_1_0 = (RuleCall)cRangeAssignment_3_1.eContents().get(0);
992               
993                //RepeatedSequence:
994                //      "{" definitions+=DefinitionList "}" (morethanonce?="+"? | range=RepeatRange?);
995                public ParserRule getRule() { return rule; }
996
997                //"{" definitions+=DefinitionList "}" (morethanonce?="+"? | range=RepeatRange?)
998                public Group getGroup() { return cGroup; }
999
1000                //"{"
1001                public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; }
1002
1003                //definitions+=DefinitionList
1004                public Assignment getDefinitionsAssignment_1() { return cDefinitionsAssignment_1; }
1005
1006                //DefinitionList
1007                public RuleCall getDefinitionsDefinitionListParserRuleCall_1_0() { return cDefinitionsDefinitionListParserRuleCall_1_0; }
1008
1009                //"}"
1010                public Keyword getRightCurlyBracketKeyword_2() { return cRightCurlyBracketKeyword_2; }
1011
1012                //morethanonce?="+"? | range=RepeatRange?
1013                public Alternatives getAlternatives_3() { return cAlternatives_3; }
1014
1015                //morethanonce?="+"?
1016                public Assignment getMorethanonceAssignment_3_0() { return cMorethanonceAssignment_3_0; }
1017
1018                //"+"
1019                public Keyword getMorethanoncePlusSignKeyword_3_0_0() { return cMorethanoncePlusSignKeyword_3_0_0; }
1020
1021                //range=RepeatRange?
1022                public Assignment getRangeAssignment_3_1() { return cRangeAssignment_3_1; }
1023
1024                //RepeatRange
1025                public RuleCall getRangeRepeatRangeParserRuleCall_3_1_0() { return cRangeRepeatRangeParserRuleCall_3_1_0; }
1026        }
1027
1028        public class RepeatRangeElements extends AbstractParserRuleElementFinder {
1029                private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "RepeatRange");
1030                private final Group cGroup = (Group)rule.eContents().get(1);
1031                private final Keyword cNumberSignKeyword_0 = (Keyword)cGroup.eContents().get(0);
1032                private final Keyword cLeftParenthesisKeyword_1 = (Keyword)cGroup.eContents().get(1);
1033                private final Assignment cFromAssignment_2 = (Assignment)cGroup.eContents().get(2);
1034                private final RuleCall cFromINTTerminalRuleCall_2_0 = (RuleCall)cFromAssignment_2.eContents().get(0);
1035                private final Keyword cCommaKeyword_3 = (Keyword)cGroup.eContents().get(3);
1036                private final Assignment cToAssignment_4 = (Assignment)cGroup.eContents().get(4);
1037                private final RuleCall cToINTTerminalRuleCall_4_0 = (RuleCall)cToAssignment_4.eContents().get(0);
1038                private final Keyword cRightParenthesisKeyword_5 = (Keyword)cGroup.eContents().get(5);
1039               
1040                //RepeatRange:
1041                //      "#" "(" from=INT "," to=INT ")";
1042                public ParserRule getRule() { return rule; }
1043
1044                //"#" "(" from=INT "," to=INT ")"
1045                public Group getGroup() { return cGroup; }
1046
1047                //"#"
1048                public Keyword getNumberSignKeyword_0() { return cNumberSignKeyword_0; }
1049
1050                //"("
1051                public Keyword getLeftParenthesisKeyword_1() { return cLeftParenthesisKeyword_1; }
1052
1053                //from=INT
1054                public Assignment getFromAssignment_2() { return cFromAssignment_2; }
1055
1056                //INT
1057                public RuleCall getFromINTTerminalRuleCall_2_0() { return cFromINTTerminalRuleCall_2_0; }
1058
1059                //","
1060                public Keyword getCommaKeyword_3() { return cCommaKeyword_3; }
1061
1062                //to=INT
1063                public Assignment getToAssignment_4() { return cToAssignment_4; }
1064
1065                //INT
1066                public RuleCall getToINTTerminalRuleCall_4_0() { return cToINTTerminalRuleCall_4_0; }
1067
1068                //")"
1069                public Keyword getRightParenthesisKeyword_5() { return cRightParenthesisKeyword_5; }
1070        }
1071       
1072       
1073        private EtsiBnfElements pEtsiBnf;
1074        private ImportSectionElements pImportSection;
1075        private BnfEntryElements pBnfEntry;
1076        private DeltaEntryElements pDeltaEntry;
1077        private MergeEntryElements pMergeEntry;
1078        private SectionHeadingElements pSectionHeading;
1079        private ImportElements pImport;
1080        private RuleElements pRule;
1081        private ExtRuleElements pExtRule;
1082        private MergeRuleElements pMergeRule;
1083        private GlobalCombinatorElements pGlobalCombinator;
1084        private RuleCombinatorElements pRuleCombinator;
1085        private HookCombinatorElements pHookCombinator;
1086        private DefinitionListElements pDefinitionList;
1087        private SingleDefinitionElements pSingleDefinition;
1088        private TermElements pTerm;
1089        private AtomElements pAtom;
1090        private RuleReferenceElements pRuleReference;
1091        private StringRuleElements pStringRule;
1092        private GroupedSequenceElements pGroupedSequence;
1093        private OptionalSequenceElements pOptionalSequence;
1094        private RepeatedSequenceElements pRepeatedSequence;
1095        private RepeatRangeElements pRepeatRange;
1096        private TerminalRule tID;
1097        private TerminalRule tINT;
1098        private TerminalRule tWS;
1099        private TerminalRule tCOLON;
1100        private TerminalRule tSTRING;
1101        private TerminalRule tSECTIONHEADER;
1102        private TerminalRule tSL_COMMENT;
1103        private TerminalRule tML_COMMENT;
1104        private TerminalRule tLOGIC;
1105       
1106        private final Grammar grammar;
1107
1108        @Inject
1109        public EbnfGrammarAccess(GrammarProvider grammarProvider) {
1110                this.grammar = internalFindGrammar(grammarProvider);
1111        }
1112       
1113        protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
1114                Grammar grammar = grammarProvider.getGrammar(this);
1115                while (grammar != null) {
1116                        if ("de.ugoe.cs.swe.bnftools.Ebnf".equals(grammar.getName())) {
1117                                return grammar;
1118                        }
1119                        List<Grammar> grammars = grammar.getUsedGrammars();
1120                        if (!grammars.isEmpty()) {
1121                                grammar = grammars.iterator().next();
1122                        } else {
1123                                return null;
1124                        }
1125                }
1126                return grammar;
1127        }
1128       
1129       
1130        public Grammar getGrammar() {
1131                return grammar;
1132        }
1133       
1134
1135       
1136        //// -----------------------------------------------------------------------------------------------
1137        //// Parser Rules
1138        //// -----------------------------------------------------------------------------------------------
1139        //EtsiBnf:
1140        //      "grammar" name=ID (type="/bnf"? ";" importSection=ImportSection? bnfEntry+=BnfEntry+) | type="/delta" ";"
1141        //      importSection=ImportSection? deltaEntry+=DeltaEntry* | type="/merge" ";" importSection=ImportSection?
1142        //      mergeEntry+=MergeEntry*;
1143        public EtsiBnfElements getEtsiBnfAccess() {
1144                return (pEtsiBnf != null) ? pEtsiBnf : (pEtsiBnf = new EtsiBnfElements());
1145        }
1146       
1147        public ParserRule getEtsiBnfRule() {
1148                return getEtsiBnfAccess().getRule();
1149        }
1150
1151        //ImportSection:
1152        //      imports+=Import+;
1153        public ImportSectionElements getImportSectionAccess() {
1154                return (pImportSection != null) ? pImportSection : (pImportSection = new ImportSectionElements());
1155        }
1156       
1157        public ParserRule getImportSectionRule() {
1158                return getImportSectionAccess().getRule();
1159        }
1160
1161        //BnfEntry:
1162        //      sectionheader=SectionHeading | rule=Rule;
1163        public BnfEntryElements getBnfEntryAccess() {
1164                return (pBnfEntry != null) ? pBnfEntry : (pBnfEntry = new BnfEntryElements());
1165        }
1166       
1167        public ParserRule getBnfEntryRule() {
1168                return getBnfEntryAccess().getRule();
1169        }
1170
1171        //DeltaEntry:
1172        //      rule=Rule | sectionheader=SectionHeading | extRule=ExtRule;
1173        public DeltaEntryElements getDeltaEntryAccess() {
1174                return (pDeltaEntry != null) ? pDeltaEntry : (pDeltaEntry = new DeltaEntryElements());
1175        }
1176       
1177        public ParserRule getDeltaEntryRule() {
1178                return getDeltaEntryAccess().getRule();
1179        }
1180
1181        //MergeEntry:
1182        //      sectionheader=SectionHeading | mergeRule=MergeRule;
1183        public MergeEntryElements getMergeEntryAccess() {
1184                return (pMergeEntry != null) ? pMergeEntry : (pMergeEntry = new MergeEntryElements());
1185        }
1186       
1187        public ParserRule getMergeEntryRule() {
1188                return getMergeEntryAccess().getRule();
1189        }
1190
1191        //SectionHeading:
1192        //      {SectionHeading} sectionHeader=SECTIONHEADER;
1193        public SectionHeadingElements getSectionHeadingAccess() {
1194                return (pSectionHeading != null) ? pSectionHeading : (pSectionHeading = new SectionHeadingElements());
1195        }
1196       
1197        public ParserRule getSectionHeadingRule() {
1198                return getSectionHeadingAccess().getRule();
1199        }
1200
1201        //Import:
1202        //      "import" importURI=STRING ("/" (grammarType="core" | grammarType="package" | grammarType="update"))? ("label:"
1203        //      label=ID)? ";";
1204        public ImportElements getImportAccess() {
1205                return (pImport != null) ? pImport : (pImport = new ImportElements());
1206        }
1207       
1208        public ParserRule getImportRule() {
1209                return getImportAccess().getRule();
1210        }
1211
1212        ////Import: 'import' importedNamespace=FqnWithWildCard;
1213        ////FqnWithWildCard: Fqn('.*')? ';';
1214        ////Fqn:ID('.'ID)*;
1215        //Rule:
1216        //      (rulenumber=INT rulevariant=ID? ".")? name=ID "::=" definitionList=DefinitionList? ";"?;
1217        public RuleElements getRuleAccess() {
1218                return (pRule != null) ? pRule : (pRule = new RuleElements());
1219        }
1220       
1221        public ParserRule getRuleRule() {
1222                return getRuleAccess().getRule();
1223        }
1224
1225        //ExtRule:
1226        //      (rulenumber=INT rulevariant=ID? ".")? name=ID ("(" ruleext=INT ")") "<-" (elements+=Atom | ")" | "]" | "}" | "|" | "("
1227        //      | "[" | "{" | "*" | "+")* ";"?;
1228        public ExtRuleElements getExtRuleAccess() {
1229                return (pExtRule != null) ? pExtRule : (pExtRule = new ExtRuleElements());
1230        }
1231       
1232        public ParserRule getExtRuleRule() {
1233                return getExtRuleAccess().getRule();
1234        }
1235
1236        //MergeRule:
1237        //      GlobalCombinator | RuleCombinator | HookCombinator;
1238        public MergeRuleElements getMergeRuleAccess() {
1239                return (pMergeRule != null) ? pMergeRule : (pMergeRule = new MergeRuleElements());
1240        }
1241       
1242        public ParserRule getMergeRuleRule() {
1243                return getMergeRuleAccess().getRule();
1244        }
1245
1246        //GlobalCombinator:
1247        //      ("global" "combinator:") logic=LOGIC ";"?;
1248        public GlobalCombinatorElements getGlobalCombinatorAccess() {
1249                return (pGlobalCombinator != null) ? pGlobalCombinator : (pGlobalCombinator = new GlobalCombinatorElements());
1250        }
1251       
1252        public ParserRule getGlobalCombinatorRule() {
1253                return getGlobalCombinatorAccess().getRule();
1254        }
1255
1256        //RuleCombinator:
1257        //      ("rule" "combinator:" name=ID) logic=LOGIC ("(" LABEL+=STRING ")")* ";"?;
1258        public RuleCombinatorElements getRuleCombinatorAccess() {
1259                return (pRuleCombinator != null) ? pRuleCombinator : (pRuleCombinator = new RuleCombinatorElements());
1260        }
1261       
1262        public ParserRule getRuleCombinatorRule() {
1263                return getRuleCombinatorAccess().getRule();
1264        }
1265
1266        //HookCombinator:
1267        //      "hook" "combinator:" name=ID "(" ruleext=INT ")" logic=LOGIC? ("(" LABEL+=STRING ")")+ ";"?;
1268        public HookCombinatorElements getHookCombinatorAccess() {
1269                return (pHookCombinator != null) ? pHookCombinator : (pHookCombinator = new HookCombinatorElements());
1270        }
1271       
1272        public ParserRule getHookCombinatorRule() {
1273                return getHookCombinatorAccess().getRule();
1274        }
1275
1276        //DefinitionList:
1277        //      singleDefinition+=SingleDefinition ("|" singleDefinition+=SingleDefinition)*;
1278        public DefinitionListElements getDefinitionListAccess() {
1279                return (pDefinitionList != null) ? pDefinitionList : (pDefinitionList = new DefinitionListElements());
1280        }
1281       
1282        public ParserRule getDefinitionListRule() {
1283                return getDefinitionListAccess().getRule();
1284        }
1285
1286        //SingleDefinition:
1287        //      terms+=Term+;
1288        public SingleDefinitionElements getSingleDefinitionAccess() {
1289                return (pSingleDefinition != null) ? pSingleDefinition : (pSingleDefinition = new SingleDefinitionElements());
1290        }
1291       
1292        public ParserRule getSingleDefinitionRule() {
1293                return getSingleDefinitionAccess().getRule();
1294        }
1295
1296        //Term:
1297        //      termAtom=Atom | termGroupedSequence=GroupedSequence | termOptionalSequence=OptionalSequence |
1298        //      termRepeatedSequence=RepeatedSequence;
1299        public TermElements getTermAccess() {
1300                return (pTerm != null) ? pTerm : (pTerm = new TermElements());
1301        }
1302       
1303        public ParserRule getTermRule() {
1304                return getTermAccess().getRule();
1305        }
1306
1307        //Atom:
1308        //      atomStringRule=StringRule | atomRuleReference=RuleReference;
1309        public AtomElements getAtomAccess() {
1310                return (pAtom != null) ? pAtom : (pAtom = new AtomElements());
1311        }
1312       
1313        public ParserRule getAtomRule() {
1314                return getAtomAccess().getRule();
1315        }
1316
1317        //RuleReference:
1318        //      ruleref=[Rule];
1319        public RuleReferenceElements getRuleReferenceAccess() {
1320                return (pRuleReference != null) ? pRuleReference : (pRuleReference = new RuleReferenceElements());
1321        }
1322       
1323        public ParserRule getRuleReferenceRule() {
1324                return getRuleReferenceAccess().getRule();
1325        }
1326
1327        //StringRule:
1328        //      literal=STRING | colon=COLON;
1329        public StringRuleElements getStringRuleAccess() {
1330                return (pStringRule != null) ? pStringRule : (pStringRule = new StringRuleElements());
1331        }
1332       
1333        public ParserRule getStringRuleRule() {
1334                return getStringRuleAccess().getRule();
1335        }
1336
1337        //GroupedSequence:
1338        //      "(" definitionList+=DefinitionList ")";
1339        public GroupedSequenceElements getGroupedSequenceAccess() {
1340                return (pGroupedSequence != null) ? pGroupedSequence : (pGroupedSequence = new GroupedSequenceElements());
1341        }
1342       
1343        public ParserRule getGroupedSequenceRule() {
1344                return getGroupedSequenceAccess().getRule();
1345        }
1346
1347        //OptionalSequence:
1348        //      "[" definitionList+=DefinitionList "]";
1349        public OptionalSequenceElements getOptionalSequenceAccess() {
1350                return (pOptionalSequence != null) ? pOptionalSequence : (pOptionalSequence = new OptionalSequenceElements());
1351        }
1352       
1353        public ParserRule getOptionalSequenceRule() {
1354                return getOptionalSequenceAccess().getRule();
1355        }
1356
1357        //RepeatedSequence:
1358        //      "{" definitions+=DefinitionList "}" (morethanonce?="+"? | range=RepeatRange?);
1359        public RepeatedSequenceElements getRepeatedSequenceAccess() {
1360                return (pRepeatedSequence != null) ? pRepeatedSequence : (pRepeatedSequence = new RepeatedSequenceElements());
1361        }
1362       
1363        public ParserRule getRepeatedSequenceRule() {
1364                return getRepeatedSequenceAccess().getRule();
1365        }
1366
1367        //RepeatRange:
1368        //      "#" "(" from=INT "," to=INT ")";
1369        public RepeatRangeElements getRepeatRangeAccess() {
1370                return (pRepeatRange != null) ? pRepeatRange : (pRepeatRange = new RepeatRangeElements());
1371        }
1372       
1373        public ParserRule getRepeatRangeRule() {
1374                return getRepeatRangeAccess().getRule();
1375        }
1376
1377        //// -----------------------------------------------------------------------------------------------
1378        //// Lexer Rules
1379        //// -----------------------------------------------------------------------------------------------
1380        //terminal ID:
1381        //      ("a".."z" | "A".."Z" | "_") ("a".."z" | "A".."Z" | "0".."9" | "_")*;
1382        public TerminalRule getIDRule() {
1383                return (tID != null) ? tID : (tID = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "ID"));
1384        }
1385
1386        //terminal INT returns ecore::EInt:
1387        //      "0".."9"+;
1388        public TerminalRule getINTRule() {
1389                return (tINT != null) ? tINT : (tINT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "INT"));
1390        }
1391
1392        //terminal WS:
1393        //      (" " | "\t" | "\r"? "\n")+;
1394        public TerminalRule getWSRule() {
1395                return (tWS != null) ? tWS : (tWS = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "WS"));
1396        }
1397
1398        //terminal COLON:
1399        //      "\"" "\"" "\"";
1400        public TerminalRule getCOLONRule() {
1401                return (tCOLON != null) ? tCOLON : (tCOLON = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "COLON"));
1402        }
1403
1404        //terminal STRING:
1405        //      "\"" !"\""* "\"" | "\'" !"\'"* "\'";
1406        public TerminalRule getSTRINGRule() {
1407                return (tSTRING != null) ? tSTRING : (tSTRING = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "STRING"));
1408        }
1409
1410        //terminal SECTIONHEADER:
1411        //      ("a".."z" | "A".."Z") ("." | "0".."9")+ (" " | "\t") !("\n" | "\r")* "\r"? "\n";
1412        public TerminalRule getSECTIONHEADERRule() {
1413                return (tSECTIONHEADER != null) ? tSECTIONHEADER : (tSECTIONHEADER = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "SECTIONHEADER"));
1414        }
1415
1416        //terminal SL_COMMENT:
1417        //      "//" !("\n" | "\r")* ("\r"? "\n")?;
1418        public TerminalRule getSL_COMMENTRule() {
1419                return (tSL_COMMENT != null) ? tSL_COMMENT : (tSL_COMMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "SL_COMMENT"));
1420        }
1421
1422        //terminal ML_COMMENT:
1423        //      "/ *"->"* /";
1424        public TerminalRule getML_COMMENTRule() {
1425                return (tML_COMMENT != null) ? tML_COMMENT : (tML_COMMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "ML_COMMENT"));
1426        }
1427
1428        ////TODO: a more intuitive notation
1429        //terminal LOGIC:
1430        //      "/and" | "/or" | "/andr" | "/orr" | "/any" | "/together";
1431        public TerminalRule getLOGICRule() {
1432                return (tLOGIC != null) ? tLOGIC : (tLOGIC = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "LOGIC"));
1433        }
1434}
Note: See TracBrowser for help on using the repository browser.