aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormclay2008-12-06 05:05:08 (EST)
committersefftinge2008-12-06 05:05:08 (EST)
commit1fb6d358864367dd4205d5a6a3ddff7e64c9179f (patch)
tree0314b83a67492a281316b4dbeb8cedac46b6270a
parent4e4ff40fea7b64bc87633ccef9e37298896b07ee (diff)
downloadorg.eclipse.xtext-1fb6d358864367dd4205d5a6a3ddff7e64c9179f.zip
org.eclipse.xtext-1fb6d358864367dd4205d5a6a3ddff7e64c9179f.tar.gz
org.eclipse.xtext-1fb6d358864367dd4205d5a6a3ddff7e64c9179f.tar.bz2
regenerate grammars due to changes in AbstractParseTreeConstructor, method #getGrammarEle was replaced by improved GrammarAcces
-rw-r--r--devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/ReferenceGrammar.ecore6
-rw-r--r--devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/internal/InternalReferenceGrammarLexer.java2
-rw-r--r--devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/internal/InternalReferenceGrammarParser.java2
-rw-r--r--devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parsetree/reconstr/ReferenceGrammarParseTreeConstructor.java204
-rw-r--r--devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/services/ReferenceGrammarGrammarAccess.java765
-rw-r--r--examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/internal/InternalFowlerDslLexer.java2
-rw-r--r--examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/internal/InternalFowlerDslParser.java2
-rw-r--r--examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parsetree/reconstr/FowlerDslParseTreeConstructor.java126
-rw-r--r--examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/services/FowlerDslGrammarAccess.java446
9 files changed, 1288 insertions, 267 deletions
diff --git a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/ReferenceGrammar.ecore b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/ReferenceGrammar.ecore
index 5e4cd5b..b9d52de 100644
--- a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/ReferenceGrammar.ecore
+++ b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/ReferenceGrammar.ecore
@@ -16,12 +16,12 @@
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Person">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name">
- <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="age">
<eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
</eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name">
+ <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ </eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Kind" eSuperTypes="//Person"/>
<eClassifiers xsi:type="ecore:EClass" name="Erwachsener" eSuperTypes="//Person"/>
diff --git a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/internal/InternalReferenceGrammarLexer.java b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/internal/InternalReferenceGrammarLexer.java
index e52eb08..939fab6 100644
--- a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/internal/InternalReferenceGrammarLexer.java
+++ b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/internal/InternalReferenceGrammarLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/reference/parser/internal/InternalReferenceGrammar.g 2008-12-03 21:42:29
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/reference/parser/internal/InternalReferenceGrammar.g 2008-12-06 10:56:39
package org.eclipse.xtext.reference.parser.internal;
diff --git a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/internal/InternalReferenceGrammarParser.java b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/internal/InternalReferenceGrammarParser.java
index e26fa2f..74f4be5 100644
--- a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/internal/InternalReferenceGrammarParser.java
+++ b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/internal/InternalReferenceGrammarParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/reference/parser/internal/InternalReferenceGrammar.g 2008-12-03 21:42:29
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/reference/parser/internal/InternalReferenceGrammar.g 2008-12-06 10:56:39
package org.eclipse.xtext.reference.parser.internal;
diff --git a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parsetree/reconstr/ReferenceGrammarParseTreeConstructor.java b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parsetree/reconstr/ReferenceGrammarParseTreeConstructor.java
index d594c32..551a6d0 100644
--- a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parsetree/reconstr/ReferenceGrammarParseTreeConstructor.java
+++ b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parsetree/reconstr/ReferenceGrammarParseTreeConstructor.java
@@ -9,6 +9,8 @@ import org.eclipse.xtext.*;
import org.eclipse.xtext.parsetree.reconstr.*;
import org.eclipse.xtext.parsetree.reconstr.impl.*;
import org.eclipse.xtext.parsetree.reconstr.impl.AbstractParseTreeConstructor.AbstractToken.Solution;
+import org.eclipse.xtext.builtin.XtextBuiltinGrammarAccess;
+import org.eclipse.xtext.reference.services.ReferenceGrammarGrammarAccess;
public class ReferenceGrammarParseTreeConstructor extends AbstractParseTreeConstructor {
@@ -48,7 +50,7 @@ protected class Spielplatz_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.0/@alternatives");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prSpielplatz().eleGroup();
}
protected Solution createSolution() {
@@ -76,7 +78,7 @@ protected class Spielplatz_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.0/@alternatives/@abstractTokens.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prSpielplatz().ele0Group();
}
protected Solution createSolution() {
@@ -104,7 +106,7 @@ protected class Spielplatz_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prSpielplatz().ele00Group();
}
protected Solution createSolution() {
@@ -132,7 +134,7 @@ protected class Spielplatz_0_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prSpielplatz().ele000Group();
}
protected Solution createSolution() {
@@ -160,7 +162,7 @@ protected class Spielplatz_0_0_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prSpielplatz().ele0000Group();
}
protected Solution createSolution() {
@@ -188,7 +190,7 @@ protected class Spielplatz_0_0_0_0_0_Keyword_spielplatz extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prSpielplatz().ele00000KeywordSpielplatz();
}
}
@@ -200,7 +202,7 @@ protected class Spielplatz_0_0_0_0_1_Assignment_groesse extends AssignmentToken
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prSpielplatz().ele00001AssignmentGroesse();
}
protected Solution createSolution() {
@@ -208,7 +210,7 @@ protected class Spielplatz_0_0_0_0_1_Assignment_groesse extends AssignmentToken
IInstanceDescription obj = current.cloneAndConsume("groesse");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = ReferenceGrammarGrammarAccess.INSTANCE.prSpielplatz().ele000010LexerRuleCallINT();
return new Solution(obj);
}
return null;
@@ -224,7 +226,7 @@ protected class Spielplatz_0_0_0_1_Assignment_beschreibung extends AssignmentTok
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prSpielplatz().ele0001AssignmentBeschreibung();
}
protected Solution createSolution() {
@@ -232,7 +234,7 @@ protected class Spielplatz_0_0_0_1_Assignment_beschreibung extends AssignmentTok
IInstanceDescription obj = current.cloneAndConsume("beschreibung");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = ReferenceGrammarGrammarAccess.INSTANCE.prSpielplatz().ele00010LexerRuleCallSTRING();
return new Solution(obj);
}
return null;
@@ -248,7 +250,7 @@ protected class Spielplatz_0_0_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prSpielplatz().ele001Keyword();
}
}
@@ -261,7 +263,7 @@ protected class Spielplatz_0_1_Alternatives extends AlternativesToken {
}
public Alternatives getGrammarElement() {
- return (Alternatives)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prSpielplatz().ele01Alternatives();
}
protected Solution createSolution() {
@@ -282,7 +284,7 @@ protected class Spielplatz_0_1_0_Alternatives extends AlternativesToken {
}
public Alternatives getGrammarElement() {
- return (Alternatives)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.1/@groups.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prSpielplatz().ele010Alternatives();
}
protected Solution createSolution() {
@@ -303,7 +305,7 @@ protected class Spielplatz_0_1_0_0_Alternatives extends AlternativesToken {
}
public Alternatives getGrammarElement() {
- return (Alternatives)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.1/@groups.0/@groups.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prSpielplatz().ele0100Alternatives();
}
protected Solution createSolution() {
@@ -324,7 +326,7 @@ protected class Spielplatz_0_1_0_0_0_Alternatives extends AlternativesToken {
}
public Alternatives getGrammarElement() {
- return (Alternatives)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.1/@groups.0/@groups.0/@groups.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prSpielplatz().ele01000Alternatives();
}
protected Solution createSolution() {
@@ -345,7 +347,7 @@ protected class Spielplatz_0_1_0_0_0_0_Assignment_kinder extends AssignmentToken
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.1/@groups.0/@groups.0/@groups.0/@groups.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prSpielplatz().ele010000AssignmentKinder();
}
protected Solution createSolution() {
@@ -373,7 +375,7 @@ protected class Spielplatz_0_1_0_0_0_1_Assignment_erzieher extends AssignmentTok
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.1/@groups.0/@groups.0/@groups.0/@groups.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prSpielplatz().ele010001AssignmentErzieher();
}
protected Solution createSolution() {
@@ -402,7 +404,7 @@ protected class Spielplatz_0_1_0_0_1_Assignment_spielzeuge extends AssignmentTok
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.1/@groups.0/@groups.0/@groups.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prSpielplatz().ele01001AssignmentSpielzeuge();
}
protected Solution createSolution() {
@@ -431,7 +433,7 @@ protected class Spielplatz_0_1_0_1_Assignment_familie extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.1/@groups.0/@groups.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prSpielplatz().ele0101AssignmentFamilie();
}
protected Solution createSolution() {
@@ -460,7 +462,7 @@ protected class Spielplatz_0_1_1_Assignment_types extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.1/@groups.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prSpielplatz().ele011AssignmentTypes();
}
protected Solution createSolution() {
@@ -490,7 +492,7 @@ protected class Spielplatz_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.0/@alternatives/@abstractTokens.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prSpielplatz().ele1Keyword();
}
}
@@ -512,7 +514,7 @@ protected class Person_Alternatives extends AlternativesToken {
}
public Alternatives getGrammarElement() {
- return (Alternatives)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.1/@alternatives");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prPerson().eleAlternatives();
}
protected Solution createSolution() {
@@ -533,7 +535,7 @@ protected class Person_0_RuleCall_Kind extends RuleCallToken {
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.1/@alternatives/@groups.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prPerson().ele0ParserRuleCallKind();
}
protected Solution createSolution() {
@@ -551,7 +553,7 @@ protected class Person_1_RuleCall_Erwachsener extends RuleCallToken {
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.1/@alternatives/@groups.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prPerson().ele1ParserRuleCallErwachsener();
}
protected Solution createSolution() {
@@ -579,7 +581,7 @@ protected class Kind_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.2/@alternatives");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prKind().eleGroup();
}
protected Solution createSolution() {
@@ -607,7 +609,7 @@ protected class Kind_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.2/@alternatives/@abstractTokens.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prKind().ele0Group();
}
protected Solution createSolution() {
@@ -635,7 +637,7 @@ protected class Kind_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.2/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prKind().ele00Group();
}
protected Solution createSolution() {
@@ -663,7 +665,7 @@ protected class Kind_0_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.2/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prKind().ele000Group();
}
protected Solution createSolution() {
@@ -691,7 +693,7 @@ protected class Kind_0_0_0_0_Keyword_kind extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.2/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prKind().ele0000KeywordKind();
}
}
@@ -703,7 +705,7 @@ protected class Kind_0_0_0_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.2/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prKind().ele0001Keyword();
}
}
@@ -716,7 +718,7 @@ protected class Kind_0_0_1_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.2/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prKind().ele001AssignmentName();
}
protected Solution createSolution() {
@@ -724,7 +726,7 @@ protected class Kind_0_0_1_Assignment_name extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("name");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.2/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = ReferenceGrammarGrammarAccess.INSTANCE.prKind().ele0010LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -740,7 +742,7 @@ protected class Kind_0_1_Assignment_age extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.2/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prKind().ele01AssignmentAge();
}
protected Solution createSolution() {
@@ -748,7 +750,7 @@ protected class Kind_0_1_Assignment_age extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("age");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.2/@alternatives/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = ReferenceGrammarGrammarAccess.INSTANCE.prKind().ele010LexerRuleCallINT();
return new Solution(obj);
}
return null;
@@ -764,7 +766,7 @@ protected class Kind_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.2/@alternatives/@abstractTokens.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prKind().ele1Keyword();
}
}
@@ -786,7 +788,7 @@ protected class Erwachsener_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.3/@alternatives");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prErwachsener().eleGroup();
}
protected Solution createSolution() {
@@ -814,7 +816,7 @@ protected class Erwachsener_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.3/@alternatives/@abstractTokens.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prErwachsener().ele0Group();
}
protected Solution createSolution() {
@@ -842,7 +844,7 @@ protected class Erwachsener_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prErwachsener().ele00Group();
}
protected Solution createSolution() {
@@ -870,7 +872,7 @@ protected class Erwachsener_0_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prErwachsener().ele000Group();
}
protected Solution createSolution() {
@@ -898,7 +900,7 @@ protected class Erwachsener_0_0_0_0_Keyword_erwachsener extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prErwachsener().ele0000KeywordErwachsener();
}
}
@@ -910,7 +912,7 @@ protected class Erwachsener_0_0_0_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prErwachsener().ele0001Keyword();
}
}
@@ -923,7 +925,7 @@ protected class Erwachsener_0_0_1_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prErwachsener().ele001AssignmentName();
}
protected Solution createSolution() {
@@ -931,7 +933,7 @@ protected class Erwachsener_0_0_1_Assignment_name extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("name");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = ReferenceGrammarGrammarAccess.INSTANCE.prErwachsener().ele0010LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -947,7 +949,7 @@ protected class Erwachsener_0_1_Assignment_age extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prErwachsener().ele01AssignmentAge();
}
protected Solution createSolution() {
@@ -955,7 +957,7 @@ protected class Erwachsener_0_1_Assignment_age extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("age");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = ReferenceGrammarGrammarAccess.INSTANCE.prErwachsener().ele010LexerRuleCallINT();
return new Solution(obj);
}
return null;
@@ -971,7 +973,7 @@ protected class Erwachsener_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.3/@alternatives/@abstractTokens.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prErwachsener().ele1Keyword();
}
}
@@ -993,7 +995,7 @@ protected class Spielzeug_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.4/@alternatives");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prSpielzeug().eleGroup();
}
protected Solution createSolution() {
@@ -1021,7 +1023,7 @@ protected class Spielzeug_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.4/@alternatives/@abstractTokens.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prSpielzeug().ele0Group();
}
protected Solution createSolution() {
@@ -1049,7 +1051,7 @@ protected class Spielzeug_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prSpielzeug().ele00Group();
}
protected Solution createSolution() {
@@ -1077,7 +1079,7 @@ protected class Spielzeug_0_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prSpielzeug().ele000Group();
}
protected Solution createSolution() {
@@ -1105,7 +1107,7 @@ protected class Spielzeug_0_0_0_0_Keyword_spielzeug extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prSpielzeug().ele0000KeywordSpielzeug();
}
}
@@ -1117,7 +1119,7 @@ protected class Spielzeug_0_0_0_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prSpielzeug().ele0001Keyword();
}
}
@@ -1130,7 +1132,7 @@ protected class Spielzeug_0_0_1_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prSpielzeug().ele001AssignmentName();
}
protected Solution createSolution() {
@@ -1138,7 +1140,7 @@ protected class Spielzeug_0_0_1_Assignment_name extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("name");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = ReferenceGrammarGrammarAccess.INSTANCE.prSpielzeug().ele0010LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -1154,7 +1156,7 @@ protected class Spielzeug_0_1_Assignment_farbe extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prSpielzeug().ele01AssignmentFarbe();
}
protected Solution createSolution() {
@@ -1183,7 +1185,7 @@ protected class Spielzeug_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.4/@alternatives/@abstractTokens.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prSpielzeug().ele1Keyword();
}
}
@@ -1192,12 +1194,12 @@ protected class Spielzeug_1_Keyword extends KeywordToken {
/************ begin Rule Familie ****************
*
- * Familie : 'familie' '(' name = ( 'keyword' | STRING | ID ) mutter = [ ReferenceGrammar :: Erwachsener ] vater = [ ReferenceGrammar :: Erwachsener ] kinder += [ ReferenceGrammar :: Kind ] ( ',' kinder += [ ReferenceGrammar :: Kind ] ) * ')' ;
+ * (error)
*
**/
-// 'familie' '(' name = ( 'keyword' | STRING | ID ) mutter = [ ReferenceGrammar :: Erwachsener ] vater = [ ReferenceGrammar :: Erwachsener ] kinder += [ ReferenceGrammar :: Kind ] ( ',' kinder += [ ReferenceGrammar :: Kind ] ) * ')'
+// (error)
protected class Familie_Group extends GroupToken {
public Familie_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -1205,7 +1207,7 @@ protected class Familie_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.5/@alternatives");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prFamilie().eleGroup();
}
protected Solution createSolution() {
@@ -1225,7 +1227,7 @@ protected class Familie_Group extends GroupToken {
}
}
-// 'familie' '(' name = ( 'keyword' | STRING | ID ) mutter = [ ReferenceGrammar :: Erwachsener ] vater = [ ReferenceGrammar :: Erwachsener ] kinder += [ ReferenceGrammar :: Kind ] ( ',' kinder += [ ReferenceGrammar :: Kind ] ) *
+// (error)
protected class Familie_0_Group extends GroupToken {
public Familie_0_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -1233,7 +1235,7 @@ protected class Familie_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.5/@alternatives/@abstractTokens.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prFamilie().ele0Group();
}
protected Solution createSolution() {
@@ -1253,7 +1255,7 @@ protected class Familie_0_Group extends GroupToken {
}
}
-// 'familie' '(' name = ( 'keyword' | STRING | ID ) mutter = [ ReferenceGrammar :: Erwachsener ] vater = [ ReferenceGrammar :: Erwachsener ] kinder += [ ReferenceGrammar :: Kind ]
+// (error)
protected class Familie_0_0_Group extends GroupToken {
public Familie_0_0_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -1261,7 +1263,7 @@ protected class Familie_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prFamilie().ele00Group();
}
protected Solution createSolution() {
@@ -1281,7 +1283,7 @@ protected class Familie_0_0_Group extends GroupToken {
}
}
-// 'familie' '(' name = ( 'keyword' | STRING | ID ) mutter = [ ReferenceGrammar :: Erwachsener ] vater = [ ReferenceGrammar :: Erwachsener ]
+// (error)
protected class Familie_0_0_0_Group extends GroupToken {
public Familie_0_0_0_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -1289,7 +1291,7 @@ protected class Familie_0_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prFamilie().ele000Group();
}
protected Solution createSolution() {
@@ -1309,7 +1311,7 @@ protected class Familie_0_0_0_Group extends GroupToken {
}
}
-// 'familie' '(' name = ( 'keyword' | STRING | ID ) mutter = [ ReferenceGrammar :: Erwachsener ]
+// (error)
protected class Familie_0_0_0_0_Group extends GroupToken {
public Familie_0_0_0_0_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -1317,7 +1319,7 @@ protected class Familie_0_0_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prFamilie().ele0000Group();
}
protected Solution createSolution() {
@@ -1345,7 +1347,7 @@ protected class Familie_0_0_0_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prFamilie().ele00000Group();
}
protected Solution createSolution() {
@@ -1373,7 +1375,7 @@ protected class Familie_0_0_0_0_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prFamilie().ele000000Group();
}
protected Solution createSolution() {
@@ -1401,7 +1403,7 @@ protected class Familie_0_0_0_0_0_0_0_Keyword_familie extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prFamilie().ele0000000KeywordFamilie();
}
}
@@ -1413,7 +1415,7 @@ protected class Familie_0_0_0_0_0_0_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prFamilie().ele0000001Keyword();
}
}
@@ -1426,7 +1428,7 @@ protected class Familie_0_0_0_0_0_1_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prFamilie().ele000001AssignmentName();
}
protected Solution createSolution() {
@@ -1434,17 +1436,17 @@ protected class Familie_0_0_0_0_0_1_Assignment_name extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("name");
if("keyword".equals(value)) { // xtext::Keyword
type = AssignmentType.KW;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal/@groups.0/@groups.0");
+ element = ReferenceGrammarGrammarAccess.INSTANCE.prFamilie().ele000001000KeywordKeyword();
return new Solution(obj);
}
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal/@groups.0/@groups.1");
+ element = ReferenceGrammarGrammarAccess.INSTANCE.prFamilie().ele000001001LexerRuleCallSTRING();
return new Solution(obj);
}
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal/@groups.1");
+ element = ReferenceGrammarGrammarAccess.INSTANCE.prFamilie().ele00000101LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -1452,7 +1454,7 @@ protected class Familie_0_0_0_0_0_1_Assignment_name extends AssignmentToken {
}
-// mutter = [ ReferenceGrammar :: Erwachsener ]
+// (error)
protected class Familie_0_0_0_0_1_Assignment_mutter extends AssignmentToken {
public Familie_0_0_0_0_1_Assignment_mutter(IInstanceDescription curr, AbstractToken pred) {
@@ -1460,7 +1462,7 @@ protected class Familie_0_0_0_0_1_Assignment_mutter extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prFamilie().ele00001AssignmentMutter();
}
protected Solution createSolution() {
@@ -1470,7 +1472,7 @@ protected class Familie_0_0_0_0_1_Assignment_mutter extends AssignmentToken {
IInstanceDescription param = getDescr((EObject)value);
if(param.isInstanceOf("Erwachsener")) {
type = AssignmentType.CR;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = ReferenceGrammarGrammarAccess.INSTANCE.prFamilie().ele000010CrossReferenceErwachsener();
return new Solution(obj);
}
}
@@ -1479,7 +1481,7 @@ protected class Familie_0_0_0_0_1_Assignment_mutter extends AssignmentToken {
}
-// vater = [ ReferenceGrammar :: Erwachsener ]
+// (error)
protected class Familie_0_0_0_1_Assignment_vater extends AssignmentToken {
public Familie_0_0_0_1_Assignment_vater(IInstanceDescription curr, AbstractToken pred) {
@@ -1487,7 +1489,7 @@ protected class Familie_0_0_0_1_Assignment_vater extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prFamilie().ele0001AssignmentVater();
}
protected Solution createSolution() {
@@ -1497,7 +1499,7 @@ protected class Familie_0_0_0_1_Assignment_vater extends AssignmentToken {
IInstanceDescription param = getDescr((EObject)value);
if(param.isInstanceOf("Erwachsener")) {
type = AssignmentType.CR;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = ReferenceGrammarGrammarAccess.INSTANCE.prFamilie().ele00010CrossReferenceErwachsener();
return new Solution(obj);
}
}
@@ -1506,7 +1508,7 @@ protected class Familie_0_0_0_1_Assignment_vater extends AssignmentToken {
}
-// kinder += [ ReferenceGrammar :: Kind ]
+// (error)
protected class Familie_0_0_1_Assignment_kinder extends AssignmentToken {
public Familie_0_0_1_Assignment_kinder(IInstanceDescription curr, AbstractToken pred) {
@@ -1514,7 +1516,7 @@ protected class Familie_0_0_1_Assignment_kinder extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prFamilie().ele001AssignmentKinder();
}
protected Solution createSolution() {
@@ -1524,7 +1526,7 @@ protected class Familie_0_0_1_Assignment_kinder extends AssignmentToken {
IInstanceDescription param = getDescr((EObject)value);
if(param.isInstanceOf("Kind")) {
type = AssignmentType.CR;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = ReferenceGrammarGrammarAccess.INSTANCE.prFamilie().ele0010CrossReferenceKind();
return new Solution(obj);
}
}
@@ -1533,7 +1535,7 @@ protected class Familie_0_0_1_Assignment_kinder extends AssignmentToken {
}
-// ( ',' kinder += [ ReferenceGrammar :: Kind ] ) *
+// (error)
protected class Familie_0_1_Group extends GroupToken {
public Familie_0_1_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -1541,7 +1543,7 @@ protected class Familie_0_1_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prFamilie().ele01Group();
}
protected Solution createSolution() {
@@ -1569,11 +1571,11 @@ protected class Familie_0_1_0_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prFamilie().ele010Keyword();
}
}
-// kinder += [ ReferenceGrammar :: Kind ]
+// (error)
protected class Familie_0_1_1_Assignment_kinder extends AssignmentToken {
public Familie_0_1_1_Assignment_kinder(IInstanceDescription curr, AbstractToken pred) {
@@ -1581,7 +1583,7 @@ protected class Familie_0_1_1_Assignment_kinder extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prFamilie().ele011AssignmentKinder();
}
protected Solution createSolution() {
@@ -1591,7 +1593,7 @@ protected class Familie_0_1_1_Assignment_kinder extends AssignmentToken {
IInstanceDescription param = getDescr((EObject)value);
if(param.isInstanceOf("Kind")) {
type = AssignmentType.CR;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1/@terminal");
+ element = ReferenceGrammarGrammarAccess.INSTANCE.prFamilie().ele0110CrossReferenceKind();
return new Solution(obj);
}
}
@@ -1609,7 +1611,7 @@ protected class Familie_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.5/@alternatives/@abstractTokens.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prFamilie().ele1Keyword();
}
}
@@ -1631,7 +1633,7 @@ protected class Farbe_Assignment_wert extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.6/@alternatives");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prFarbe().eleAssignmentWert();
}
protected Solution createSolution() {
@@ -1639,22 +1641,22 @@ protected class Farbe_Assignment_wert extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("wert");
if("ROT".equals(value)) { // xtext::Keyword
type = AssignmentType.KW;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.6/@alternatives/@terminal/@groups.0/@groups.0/@groups.0");
+ element = ReferenceGrammarGrammarAccess.INSTANCE.prFarbe().ele0000KeywordROT();
return new Solution(obj);
}
if("BLAU".equals(value)) { // xtext::Keyword
type = AssignmentType.KW;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.6/@alternatives/@terminal/@groups.0/@groups.0/@groups.1");
+ element = ReferenceGrammarGrammarAccess.INSTANCE.prFarbe().ele0001KeywordBLAU();
return new Solution(obj);
}
if("GELB".equals(value)) { // xtext::Keyword
type = AssignmentType.KW;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.6/@alternatives/@terminal/@groups.0/@groups.1");
+ element = ReferenceGrammarGrammarAccess.INSTANCE.prFarbe().ele001KeywordGELB();
return new Solution(obj);
}
if("GRÜN".equals(value)) { // xtext::Keyword
type = AssignmentType.KW;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.6/@alternatives/@terminal/@groups.1");
+ element = ReferenceGrammarGrammarAccess.INSTANCE.prFarbe().ele01KeywordGRÜN();
return new Solution(obj);
}
return null;
@@ -1665,7 +1667,7 @@ protected class Farbe_Assignment_wert extends AssignmentToken {
/************ begin Rule CustomTypeParserRule ****************
*
- * (error)
+ * CustomTypeParserRule returns ReferenceModel :: CustomType : 'type' name = ID ;
*
**/
@@ -1678,7 +1680,7 @@ protected class CustomTypeParserRule_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.7/@alternatives");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prCustomTypeParserRule().eleGroup();
}
protected Solution createSolution() {
@@ -1706,7 +1708,7 @@ protected class CustomTypeParserRule_0_Keyword_type extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.7/@alternatives/@abstractTokens.0");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prCustomTypeParserRule().ele0KeywordType();
}
}
@@ -1718,7 +1720,7 @@ protected class CustomTypeParserRule_1_Assignment_name extends AssignmentToken
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.7/@alternatives/@abstractTokens.1");
+ return ReferenceGrammarGrammarAccess.INSTANCE.prCustomTypeParserRule().ele1AssignmentName();
}
protected Solution createSolution() {
@@ -1726,7 +1728,7 @@ protected class CustomTypeParserRule_1_Assignment_name extends AssignmentToken
IInstanceDescription obj = current.cloneAndConsume("name");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.7/@alternatives/@abstractTokens.1/@terminal");
+ element = ReferenceGrammarGrammarAccess.INSTANCE.prCustomTypeParserRule().ele10LexerRuleCallID();
return new Solution(obj);
}
return null;
diff --git a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/services/ReferenceGrammarGrammarAccess.java b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/services/ReferenceGrammarGrammarAccess.java
index ba68ab9..dcc2bf1 100644
--- a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/services/ReferenceGrammarGrammarAccess.java
+++ b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/services/ReferenceGrammarGrammarAccess.java
@@ -4,86 +4,749 @@ Generated with Xtext
package org.eclipse.xtext.reference.services;
-import org.eclipse.emf.common.util.URI;
import org.eclipse.xtext.*;
import org.eclipse.xtext.parser.BaseEPackageAccess;
+import org.eclipse.xtext.builtin.XtextBuiltinGrammarAccess;
public class ReferenceGrammarGrammarAccess extends BaseEPackageAccess implements IGrammarAccess {
-
- private static final String REFERENCEGRAMMAR_GRAMMAR_CP_URI = "classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi";
- private static Grammar GRAMMAR = null;
- @SuppressWarnings("unused")
- public synchronized Grammar getGrammar() {
- if (GRAMMAR==null) {
- // assert the XtextPackage implementation is loaded
- XtextPackage xtextPackage = XtextPackage.eINSTANCE;
- GRAMMAR = (Grammar) loadGrammarFile(ReferenceGrammarGrammarAccess.class.getClassLoader(),REFERENCEGRAMMAR_GRAMMAR_CP_URI);
+ public class SpielplatzElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Group c00Group;
+ private Group c000Group;
+ private Group c0000Group;
+ private Keyword c00000KeywordSpielplatz;
+ private Assignment c00001AssignmentGroesse;
+ private RuleCall c000010LexerRuleCallINT;
+ private Assignment c0001AssignmentBeschreibung;
+ private RuleCall c00010LexerRuleCallSTRING;
+ private Keyword c001Keyword;
+ private Alternatives c01Alternatives;
+ private Alternatives c010Alternatives;
+ private Alternatives c0100Alternatives;
+ private Alternatives c01000Alternatives;
+ private Assignment c010000AssignmentKinder;
+ private RuleCall c0100000ParserRuleCallKind;
+ private Assignment c010001AssignmentErzieher;
+ private RuleCall c0100010ParserRuleCallErwachsener;
+ private Assignment c01001AssignmentSpielzeuge;
+ private RuleCall c010010ParserRuleCallSpielzeug;
+ private Assignment c0101AssignmentFamilie;
+ private RuleCall c01010ParserRuleCallFamilie;
+ private Assignment c011AssignmentTypes;
+ private RuleCall c0110ParserRuleCallCustomTypeParserRule;
+ private Keyword c1Keyword;
+
+ // Spielplatz : ( 'spielplatz' groesse = INT ( beschreibung = STRING ) ? '{' ( kinder += Kind | erzieher += Erwachsener | spielzeuge += Spielzeug | familie += Familie | types += CustomTypeParserRule ) * '}' ) ? ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(2));
+ }
+
+ // ( 'spielplatz' groesse = INT ( beschreibung = STRING ) ? '{' ( kinder += Kind | erzieher += Erwachsener | spielzeuge += Spielzeug | familie += Familie | types += CustomTypeParserRule ) * '}' ) ?
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // 'spielplatz' groesse = INT ( beschreibung = STRING ) ? '{' ( kinder += Kind | erzieher += Erwachsener | spielzeuge += Spielzeug | familie += Familie | types += CustomTypeParserRule ) *
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // 'spielplatz' groesse = INT ( beschreibung = STRING ) ? '{'
+ public Group ele00Group() {
+ return (c00Group != null) ? c00Group : (c00Group = (Group)ele0Group().eContents().get(0));
+ }
+
+ // 'spielplatz' groesse = INT ( beschreibung = STRING ) ?
+ public Group ele000Group() {
+ return (c000Group != null) ? c000Group : (c000Group = (Group)ele00Group().eContents().get(0));
+ }
+
+ // 'spielplatz' groesse = INT
+ public Group ele0000Group() {
+ return (c0000Group != null) ? c0000Group : (c0000Group = (Group)ele000Group().eContents().get(0));
+ }
+
+ // 'spielplatz'
+ public Keyword ele00000KeywordSpielplatz() {
+ return (c00000KeywordSpielplatz != null) ? c00000KeywordSpielplatz : (c00000KeywordSpielplatz = (Keyword)ele0000Group().eContents().get(0));
+ }
+
+ // groesse = INT
+ public Assignment ele00001AssignmentGroesse() {
+ return (c00001AssignmentGroesse != null) ? c00001AssignmentGroesse : (c00001AssignmentGroesse = (Assignment)ele0000Group().eContents().get(1));
+ }
+
+ // INT
+ public RuleCall ele000010LexerRuleCallINT() {
+ return (c000010LexerRuleCallINT != null) ? c000010LexerRuleCallINT : (c000010LexerRuleCallINT = (RuleCall)ele00001AssignmentGroesse().eContents().get(0));
+ }
+
+ // ( beschreibung = STRING ) ?
+ public Assignment ele0001AssignmentBeschreibung() {
+ return (c0001AssignmentBeschreibung != null) ? c0001AssignmentBeschreibung : (c0001AssignmentBeschreibung = (Assignment)ele000Group().eContents().get(1));
+ }
+
+ // STRING
+ public RuleCall ele00010LexerRuleCallSTRING() {
+ return (c00010LexerRuleCallSTRING != null) ? c00010LexerRuleCallSTRING : (c00010LexerRuleCallSTRING = (RuleCall)ele0001AssignmentBeschreibung().eContents().get(0));
+ }
+
+ // '{'
+ public Keyword ele001Keyword() {
+ return (c001Keyword != null) ? c001Keyword : (c001Keyword = (Keyword)ele00Group().eContents().get(1));
+ }
+
+ // ( kinder += Kind | erzieher += Erwachsener | spielzeuge += Spielzeug | familie += Familie | types += CustomTypeParserRule ) *
+ public Alternatives ele01Alternatives() {
+ return (c01Alternatives != null) ? c01Alternatives : (c01Alternatives = (Alternatives)ele0Group().eContents().get(1));
+ }
+
+ // kinder += Kind | erzieher += Erwachsener | spielzeuge += Spielzeug | familie += Familie
+ public Alternatives ele010Alternatives() {
+ return (c010Alternatives != null) ? c010Alternatives : (c010Alternatives = (Alternatives)ele01Alternatives().eContents().get(0));
+ }
+
+ // kinder += Kind | erzieher += Erwachsener | spielzeuge += Spielzeug
+ public Alternatives ele0100Alternatives() {
+ return (c0100Alternatives != null) ? c0100Alternatives : (c0100Alternatives = (Alternatives)ele010Alternatives().eContents().get(0));
+ }
+
+ // kinder += Kind | erzieher += Erwachsener
+ public Alternatives ele01000Alternatives() {
+ return (c01000Alternatives != null) ? c01000Alternatives : (c01000Alternatives = (Alternatives)ele0100Alternatives().eContents().get(0));
+ }
+
+ // kinder += Kind
+ public Assignment ele010000AssignmentKinder() {
+ return (c010000AssignmentKinder != null) ? c010000AssignmentKinder : (c010000AssignmentKinder = (Assignment)ele01000Alternatives().eContents().get(0));
+ }
+
+ // Kind
+ public RuleCall ele0100000ParserRuleCallKind() {
+ return (c0100000ParserRuleCallKind != null) ? c0100000ParserRuleCallKind : (c0100000ParserRuleCallKind = (RuleCall)ele010000AssignmentKinder().eContents().get(0));
+ }
+
+ // erzieher += Erwachsener
+ public Assignment ele010001AssignmentErzieher() {
+ return (c010001AssignmentErzieher != null) ? c010001AssignmentErzieher : (c010001AssignmentErzieher = (Assignment)ele01000Alternatives().eContents().get(1));
+ }
+
+ // Erwachsener
+ public RuleCall ele0100010ParserRuleCallErwachsener() {
+ return (c0100010ParserRuleCallErwachsener != null) ? c0100010ParserRuleCallErwachsener : (c0100010ParserRuleCallErwachsener = (RuleCall)ele010001AssignmentErzieher().eContents().get(0));
+ }
+
+ // spielzeuge += Spielzeug
+ public Assignment ele01001AssignmentSpielzeuge() {
+ return (c01001AssignmentSpielzeuge != null) ? c01001AssignmentSpielzeuge : (c01001AssignmentSpielzeuge = (Assignment)ele0100Alternatives().eContents().get(1));
+ }
+
+ // Spielzeug
+ public RuleCall ele010010ParserRuleCallSpielzeug() {
+ return (c010010ParserRuleCallSpielzeug != null) ? c010010ParserRuleCallSpielzeug : (c010010ParserRuleCallSpielzeug = (RuleCall)ele01001AssignmentSpielzeuge().eContents().get(0));
+ }
+
+ // familie += Familie
+ public Assignment ele0101AssignmentFamilie() {
+ return (c0101AssignmentFamilie != null) ? c0101AssignmentFamilie : (c0101AssignmentFamilie = (Assignment)ele010Alternatives().eContents().get(1));
+ }
+
+ // Familie
+ public RuleCall ele01010ParserRuleCallFamilie() {
+ return (c01010ParserRuleCallFamilie != null) ? c01010ParserRuleCallFamilie : (c01010ParserRuleCallFamilie = (RuleCall)ele0101AssignmentFamilie().eContents().get(0));
+ }
+
+ // types += CustomTypeParserRule
+ public Assignment ele011AssignmentTypes() {
+ return (c011AssignmentTypes != null) ? c011AssignmentTypes : (c011AssignmentTypes = (Assignment)ele01Alternatives().eContents().get(1));
+ }
+
+ // CustomTypeParserRule
+ public RuleCall ele0110ParserRuleCallCustomTypeParserRule() {
+ return (c0110ParserRuleCallCustomTypeParserRule != null) ? c0110ParserRuleCallCustomTypeParserRule : (c0110ParserRuleCallCustomTypeParserRule = (RuleCall)ele011AssignmentTypes().eContents().get(0));
+ }
+
+ // '}'
+ public Keyword ele1Keyword() {
+ return (c1Keyword != null) ? c1Keyword : (c1Keyword = (Keyword)eleGroup().eContents().get(1));
}
- return GRAMMAR;
- }
-
-
- public ParserRule pr_Spielplatz() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.0"),true);
}
- public ParserRule pr_Person() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.1"),true);
+ public class PersonElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Alternatives cAlternatives;
+ private RuleCall c0ParserRuleCallKind;
+ private RuleCall c1ParserRuleCallErwachsener;
+
+ // Person : Kind | Erwachsener ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(3));
+ }
+
+ // Kind | Erwachsener
+ public Alternatives eleAlternatives() {
+ return (cAlternatives != null) ? cAlternatives : (cAlternatives = (Alternatives)getRule().eContents().get(0));
+ }
+
+ // Kind
+ public RuleCall ele0ParserRuleCallKind() {
+ return (c0ParserRuleCallKind != null) ? c0ParserRuleCallKind : (c0ParserRuleCallKind = (RuleCall)eleAlternatives().eContents().get(0));
+ }
+
+ // Erwachsener
+ public RuleCall ele1ParserRuleCallErwachsener() {
+ return (c1ParserRuleCallErwachsener != null) ? c1ParserRuleCallErwachsener : (c1ParserRuleCallErwachsener = (RuleCall)eleAlternatives().eContents().get(1));
+ }
}
- public ParserRule pr_Kind() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.2"),true);
+ public class KindElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Group c00Group;
+ private Group c000Group;
+ private Keyword c0000KeywordKind;
+ private Keyword c0001Keyword;
+ private Assignment c001AssignmentName;
+ private RuleCall c0010LexerRuleCallID;
+ private Assignment c01AssignmentAge;
+ private RuleCall c010LexerRuleCallINT;
+ private Keyword c1Keyword;
+
+ // Kind : 'kind' '(' name = ID age = INT ')' ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(4));
+ }
+
+ // 'kind' '(' name = ID age = INT ')'
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // 'kind' '(' name = ID age = INT
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // 'kind' '(' name = ID
+ public Group ele00Group() {
+ return (c00Group != null) ? c00Group : (c00Group = (Group)ele0Group().eContents().get(0));
+ }
+
+ // 'kind' '('
+ public Group ele000Group() {
+ return (c000Group != null) ? c000Group : (c000Group = (Group)ele00Group().eContents().get(0));
+ }
+
+ // 'kind'
+ public Keyword ele0000KeywordKind() {
+ return (c0000KeywordKind != null) ? c0000KeywordKind : (c0000KeywordKind = (Keyword)ele000Group().eContents().get(0));
+ }
+
+ // '('
+ public Keyword ele0001Keyword() {
+ return (c0001Keyword != null) ? c0001Keyword : (c0001Keyword = (Keyword)ele000Group().eContents().get(1));
+ }
+
+ // name = ID
+ public Assignment ele001AssignmentName() {
+ return (c001AssignmentName != null) ? c001AssignmentName : (c001AssignmentName = (Assignment)ele00Group().eContents().get(1));
+ }
+
+ // ID
+ public RuleCall ele0010LexerRuleCallID() {
+ return (c0010LexerRuleCallID != null) ? c0010LexerRuleCallID : (c0010LexerRuleCallID = (RuleCall)ele001AssignmentName().eContents().get(0));
+ }
+
+ // age = INT
+ public Assignment ele01AssignmentAge() {
+ return (c01AssignmentAge != null) ? c01AssignmentAge : (c01AssignmentAge = (Assignment)ele0Group().eContents().get(1));
+ }
+
+ // INT
+ public RuleCall ele010LexerRuleCallINT() {
+ return (c010LexerRuleCallINT != null) ? c010LexerRuleCallINT : (c010LexerRuleCallINT = (RuleCall)ele01AssignmentAge().eContents().get(0));
+ }
+
+ // ')'
+ public Keyword ele1Keyword() {
+ return (c1Keyword != null) ? c1Keyword : (c1Keyword = (Keyword)eleGroup().eContents().get(1));
+ }
}
- public ParserRule pr_Erwachsener() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.3"),true);
+ public class ErwachsenerElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Group c00Group;
+ private Group c000Group;
+ private Keyword c0000KeywordErwachsener;
+ private Keyword c0001Keyword;
+ private Assignment c001AssignmentName;
+ private RuleCall c0010LexerRuleCallID;
+ private Assignment c01AssignmentAge;
+ private RuleCall c010LexerRuleCallINT;
+ private Keyword c1Keyword;
+
+ // Erwachsener : 'erwachsener' '(' name = ID age = INT ')' ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(5));
+ }
+
+ // 'erwachsener' '(' name = ID age = INT ')'
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // 'erwachsener' '(' name = ID age = INT
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // 'erwachsener' '(' name = ID
+ public Group ele00Group() {
+ return (c00Group != null) ? c00Group : (c00Group = (Group)ele0Group().eContents().get(0));
+ }
+
+ // 'erwachsener' '('
+ public Group ele000Group() {
+ return (c000Group != null) ? c000Group : (c000Group = (Group)ele00Group().eContents().get(0));
+ }
+
+ // 'erwachsener'
+ public Keyword ele0000KeywordErwachsener() {
+ return (c0000KeywordErwachsener != null) ? c0000KeywordErwachsener : (c0000KeywordErwachsener = (Keyword)ele000Group().eContents().get(0));
+ }
+
+ // '('
+ public Keyword ele0001Keyword() {
+ return (c0001Keyword != null) ? c0001Keyword : (c0001Keyword = (Keyword)ele000Group().eContents().get(1));
+ }
+
+ // name = ID
+ public Assignment ele001AssignmentName() {
+ return (c001AssignmentName != null) ? c001AssignmentName : (c001AssignmentName = (Assignment)ele00Group().eContents().get(1));
+ }
+
+ // ID
+ public RuleCall ele0010LexerRuleCallID() {
+ return (c0010LexerRuleCallID != null) ? c0010LexerRuleCallID : (c0010LexerRuleCallID = (RuleCall)ele001AssignmentName().eContents().get(0));
+ }
+
+ // age = INT
+ public Assignment ele01AssignmentAge() {
+ return (c01AssignmentAge != null) ? c01AssignmentAge : (c01AssignmentAge = (Assignment)ele0Group().eContents().get(1));
+ }
+
+ // INT
+ public RuleCall ele010LexerRuleCallINT() {
+ return (c010LexerRuleCallINT != null) ? c010LexerRuleCallINT : (c010LexerRuleCallINT = (RuleCall)ele01AssignmentAge().eContents().get(0));
+ }
+
+ // ')'
+ public Keyword ele1Keyword() {
+ return (c1Keyword != null) ? c1Keyword : (c1Keyword = (Keyword)eleGroup().eContents().get(1));
+ }
}
- public ParserRule pr_Spielzeug() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.4"),true);
+ public class SpielzeugElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Group c00Group;
+ private Group c000Group;
+ private Keyword c0000KeywordSpielzeug;
+ private Keyword c0001Keyword;
+ private Assignment c001AssignmentName;
+ private RuleCall c0010LexerRuleCallID;
+ private Assignment c01AssignmentFarbe;
+ private RuleCall c010ParserRuleCallFarbe;
+ private Keyword c1Keyword;
+
+ // Spielzeug : 'spielzeug' '(' name = ID farbe = Farbe ')' ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(6));
+ }
+
+ // 'spielzeug' '(' name = ID farbe = Farbe ')'
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // 'spielzeug' '(' name = ID farbe = Farbe
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // 'spielzeug' '(' name = ID
+ public Group ele00Group() {
+ return (c00Group != null) ? c00Group : (c00Group = (Group)ele0Group().eContents().get(0));
+ }
+
+ // 'spielzeug' '('
+ public Group ele000Group() {
+ return (c000Group != null) ? c000Group : (c000Group = (Group)ele00Group().eContents().get(0));
+ }
+
+ // 'spielzeug'
+ public Keyword ele0000KeywordSpielzeug() {
+ return (c0000KeywordSpielzeug != null) ? c0000KeywordSpielzeug : (c0000KeywordSpielzeug = (Keyword)ele000Group().eContents().get(0));
+ }
+
+ // '('
+ public Keyword ele0001Keyword() {
+ return (c0001Keyword != null) ? c0001Keyword : (c0001Keyword = (Keyword)ele000Group().eContents().get(1));
+ }
+
+ // name = ID
+ public Assignment ele001AssignmentName() {
+ return (c001AssignmentName != null) ? c001AssignmentName : (c001AssignmentName = (Assignment)ele00Group().eContents().get(1));
+ }
+
+ // ID
+ public RuleCall ele0010LexerRuleCallID() {
+ return (c0010LexerRuleCallID != null) ? c0010LexerRuleCallID : (c0010LexerRuleCallID = (RuleCall)ele001AssignmentName().eContents().get(0));
+ }
+
+ // farbe = Farbe
+ public Assignment ele01AssignmentFarbe() {
+ return (c01AssignmentFarbe != null) ? c01AssignmentFarbe : (c01AssignmentFarbe = (Assignment)ele0Group().eContents().get(1));
+ }
+
+ // Farbe
+ public RuleCall ele010ParserRuleCallFarbe() {
+ return (c010ParserRuleCallFarbe != null) ? c010ParserRuleCallFarbe : (c010ParserRuleCallFarbe = (RuleCall)ele01AssignmentFarbe().eContents().get(0));
+ }
+
+ // ')'
+ public Keyword ele1Keyword() {
+ return (c1Keyword != null) ? c1Keyword : (c1Keyword = (Keyword)eleGroup().eContents().get(1));
+ }
}
- public ParserRule pr_Familie() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.5"),true);
+ public class FamilieElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Group c00Group;
+ private Group c000Group;
+ private Group c0000Group;
+ private Group c00000Group;
+ private Group c000000Group;
+ private Keyword c0000000KeywordFamilie;
+ private Keyword c0000001Keyword;
+ private Assignment c000001AssignmentName;
+ private Alternatives c0000010Alternatives;
+ private Alternatives c00000100Alternatives;
+ private Keyword c000001000KeywordKeyword;
+ private RuleCall c000001001LexerRuleCallSTRING;
+ private RuleCall c00000101LexerRuleCallID;
+ private Assignment c00001AssignmentMutter;
+ private CrossReference c000010CrossReferenceErwachsener;
+ private Assignment c0001AssignmentVater;
+ private CrossReference c00010CrossReferenceErwachsener;
+ private Assignment c001AssignmentKinder;
+ private CrossReference c0010CrossReferenceKind;
+ private Group c01Group;
+ private Keyword c010Keyword;
+ private Assignment c011AssignmentKinder;
+ private CrossReference c0110CrossReferenceKind;
+ private Keyword c1Keyword;
+
+ // (error)
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(7));
+ }
+
+ // (error)
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // (error)
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // (error)
+ public Group ele00Group() {
+ return (c00Group != null) ? c00Group : (c00Group = (Group)ele0Group().eContents().get(0));
+ }
+
+ // (error)
+ public Group ele000Group() {
+ return (c000Group != null) ? c000Group : (c000Group = (Group)ele00Group().eContents().get(0));
+ }
+
+ // (error)
+ public Group ele0000Group() {
+ return (c0000Group != null) ? c0000Group : (c0000Group = (Group)ele000Group().eContents().get(0));
+ }
+
+ // 'familie' '(' name = ( 'keyword' | STRING | ID )
+ public Group ele00000Group() {
+ return (c00000Group != null) ? c00000Group : (c00000Group = (Group)ele0000Group().eContents().get(0));
+ }
+
+ // 'familie' '('
+ public Group ele000000Group() {
+ return (c000000Group != null) ? c000000Group : (c000000Group = (Group)ele00000Group().eContents().get(0));
+ }
+
+ // 'familie'
+ public Keyword ele0000000KeywordFamilie() {
+ return (c0000000KeywordFamilie != null) ? c0000000KeywordFamilie : (c0000000KeywordFamilie = (Keyword)ele000000Group().eContents().get(0));
+ }
+
+ // '('
+ public Keyword ele0000001Keyword() {
+ return (c0000001Keyword != null) ? c0000001Keyword : (c0000001Keyword = (Keyword)ele000000Group().eContents().get(1));
+ }
+
+ // name = ( 'keyword' | STRING | ID )
+ public Assignment ele000001AssignmentName() {
+ return (c000001AssignmentName != null) ? c000001AssignmentName : (c000001AssignmentName = (Assignment)ele00000Group().eContents().get(1));
+ }
+
+ // 'keyword' | STRING | ID
+ public Alternatives ele0000010Alternatives() {
+ return (c0000010Alternatives != null) ? c0000010Alternatives : (c0000010Alternatives = (Alternatives)ele000001AssignmentName().eContents().get(0));
+ }
+
+ // 'keyword' | STRING
+ public Alternatives ele00000100Alternatives() {
+ return (c00000100Alternatives != null) ? c00000100Alternatives : (c00000100Alternatives = (Alternatives)ele0000010Alternatives().eContents().get(0));
+ }
+
+ // 'keyword'
+ public Keyword ele000001000KeywordKeyword() {
+ return (c000001000KeywordKeyword != null) ? c000001000KeywordKeyword : (c000001000KeywordKeyword = (Keyword)ele00000100Alternatives().eContents().get(0));
+ }
+
+ // STRING
+ public RuleCall ele000001001LexerRuleCallSTRING() {
+ return (c000001001LexerRuleCallSTRING != null) ? c000001001LexerRuleCallSTRING : (c000001001LexerRuleCallSTRING = (RuleCall)ele00000100Alternatives().eContents().get(1));
+ }
+
+ // ID
+ public RuleCall ele00000101LexerRuleCallID() {
+ return (c00000101LexerRuleCallID != null) ? c00000101LexerRuleCallID : (c00000101LexerRuleCallID = (RuleCall)ele0000010Alternatives().eContents().get(1));
+ }
+
+ // (error)
+ public Assignment ele00001AssignmentMutter() {
+ return (c00001AssignmentMutter != null) ? c00001AssignmentMutter : (c00001AssignmentMutter = (Assignment)ele0000Group().eContents().get(1));
+ }
+
+ // (error)
+ public CrossReference ele000010CrossReferenceErwachsener() {
+ return (c000010CrossReferenceErwachsener != null) ? c000010CrossReferenceErwachsener : (c000010CrossReferenceErwachsener = (CrossReference)ele00001AssignmentMutter().eContents().get(0));
+ }
+
+ // (error)
+ public Assignment ele0001AssignmentVater() {
+ return (c0001AssignmentVater != null) ? c0001AssignmentVater : (c0001AssignmentVater = (Assignment)ele000Group().eContents().get(1));
+ }
+
+ // (error)
+ public CrossReference ele00010CrossReferenceErwachsener() {
+ return (c00010CrossReferenceErwachsener != null) ? c00010CrossReferenceErwachsener : (c00010CrossReferenceErwachsener = (CrossReference)ele0001AssignmentVater().eContents().get(0));
+ }
+
+ // (error)
+ public Assignment ele001AssignmentKinder() {
+ return (c001AssignmentKinder != null) ? c001AssignmentKinder : (c001AssignmentKinder = (Assignment)ele00Group().eContents().get(1));
+ }
+
+ // (error)
+ public CrossReference ele0010CrossReferenceKind() {
+ return (c0010CrossReferenceKind != null) ? c0010CrossReferenceKind : (c0010CrossReferenceKind = (CrossReference)ele001AssignmentKinder().eContents().get(0));
+ }
+
+ // (error)
+ public Group ele01Group() {
+ return (c01Group != null) ? c01Group : (c01Group = (Group)ele0Group().eContents().get(1));
+ }
+
+ // ','
+ public Keyword ele010Keyword() {
+ return (c010Keyword != null) ? c010Keyword : (c010Keyword = (Keyword)ele01Group().eContents().get(0));
+ }
+
+ // (error)
+ public Assignment ele011AssignmentKinder() {
+ return (c011AssignmentKinder != null) ? c011AssignmentKinder : (c011AssignmentKinder = (Assignment)ele01Group().eContents().get(1));
+ }
+
+ // (error)
+ public CrossReference ele0110CrossReferenceKind() {
+ return (c0110CrossReferenceKind != null) ? c0110CrossReferenceKind : (c0110CrossReferenceKind = (CrossReference)ele011AssignmentKinder().eContents().get(0));
+ }
+
+ // ')'
+ public Keyword ele1Keyword() {
+ return (c1Keyword != null) ? c1Keyword : (c1Keyword = (Keyword)eleGroup().eContents().get(1));
+ }
}
- public ParserRule pr_Farbe() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.6"),true);
+ public class FarbeElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Assignment cAssignmentWert;
+ private Alternatives c0Alternatives;
+ private Alternatives c00Alternatives;
+ private Alternatives c000Alternatives;
+ private Keyword c0000KeywordROT;
+ private Keyword c0001KeywordBLAU;
+ private Keyword c001KeywordGELB;
+ private Keyword c01KeywordGRÜN;
+
+ // Farbe : wert = ( 'ROT' | 'BLAU' | 'GELB' | 'GRÜN' ) ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(8));
+ }
+
+ // wert = ( 'ROT' | 'BLAU' | 'GELB' | 'GRÜN' )
+ public Assignment eleAssignmentWert() {
+ return (cAssignmentWert != null) ? cAssignmentWert : (cAssignmentWert = (Assignment)getRule().eContents().get(0));
+ }
+
+ // 'ROT' | 'BLAU' | 'GELB' | 'GRÜN'
+ public Alternatives ele0Alternatives() {
+ return (c0Alternatives != null) ? c0Alternatives : (c0Alternatives = (Alternatives)eleAssignmentWert().eContents().get(0));
+ }
+
+ // 'ROT' | 'BLAU' | 'GELB'
+ public Alternatives ele00Alternatives() {
+ return (c00Alternatives != null) ? c00Alternatives : (c00Alternatives = (Alternatives)ele0Alternatives().eContents().get(0));
+ }
+
+ // 'ROT' | 'BLAU'
+ public Alternatives ele000Alternatives() {
+ return (c000Alternatives != null) ? c000Alternatives : (c000Alternatives = (Alternatives)ele00Alternatives().eContents().get(0));
+ }
+
+ // 'ROT'
+ public Keyword ele0000KeywordROT() {
+ return (c0000KeywordROT != null) ? c0000KeywordROT : (c0000KeywordROT = (Keyword)ele000Alternatives().eContents().get(0));
+ }
+
+ // 'BLAU'
+ public Keyword ele0001KeywordBLAU() {
+ return (c0001KeywordBLAU != null) ? c0001KeywordBLAU : (c0001KeywordBLAU = (Keyword)ele000Alternatives().eContents().get(1));
+ }
+
+ // 'GELB'
+ public Keyword ele001KeywordGELB() {
+ return (c001KeywordGELB != null) ? c001KeywordGELB : (c001KeywordGELB = (Keyword)ele00Alternatives().eContents().get(1));
+ }
+
+ // 'GRÜN'
+ public Keyword ele01KeywordGRÜN() {
+ return (c01KeywordGRÜN != null) ? c01KeywordGRÜN : (c01KeywordGRÜN = (Keyword)ele0Alternatives().eContents().get(1));
+ }
}
- public ParserRule pr_CustomTypeParserRule() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi#//@rules.7"),true);
+ public class CustomTypeParserRuleElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Keyword c0KeywordType;
+ private Assignment c1AssignmentName;
+ private RuleCall c10LexerRuleCallID;
+
+ // CustomTypeParserRule returns ReferenceModel :: CustomType : 'type' name = ID ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(9));
+ }
+
+ // 'type' name = ID
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(1));
+ }
+
+ // 'type'
+ public Keyword ele0KeywordType() {
+ return (c0KeywordType != null) ? c0KeywordType : (c0KeywordType = (Keyword)eleGroup().eContents().get(0));
+ }
+
+ // name = ID
+ public Assignment ele1AssignmentName() {
+ return (c1AssignmentName != null) ? c1AssignmentName : (c1AssignmentName = (Assignment)eleGroup().eContents().get(1));
+ }
+
+ // ID
+ public RuleCall ele10LexerRuleCallID() {
+ return (c10LexerRuleCallID != null) ? c10LexerRuleCallID : (c10LexerRuleCallID = (RuleCall)ele1AssignmentName().eContents().get(0));
+ }
}
+
+ public final static ReferenceGrammarGrammarAccess INSTANCE = new ReferenceGrammarGrammarAccess();
+ private static final String REFERENCEGRAMMAR_GRAMMAR_CP_URI = "classpath:/org/eclipse/xtext/reference/ReferenceGrammar.xmi";
+ private static Grammar GRAMMAR = null;
+ private static SpielplatzElements pSpielplatz;
+ private static PersonElements pPerson;
+ private static KindElements pKind;
+ private static ErwachsenerElements pErwachsener;
+ private static SpielzeugElements pSpielzeug;
+ private static FamilieElements pFamilie;
+ private static FarbeElements pFarbe;
+ private static CustomTypeParserRuleElements pCustomTypeParserRule;
+
+ @SuppressWarnings("unused")
+ public synchronized Grammar getGrammar() {
+ if (GRAMMAR==null) {
+ // assert the XtextPackage implementation is loaded
+ XtextPackage xtextPackage = XtextPackage.eINSTANCE;
+ GRAMMAR = (Grammar) loadGrammarFile(ReferenceGrammarGrammarAccess.class.getClassLoader(),REFERENCEGRAMMAR_GRAMMAR_CP_URI);
+ }
+ return GRAMMAR;
+ }
- public LexerRule lr_ID() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.0"),true);
+ public XtextBuiltinGrammarAccess getSuperGrammar() {
+ return XtextBuiltinGrammarAccess.INSTANCE;
}
- public LexerRule lr_INT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.1"),true);
- }
+
+ // Spielplatz : ( 'spielplatz' groesse = INT ( beschreibung = STRING ) ? '{' ( kinder += Kind | erzieher += Erwachsener | spielzeuge += Spielzeug | familie += Familie | types += CustomTypeParserRule ) * '}' ) ? ;
+ public SpielplatzElements prSpielplatz() {
+ return (pSpielplatz != null) ? pSpielplatz : (pSpielplatz = new SpielplatzElements());
+ }
- public LexerRule lr_STRING() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.2"),true);
- }
+ // Person : Kind | Erwachsener ;
+ public PersonElements prPerson() {
+ return (pPerson != null) ? pPerson : (pPerson = new PersonElements());
+ }
- public LexerRule lr_ML_COMMENT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.3"),true);
- }
+ // Kind : 'kind' '(' name = ID age = INT ')' ;
+ public KindElements prKind() {
+ return (pKind != null) ? pKind : (pKind = new KindElements());
+ }
- public LexerRule lr_SL_COMMENT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.4"),true);
- }
+ // Erwachsener : 'erwachsener' '(' name = ID age = INT ')' ;
+ public ErwachsenerElements prErwachsener() {
+ return (pErwachsener != null) ? pErwachsener : (pErwachsener = new ErwachsenerElements());
+ }
- public LexerRule lr_WS() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.5"),true);
- }
+ // Spielzeug : 'spielzeug' '(' name = ID farbe = Farbe ')' ;
+ public SpielzeugElements prSpielzeug() {
+ return (pSpielzeug != null) ? pSpielzeug : (pSpielzeug = new SpielzeugElements());
+ }
- public LexerRule lr_ANY_OTHER() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.6"),true);
- }
+ // (error)
+ public FamilieElements prFamilie() {
+ return (pFamilie != null) ? pFamilie : (pFamilie = new FamilieElements());
+ }
+
+ // Farbe : wert = ( 'ROT' | 'BLAU' | 'GELB' | 'GRÜN' ) ;
+ public FarbeElements prFarbe() {
+ return (pFarbe != null) ? pFarbe : (pFarbe = new FarbeElements());
+ }
-
+ // CustomTypeParserRule returns ReferenceModel :: CustomType : 'type' name = ID ;
+ public CustomTypeParserRuleElements prCustomTypeParserRule() {
+ return (pCustomTypeParserRule != null) ? pCustomTypeParserRule : (pCustomTypeParserRule = new CustomTypeParserRuleElements());
+ }
}
diff --git a/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/internal/InternalFowlerDslLexer.java b/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/internal/InternalFowlerDslLexer.java
index ff59e53..f61d5df 100644
--- a/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/internal/InternalFowlerDslLexer.java
+++ b/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/internal/InternalFowlerDslLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/example/parser/internal/InternalFowlerDsl.g 2008-12-03 21:42:10
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/example/parser/internal/InternalFowlerDsl.g 2008-12-06 11:02:16
package org.eclipse.xtext.example.parser.internal;
diff --git a/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/internal/InternalFowlerDslParser.java b/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/internal/InternalFowlerDslParser.java
index e5d996f..0630869 100644
--- a/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/internal/InternalFowlerDslParser.java
+++ b/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/internal/InternalFowlerDslParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/example/parser/internal/InternalFowlerDsl.g 2008-12-03 21:42:09
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/example/parser/internal/InternalFowlerDsl.g 2008-12-06 11:02:16
package org.eclipse.xtext.example.parser.internal;
diff --git a/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parsetree/reconstr/FowlerDslParseTreeConstructor.java b/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parsetree/reconstr/FowlerDslParseTreeConstructor.java
index 628620e..e547e25 100644
--- a/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parsetree/reconstr/FowlerDslParseTreeConstructor.java
+++ b/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parsetree/reconstr/FowlerDslParseTreeConstructor.java
@@ -9,6 +9,8 @@ import org.eclipse.xtext.*;
import org.eclipse.xtext.parsetree.reconstr.*;
import org.eclipse.xtext.parsetree.reconstr.impl.*;
import org.eclipse.xtext.parsetree.reconstr.impl.AbstractParseTreeConstructor.AbstractToken.Solution;
+import org.eclipse.xtext.builtin.XtextBuiltinGrammarAccess;
+import org.eclipse.xtext.example.services.FowlerDslGrammarAccess;
public class FowlerDslParseTreeConstructor extends AbstractParseTreeConstructor {
@@ -45,7 +47,7 @@ protected class Statemachine_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.0/@alternatives");
+ return FowlerDslGrammarAccess.INSTANCE.prStatemachine().eleGroup();
}
protected Solution createSolution() {
@@ -73,7 +75,7 @@ protected class Statemachine_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.0/@alternatives/@abstractTokens.0");
+ return FowlerDslGrammarAccess.INSTANCE.prStatemachine().ele0Group();
}
protected Solution createSolution() {
@@ -101,7 +103,7 @@ protected class Statemachine_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return FowlerDslGrammarAccess.INSTANCE.prStatemachine().ele00Group();
}
protected Solution createSolution() {
@@ -129,7 +131,7 @@ protected class Statemachine_0_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return FowlerDslGrammarAccess.INSTANCE.prStatemachine().ele000Group();
}
protected Solution createSolution() {
@@ -157,7 +159,7 @@ protected class Statemachine_0_0_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return FowlerDslGrammarAccess.INSTANCE.prStatemachine().ele0000Group();
}
protected Solution createSolution() {
@@ -185,7 +187,7 @@ protected class Statemachine_0_0_0_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return FowlerDslGrammarAccess.INSTANCE.prStatemachine().ele00000Group();
}
protected Solution createSolution() {
@@ -213,7 +215,7 @@ protected class Statemachine_0_0_0_0_0_0_Keyword_events extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return FowlerDslGrammarAccess.INSTANCE.prStatemachine().ele000000KeywordEvents();
}
}
@@ -225,7 +227,7 @@ protected class Statemachine_0_0_0_0_0_1_Assignment_events extends AssignmentTok
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return FowlerDslGrammarAccess.INSTANCE.prStatemachine().ele000001AssignmentEvents();
}
protected Solution createSolution() {
@@ -254,7 +256,7 @@ protected class Statemachine_0_0_0_0_1_Keyword_end extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return FowlerDslGrammarAccess.INSTANCE.prStatemachine().ele00001KeywordEnd();
}
}
@@ -267,7 +269,7 @@ protected class Statemachine_0_0_0_1_Keyword_commands extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return FowlerDslGrammarAccess.INSTANCE.prStatemachine().ele0001KeywordCommands();
}
}
@@ -280,7 +282,7 @@ protected class Statemachine_0_0_1_Assignment_commands extends AssignmentToken
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return FowlerDslGrammarAccess.INSTANCE.prStatemachine().ele001AssignmentCommands();
}
protected Solution createSolution() {
@@ -309,7 +311,7 @@ protected class Statemachine_0_1_Keyword_end extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return FowlerDslGrammarAccess.INSTANCE.prStatemachine().ele01KeywordEnd();
}
}
@@ -322,7 +324,7 @@ protected class Statemachine_1_Assignment_states extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.0/@alternatives/@abstractTokens.1");
+ return FowlerDslGrammarAccess.INSTANCE.prStatemachine().ele1AssignmentStates();
}
protected Solution createSolution() {
@@ -360,7 +362,7 @@ protected class Event_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.1/@alternatives");
+ return FowlerDslGrammarAccess.INSTANCE.prEvent().eleGroup();
}
protected Solution createSolution() {
@@ -388,7 +390,7 @@ protected class Event_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.1/@alternatives/@abstractTokens.0");
+ return FowlerDslGrammarAccess.INSTANCE.prEvent().ele0Group();
}
protected Solution createSolution() {
@@ -416,7 +418,7 @@ protected class Event_0_0_Assignment_resetting extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.1/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return FowlerDslGrammarAccess.INSTANCE.prEvent().ele00AssignmentResetting();
}
protected Solution createSolution() {
@@ -424,7 +426,7 @@ protected class Event_0_0_Assignment_resetting extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("resetting");
if("resetting".equals(value)) { // xtext::Keyword
type = AssignmentType.KW;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.1/@alternatives/@abstractTokens.0/@abstractTokens.0/@terminal");
+ element = FowlerDslGrammarAccess.INSTANCE.prEvent().ele000KeywordResetting();
return new Solution(obj);
}
return null;
@@ -439,7 +441,7 @@ protected class Event_0_1_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.1/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return FowlerDslGrammarAccess.INSTANCE.prEvent().ele01AssignmentName();
}
protected Solution createSolution() {
@@ -447,7 +449,7 @@ protected class Event_0_1_Assignment_name extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("name");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.1/@alternatives/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = FowlerDslGrammarAccess.INSTANCE.prEvent().ele010LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -463,7 +465,7 @@ protected class Event_1_Assignment_code extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.1/@alternatives/@abstractTokens.1");
+ return FowlerDslGrammarAccess.INSTANCE.prEvent().ele1AssignmentCode();
}
protected Solution createSolution() {
@@ -471,7 +473,7 @@ protected class Event_1_Assignment_code extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("code");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.1/@alternatives/@abstractTokens.1/@terminal");
+ element = FowlerDslGrammarAccess.INSTANCE.prEvent().ele10LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -496,7 +498,7 @@ protected class Command_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.2/@alternatives");
+ return FowlerDslGrammarAccess.INSTANCE.prCommand().eleGroup();
}
protected Solution createSolution() {
@@ -524,7 +526,7 @@ protected class Command_0_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.2/@alternatives/@abstractTokens.0");
+ return FowlerDslGrammarAccess.INSTANCE.prCommand().ele0AssignmentName();
}
protected Solution createSolution() {
@@ -532,7 +534,7 @@ protected class Command_0_Assignment_name extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("name");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.2/@alternatives/@abstractTokens.0/@terminal");
+ element = FowlerDslGrammarAccess.INSTANCE.prCommand().ele00LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -547,7 +549,7 @@ protected class Command_1_Assignment_code extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.2/@alternatives/@abstractTokens.1");
+ return FowlerDslGrammarAccess.INSTANCE.prCommand().ele1AssignmentCode();
}
protected Solution createSolution() {
@@ -555,7 +557,7 @@ protected class Command_1_Assignment_code extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("code");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.2/@alternatives/@abstractTokens.1/@terminal");
+ element = FowlerDslGrammarAccess.INSTANCE.prCommand().ele10LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -567,12 +569,12 @@ protected class Command_1_Assignment_code extends AssignmentToken {
/************ begin Rule State ****************
*
- * State : 'state' name = ID ( 'actions' '{' ( actions += [ fowlerdsl :: Command ] ) + '}' ) ? ( transitions += Transition ) * 'end' ;
+ * (error)
*
**/
-// 'state' name = ID ( 'actions' '{' ( actions += [ fowlerdsl :: Command ] ) + '}' ) ? ( transitions += Transition ) * 'end'
+// (error)
protected class State_Group extends GroupToken {
public State_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -580,7 +582,7 @@ protected class State_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.3/@alternatives");
+ return FowlerDslGrammarAccess.INSTANCE.prState().eleGroup();
}
protected Solution createSolution() {
@@ -600,7 +602,7 @@ protected class State_Group extends GroupToken {
}
}
-// 'state' name = ID ( 'actions' '{' ( actions += [ fowlerdsl :: Command ] ) + '}' ) ? ( transitions += Transition ) *
+// (error)
protected class State_0_Group extends GroupToken {
public State_0_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -608,7 +610,7 @@ protected class State_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.3/@alternatives/@abstractTokens.0");
+ return FowlerDslGrammarAccess.INSTANCE.prState().ele0Group();
}
protected Solution createSolution() {
@@ -628,7 +630,7 @@ protected class State_0_Group extends GroupToken {
}
}
-// 'state' name = ID ( 'actions' '{' ( actions += [ fowlerdsl :: Command ] ) + '}' ) ?
+// (error)
protected class State_0_0_Group extends GroupToken {
public State_0_0_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -636,7 +638,7 @@ protected class State_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return FowlerDslGrammarAccess.INSTANCE.prState().ele00Group();
}
protected Solution createSolution() {
@@ -664,7 +666,7 @@ protected class State_0_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return FowlerDslGrammarAccess.INSTANCE.prState().ele000Group();
}
protected Solution createSolution() {
@@ -692,7 +694,7 @@ protected class State_0_0_0_0_Keyword_state extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return FowlerDslGrammarAccess.INSTANCE.prState().ele0000KeywordState();
}
}
@@ -704,7 +706,7 @@ protected class State_0_0_0_1_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return FowlerDslGrammarAccess.INSTANCE.prState().ele0001AssignmentName();
}
protected Solution createSolution() {
@@ -712,7 +714,7 @@ protected class State_0_0_0_1_Assignment_name extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("name");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = FowlerDslGrammarAccess.INSTANCE.prState().ele00010LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -720,7 +722,7 @@ protected class State_0_0_0_1_Assignment_name extends AssignmentToken {
}
-// ( 'actions' '{' ( actions += [ fowlerdsl :: Command ] ) + '}' ) ?
+// (error)
protected class State_0_0_1_Group extends GroupToken {
public State_0_0_1_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -728,7 +730,7 @@ protected class State_0_0_1_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return FowlerDslGrammarAccess.INSTANCE.prState().ele001Group();
}
protected Solution createSolution() {
@@ -748,7 +750,7 @@ protected class State_0_0_1_Group extends GroupToken {
}
}
-// 'actions' '{' ( actions += [ fowlerdsl :: Command ] ) +
+// (error)
protected class State_0_0_1_0_Group extends GroupToken {
public State_0_0_1_0_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -756,7 +758,7 @@ protected class State_0_0_1_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0");
+ return FowlerDslGrammarAccess.INSTANCE.prState().ele0010Group();
}
protected Solution createSolution() {
@@ -784,7 +786,7 @@ protected class State_0_0_1_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0/@abstractTokens.0");
+ return FowlerDslGrammarAccess.INSTANCE.prState().ele00100Group();
}
protected Solution createSolution() {
@@ -812,7 +814,7 @@ protected class State_0_0_1_0_0_0_Keyword_actions extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return FowlerDslGrammarAccess.INSTANCE.prState().ele001000KeywordActions();
}
}
@@ -824,12 +826,12 @@ protected class State_0_0_1_0_0_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return FowlerDslGrammarAccess.INSTANCE.prState().ele001001Keyword();
}
}
-// ( actions += [ fowlerdsl :: Command ] ) +
+// (error)
protected class State_0_0_1_0_1_Assignment_actions extends AssignmentToken {
public State_0_0_1_0_1_Assignment_actions(IInstanceDescription curr, AbstractToken pred) {
@@ -837,7 +839,7 @@ protected class State_0_0_1_0_1_Assignment_actions extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0/@abstractTokens.1");
+ return FowlerDslGrammarAccess.INSTANCE.prState().ele00101AssignmentActions();
}
protected Solution createSolution() {
@@ -847,7 +849,7 @@ protected class State_0_0_1_0_1_Assignment_actions extends AssignmentToken {
IInstanceDescription param = getDescr((EObject)value);
if(param.isInstanceOf("Command")) {
type = AssignmentType.CR;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = FowlerDslGrammarAccess.INSTANCE.prState().ele001010CrossReferenceCommand();
return new Solution(obj);
}
}
@@ -864,7 +866,7 @@ protected class State_0_0_1_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1");
+ return FowlerDslGrammarAccess.INSTANCE.prState().ele0011Keyword();
}
}
@@ -878,7 +880,7 @@ protected class State_0_1_Assignment_transitions extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return FowlerDslGrammarAccess.INSTANCE.prState().ele01AssignmentTransitions();
}
protected Solution createSolution() {
@@ -907,7 +909,7 @@ protected class State_1_Keyword_end extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.3/@alternatives/@abstractTokens.1");
+ return FowlerDslGrammarAccess.INSTANCE.prState().ele1KeywordEnd();
}
}
@@ -916,12 +918,12 @@ protected class State_1_Keyword_end extends KeywordToken {
/************ begin Rule Transition ****************
*
- * Transition : event = [ fowlerdsl :: Event ] '=>' state = [ fowlerdsl :: State ] ;
+ * (error)
*
**/
-// event = [ fowlerdsl :: Event ] '=>' state = [ fowlerdsl :: State ]
+// (error)
protected class Transition_Group extends GroupToken {
public Transition_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -929,7 +931,7 @@ protected class Transition_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.4/@alternatives");
+ return FowlerDslGrammarAccess.INSTANCE.prTransition().eleGroup();
}
protected Solution createSolution() {
@@ -949,7 +951,7 @@ protected class Transition_Group extends GroupToken {
}
}
-// event = [ fowlerdsl :: Event ] '=>'
+// (error)
protected class Transition_0_Group extends GroupToken {
public Transition_0_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -957,7 +959,7 @@ protected class Transition_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.4/@alternatives/@abstractTokens.0");
+ return FowlerDslGrammarAccess.INSTANCE.prTransition().ele0Group();
}
protected Solution createSolution() {
@@ -977,7 +979,7 @@ protected class Transition_0_Group extends GroupToken {
}
}
-// event = [ fowlerdsl :: Event ]
+// (error)
protected class Transition_0_0_Assignment_event extends AssignmentToken {
public Transition_0_0_Assignment_event(IInstanceDescription curr, AbstractToken pred) {
@@ -985,7 +987,7 @@ protected class Transition_0_0_Assignment_event extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return FowlerDslGrammarAccess.INSTANCE.prTransition().ele00AssignmentEvent();
}
protected Solution createSolution() {
@@ -995,7 +997,7 @@ protected class Transition_0_0_Assignment_event extends AssignmentToken {
IInstanceDescription param = getDescr((EObject)value);
if(param.isInstanceOf("Event")) {
type = AssignmentType.CR;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.0/@terminal");
+ element = FowlerDslGrammarAccess.INSTANCE.prTransition().ele000CrossReferenceEvent();
return new Solution(obj);
}
}
@@ -1011,12 +1013,12 @@ protected class Transition_0_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return FowlerDslGrammarAccess.INSTANCE.prTransition().ele01Keyword();
}
}
-// state = [ fowlerdsl :: State ]
+// (error)
protected class Transition_1_Assignment_state extends AssignmentToken {
public Transition_1_Assignment_state(IInstanceDescription curr, AbstractToken pred) {
@@ -1024,7 +1026,7 @@ protected class Transition_1_Assignment_state extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.4/@alternatives/@abstractTokens.1");
+ return FowlerDslGrammarAccess.INSTANCE.prTransition().ele1AssignmentState();
}
protected Solution createSolution() {
@@ -1034,7 +1036,7 @@ protected class Transition_1_Assignment_state extends AssignmentToken {
IInstanceDescription param = getDescr((EObject)value);
if(param.isInstanceOf("State")) {
type = AssignmentType.CR;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.4/@alternatives/@abstractTokens.1/@terminal");
+ element = FowlerDslGrammarAccess.INSTANCE.prTransition().ele10CrossReferenceState();
return new Solution(obj);
}
}
diff --git a/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/services/FowlerDslGrammarAccess.java b/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/services/FowlerDslGrammarAccess.java
index d6ce2ee..f3c1f4c 100644
--- a/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/services/FowlerDslGrammarAccess.java
+++ b/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/services/FowlerDslGrammarAccess.java
@@ -4,74 +4,428 @@ Generated with Xtext
package org.eclipse.xtext.example.services;
-import org.eclipse.emf.common.util.URI;
import org.eclipse.xtext.*;
import org.eclipse.xtext.parser.BaseEPackageAccess;
+import org.eclipse.xtext.builtin.XtextBuiltinGrammarAccess;
public class FowlerDslGrammarAccess extends BaseEPackageAccess implements IGrammarAccess {
-
- private static final String FOWLERDSL_GRAMMAR_CP_URI = "classpath:/org/eclipse/xtext/example/FowlerDsl.xmi";
- private static Grammar GRAMMAR = null;
- @SuppressWarnings("unused")
- public synchronized Grammar getGrammar() {
- if (GRAMMAR==null) {
- // assert the XtextPackage implementation is loaded
- XtextPackage xtextPackage = XtextPackage.eINSTANCE;
- GRAMMAR = (Grammar) loadGrammarFile(FowlerDslGrammarAccess.class.getClassLoader(),FOWLERDSL_GRAMMAR_CP_URI);
+ public class StatemachineElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Group c00Group;
+ private Group c000Group;
+ private Group c0000Group;
+ private Group c00000Group;
+ private Keyword c000000KeywordEvents;
+ private Assignment c000001AssignmentEvents;
+ private RuleCall c0000010ParserRuleCallEvent;
+ private Keyword c00001KeywordEnd;
+ private Keyword c0001KeywordCommands;
+ private Assignment c001AssignmentCommands;
+ private RuleCall c0010ParserRuleCallCommand;
+ private Keyword c01KeywordEnd;
+ private Assignment c1AssignmentStates;
+ private RuleCall c10ParserRuleCallState;
+
+ // Statemachine : 'events' ( events += Event ) * 'end' 'commands' ( commands += Command ) * 'end' ( states += State ) * ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(1));
}
- return GRAMMAR;
- }
-
-
- public ParserRule pr_Statemachine() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.0"),true);
- }
- public ParserRule pr_Event() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.1"),true);
- }
+ // 'events' ( events += Event ) * 'end' 'commands' ( commands += Command ) * 'end' ( states += State ) *
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
- public ParserRule pr_Command() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.2"),true);
- }
+ // 'events' ( events += Event ) * 'end' 'commands' ( commands += Command ) * 'end'
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
- public ParserRule pr_State() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.3"),true);
- }
+ // 'events' ( events += Event ) * 'end' 'commands' ( commands += Command ) *
+ public Group ele00Group() {
+ return (c00Group != null) ? c00Group : (c00Group = (Group)ele0Group().eContents().get(0));
+ }
- public ParserRule pr_Transition() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/example/FowlerDsl.xmi#//@rules.4"),true);
- }
+ // 'events' ( events += Event ) * 'end' 'commands'
+ public Group ele000Group() {
+ return (c000Group != null) ? c000Group : (c000Group = (Group)ele00Group().eContents().get(0));
+ }
-
- public LexerRule lr_ID() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.0"),true);
- }
+ // 'events' ( events += Event ) * 'end'
+ public Group ele0000Group() {
+ return (c0000Group != null) ? c0000Group : (c0000Group = (Group)ele000Group().eContents().get(0));
+ }
+
+ // 'events' ( events += Event ) *
+ public Group ele00000Group() {
+ return (c00000Group != null) ? c00000Group : (c00000Group = (Group)ele0000Group().eContents().get(0));
+ }
+
+ // 'events'
+ public Keyword ele000000KeywordEvents() {
+ return (c000000KeywordEvents != null) ? c000000KeywordEvents : (c000000KeywordEvents = (Keyword)ele00000Group().eContents().get(0));
+ }
+
+ // ( events += Event ) *
+ public Assignment ele000001AssignmentEvents() {
+ return (c000001AssignmentEvents != null) ? c000001AssignmentEvents : (c000001AssignmentEvents = (Assignment)ele00000Group().eContents().get(1));
+ }
+
+ // Event
+ public RuleCall ele0000010ParserRuleCallEvent() {
+ return (c0000010ParserRuleCallEvent != null) ? c0000010ParserRuleCallEvent : (c0000010ParserRuleCallEvent = (RuleCall)ele000001AssignmentEvents().eContents().get(0));
+ }
+
+ // 'end'
+ public Keyword ele00001KeywordEnd() {
+ return (c00001KeywordEnd != null) ? c00001KeywordEnd : (c00001KeywordEnd = (Keyword)ele0000Group().eContents().get(1));
+ }
+
+ // 'commands'
+ public Keyword ele0001KeywordCommands() {
+ return (c0001KeywordCommands != null) ? c0001KeywordCommands : (c0001KeywordCommands = (Keyword)ele000Group().eContents().get(1));
+ }
- public LexerRule lr_INT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.1"),true);
+ // ( commands += Command ) *
+ public Assignment ele001AssignmentCommands() {
+ return (c001AssignmentCommands != null) ? c001AssignmentCommands : (c001AssignmentCommands = (Assignment)ele00Group().eContents().get(1));
+ }
+
+ // Command
+ public RuleCall ele0010ParserRuleCallCommand() {
+ return (c0010ParserRuleCallCommand != null) ? c0010ParserRuleCallCommand : (c0010ParserRuleCallCommand = (RuleCall)ele001AssignmentCommands().eContents().get(0));
+ }
+
+ // 'end'
+ public Keyword ele01KeywordEnd() {
+ return (c01KeywordEnd != null) ? c01KeywordEnd : (c01KeywordEnd = (Keyword)ele0Group().eContents().get(1));
+ }
+
+ // ( states += State ) *
+ public Assignment ele1AssignmentStates() {
+ return (c1AssignmentStates != null) ? c1AssignmentStates : (c1AssignmentStates = (Assignment)eleGroup().eContents().get(1));
+ }
+
+ // State
+ public RuleCall ele10ParserRuleCallState() {
+ return (c10ParserRuleCallState != null) ? c10ParserRuleCallState : (c10ParserRuleCallState = (RuleCall)ele1AssignmentStates().eContents().get(0));
+ }
}
- public LexerRule lr_STRING() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.2"),true);
+ public class EventElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Assignment c00AssignmentResetting;
+ private Keyword c000KeywordResetting;
+ private Assignment c01AssignmentName;
+ private RuleCall c010LexerRuleCallID;
+ private Assignment c1AssignmentCode;
+ private RuleCall c10LexerRuleCallID;
+
+ // Event : ( resetting ?= 'resetting' ) ? name = ID code = ID ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(2));
+ }
+
+ // ( resetting ?= 'resetting' ) ? name = ID code = ID
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // ( resetting ?= 'resetting' ) ? name = ID
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // ( resetting ?= 'resetting' ) ?
+ public Assignment ele00AssignmentResetting() {
+ return (c00AssignmentResetting != null) ? c00AssignmentResetting : (c00AssignmentResetting = (Assignment)ele0Group().eContents().get(0));
+ }
+
+ // 'resetting'
+ public Keyword ele000KeywordResetting() {
+ return (c000KeywordResetting != null) ? c000KeywordResetting : (c000KeywordResetting = (Keyword)ele00AssignmentResetting().eContents().get(0));
+ }
+
+ // name = ID
+ public Assignment ele01AssignmentName() {
+ return (c01AssignmentName != null) ? c01AssignmentName : (c01AssignmentName = (Assignment)ele0Group().eContents().get(1));
+ }
+
+ // ID
+ public RuleCall ele010LexerRuleCallID() {
+ return (c010LexerRuleCallID != null) ? c010LexerRuleCallID : (c010LexerRuleCallID = (RuleCall)ele01AssignmentName().eContents().get(0));
+ }
+
+ // code = ID
+ public Assignment ele1AssignmentCode() {
+ return (c1AssignmentCode != null) ? c1AssignmentCode : (c1AssignmentCode = (Assignment)eleGroup().eContents().get(1));
+ }
+
+ // ID
+ public RuleCall ele10LexerRuleCallID() {
+ return (c10LexerRuleCallID != null) ? c10LexerRuleCallID : (c10LexerRuleCallID = (RuleCall)ele1AssignmentCode().eContents().get(0));
+ }
}
- public LexerRule lr_ML_COMMENT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.3"),true);
+ public class CommandElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Assignment c0AssignmentName;
+ private RuleCall c00LexerRuleCallID;
+ private Assignment c1AssignmentCode;
+ private RuleCall c10LexerRuleCallID;
+
+ // Command : name = ID code = ID ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(3));
+ }
+
+ // name = ID code = ID
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // name = ID
+ public Assignment ele0AssignmentName() {
+ return (c0AssignmentName != null) ? c0AssignmentName : (c0AssignmentName = (Assignment)eleGroup().eContents().get(0));
+ }
+
+ // ID
+ public RuleCall ele00LexerRuleCallID() {
+ return (c00LexerRuleCallID != null) ? c00LexerRuleCallID : (c00LexerRuleCallID = (RuleCall)ele0AssignmentName().eContents().get(0));
+ }
+
+ // code = ID
+ public Assignment ele1AssignmentCode() {
+ return (c1AssignmentCode != null) ? c1AssignmentCode : (c1AssignmentCode = (Assignment)eleGroup().eContents().get(1));
+ }
+
+ // ID
+ public RuleCall ele10LexerRuleCallID() {
+ return (c10LexerRuleCallID != null) ? c10LexerRuleCallID : (c10LexerRuleCallID = (RuleCall)ele1AssignmentCode().eContents().get(0));
+ }
}
- public LexerRule lr_SL_COMMENT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.4"),true);
+ public class StateElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Group c00Group;
+ private Group c000Group;
+ private Keyword c0000KeywordState;
+ private Assignment c0001AssignmentName;
+ private RuleCall c00010LexerRuleCallID;
+ private Group c001Group;
+ private Group c0010Group;
+ private Group c00100Group;
+ private Keyword c001000KeywordActions;
+ private Keyword c001001Keyword;
+ private Assignment c00101AssignmentActions;
+ private CrossReference c001010CrossReferenceCommand;
+ private Keyword c0011Keyword;
+ private Assignment c01AssignmentTransitions;
+ private RuleCall c010ParserRuleCallTransition;
+ private Keyword c1KeywordEnd;
+
+ // (error)
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(4));
+ }
+
+ // (error)
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // (error)
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // (error)
+ public Group ele00Group() {
+ return (c00Group != null) ? c00Group : (c00Group = (Group)ele0Group().eContents().get(0));
+ }
+
+ // 'state' name = ID
+ public Group ele000Group() {
+ return (c000Group != null) ? c000Group : (c000Group = (Group)ele00Group().eContents().get(0));
+ }
+
+ // 'state'
+ public Keyword ele0000KeywordState() {
+ return (c0000KeywordState != null) ? c0000KeywordState : (c0000KeywordState = (Keyword)ele000Group().eContents().get(0));
+ }
+
+ // name = ID
+ public Assignment ele0001AssignmentName() {
+ return (c0001AssignmentName != null) ? c0001AssignmentName : (c0001AssignmentName = (Assignment)ele000Group().eContents().get(1));
+ }
+
+ // ID
+ public RuleCall ele00010LexerRuleCallID() {
+ return (c00010LexerRuleCallID != null) ? c00010LexerRuleCallID : (c00010LexerRuleCallID = (RuleCall)ele0001AssignmentName().eContents().get(0));
+ }
+
+ // (error)
+ public Group ele001Group() {
+ return (c001Group != null) ? c001Group : (c001Group = (Group)ele00Group().eContents().get(1));
+ }
+
+ // (error)
+ public Group ele0010Group() {
+ return (c0010Group != null) ? c0010Group : (c0010Group = (Group)ele001Group().eContents().get(0));
+ }
+
+ // 'actions' '{'
+ public Group ele00100Group() {
+ return (c00100Group != null) ? c00100Group : (c00100Group = (Group)ele0010Group().eContents().get(0));
+ }
+
+ // 'actions'
+ public Keyword ele001000KeywordActions() {
+ return (c001000KeywordActions != null) ? c001000KeywordActions : (c001000KeywordActions = (Keyword)ele00100Group().eContents().get(0));
+ }
+
+ // '{'
+ public Keyword ele001001Keyword() {
+ return (c001001Keyword != null) ? c001001Keyword : (c001001Keyword = (Keyword)ele00100Group().eContents().get(1));
+ }
+
+ // (error)
+ public Assignment ele00101AssignmentActions() {
+ return (c00101AssignmentActions != null) ? c00101AssignmentActions : (c00101AssignmentActions = (Assignment)ele0010Group().eContents().get(1));
+ }
+
+ // (error)
+ public CrossReference ele001010CrossReferenceCommand() {
+ return (c001010CrossReferenceCommand != null) ? c001010CrossReferenceCommand : (c001010CrossReferenceCommand = (CrossReference)ele00101AssignmentActions().eContents().get(0));
+ }
+
+ // '}'
+ public Keyword ele0011Keyword() {
+ return (c0011Keyword != null) ? c0011Keyword : (c0011Keyword = (Keyword)ele001Group().eContents().get(1));
+ }
+
+ // ( transitions += Transition ) *
+ public Assignment ele01AssignmentTransitions() {
+ return (c01AssignmentTransitions != null) ? c01AssignmentTransitions : (c01AssignmentTransitions = (Assignment)ele0Group().eContents().get(1));
+ }
+
+ // Transition
+ public RuleCall ele010ParserRuleCallTransition() {
+ return (c010ParserRuleCallTransition != null) ? c010ParserRuleCallTransition : (c010ParserRuleCallTransition = (RuleCall)ele01AssignmentTransitions().eContents().get(0));
+ }
+
+ // 'end'
+ public Keyword ele1KeywordEnd() {
+ return (c1KeywordEnd != null) ? c1KeywordEnd : (c1KeywordEnd = (Keyword)eleGroup().eContents().get(1));
+ }
}
- public LexerRule lr_WS() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.5"),true);
+ public class TransitionElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Assignment c00AssignmentEvent;
+ private CrossReference c000CrossReferenceEvent;
+ private Keyword c01Keyword;
+ private Assignment c1AssignmentState;
+ private CrossReference c10CrossReferenceState;
+
+ // (error)
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(5));
+ }
+
+ // (error)
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // (error)
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // (error)
+ public Assignment ele00AssignmentEvent() {
+ return (c00AssignmentEvent != null) ? c00AssignmentEvent : (c00AssignmentEvent = (Assignment)ele0Group().eContents().get(0));
+ }
+
+ // (error)
+ public CrossReference ele000CrossReferenceEvent() {
+ return (c000CrossReferenceEvent != null) ? c000CrossReferenceEvent : (c000CrossReferenceEvent = (CrossReference)ele00AssignmentEvent().eContents().get(0));
+ }
+
+ // '=>'
+ public Keyword ele01Keyword() {
+ return (c01Keyword != null) ? c01Keyword : (c01Keyword = (Keyword)ele0Group().eContents().get(1));
+ }
+
+ // (error)
+ public Assignment ele1AssignmentState() {
+ return (c1AssignmentState != null) ? c1AssignmentState : (c1AssignmentState = (Assignment)eleGroup().eContents().get(1));
+ }
+
+ // (error)
+ public CrossReference ele10CrossReferenceState() {
+ return (c10CrossReferenceState != null) ? c10CrossReferenceState : (c10CrossReferenceState = (CrossReference)ele1AssignmentState().eContents().get(0));
+ }
}
+
+ public final static FowlerDslGrammarAccess INSTANCE = new FowlerDslGrammarAccess();
- public LexerRule lr_ANY_OTHER() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.6"),true);
+ private static final String FOWLERDSL_GRAMMAR_CP_URI = "classpath:/org/eclipse/xtext/example/FowlerDsl.xmi";
+ private static Grammar GRAMMAR = null;
+ private static StatemachineElements pStatemachine;
+ private static EventElements pEvent;
+ private static CommandElements pCommand;
+ private static StateElements pState;
+ private static TransitionElements pTransition;
+
+ @SuppressWarnings("unused")
+ public synchronized Grammar getGrammar() {
+ if (GRAMMAR==null) {
+ // assert the XtextPackage implementation is loaded
+ XtextPackage xtextPackage = XtextPackage.eINSTANCE;
+ GRAMMAR = (Grammar) loadGrammarFile(FowlerDslGrammarAccess.class.getClassLoader(),FOWLERDSL_GRAMMAR_CP_URI);
+ }
+ return GRAMMAR;
}
+
+ public XtextBuiltinGrammarAccess getSuperGrammar() {
+ return XtextBuiltinGrammarAccess.INSTANCE;
+ }
+
+
+ // Statemachine : 'events' ( events += Event ) * 'end' 'commands' ( commands += Command ) * 'end' ( states += State ) * ;
+ public StatemachineElements prStatemachine() {
+ return (pStatemachine != null) ? pStatemachine : (pStatemachine = new StatemachineElements());
+ }
+
+ // Event : ( resetting ?= 'resetting' ) ? name = ID code = ID ;
+ public EventElements prEvent() {
+ return (pEvent != null) ? pEvent : (pEvent = new EventElements());
+ }
+
+ // Command : name = ID code = ID ;
+ public CommandElements prCommand() {
+ return (pCommand != null) ? pCommand : (pCommand = new CommandElements());
+ }
+
+ // (error)
+ public StateElements prState() {
+ return (pState != null) ? pState : (pState = new StateElements());
+ }
-
+ // (error)
+ public TransitionElements prTransition() {
+ return (pTransition != null) ? pTransition : (pTransition = new TransitionElements());
+ }
}