aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhbehrens2008-12-05 05:24:03 (EST)
committersefftinge2008-12-05 05:24:03 (EST)
commit4e4ff40fea7b64bc87633ccef9e37298896b07ee (patch)
tree0a3937d4b82c18f617059065084cf225fe584d40
parent35b9ff3ccc79b255c6676576507b0846526e7eef (diff)
downloadorg.eclipse.xtext-4e4ff40fea7b64bc87633ccef9e37298896b07ee.zip
org.eclipse.xtext-4e4ff40fea7b64bc87633ccef9e37298896b07ee.tar.gz
org.eclipse.xtext-4e4ff40fea7b64bc87633ccef9e37298896b07ee.tar.bz2
Improved GrammarAccess (Patch from Moritz)
-rw-r--r--tests/org.eclipse.xtext.generator.tests/.classpath2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/internal/InternalImportUriTestLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/internal/InternalImportUriTestLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/internal/InternalLangALexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/internal/InternalLangAParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parsetree/reconstr/ImportUriTestLanguageParseTreeConstructor.java40
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parsetree/reconstr/LangAParseTreeConstructor.java40
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/services/ImportUriTestLanguageGrammarAccess.java196
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/services/LangAGrammarAccess.java196
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/internal/InternalDummyLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/internal/InternalDummyLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parsetree/reconstr/DummyLanguageParseTreeConstructor.java28
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/services/DummyLanguageGrammarAccess.java155
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/internal/InternalConcreteTestLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/internal/InternalConcreteTestLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parsetree/reconstr/ConcreteTestLanguageParseTreeConstructor.java29
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/services/AbstractTestLanguageGrammarAccess.java90
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/services/ConcreteTestLanguageGrammarAccess.java116
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/internal/InternalMetamodelRefTestLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/internal/InternalMetamodelRefTestParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parsetree/reconstr/MetamodelRefTestParseTreeConstructor.java22
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/services/MetamodelRefTestGrammarAccess.java142
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTestLexer.java256
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTestParser.java656
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest__.g14
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/XtextGrammarTestParseTreeConstructor.java376
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/internal/InternalComplexReconstrTestLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/internal/InternalComplexReconstrTestParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/internal/InternalSimpleReconstrTestLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/internal/InternalSimpleReconstrTestParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parsetree/reconstr/ComplexReconstrTestParseTreeConstructor.java304
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parsetree/reconstr/SimpleReconstrTestParseTreeConstructor.java158
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/services/ComplexReconstrTestGrammarAccess.java948
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/services/SimpleReconstrTestGrammarAccess.java612
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/services/XtextGrammarTestGrammarAccess.java1401
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/ReferenceGrammar.ecore6
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalActionTestLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalActionTestLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguageLexer.java136
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguageParser.java138
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage__.g14
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalFowlerDslTestLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalFowlerDslTestLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalLexerLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalLexerLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalLookaheadLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalLookaheadLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalOptionalEmptyLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalOptionalEmptyLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalPartialParserTestLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalPartialParserTestLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalReferenceGrammarLexer.java184
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalReferenceGrammarParser.java308
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalReferenceGrammar__.g14
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalSimpleExpressionsLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalSimpleExpressionsParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalTestLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalTestLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalTreeTestLanguageLexer.java118
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalTreeTestLanguageParser.java68
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalTreeTestLanguage__.g14
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parsetree/reconstr/ActionTestLanguageParseTreeConstructor.java36
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parsetree/reconstr/ContentAssistTestLanguageParseTreeConstructor.java66
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parsetree/reconstr/FowlerDslTestLanguageParseTreeConstructor.java126
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parsetree/reconstr/LexerLanguageParseTreeConstructor.java14
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parsetree/reconstr/LookaheadLanguageParseTreeConstructor.java80
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parsetree/reconstr/OptionalEmptyLanguageParseTreeConstructor.java12
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parsetree/reconstr/PartialParserTestLanguageParseTreeConstructor.java178
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parsetree/reconstr/ReferenceGrammarParseTreeConstructor.java194
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parsetree/reconstr/SimpleExpressionsParseTreeConstructor.java100
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parsetree/reconstr/TestLanguageParseTreeConstructor.java58
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parsetree/reconstr/TreeTestLanguageParseTreeConstructor.java34
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/services/ActionTestLanguageGrammarAccess.java160
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/services/ContentAssistTestLanguageGrammarAccess.java320
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/services/FowlerDslTestLanguageGrammarAccess.java446
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/services/LexerLanguageGrammarAccess.java117
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/services/LookaheadLanguageGrammarAccess.java402
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/services/OptionalEmptyLanguageGrammarAccess.java107
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/services/PartialParserTestLanguageGrammarAccess.java729
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/services/ReferenceGrammarGrammarAccess.java702
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/services/SimpleExpressionsGrammarAccess.java365
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/services/TestLanguageGrammarAccess.java254
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/services/TreeTestLanguageGrammarAccess.java179
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/valueconverter/parser/internal/InternalBug250313Lexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/valueconverter/parser/internal/InternalBug250313Parser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/valueconverter/parsetree/reconstr/Bug250313ParseTreeConstructor.java14
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/valueconverter/services/Bug250313GrammarAccess.java102
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/GrammarUtilTests.java4
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/crossrefs/CrossRefTest.java2
89 files changed, 8774 insertions, 2872 deletions
diff --git a/tests/org.eclipse.xtext.generator.tests/.classpath b/tests/org.eclipse.xtext.generator.tests/.classpath
index 59cf397..6210da2 100644
--- a/tests/org.eclipse.xtext.generator.tests/.classpath
+++ b/tests/org.eclipse.xtext.generator.tests/.classpath
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="src-gen"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="output" path="bin"/>
</classpath>
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/internal/InternalImportUriTestLanguageLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/internal/InternalImportUriTestLanguageLexer.java
index 9439a16..965acde 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/internal/InternalImportUriTestLanguageLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/internal/InternalImportUriTestLanguageLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/crossrefs/parser/internal/InternalImportUriTestLanguage.g 2008-12-03 21:38:46
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/crossrefs/parser/internal/InternalImportUriTestLanguage.g 2008-12-04 21:06:59
package org.eclipse.xtext.crossrefs.parser.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/internal/InternalImportUriTestLanguageParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/internal/InternalImportUriTestLanguageParser.java
index e013f91..bc92d3f 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/internal/InternalImportUriTestLanguageParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/internal/InternalImportUriTestLanguageParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/crossrefs/parser/internal/InternalImportUriTestLanguage.g 2008-12-03 21:38:46
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/crossrefs/parser/internal/InternalImportUriTestLanguage.g 2008-12-04 21:06:58
package org.eclipse.xtext.crossrefs.parser.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/internal/InternalLangALexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/internal/InternalLangALexer.java
index 8973ab9..fbd7b57 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/internal/InternalLangALexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/internal/InternalLangALexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/crossrefs/parser/internal/InternalLangA.g 2008-12-03 21:38:36
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/crossrefs/parser/internal/InternalLangA.g 2008-12-04 21:06:43
package org.eclipse.xtext.crossrefs.parser.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/internal/InternalLangAParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/internal/InternalLangAParser.java
index a82569c..e4cdfa4 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/internal/InternalLangAParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/internal/InternalLangAParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/crossrefs/parser/internal/InternalLangA.g 2008-12-03 21:38:36
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/crossrefs/parser/internal/InternalLangA.g 2008-12-04 21:06:43
package org.eclipse.xtext.crossrefs.parser.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parsetree/reconstr/ImportUriTestLanguageParseTreeConstructor.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parsetree/reconstr/ImportUriTestLanguageParseTreeConstructor.java
index d69ad52..b93162a 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parsetree/reconstr/ImportUriTestLanguageParseTreeConstructor.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parsetree/reconstr/ImportUriTestLanguageParseTreeConstructor.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.crossrefs.services.ImportUriTestLanguageGrammarAccess;
public class ImportUriTestLanguageParseTreeConstructor extends AbstractParseTreeConstructor {
@@ -43,7 +45,7 @@ protected class Main_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/ImportUriTestLanguage.xmi#//@rules.0/@alternatives");
+ return ImportUriTestLanguageGrammarAccess.INSTANCE.prMain().eleGroup();
}
protected Solution createSolution() {
@@ -71,7 +73,7 @@ protected class Main_0_Assignment_imports extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/ImportUriTestLanguage.xmi#//@rules.0/@alternatives/@abstractTokens.0");
+ return ImportUriTestLanguageGrammarAccess.INSTANCE.prMain().ele0AssignmentImports();
}
protected Solution createSolution() {
@@ -99,7 +101,7 @@ protected class Main_1_Assignment_types extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/ImportUriTestLanguage.xmi#//@rules.0/@alternatives/@abstractTokens.1");
+ return ImportUriTestLanguageGrammarAccess.INSTANCE.prMain().ele1AssignmentTypes();
}
protected Solution createSolution() {
@@ -137,7 +139,7 @@ protected class Import_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/ImportUriTestLanguage.xmi#//@rules.1/@alternatives");
+ return ImportUriTestLanguageGrammarAccess.INSTANCE.prImport().eleGroup();
}
protected Solution createSolution() {
@@ -165,7 +167,7 @@ protected class Import_0_Keyword_import extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/ImportUriTestLanguage.xmi#//@rules.1/@alternatives/@abstractTokens.0");
+ return ImportUriTestLanguageGrammarAccess.INSTANCE.prImport().ele0KeywordImport();
}
}
@@ -177,7 +179,7 @@ protected class Import_1_Assignment_importURI extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/ImportUriTestLanguage.xmi#//@rules.1/@alternatives/@abstractTokens.1");
+ return ImportUriTestLanguageGrammarAccess.INSTANCE.prImport().ele1AssignmentImportURI();
}
protected Solution createSolution() {
@@ -185,7 +187,7 @@ protected class Import_1_Assignment_importURI extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("importURI");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/ImportUriTestLanguage.xmi#//@rules.1/@alternatives/@abstractTokens.1/@terminal");
+ element = ImportUriTestLanguageGrammarAccess.INSTANCE.prImport().ele10LexerRuleCallSTRING();
return new Solution(obj);
}
return null;
@@ -197,12 +199,12 @@ protected class Import_1_Assignment_importURI extends AssignmentToken {
/************ begin Rule Type ****************
*
- * Type : 'type' name = ID 'extends' ^extends = [ importedURI :: Type ] ;
+ * (error)
*
**/
-// 'type' name = ID 'extends' ^extends = [ importedURI :: Type ]
+// (error)
protected class Type_Group extends GroupToken {
public Type_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -210,7 +212,7 @@ protected class Type_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/ImportUriTestLanguage.xmi#//@rules.2/@alternatives");
+ return ImportUriTestLanguageGrammarAccess.INSTANCE.prType().eleGroup();
}
protected Solution createSolution() {
@@ -238,7 +240,7 @@ protected class Type_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/ImportUriTestLanguage.xmi#//@rules.2/@alternatives/@abstractTokens.0");
+ return ImportUriTestLanguageGrammarAccess.INSTANCE.prType().ele0Group();
}
protected Solution createSolution() {
@@ -266,7 +268,7 @@ protected class Type_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/ImportUriTestLanguage.xmi#//@rules.2/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return ImportUriTestLanguageGrammarAccess.INSTANCE.prType().ele00Group();
}
protected Solution createSolution() {
@@ -294,7 +296,7 @@ protected class Type_0_0_0_Keyword_type extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/ImportUriTestLanguage.xmi#//@rules.2/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return ImportUriTestLanguageGrammarAccess.INSTANCE.prType().ele000KeywordType();
}
}
@@ -306,7 +308,7 @@ protected class Type_0_0_1_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/ImportUriTestLanguage.xmi#//@rules.2/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return ImportUriTestLanguageGrammarAccess.INSTANCE.prType().ele001AssignmentName();
}
protected Solution createSolution() {
@@ -314,7 +316,7 @@ protected class Type_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/crossrefs/ImportUriTestLanguage.xmi#//@rules.2/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = ImportUriTestLanguageGrammarAccess.INSTANCE.prType().ele0010LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -330,12 +332,12 @@ protected class Type_0_1_Keyword_extends extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/ImportUriTestLanguage.xmi#//@rules.2/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return ImportUriTestLanguageGrammarAccess.INSTANCE.prType().ele01KeywordExtends();
}
}
-// ^extends = [ importedURI :: Type ]
+// (error)
protected class Type_1_Assignment_extends extends AssignmentToken {
public Type_1_Assignment_extends(IInstanceDescription curr, AbstractToken pred) {
@@ -343,7 +345,7 @@ protected class Type_1_Assignment_extends extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/ImportUriTestLanguage.xmi#//@rules.2/@alternatives/@abstractTokens.1");
+ return ImportUriTestLanguageGrammarAccess.INSTANCE.prType().ele1AssignmentExtends();
}
protected Solution createSolution() {
@@ -353,7 +355,7 @@ protected class Type_1_Assignment_extends extends AssignmentToken {
IInstanceDescription param = getDescr((EObject)value);
if(param.isInstanceOf("Type")) {
type = AssignmentType.CR;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/ImportUriTestLanguage.xmi#//@rules.2/@alternatives/@abstractTokens.1/@terminal");
+ element = ImportUriTestLanguageGrammarAccess.INSTANCE.prType().ele10CrossReferenceType();
return new Solution(obj);
}
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parsetree/reconstr/LangAParseTreeConstructor.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parsetree/reconstr/LangAParseTreeConstructor.java
index cc4c63a..3d32d94 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parsetree/reconstr/LangAParseTreeConstructor.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parsetree/reconstr/LangAParseTreeConstructor.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.crossrefs.services.LangAGrammarAccess;
public class LangAParseTreeConstructor extends AbstractParseTreeConstructor {
@@ -43,7 +45,7 @@ protected class Main_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/LangA.xmi#//@rules.0/@alternatives");
+ return LangAGrammarAccess.INSTANCE.prMain().eleGroup();
}
protected Solution createSolution() {
@@ -71,7 +73,7 @@ protected class Main_0_Assignment_imports extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/LangA.xmi#//@rules.0/@alternatives/@abstractTokens.0");
+ return LangAGrammarAccess.INSTANCE.prMain().ele0AssignmentImports();
}
protected Solution createSolution() {
@@ -99,7 +101,7 @@ protected class Main_1_Assignment_types extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/LangA.xmi#//@rules.0/@alternatives/@abstractTokens.1");
+ return LangAGrammarAccess.INSTANCE.prMain().ele1AssignmentTypes();
}
protected Solution createSolution() {
@@ -137,7 +139,7 @@ protected class Import_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/LangA.xmi#//@rules.1/@alternatives");
+ return LangAGrammarAccess.INSTANCE.prImport().eleGroup();
}
protected Solution createSolution() {
@@ -165,7 +167,7 @@ protected class Import_0_Keyword_import extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/LangA.xmi#//@rules.1/@alternatives/@abstractTokens.0");
+ return LangAGrammarAccess.INSTANCE.prImport().ele0KeywordImport();
}
}
@@ -177,7 +179,7 @@ protected class Import_1_Assignment_uri extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/LangA.xmi#//@rules.1/@alternatives/@abstractTokens.1");
+ return LangAGrammarAccess.INSTANCE.prImport().ele1AssignmentUri();
}
protected Solution createSolution() {
@@ -185,7 +187,7 @@ protected class Import_1_Assignment_uri extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("uri");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/LangA.xmi#//@rules.1/@alternatives/@abstractTokens.1/@terminal");
+ element = LangAGrammarAccess.INSTANCE.prImport().ele10LexerRuleCallSTRING();
return new Solution(obj);
}
return null;
@@ -197,12 +199,12 @@ protected class Import_1_Assignment_uri extends AssignmentToken {
/************ begin Rule Type ****************
*
- * Type : 'type' name = ID 'extends' ^extends = [ langA :: Type ] ;
+ * (error)
*
**/
-// 'type' name = ID 'extends' ^extends = [ langA :: Type ]
+// (error)
protected class Type_Group extends GroupToken {
public Type_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -210,7 +212,7 @@ protected class Type_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/LangA.xmi#//@rules.2/@alternatives");
+ return LangAGrammarAccess.INSTANCE.prType().eleGroup();
}
protected Solution createSolution() {
@@ -238,7 +240,7 @@ protected class Type_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/LangA.xmi#//@rules.2/@alternatives/@abstractTokens.0");
+ return LangAGrammarAccess.INSTANCE.prType().ele0Group();
}
protected Solution createSolution() {
@@ -266,7 +268,7 @@ protected class Type_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/LangA.xmi#//@rules.2/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return LangAGrammarAccess.INSTANCE.prType().ele00Group();
}
protected Solution createSolution() {
@@ -294,7 +296,7 @@ protected class Type_0_0_0_Keyword_type extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/LangA.xmi#//@rules.2/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return LangAGrammarAccess.INSTANCE.prType().ele000KeywordType();
}
}
@@ -306,7 +308,7 @@ protected class Type_0_0_1_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/LangA.xmi#//@rules.2/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return LangAGrammarAccess.INSTANCE.prType().ele001AssignmentName();
}
protected Solution createSolution() {
@@ -314,7 +316,7 @@ protected class Type_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/crossrefs/LangA.xmi#//@rules.2/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = LangAGrammarAccess.INSTANCE.prType().ele0010LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -330,12 +332,12 @@ protected class Type_0_1_Keyword_extends extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/LangA.xmi#//@rules.2/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return LangAGrammarAccess.INSTANCE.prType().ele01KeywordExtends();
}
}
-// ^extends = [ langA :: Type ]
+// (error)
protected class Type_1_Assignment_extends extends AssignmentToken {
public Type_1_Assignment_extends(IInstanceDescription curr, AbstractToken pred) {
@@ -343,7 +345,7 @@ protected class Type_1_Assignment_extends extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/LangA.xmi#//@rules.2/@alternatives/@abstractTokens.1");
+ return LangAGrammarAccess.INSTANCE.prType().ele1AssignmentExtends();
}
protected Solution createSolution() {
@@ -353,7 +355,7 @@ protected class Type_1_Assignment_extends extends AssignmentToken {
IInstanceDescription param = getDescr((EObject)value);
if(param.isInstanceOf("Type")) {
type = AssignmentType.CR;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/crossrefs/LangA.xmi#//@rules.2/@alternatives/@abstractTokens.1/@terminal");
+ element = LangAGrammarAccess.INSTANCE.prType().ele10CrossReferenceType();
return new Solution(obj);
}
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/services/ImportUriTestLanguageGrammarAccess.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/services/ImportUriTestLanguageGrammarAccess.java
index 1d1f538..8c93d8e 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/services/ImportUriTestLanguageGrammarAccess.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/services/ImportUriTestLanguageGrammarAccess.java
@@ -4,15 +4,155 @@ Generated with Xtext
package org.eclipse.xtext.crossrefs.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 ImportUriTestLanguageGrammarAccess extends BaseEPackageAccess implements IGrammarAccess {
+
+ public class MainElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Assignment c0AssignmentImports;
+ private RuleCall c00ParserRuleCallImport;
+ private Assignment c1AssignmentTypes;
+ private RuleCall c10ParserRuleCallType;
+
+ // Main : ( imports += Import ) * ( types += Type ) * ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(1));
+ }
+
+ // ( imports += Import ) * ( types += Type ) *
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // ( imports += Import ) *
+ public Assignment ele0AssignmentImports() {
+ return (c0AssignmentImports != null) ? c0AssignmentImports : (c0AssignmentImports = (Assignment)eleGroup().eContents().get(0));
+ }
+
+ // Import
+ public RuleCall ele00ParserRuleCallImport() {
+ return (c00ParserRuleCallImport != null) ? c00ParserRuleCallImport : (c00ParserRuleCallImport = (RuleCall)ele0AssignmentImports().eContents().get(0));
+ }
+
+ // ( types += Type ) *
+ public Assignment ele1AssignmentTypes() {
+ return (c1AssignmentTypes != null) ? c1AssignmentTypes : (c1AssignmentTypes = (Assignment)eleGroup().eContents().get(1));
+ }
+
+ // Type
+ public RuleCall ele10ParserRuleCallType() {
+ return (c10ParserRuleCallType != null) ? c10ParserRuleCallType : (c10ParserRuleCallType = (RuleCall)ele1AssignmentTypes().eContents().get(0));
+ }
+ }
+
+ public class ImportElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Keyword c0KeywordImport;
+ private Assignment c1AssignmentImportURI;
+ private RuleCall c10LexerRuleCallSTRING;
+
+ // Import : 'import' importURI = STRING ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(2));
+ }
+
+ // 'import' importURI = STRING
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // 'import'
+ public Keyword ele0KeywordImport() {
+ return (c0KeywordImport != null) ? c0KeywordImport : (c0KeywordImport = (Keyword)eleGroup().eContents().get(0));
+ }
+
+ // importURI = STRING
+ public Assignment ele1AssignmentImportURI() {
+ return (c1AssignmentImportURI != null) ? c1AssignmentImportURI : (c1AssignmentImportURI = (Assignment)eleGroup().eContents().get(1));
+ }
+
+ // STRING
+ public RuleCall ele10LexerRuleCallSTRING() {
+ return (c10LexerRuleCallSTRING != null) ? c10LexerRuleCallSTRING : (c10LexerRuleCallSTRING = (RuleCall)ele1AssignmentImportURI().eContents().get(0));
+ }
+ }
+
+ public class TypeElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Group c00Group;
+ private Keyword c000KeywordType;
+ private Assignment c001AssignmentName;
+ private RuleCall c0010LexerRuleCallID;
+ private Keyword c01KeywordExtends;
+ private Assignment c1AssignmentExtends;
+ private CrossReference c10CrossReferenceType;
+
+ // (error)
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(3));
+ }
+
+ // (error)
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // 'type' name = ID 'extends'
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // 'type' name = ID
+ public Group ele00Group() {
+ return (c00Group != null) ? c00Group : (c00Group = (Group)ele0Group().eContents().get(0));
+ }
+
+ // 'type'
+ public Keyword ele000KeywordType() {
+ return (c000KeywordType != null) ? c000KeywordType : (c000KeywordType = (Keyword)ele00Group().eContents().get(0));
+ }
+
+ // 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));
+ }
+
+ // 'extends'
+ public Keyword ele01KeywordExtends() {
+ return (c01KeywordExtends != null) ? c01KeywordExtends : (c01KeywordExtends = (Keyword)ele0Group().eContents().get(1));
+ }
+
+ // (error)
+ public Assignment ele1AssignmentExtends() {
+ return (c1AssignmentExtends != null) ? c1AssignmentExtends : (c1AssignmentExtends = (Assignment)eleGroup().eContents().get(1));
+ }
+
+ // (error)
+ public CrossReference ele10CrossReferenceType() {
+ return (c10CrossReferenceType != null) ? c10CrossReferenceType : (c10CrossReferenceType = (CrossReference)ele1AssignmentExtends().eContents().get(0));
+ }
+ }
+
+ public final static ImportUriTestLanguageGrammarAccess INSTANCE = new ImportUriTestLanguageGrammarAccess();
private static final String IMPORTURITESTLANGUAGE_GRAMMAR_CP_URI = "classpath:/org/eclipse/xtext/crossrefs/ImportUriTestLanguage.xmi";
private static Grammar GRAMMAR = null;
-
+ private static MainElements pMain;
+ private static ImportElements pImport;
+ private static TypeElements pType;
+
@SuppressWarnings("unused")
public synchronized Grammar getGrammar() {
if (GRAMMAR==null) {
@@ -23,47 +163,23 @@ public class ImportUriTestLanguageGrammarAccess extends BaseEPackageAccess imple
return GRAMMAR;
}
-
- public ParserRule pr_Main() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/crossrefs/ImportUriTestLanguage.xmi#//@rules.0"),true);
- }
-
- public ParserRule pr_Import() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/crossrefs/ImportUriTestLanguage.xmi#//@rules.1"),true);
- }
-
- public ParserRule pr_Type() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/crossrefs/ImportUriTestLanguage.xmi#//@rules.2"),true);
+ public XtextBuiltinGrammarAccess getSuperGrammar() {
+ return XtextBuiltinGrammarAccess.INSTANCE;
}
- public LexerRule lr_ID() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.0"),true);
- }
-
- public LexerRule lr_INT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.1"),true);
- }
-
- public LexerRule lr_STRING() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.2"),true);
- }
-
- public LexerRule lr_ML_COMMENT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.3"),true);
- }
-
- public LexerRule lr_SL_COMMENT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.4"),true);
- }
-
- public LexerRule lr_WS() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.5"),true);
- }
+ // Main : ( imports += Import ) * ( types += Type ) * ;
+ public MainElements prMain() {
+ return (pMain != null) ? pMain : (pMain = new MainElements());
+ }
- public LexerRule lr_ANY_OTHER() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.6"),true);
- }
+ // Import : 'import' importURI = STRING ;
+ public ImportElements prImport() {
+ return (pImport != null) ? pImport : (pImport = new ImportElements());
+ }
-
+ // (error)
+ public TypeElements prType() {
+ return (pType != null) ? pType : (pType = new TypeElements());
+ }
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/services/LangAGrammarAccess.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/services/LangAGrammarAccess.java
index c6017f2..b3a6f4c 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/services/LangAGrammarAccess.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/services/LangAGrammarAccess.java
@@ -4,15 +4,155 @@ Generated with Xtext
package org.eclipse.xtext.crossrefs.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 LangAGrammarAccess extends BaseEPackageAccess implements IGrammarAccess {
+
+ public class MainElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Assignment c0AssignmentImports;
+ private RuleCall c00ParserRuleCallImport;
+ private Assignment c1AssignmentTypes;
+ private RuleCall c10ParserRuleCallType;
+
+ // Main : ( imports += Import ) * ( types += Type ) * ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(1));
+ }
+
+ // ( imports += Import ) * ( types += Type ) *
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // ( imports += Import ) *
+ public Assignment ele0AssignmentImports() {
+ return (c0AssignmentImports != null) ? c0AssignmentImports : (c0AssignmentImports = (Assignment)eleGroup().eContents().get(0));
+ }
+
+ // Import
+ public RuleCall ele00ParserRuleCallImport() {
+ return (c00ParserRuleCallImport != null) ? c00ParserRuleCallImport : (c00ParserRuleCallImport = (RuleCall)ele0AssignmentImports().eContents().get(0));
+ }
+
+ // ( types += Type ) *
+ public Assignment ele1AssignmentTypes() {
+ return (c1AssignmentTypes != null) ? c1AssignmentTypes : (c1AssignmentTypes = (Assignment)eleGroup().eContents().get(1));
+ }
+
+ // Type
+ public RuleCall ele10ParserRuleCallType() {
+ return (c10ParserRuleCallType != null) ? c10ParserRuleCallType : (c10ParserRuleCallType = (RuleCall)ele1AssignmentTypes().eContents().get(0));
+ }
+ }
+
+ public class ImportElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Keyword c0KeywordImport;
+ private Assignment c1AssignmentUri;
+ private RuleCall c10LexerRuleCallSTRING;
+
+ // Import : 'import' uri = STRING ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(2));
+ }
+
+ // 'import' uri = STRING
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // 'import'
+ public Keyword ele0KeywordImport() {
+ return (c0KeywordImport != null) ? c0KeywordImport : (c0KeywordImport = (Keyword)eleGroup().eContents().get(0));
+ }
+
+ // uri = STRING
+ public Assignment ele1AssignmentUri() {
+ return (c1AssignmentUri != null) ? c1AssignmentUri : (c1AssignmentUri = (Assignment)eleGroup().eContents().get(1));
+ }
+
+ // STRING
+ public RuleCall ele10LexerRuleCallSTRING() {
+ return (c10LexerRuleCallSTRING != null) ? c10LexerRuleCallSTRING : (c10LexerRuleCallSTRING = (RuleCall)ele1AssignmentUri().eContents().get(0));
+ }
+ }
+
+ public class TypeElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Group c00Group;
+ private Keyword c000KeywordType;
+ private Assignment c001AssignmentName;
+ private RuleCall c0010LexerRuleCallID;
+ private Keyword c01KeywordExtends;
+ private Assignment c1AssignmentExtends;
+ private CrossReference c10CrossReferenceType;
+
+ // (error)
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(3));
+ }
+
+ // (error)
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // 'type' name = ID 'extends'
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // 'type' name = ID
+ public Group ele00Group() {
+ return (c00Group != null) ? c00Group : (c00Group = (Group)ele0Group().eContents().get(0));
+ }
+
+ // 'type'
+ public Keyword ele000KeywordType() {
+ return (c000KeywordType != null) ? c000KeywordType : (c000KeywordType = (Keyword)ele00Group().eContents().get(0));
+ }
+
+ // 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));
+ }
+
+ // 'extends'
+ public Keyword ele01KeywordExtends() {
+ return (c01KeywordExtends != null) ? c01KeywordExtends : (c01KeywordExtends = (Keyword)ele0Group().eContents().get(1));
+ }
+
+ // (error)
+ public Assignment ele1AssignmentExtends() {
+ return (c1AssignmentExtends != null) ? c1AssignmentExtends : (c1AssignmentExtends = (Assignment)eleGroup().eContents().get(1));
+ }
+
+ // (error)
+ public CrossReference ele10CrossReferenceType() {
+ return (c10CrossReferenceType != null) ? c10CrossReferenceType : (c10CrossReferenceType = (CrossReference)ele1AssignmentExtends().eContents().get(0));
+ }
+ }
+
+ public final static LangAGrammarAccess INSTANCE = new LangAGrammarAccess();
private static final String LANGA_GRAMMAR_CP_URI = "classpath:/org/eclipse/xtext/crossrefs/LangA.xmi";
private static Grammar GRAMMAR = null;
-
+ private static MainElements pMain;
+ private static ImportElements pImport;
+ private static TypeElements pType;
+
@SuppressWarnings("unused")
public synchronized Grammar getGrammar() {
if (GRAMMAR==null) {
@@ -23,47 +163,23 @@ public class LangAGrammarAccess extends BaseEPackageAccess implements IGrammarAc
return GRAMMAR;
}
-
- public ParserRule pr_Main() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/crossrefs/LangA.xmi#//@rules.0"),true);
- }
-
- public ParserRule pr_Import() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/crossrefs/LangA.xmi#//@rules.1"),true);
- }
-
- public ParserRule pr_Type() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/crossrefs/LangA.xmi#//@rules.2"),true);
+ public XtextBuiltinGrammarAccess getSuperGrammar() {
+ return XtextBuiltinGrammarAccess.INSTANCE;
}
- public LexerRule lr_ID() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.0"),true);
- }
-
- public LexerRule lr_INT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.1"),true);
- }
-
- public LexerRule lr_STRING() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.2"),true);
- }
-
- public LexerRule lr_ML_COMMENT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.3"),true);
- }
-
- public LexerRule lr_SL_COMMENT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.4"),true);
- }
-
- public LexerRule lr_WS() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.5"),true);
- }
+ // Main : ( imports += Import ) * ( types += Type ) * ;
+ public MainElements prMain() {
+ return (pMain != null) ? pMain : (pMain = new MainElements());
+ }
- public LexerRule lr_ANY_OTHER() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.6"),true);
- }
+ // Import : 'import' uri = STRING ;
+ public ImportElements prImport() {
+ return (pImport != null) ? pImport : (pImport = new ImportElements());
+ }
-
+ // (error)
+ public TypeElements prType() {
+ return (pType != null) ? pType : (pType = new TypeElements());
+ }
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/internal/InternalDummyLanguageLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/internal/InternalDummyLanguageLexer.java
index 8b02bd6..cf758ab 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/internal/InternalDummyLanguageLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/internal/InternalDummyLanguageLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/dummy/parser/internal/InternalDummyLanguage.g 2008-12-03 21:38:40
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/dummy/parser/internal/InternalDummyLanguage.g 2008-12-04 21:06:48
package org.eclipse.xtext.dummy.parser.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/internal/InternalDummyLanguageParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/internal/InternalDummyLanguageParser.java
index fed630e..761612f 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/internal/InternalDummyLanguageParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/internal/InternalDummyLanguageParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/dummy/parser/internal/InternalDummyLanguage.g 2008-12-03 21:38:39
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/dummy/parser/internal/InternalDummyLanguage.g 2008-12-04 21:06:48
package org.eclipse.xtext.dummy.parser.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parsetree/reconstr/DummyLanguageParseTreeConstructor.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parsetree/reconstr/DummyLanguageParseTreeConstructor.java
index d6c1038..cab40d5 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parsetree/reconstr/DummyLanguageParseTreeConstructor.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parsetree/reconstr/DummyLanguageParseTreeConstructor.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.dummy.services.DummyLanguageGrammarAccess;
public class DummyLanguageParseTreeConstructor extends AbstractParseTreeConstructor {
@@ -42,7 +44,7 @@ protected class Model_Assignment_elements extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/dummy/DummyLanguage.xmi#//@rules.0/@alternatives");
+ return DummyLanguageGrammarAccess.INSTANCE.prModel().eleAssignmentElements();
}
protected Solution createSolution() {
@@ -79,7 +81,7 @@ protected class Element_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/dummy/DummyLanguage.xmi#//@rules.1/@alternatives");
+ return DummyLanguageGrammarAccess.INSTANCE.prElement().eleGroup();
}
protected Solution createSolution() {
@@ -107,7 +109,7 @@ protected class Element_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/dummy/DummyLanguage.xmi#//@rules.1/@alternatives/@abstractTokens.0");
+ return DummyLanguageGrammarAccess.INSTANCE.prElement().ele0Group();
}
protected Solution createSolution() {
@@ -135,7 +137,7 @@ protected class Element_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/dummy/DummyLanguage.xmi#//@rules.1/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return DummyLanguageGrammarAccess.INSTANCE.prElement().ele00Group();
}
protected Solution createSolution() {
@@ -163,7 +165,7 @@ protected class Element_0_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/dummy/DummyLanguage.xmi#//@rules.1/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return DummyLanguageGrammarAccess.INSTANCE.prElement().ele000Group();
}
protected Solution createSolution() {
@@ -191,7 +193,7 @@ protected class Element_0_0_0_0_Assignment_optional extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/dummy/DummyLanguage.xmi#//@rules.1/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return DummyLanguageGrammarAccess.INSTANCE.prElement().ele0000AssignmentOptional();
}
protected Solution createSolution() {
@@ -199,7 +201,7 @@ protected class Element_0_0_0_0_Assignment_optional extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("optional");
if("optional".equals(value)) { // xtext::Keyword
type = AssignmentType.KW;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/dummy/DummyLanguage.xmi#//@rules.1/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@terminal");
+ element = DummyLanguageGrammarAccess.INSTANCE.prElement().ele00000KeywordOptional();
return new Solution(obj);
}
return null;
@@ -214,7 +216,7 @@ protected class Element_0_0_0_1_Keyword_element extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/dummy/DummyLanguage.xmi#//@rules.1/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return DummyLanguageGrammarAccess.INSTANCE.prElement().ele0001KeywordElement();
}
}
@@ -227,7 +229,7 @@ protected class Element_0_0_1_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/dummy/DummyLanguage.xmi#//@rules.1/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return DummyLanguageGrammarAccess.INSTANCE.prElement().ele001AssignmentName();
}
protected Solution createSolution() {
@@ -235,7 +237,7 @@ protected class Element_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/dummy/DummyLanguage.xmi#//@rules.1/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = DummyLanguageGrammarAccess.INSTANCE.prElement().ele0010LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -251,7 +253,7 @@ protected class Element_0_1_Assignment_descriptions extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/dummy/DummyLanguage.xmi#//@rules.1/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return DummyLanguageGrammarAccess.INSTANCE.prElement().ele01AssignmentDescriptions();
}
protected Solution createSolution() {
@@ -259,7 +261,7 @@ protected class Element_0_1_Assignment_descriptions extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("descriptions");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/dummy/DummyLanguage.xmi#//@rules.1/@alternatives/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = DummyLanguageGrammarAccess.INSTANCE.prElement().ele010LexerRuleCallSTRING();
return new Solution(obj);
}
return null;
@@ -275,7 +277,7 @@ protected class Element_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/dummy/DummyLanguage.xmi#//@rules.1/@alternatives/@abstractTokens.1");
+ return DummyLanguageGrammarAccess.INSTANCE.prElement().ele1Keyword();
}
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/services/DummyLanguageGrammarAccess.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/services/DummyLanguageGrammarAccess.java
index 4da4106..73b5114 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/services/DummyLanguageGrammarAccess.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/services/DummyLanguageGrammarAccess.java
@@ -4,15 +4,121 @@ Generated with Xtext
package org.eclipse.xtext.dummy.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 DummyLanguageGrammarAccess extends BaseEPackageAccess implements IGrammarAccess {
+
+ public class ModelElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Assignment cAssignmentElements;
+ private RuleCall c0ParserRuleCallElement;
+
+ // Model : ( elements += Element ) * ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(1));
+ }
+
+ // ( elements += Element ) *
+ public Assignment eleAssignmentElements() {
+ return (cAssignmentElements != null) ? cAssignmentElements : (cAssignmentElements = (Assignment)getRule().eContents().get(0));
+ }
+
+ // Element
+ public RuleCall ele0ParserRuleCallElement() {
+ return (c0ParserRuleCallElement != null) ? c0ParserRuleCallElement : (c0ParserRuleCallElement = (RuleCall)eleAssignmentElements().eContents().get(0));
+ }
+ }
+
+ public class ElementElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Group c00Group;
+ private Group c000Group;
+ private Assignment c0000AssignmentOptional;
+ private Keyword c00000KeywordOptional;
+ private Keyword c0001KeywordElement;
+ private Assignment c001AssignmentName;
+ private RuleCall c0010LexerRuleCallID;
+ private Assignment c01AssignmentDescriptions;
+ private RuleCall c010LexerRuleCallSTRING;
+ private Keyword c1Keyword;
+
+ // Element : ( optional ?= 'optional' ) ? 'element' name = ID ( descriptions += STRING ) * ';' ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(2));
+ }
+
+ // ( optional ?= 'optional' ) ? 'element' name = ID ( descriptions += STRING ) * ';'
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // ( optional ?= 'optional' ) ? 'element' name = ID ( descriptions += STRING ) *
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // ( optional ?= 'optional' ) ? 'element' name = ID
+ public Group ele00Group() {
+ return (c00Group != null) ? c00Group : (c00Group = (Group)ele0Group().eContents().get(0));
+ }
+
+ // ( optional ?= 'optional' ) ? 'element'
+ public Group ele000Group() {
+ return (c000Group != null) ? c000Group : (c000Group = (Group)ele00Group().eContents().get(0));
+ }
+
+ // ( optional ?= 'optional' ) ?
+ public Assignment ele0000AssignmentOptional() {
+ return (c0000AssignmentOptional != null) ? c0000AssignmentOptional : (c0000AssignmentOptional = (Assignment)ele000Group().eContents().get(0));
+ }
+
+ // 'optional'
+ public Keyword ele00000KeywordOptional() {
+ return (c00000KeywordOptional != null) ? c00000KeywordOptional : (c00000KeywordOptional = (Keyword)ele0000AssignmentOptional().eContents().get(0));
+ }
+
+ // 'element'
+ public Keyword ele0001KeywordElement() {
+ return (c0001KeywordElement != null) ? c0001KeywordElement : (c0001KeywordElement = (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));
+ }
+
+ // ( descriptions += STRING ) *
+ public Assignment ele01AssignmentDescriptions() {
+ return (c01AssignmentDescriptions != null) ? c01AssignmentDescriptions : (c01AssignmentDescriptions = (Assignment)ele0Group().eContents().get(1));
+ }
+
+ // STRING
+ public RuleCall ele010LexerRuleCallSTRING() {
+ return (c010LexerRuleCallSTRING != null) ? c010LexerRuleCallSTRING : (c010LexerRuleCallSTRING = (RuleCall)ele01AssignmentDescriptions().eContents().get(0));
+ }
+
+ // ';'
+ public Keyword ele1Keyword() {
+ return (c1Keyword != null) ? c1Keyword : (c1Keyword = (Keyword)eleGroup().eContents().get(1));
+ }
+ }
+
+ public final static DummyLanguageGrammarAccess INSTANCE = new DummyLanguageGrammarAccess();
private static final String DUMMYLANGUAGE_GRAMMAR_CP_URI = "classpath:/org/eclipse/xtext/dummy/DummyLanguage.xmi";
private static Grammar GRAMMAR = null;
-
+ private static ModelElements pModel;
+ private static ElementElements pElement;
+
@SuppressWarnings("unused")
public synchronized Grammar getGrammar() {
if (GRAMMAR==null) {
@@ -23,43 +129,18 @@ public class DummyLanguageGrammarAccess extends BaseEPackageAccess implements IG
return GRAMMAR;
}
-
- public ParserRule pr_Model() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/dummy/DummyLanguage.xmi#//@rules.0"),true);
- }
-
- public ParserRule pr_Element() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/dummy/DummyLanguage.xmi#//@rules.1"),true);
+ public XtextBuiltinGrammarAccess getSuperGrammar() {
+ return XtextBuiltinGrammarAccess.INSTANCE;
}
- public LexerRule lr_ID() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.0"),true);
- }
-
- public LexerRule lr_INT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.1"),true);
- }
-
- public LexerRule lr_STRING() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.2"),true);
- }
-
- public LexerRule lr_ML_COMMENT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.3"),true);
- }
-
- public LexerRule lr_SL_COMMENT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.4"),true);
- }
-
- public LexerRule lr_WS() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.5"),true);
- }
-
- public LexerRule lr_ANY_OTHER() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.6"),true);
- }
+ // Model : ( elements += Element ) * ;
+ public ModelElements prModel() {
+ return (pModel != null) ? pModel : (pModel = new ModelElements());
+ }
-
+ // Element : ( optional ?= 'optional' ) ? 'element' name = ID ( descriptions += STRING ) * ';' ;
+ public ElementElements prElement() {
+ return (pElement != null) ? pElement : (pElement = new ElementElements());
+ }
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/internal/InternalConcreteTestLanguageLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/internal/InternalConcreteTestLanguageLexer.java
index bab847f..6e3c93d 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/internal/InternalConcreteTestLanguageLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/internal/InternalConcreteTestLanguageLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/grammarinheritance/parser/internal/InternalConcreteTestLanguage.g 2008-12-03 21:38:37
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/grammarinheritance/parser/internal/InternalConcreteTestLanguage.g 2008-12-04 21:06:44
package org.eclipse.xtext.grammarinheritance.parser.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/internal/InternalConcreteTestLanguageParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/internal/InternalConcreteTestLanguageParser.java
index e28be6b..bb91df2 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/internal/InternalConcreteTestLanguageParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/internal/InternalConcreteTestLanguageParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/grammarinheritance/parser/internal/InternalConcreteTestLanguage.g 2008-12-03 21:38:37
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/grammarinheritance/parser/internal/InternalConcreteTestLanguage.g 2008-12-04 21:06:44
package org.eclipse.xtext.grammarinheritance.parser.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parsetree/reconstr/ConcreteTestLanguageParseTreeConstructor.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parsetree/reconstr/ConcreteTestLanguageParseTreeConstructor.java
index 0b12f60..f9b1e4e 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parsetree/reconstr/ConcreteTestLanguageParseTreeConstructor.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parsetree/reconstr/ConcreteTestLanguageParseTreeConstructor.java
@@ -9,6 +9,9 @@ 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.grammarinheritance.services.AbstractTestLanguageGrammarAccess;
+import org.eclipse.xtext.grammarinheritance.services.ConcreteTestLanguageGrammarAccess;
public class ConcreteTestLanguageParseTreeConstructor extends AbstractParseTreeConstructor {
@@ -42,7 +45,7 @@ protected class ConcreteParserRule_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/grammarinheritance/ConcreteTestLanguage.xmi#//@rules.0/@alternatives");
+ return ConcreteTestLanguageGrammarAccess.INSTANCE.prConcreteParserRule().eleGroup();
}
protected Solution createSolution() {
@@ -70,7 +73,7 @@ protected class ConcreteParserRule_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/grammarinheritance/ConcreteTestLanguage.xmi#//@rules.0/@alternatives/@abstractTokens.0");
+ return ConcreteTestLanguageGrammarAccess.INSTANCE.prConcreteParserRule().ele0Group();
}
protected Solution createSolution() {
@@ -98,7 +101,7 @@ protected class ConcreteParserRule_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/grammarinheritance/ConcreteTestLanguage.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return ConcreteTestLanguageGrammarAccess.INSTANCE.prConcreteParserRule().ele00Group();
}
protected Solution createSolution() {
@@ -126,7 +129,7 @@ protected class ConcreteParserRule_0_0_0_Keyword_model extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/grammarinheritance/ConcreteTestLanguage.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return ConcreteTestLanguageGrammarAccess.INSTANCE.prConcreteParserRule().ele000KeywordModel();
}
}
@@ -138,7 +141,7 @@ protected class ConcreteParserRule_0_0_1_Assignment_magicNumber extends Assignme
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/grammarinheritance/ConcreteTestLanguage.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return ConcreteTestLanguageGrammarAccess.INSTANCE.prConcreteParserRule().ele001AssignmentMagicNumber();
}
protected Solution createSolution() {
@@ -146,7 +149,7 @@ protected class ConcreteParserRule_0_0_1_Assignment_magicNumber extends Assignme
IInstanceDescription obj = current.cloneAndConsume("magicNumber");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/grammarinheritance/ConcreteTestLanguage.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = ConcreteTestLanguageGrammarAccess.INSTANCE.prConcreteParserRule().ele0010LexerRuleCallREAL();
return new Solution(obj);
}
return null;
@@ -162,7 +165,7 @@ protected class ConcreteParserRule_0_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/grammarinheritance/ConcreteTestLanguage.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return ConcreteTestLanguageGrammarAccess.INSTANCE.prConcreteParserRule().ele01Keyword();
}
}
@@ -175,7 +178,7 @@ protected class ConcreteParserRule_1_Assignment_elements extends AssignmentToken
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/grammarinheritance/ConcreteTestLanguage.xmi#//@rules.0/@alternatives/@abstractTokens.1");
+ return ConcreteTestLanguageGrammarAccess.INSTANCE.prConcreteParserRule().ele1AssignmentElements();
}
protected Solution createSolution() {
@@ -200,7 +203,7 @@ protected class ConcreteParserRule_1_Assignment_elements extends AssignmentToken
/************ begin Rule InheritedParserRule ****************
*
- * (error)
+ * InheritedParserRule returns mm :: AType : 'element' name = ID ;
*
**/
@@ -213,7 +216,7 @@ protected class InheritedParserRule_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/grammarinheritance/AbstractTestLanguage.xmi#//@rules.0/@alternatives");
+ return AbstractTestLanguageGrammarAccess.INSTANCE.prInheritedParserRule().eleGroup();
}
protected Solution createSolution() {
@@ -241,7 +244,7 @@ protected class InheritedParserRule_0_Keyword_element extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/grammarinheritance/AbstractTestLanguage.xmi#//@rules.0/@alternatives/@abstractTokens.0");
+ return AbstractTestLanguageGrammarAccess.INSTANCE.prInheritedParserRule().ele0KeywordElement();
}
}
@@ -253,7 +256,7 @@ protected class InheritedParserRule_1_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/grammarinheritance/AbstractTestLanguage.xmi#//@rules.0/@alternatives/@abstractTokens.1");
+ return AbstractTestLanguageGrammarAccess.INSTANCE.prInheritedParserRule().ele1AssignmentName();
}
protected Solution createSolution() {
@@ -261,7 +264,7 @@ protected class InheritedParserRule_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/grammarinheritance/AbstractTestLanguage.xmi#//@rules.0/@alternatives/@abstractTokens.1/@terminal");
+ element = AbstractTestLanguageGrammarAccess.INSTANCE.prInheritedParserRule().ele10LexerRuleCallID();
return new Solution(obj);
}
return null;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/services/AbstractTestLanguageGrammarAccess.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/services/AbstractTestLanguageGrammarAccess.java
index 691519e..8fa8be6 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/services/AbstractTestLanguageGrammarAccess.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/services/AbstractTestLanguageGrammarAccess.java
@@ -4,15 +4,53 @@ Generated with Xtext
package org.eclipse.xtext.grammarinheritance.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 AbstractTestLanguageGrammarAccess extends BaseEPackageAccess implements IGrammarAccess {
+
+ public class InheritedParserRuleElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Keyword c0KeywordElement;
+ private Assignment c1AssignmentName;
+ private RuleCall c10LexerRuleCallID;
+
+ // InheritedParserRule returns mm :: AType : 'element' name = ID ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(2));
+ }
+
+ // 'element' name = ID
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(1));
+ }
+
+ // 'element'
+ public Keyword ele0KeywordElement() {
+ return (c0KeywordElement != null) ? c0KeywordElement : (c0KeywordElement = (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 AbstractTestLanguageGrammarAccess INSTANCE = new AbstractTestLanguageGrammarAccess();
private static final String ABSTRACTTESTLANGUAGE_GRAMMAR_CP_URI = "classpath:/org/eclipse/xtext/grammarinheritance/AbstractTestLanguage.xmi";
private static Grammar GRAMMAR = null;
-
+ private static InheritedParserRuleElements pInheritedParserRule;
+ private static LexerRule lREAL;
+ private static LexerRule lID;
+
@SuppressWarnings("unused")
public synchronized Grammar getGrammar() {
if (GRAMMAR==null) {
@@ -23,43 +61,23 @@ public class AbstractTestLanguageGrammarAccess extends BaseEPackageAccess implem
return GRAMMAR;
}
-
- public ParserRule pr_InheritedParserRule() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/grammarinheritance/AbstractTestLanguage.xmi#//@rules.0"),true);
+ public XtextBuiltinGrammarAccess getSuperGrammar() {
+ return XtextBuiltinGrammarAccess.INSTANCE;
}
- public LexerRule lr_REAL() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/grammarinheritance/AbstractTestLanguage.xmi#//@rules.1"),true);
- }
-
- public LexerRule lr_ID() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/grammarinheritance/AbstractTestLanguage.xmi#//@rules.2"),true);
- }
-
- public LexerRule lr_INT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.1"),true);
- }
-
- public LexerRule lr_STRING() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.2"),true);
- }
+ // InheritedParserRule returns mm :: AType : 'element' name = ID ;
+ public InheritedParserRuleElements prInheritedParserRule() {
+ return (pInheritedParserRule != null) ? pInheritedParserRule : (pInheritedParserRule = new InheritedParserRuleElements());
+ }
- public LexerRule lr_ML_COMMENT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.3"),true);
- }
-
- public LexerRule lr_SL_COMMENT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.4"),true);
- }
-
- public LexerRule lr_WS() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.5"),true);
- }
-
- public LexerRule lr_ANY_OTHER() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.6"),true);
- }
+ // lexer REAL returns ecore :: EDouble : "RULE_INT '.' RULE_INT" ;
+ public LexerRule lrREAL() {
+ return (lREAL != null) ? lREAL : (lREAL = (LexerRule) getGrammar().eContents().get(3));
+ }
-
+ // lexer ID : "('^')?('a'..'z'|'A'..'Z'|''|''|''|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*" ;
+ public LexerRule lrID() {
+ return (lID != null) ? lID : (lID = (LexerRule) getGrammar().eContents().get(4));
+ }
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/services/ConcreteTestLanguageGrammarAccess.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/services/ConcreteTestLanguageGrammarAccess.java
index 7f1b732..f91c04d 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/services/ConcreteTestLanguageGrammarAccess.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/services/ConcreteTestLanguageGrammarAccess.java
@@ -4,15 +4,81 @@ Generated with Xtext
package org.eclipse.xtext.grammarinheritance.services;
-import org.eclipse.emf.common.util.URI;
import org.eclipse.xtext.*;
import org.eclipse.xtext.parser.BaseEPackageAccess;
+import org.eclipse.xtext.grammarinheritance.services.AbstractTestLanguageGrammarAccess;
public class ConcreteTestLanguageGrammarAccess extends BaseEPackageAccess implements IGrammarAccess {
+
+ public class ConcreteParserRuleElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Group c00Group;
+ private Keyword c000KeywordModel;
+ private Assignment c001AssignmentMagicNumber;
+ private RuleCall c0010LexerRuleCallREAL;
+ private Keyword c01Keyword;
+ private Assignment c1AssignmentElements;
+ private RuleCall c10ParserRuleCallInheritedParserRule;
+
+ // ConcreteParserRule : 'model' magicNumber = REAL ':' ( elements += InheritedParserRule ) * ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(1));
+ }
+
+ // 'model' magicNumber = REAL ':' ( elements += InheritedParserRule ) *
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // 'model' magicNumber = REAL ':'
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // 'model' magicNumber = REAL
+ public Group ele00Group() {
+ return (c00Group != null) ? c00Group : (c00Group = (Group)ele0Group().eContents().get(0));
+ }
+
+ // 'model'
+ public Keyword ele000KeywordModel() {
+ return (c000KeywordModel != null) ? c000KeywordModel : (c000KeywordModel = (Keyword)ele00Group().eContents().get(0));
+ }
+
+ // magicNumber = REAL
+ public Assignment ele001AssignmentMagicNumber() {
+ return (c001AssignmentMagicNumber != null) ? c001AssignmentMagicNumber : (c001AssignmentMagicNumber = (Assignment)ele00Group().eContents().get(1));
+ }
+
+ // REAL
+ public RuleCall ele0010LexerRuleCallREAL() {
+ return (c0010LexerRuleCallREAL != null) ? c0010LexerRuleCallREAL : (c0010LexerRuleCallREAL = (RuleCall)ele001AssignmentMagicNumber().eContents().get(0));
+ }
+
+ // ':'
+ public Keyword ele01Keyword() {
+ return (c01Keyword != null) ? c01Keyword : (c01Keyword = (Keyword)ele0Group().eContents().get(1));
+ }
+
+ // ( elements += InheritedParserRule ) *
+ public Assignment ele1AssignmentElements() {
+ return (c1AssignmentElements != null) ? c1AssignmentElements : (c1AssignmentElements = (Assignment)eleGroup().eContents().get(1));
+ }
+
+ // InheritedParserRule
+ public RuleCall ele10ParserRuleCallInheritedParserRule() {
+ return (c10ParserRuleCallInheritedParserRule != null) ? c10ParserRuleCallInheritedParserRule : (c10ParserRuleCallInheritedParserRule = (RuleCall)ele1AssignmentElements().eContents().get(0));
+ }
+ }
+
+ public final static ConcreteTestLanguageGrammarAccess INSTANCE = new ConcreteTestLanguageGrammarAccess();
private static final String CONCRETETESTLANGUAGE_GRAMMAR_CP_URI = "classpath:/org/eclipse/xtext/grammarinheritance/ConcreteTestLanguage.xmi";
private static Grammar GRAMMAR = null;
-
+ private static ConcreteParserRuleElements pConcreteParserRule;
+
@SuppressWarnings("unused")
public synchronized Grammar getGrammar() {
if (GRAMMAR==null) {
@@ -23,47 +89,13 @@ public class ConcreteTestLanguageGrammarAccess extends BaseEPackageAccess implem
return GRAMMAR;
}
-
- public ParserRule pr_ConcreteParserRule() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/grammarinheritance/ConcreteTestLanguage.xmi#//@rules.0"),true);
- }
-
- public ParserRule pr_InheritedParserRule() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/grammarinheritance/AbstractTestLanguage.xmi#//@rules.0"),true);
+ public AbstractTestLanguageGrammarAccess getSuperGrammar() {
+ return AbstractTestLanguageGrammarAccess.INSTANCE;
}
- public LexerRule lr_REAL() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/grammarinheritance/AbstractTestLanguage.xmi#//@rules.1"),true);
- }
-
- public LexerRule lr_ID() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/grammarinheritance/AbstractTestLanguage.xmi#//@rules.2"),true);
- }
-
- public LexerRule lr_INT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.1"),true);
- }
-
- public LexerRule lr_STRING() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.2"),true);
- }
-
- public LexerRule lr_ML_COMMENT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.3"),true);
- }
-
- public LexerRule lr_SL_COMMENT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.4"),true);
- }
-
- public LexerRule lr_WS() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.5"),true);
- }
-
- public LexerRule lr_ANY_OTHER() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.6"),true);
- }
-
-
+ // ConcreteParserRule : 'model' magicNumber = REAL ':' ( elements += InheritedParserRule ) * ;
+ public ConcreteParserRuleElements prConcreteParserRule() {
+ return (pConcreteParserRule != null) ? pConcreteParserRule : (pConcreteParserRule = new ConcreteParserRuleElements());
+ }
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/internal/InternalMetamodelRefTestLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/internal/InternalMetamodelRefTestLexer.java
index ba8fa7c..5628d18 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/internal/InternalMetamodelRefTestLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/internal/InternalMetamodelRefTestLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/internal/InternalMetamodelRefTest.g 2008-12-03 21:38:39
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/internal/InternalMetamodelRefTest.g 2008-12-04 21:06:48
package org.eclipse.xtext.metamodelreferencing.tests.parser.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/internal/InternalMetamodelRefTestParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/internal/InternalMetamodelRefTestParser.java
index ae7534e..ba9366f 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/internal/InternalMetamodelRefTestParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/internal/InternalMetamodelRefTestParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/internal/InternalMetamodelRefTest.g 2008-12-03 21:38:39
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/internal/InternalMetamodelRefTest.g 2008-12-04 21:06:48
package org.eclipse.xtext.metamodelreferencing.tests.parser.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parsetree/reconstr/MetamodelRefTestParseTreeConstructor.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parsetree/reconstr/MetamodelRefTestParseTreeConstructor.java
index acfa776..69d6793 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parsetree/reconstr/MetamodelRefTestParseTreeConstructor.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parsetree/reconstr/MetamodelRefTestParseTreeConstructor.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.metamodelreferencing.tests.services.MetamodelRefTestGrammarAccess;
public class MetamodelRefTestParseTreeConstructor extends AbstractParseTreeConstructor {
@@ -43,7 +45,7 @@ protected class Foo_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/metamodelreferencing/tests/MetamodelRefTest.xmi#//@rules.0/@alternatives");
+ return MetamodelRefTestGrammarAccess.INSTANCE.prFoo().eleGroup();
}
protected Solution createSolution() {
@@ -71,7 +73,7 @@ protected class Foo_0_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/metamodelreferencing/tests/MetamodelRefTest.xmi#//@rules.0/@alternatives/@abstractTokens.0");
+ return MetamodelRefTestGrammarAccess.INSTANCE.prFoo().ele0AssignmentName();
}
protected Solution createSolution() {
@@ -79,7 +81,7 @@ protected class Foo_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/metamodelreferencing/tests/MetamodelRefTest.xmi#//@rules.0/@alternatives/@abstractTokens.0/@terminal");
+ element = MetamodelRefTestGrammarAccess.INSTANCE.prFoo().ele00LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -94,7 +96,7 @@ protected class Foo_1_Assignment_nameRefs extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/metamodelreferencing/tests/MetamodelRefTest.xmi#//@rules.0/@alternatives/@abstractTokens.1");
+ return MetamodelRefTestGrammarAccess.INSTANCE.prFoo().ele1AssignmentNameRefs();
}
protected Solution createSolution() {
@@ -124,7 +126,7 @@ protected class Foo_1_Assignment_nameRefs extends AssignmentToken {
**/
-// rule = [ SimpleTest :: MyRule ]
+// (error)
protected class NameRef_Assignment_rule extends AssignmentToken {
public NameRef_Assignment_rule(IInstanceDescription curr, AbstractToken pred) {
@@ -132,7 +134,7 @@ protected class NameRef_Assignment_rule extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/metamodelreferencing/tests/MetamodelRefTest.xmi#//@rules.1/@alternatives");
+ return MetamodelRefTestGrammarAccess.INSTANCE.prNameRef().eleAssignmentRule();
}
protected Solution createSolution() {
@@ -142,7 +144,7 @@ protected class NameRef_Assignment_rule extends AssignmentToken {
IInstanceDescription param = getDescr((EObject)value);
if(param.isInstanceOf("MyRule")) {
type = AssignmentType.CR;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/metamodelreferencing/tests/MetamodelRefTest.xmi#//@rules.1/@alternatives/@terminal");
+ element = MetamodelRefTestGrammarAccess.INSTANCE.prNameRef().ele0CrossReferenceMyRule();
return new Solution(obj);
}
}
@@ -154,7 +156,7 @@ protected class NameRef_Assignment_rule extends AssignmentToken {
/************ begin Rule MyRule ****************
*
- * (error)
+ * MyRule returns xtext :: ParserRule : name = ID ;
*
**/
@@ -167,7 +169,7 @@ protected class MyRule_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/metamodelreferencing/tests/MetamodelRefTest.xmi#//@rules.2/@alternatives");
+ return MetamodelRefTestGrammarAccess.INSTANCE.prMyRule().eleAssignmentName();
}
protected Solution createSolution() {
@@ -175,7 +177,7 @@ protected class MyRule_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/metamodelreferencing/tests/MetamodelRefTest.xmi#//@rules.2/@alternatives/@terminal");
+ element = MetamodelRefTestGrammarAccess.INSTANCE.prMyRule().ele0LexerRuleCallID();
return new Solution(obj);
}
return null;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/services/MetamodelRefTestGrammarAccess.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/services/MetamodelRefTestGrammarAccess.java
index 3e3a43f..d814f24 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/services/MetamodelRefTestGrammarAccess.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/services/MetamodelRefTestGrammarAccess.java
@@ -4,15 +4,101 @@ Generated with Xtext
package org.eclipse.xtext.metamodelreferencing.tests.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 MetamodelRefTestGrammarAccess extends BaseEPackageAccess implements IGrammarAccess {
+
+ public class FooElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Assignment c0AssignmentName;
+ private RuleCall c00LexerRuleCallID;
+ private Assignment c1AssignmentNameRefs;
+ private RuleCall c10ParserRuleCallNameRef;
+
+ // Foo : name = ID ( nameRefs += NameRef ) * ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(2));
+ }
+
+ // name = ID ( nameRefs += NameRef ) *
+ 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));
+ }
+
+ // ( nameRefs += NameRef ) *
+ public Assignment ele1AssignmentNameRefs() {
+ return (c1AssignmentNameRefs != null) ? c1AssignmentNameRefs : (c1AssignmentNameRefs = (Assignment)eleGroup().eContents().get(1));
+ }
+
+ // NameRef
+ public RuleCall ele10ParserRuleCallNameRef() {
+ return (c10ParserRuleCallNameRef != null) ? c10ParserRuleCallNameRef : (c10ParserRuleCallNameRef = (RuleCall)ele1AssignmentNameRefs().eContents().get(0));
+ }
+ }
+
+ public class NameRefElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Assignment cAssignmentRule;
+ private CrossReference c0CrossReferenceMyRule;
+
+ // (error)
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(3));
+ }
+
+ // (error)
+ public Assignment eleAssignmentRule() {
+ return (cAssignmentRule != null) ? cAssignmentRule : (cAssignmentRule = (Assignment)getRule().eContents().get(1));
+ }
+
+ // (error)
+ public CrossReference ele0CrossReferenceMyRule() {
+ return (c0CrossReferenceMyRule != null) ? c0CrossReferenceMyRule : (c0CrossReferenceMyRule = (CrossReference)eleAssignmentRule().eContents().get(0));
+ }
+ }
+
+ public class MyRuleElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Assignment cAssignmentName;
+ private RuleCall c0LexerRuleCallID;
+
+ // MyRule returns xtext :: ParserRule : name = ID ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(4));
+ }
+
+ // name = ID
+ public Assignment eleAssignmentName() {
+ return (cAssignmentName != null) ? cAssignmentName : (cAssignmentName = (Assignment)getRule().eContents().get(1));
+ }
+
+ // ID
+ public RuleCall ele0LexerRuleCallID() {
+ return (c0LexerRuleCallID != null) ? c0LexerRuleCallID : (c0LexerRuleCallID = (RuleCall)eleAssignmentName().eContents().get(0));
+ }
+ }
+
+ public final static MetamodelRefTestGrammarAccess INSTANCE = new MetamodelRefTestGrammarAccess();
private static final String METAMODELREFTEST_GRAMMAR_CP_URI = "classpath:/org/eclipse/xtext/metamodelreferencing/tests/MetamodelRefTest.xmi";
private static Grammar GRAMMAR = null;
-
+ private static FooElements pFoo;
+ private static NameRefElements pNameRef;
+ private static MyRuleElements pMyRule;
+
@SuppressWarnings("unused")
public synchronized Grammar getGrammar() {
if (GRAMMAR==null) {
@@ -23,47 +109,23 @@ public class MetamodelRefTestGrammarAccess extends BaseEPackageAccess implements
return GRAMMAR;
}
-
- public ParserRule pr_Foo() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/metamodelreferencing/tests/MetamodelRefTest.xmi#//@rules.0"),true);
- }
-
- public ParserRule pr_NameRef() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/metamodelreferencing/tests/MetamodelRefTest.xmi#//@rules.1"),true);
- }
-
- public ParserRule pr_MyRule() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/metamodelreferencing/tests/MetamodelRefTest.xmi#//@rules.2"),true);
+ public XtextBuiltinGrammarAccess getSuperGrammar() {
+ return XtextBuiltinGrammarAccess.INSTANCE;
}
- public LexerRule lr_ID() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.0"),true);
- }
+ // Foo : name = ID ( nameRefs += NameRef ) * ;
+ public FooElements prFoo() {
+ return (pFoo != null) ? pFoo : (pFoo = new FooElements());
+ }
- public LexerRule lr_INT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.1"),true);
- }
-
- public LexerRule lr_STRING() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.2"),true);
- }
-
- public LexerRule lr_ML_COMMENT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.3"),true);
- }
-
- public LexerRule lr_SL_COMMENT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.4"),true);
- }
-
- public LexerRule lr_WS() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.5"),true);
- }
-
- 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 NameRefElements prNameRef() {
+ return (pNameRef != null) ? pNameRef : (pNameRef = new NameRefElements());
+ }
-
+ // MyRule returns xtext :: ParserRule : name = ID ;
+ public MyRuleElements prMyRule() {
+ return (pMyRule != null) ? pMyRule : (pMyRule = new MyRuleElements());
+ }
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTestLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTestLexer.java
index 5060311..7d89b02 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTestLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTestLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g 2008-12-03 21:43:18
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g 2008-12-04 21:06:47
package org.eclipse.xtext.parser.internal;
@@ -53,14 +53,14 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public InternalXtextGrammarTestLexer(CharStream input) {
super(input);
}
- public String getGrammarFileName() { return "../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g"; }
+ public String getGrammarFileName() { return "./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g"; }
// $ANTLR start T11
public final void mT11() throws RecognitionException {
try {
int _type = T11;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:10:5: ( 'abstract language' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:10:7: 'abstract language'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:10:5: ( 'abstract language' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:10:7: 'abstract language'
{
match("abstract language");
@@ -78,8 +78,8 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mT12() throws RecognitionException {
try {
int _type = T12;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:11:5: ( 'language' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:11:7: 'language'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:11:5: ( 'language' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:11:7: 'language'
{
match("language");
@@ -97,8 +97,8 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mT13() throws RecognitionException {
try {
int _type = T13;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:12:5: ( '.' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:12:7: '.'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:12:5: ( '.' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:12:7: '.'
{
match('.');
@@ -115,8 +115,8 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mT14() throws RecognitionException {
try {
int _type = T14;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:13:5: ( 'extends' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:13:7: 'extends'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:13:5: ( 'extends' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:13:7: 'extends'
{
match("extends");
@@ -134,8 +134,8 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mT15() throws RecognitionException {
try {
int _type = T15;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:14:5: ( 'generate' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:14:7: 'generate'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:14:5: ( 'generate' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:14:7: 'generate'
{
match("generate");
@@ -153,8 +153,8 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mT16() throws RecognitionException {
try {
int _type = T16;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:15:5: ( 'as' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:15:7: 'as'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:15:5: ( 'as' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:15:7: 'as'
{
match("as");
@@ -172,8 +172,8 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mT17() throws RecognitionException {
try {
int _type = T17;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:16:5: ( 'import' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:16:7: 'import'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:16:5: ( 'import' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:16:7: 'import'
{
match("import");
@@ -191,8 +191,8 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mT18() throws RecognitionException {
try {
int _type = T18;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:17:5: ( 'native' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:17:7: 'native'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:17:5: ( 'native' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:17:7: 'native'
{
match("native");
@@ -210,8 +210,8 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mT19() throws RecognitionException {
try {
int _type = T19;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:18:5: ( 'lexer' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:18:7: 'lexer'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:18:5: ( 'lexer' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:18:7: 'lexer'
{
match("lexer");
@@ -229,8 +229,8 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mT20() throws RecognitionException {
try {
int _type = T20;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:19:5: ( 'returns' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:19:7: 'returns'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:19:5: ( 'returns' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:19:7: 'returns'
{
match("returns");
@@ -248,8 +248,8 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mT21() throws RecognitionException {
try {
int _type = T21;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:20:5: ( ':' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:20:7: ':'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:20:5: ( ':' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:20:7: ':'
{
match(':');
@@ -266,8 +266,8 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mT22() throws RecognitionException {
try {
int _type = T22;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:21:5: ( ';' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:21:7: ';'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:21:5: ( ';' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:21:7: ';'
{
match(';');
@@ -284,8 +284,8 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mT23() throws RecognitionException {
try {
int _type = T23;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:22:5: ( '::' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:22:7: '::'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:22:5: ( '::' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:22:7: '::'
{
match("::");
@@ -303,8 +303,8 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mT24() throws RecognitionException {
try {
int _type = T24;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:23:5: ( '|' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:23:7: '|'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:23:5: ( '|' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:23:7: '|'
{
match('|');
@@ -321,8 +321,8 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mT25() throws RecognitionException {
try {
int _type = T25;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:24:5: ( '?' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:24:7: '?'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:24:5: ( '?' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:24:7: '?'
{
match('?');
@@ -339,8 +339,8 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mT26() throws RecognitionException {
try {
int _type = T26;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:25:5: ( '*' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:25:7: '*'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:25:5: ( '*' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:25:7: '*'
{
match('*');
@@ -357,8 +357,8 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mT27() throws RecognitionException {
try {
int _type = T27;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:26:5: ( '+' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:26:7: '+'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:26:5: ( '+' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:26:7: '+'
{
match('+');
@@ -375,8 +375,8 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mT28() throws RecognitionException {
try {
int _type = T28;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:27:5: ( '+=' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:27:7: '+='
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:27:5: ( '+=' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:27:7: '+='
{
match("+=");
@@ -394,8 +394,8 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mT29() throws RecognitionException {
try {
int _type = T29;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:28:5: ( '=' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:28:7: '='
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:28:5: ( '=' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:28:7: '='
{
match('=');
@@ -412,8 +412,8 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mT30() throws RecognitionException {
try {
int _type = T30;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:29:5: ( '?=' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:29:7: '?='
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:29:5: ( '?=' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:29:7: '?='
{
match("?=");
@@ -431,8 +431,8 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mT31() throws RecognitionException {
try {
int _type = T31;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:30:5: ( '{' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:30:7: '{'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:30:5: ( '{' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:30:7: '{'
{
match('{');
@@ -449,8 +449,8 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mT32() throws RecognitionException {
try {
int _type = T32;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:31:5: ( 'current' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:31:7: 'current'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:31:5: ( 'current' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:31:7: 'current'
{
match("current");
@@ -468,8 +468,8 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mT33() throws RecognitionException {
try {
int _type = T33;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:32:5: ( '}' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:32:7: '}'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:32:5: ( '}' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:32:7: '}'
{
match('}');
@@ -486,8 +486,8 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mT34() throws RecognitionException {
try {
int _type = T34;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:33:5: ( '[' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:33:7: '['
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:33:5: ( '[' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:33:7: '['
{
match('[');
@@ -504,8 +504,8 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mT35() throws RecognitionException {
try {
int _type = T35;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:34:5: ( ']' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:34:7: ']'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:34:5: ( ']' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:34:7: ']'
{
match(']');
@@ -522,8 +522,8 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mT36() throws RecognitionException {
try {
int _type = T36;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:35:5: ( '(' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:35:7: '('
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:35:5: ( '(' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:35:7: '('
{
match('(');
@@ -540,8 +540,8 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mT37() throws RecognitionException {
try {
int _type = T37;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:36:5: ( ')' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:36:7: ')'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:36:5: ( ')' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:36:7: ')'
{
match(')');
@@ -558,10 +558,10 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mRULE_ID() throws RecognitionException {
try {
int _type = RULE_ID;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1186:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1186:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1186:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1186:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1186:11: ( '^' )?
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1186:11: ( '^' )?
int alt1=2;
int LA1_0 = input.LA(1);
@@ -570,7 +570,7 @@ public class InternalXtextGrammarTestLexer extends Lexer {
}
switch (alt1) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1186:12: '^'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1186:12: '^'
{
match('^');
@@ -589,7 +589,7 @@ public class InternalXtextGrammarTestLexer extends Lexer {
recover(mse); throw mse;
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1186:41: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1186:41: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
loop2:
do {
int alt2=2;
@@ -602,7 +602,7 @@ public class InternalXtextGrammarTestLexer extends Lexer {
switch (alt2) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:
{
if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
input.consume();
@@ -637,10 +637,10 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mRULE_INT() throws RecognitionException {
try {
int _type = RULE_INT;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1188:10: ( ( '0' .. '9' )+ )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1188:12: ( '0' .. '9' )+
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1188:10: ( ( '0' .. '9' )+ )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1188:12: ( '0' .. '9' )+
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1188:12: ( '0' .. '9' )+
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1188:12: ( '0' .. '9' )+
int cnt3=0;
loop3:
do {
@@ -654,7 +654,7 @@ public class InternalXtextGrammarTestLexer extends Lexer {
switch (alt3) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1188:13: '0' .. '9'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1188:13: '0' .. '9'
{
matchRange('0','9');
@@ -684,7 +684,7 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mRULE_STRING() throws RecognitionException {
try {
int _type = RULE_STRING;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1190:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\"' ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\\'' ) )* '\\'' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1190:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\"' ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\\'' ) )* '\\'' )
int alt6=2;
int LA6_0 = input.LA(1);
@@ -702,10 +702,10 @@ public class InternalXtextGrammarTestLexer extends Lexer {
}
switch (alt6) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1190:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\"' ) )* '\"'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1190:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\"' ) )* '\"'
{
match('\"');
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1190:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\"' ) )*
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1190:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\"' ) )*
loop4:
do {
int alt4=3;
@@ -721,7 +721,7 @@ public class InternalXtextGrammarTestLexer extends Lexer {
switch (alt4) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1190:21: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1190:21: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' )
{
match('\\');
if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||input.LA(1)=='t' ) {
@@ -738,7 +738,7 @@ public class InternalXtextGrammarTestLexer extends Lexer {
}
break;
case 2 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1190:65: ~ ( '\\\\' | '\"' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1190:65: ~ ( '\\\\' | '\"' )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFE') ) {
input.consume();
@@ -764,10 +764,10 @@ public class InternalXtextGrammarTestLexer extends Lexer {
}
break;
case 2 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1190:101: '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\\'' ) )* '\\''
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1190:101: '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\\'' ) )* '\\''
{
match('\'');
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1190:106: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\\'' ) )*
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1190:106: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\\'' ) )*
loop5:
do {
int alt5=3;
@@ -783,7 +783,7 @@ public class InternalXtextGrammarTestLexer extends Lexer {
switch (alt5) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1190:108: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1190:108: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' )
{
match('\\');
if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||input.LA(1)=='t' ) {
@@ -800,7 +800,7 @@ public class InternalXtextGrammarTestLexer extends Lexer {
}
break;
case 2 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1190:152: ~ ( '\\\\' | '\\'' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1190:152: ~ ( '\\\\' | '\\'' )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFE') ) {
input.consume();
@@ -838,12 +838,12 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mRULE_ML_COMMENT() throws RecognitionException {
try {
int _type = RULE_ML_COMMENT;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1192:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1192:19: '/*' ( options {greedy=false; } : . )* '*/'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1192:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1192:19: '/*' ( options {greedy=false; } : . )* '*/'
{
match("/*");
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1192:24: ( options {greedy=false; } : . )*
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1192:24: ( options {greedy=false; } : . )*
loop7:
do {
int alt7=2;
@@ -868,7 +868,7 @@ public class InternalXtextGrammarTestLexer extends Lexer {
switch (alt7) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1192:52: .
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1192:52: .
{
matchAny();
@@ -897,12 +897,12 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mRULE_SL_COMMENT() throws RecognitionException {
try {
int _type = RULE_SL_COMMENT;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1194:17: ( '//' (~ ( '\\n' | '\\r' ) )* ( ( '\\r' )? '\\n' )? )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1194:19: '//' (~ ( '\\n' | '\\r' ) )* ( ( '\\r' )? '\\n' )?
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1194:17: ( '//' (~ ( '\\n' | '\\r' ) )* ( ( '\\r' )? '\\n' )? )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1194:19: '//' (~ ( '\\n' | '\\r' ) )* ( ( '\\r' )? '\\n' )?
{
match("//");
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1194:24: (~ ( '\\n' | '\\r' ) )*
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1194:24: (~ ( '\\n' | '\\r' ) )*
loop8:
do {
int alt8=2;
@@ -915,7 +915,7 @@ public class InternalXtextGrammarTestLexer extends Lexer {
switch (alt8) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1194:24: ~ ( '\\n' | '\\r' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1194:24: ~ ( '\\n' | '\\r' )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFE') ) {
input.consume();
@@ -936,7 +936,7 @@ public class InternalXtextGrammarTestLexer extends Lexer {
}
} while (true);
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1194:38: ( ( '\\r' )? '\\n' )?
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1194:38: ( ( '\\r' )? '\\n' )?
int alt10=2;
int LA10_0 = input.LA(1);
@@ -945,9 +945,9 @@ public class InternalXtextGrammarTestLexer extends Lexer {
}
switch (alt10) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1194:39: ( '\\r' )? '\\n'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1194:39: ( '\\r' )? '\\n'
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1194:39: ( '\\r' )?
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1194:39: ( '\\r' )?
int alt9=2;
int LA9_0 = input.LA(1);
@@ -956,7 +956,7 @@ public class InternalXtextGrammarTestLexer extends Lexer {
}
switch (alt9) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1194:39: '\\r'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1194:39: '\\r'
{
match('\r');
@@ -987,10 +987,10 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mRULE_WS() throws RecognitionException {
try {
int _type = RULE_WS;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1196:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1196:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1196:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1196:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1196:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1196:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
int cnt11=0;
loop11:
do {
@@ -1004,7 +1004,7 @@ public class InternalXtextGrammarTestLexer extends Lexer {
switch (alt11) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:
{
if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) {
input.consume();
@@ -1044,8 +1044,8 @@ public class InternalXtextGrammarTestLexer extends Lexer {
public final void mRULE_ANY_OTHER() throws RecognitionException {
try {
int _type = RULE_ANY_OTHER;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1198:16: ( . )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1198:18: .
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1198:16: ( . )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1198:18: .
{
matchAny();
@@ -1059,7 +1059,7 @@ public class InternalXtextGrammarTestLexer extends Lexer {
// $ANTLR end RULE_ANY_OTHER
public void mTokens() throws RecognitionException {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:8: ( T11 | T12 | T13 | T14 | T15 | T16 | T17 | T18 | T19 | T20 | T21 | T22 | T23 | T24 | T25 | T26 | T27 | T28 | T29 | T30 | T31 | T32 | T33 | T34 | T35 | T36 | T37 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:8: ( T11 | T12 | T13 | T14 | T15 | T16 | T17 | T18 | T19 | T20 | T21 | T22 | T23 | T24 | T25 | T26 | T27 | T28 | T29 | T30 | T31 | T32 | T33 | T34 | T35 | T36 | T37 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER )
int alt12=34;
int LA12_0 = input.LA(1);
@@ -1596,238 +1596,238 @@ public class InternalXtextGrammarTestLexer extends Lexer {
}
switch (alt12) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:10: T11
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:10: T11
{
mT11();
}
break;
case 2 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:14: T12
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:14: T12
{
mT12();
}
break;
case 3 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:18: T13
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:18: T13
{
mT13();
}
break;
case 4 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:22: T14
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:22: T14
{
mT14();
}
break;
case 5 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:26: T15
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:26: T15
{
mT15();
}
break;
case 6 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:30: T16
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:30: T16
{
mT16();
}
break;
case 7 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:34: T17
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:34: T17
{
mT17();
}
break;
case 8 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:38: T18
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:38: T18
{
mT18();
}
break;
case 9 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:42: T19
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:42: T19
{
mT19();
}
break;
case 10 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:46: T20
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:46: T20
{
mT20();
}
break;
case 11 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:50: T21
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:50: T21
{
mT21();
}
break;
case 12 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:54: T22
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:54: T22
{
mT22();
}
break;
case 13 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:58: T23
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:58: T23
{
mT23();
}
break;
case 14 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:62: T24
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:62: T24
{
mT24();
}
break;
case 15 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:66: T25
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:66: T25
{
mT25();
}
break;
case 16 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:70: T26
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:70: T26
{
mT26();
}
break;
case 17 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:74: T27
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:74: T27
{
mT27();
}
break;
case 18 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:78: T28
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:78: T28
{
mT28();
}
break;
case 19 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:82: T29
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:82: T29
{
mT29();
}
break;
case 20 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:86: T30
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:86: T30
{
mT30();
}
break;
case 21 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:90: T31
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:90: T31
{
mT31();
}
break;
case 22 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:94: T32
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:94: T32
{
mT32();
}
break;
case 23 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:98: T33
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:98: T33
{
mT33();
}
break;
case 24 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:102: T34
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:102: T34
{
mT34();
}
break;
case 25 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:106: T35
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:106: T35
{
mT35();
}
break;
case 26 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:110: T36
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:110: T36
{
mT36();
}
break;
case 27 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:114: T37
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:114: T37
{
mT37();
}
break;
case 28 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:118: RULE_ID
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:118: RULE_ID
{
mRULE_ID();
}
break;
case 29 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:126: RULE_INT
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:126: RULE_INT
{
mRULE_INT();
}
break;
case 30 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:135: RULE_STRING
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:135: RULE_STRING
{
mRULE_STRING();
}
break;
case 31 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:147: RULE_ML_COMMENT
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:147: RULE_ML_COMMENT
{
mRULE_ML_COMMENT();
}
break;
case 32 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:163: RULE_SL_COMMENT
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:163: RULE_SL_COMMENT
{
mRULE_SL_COMMENT();
}
break;
case 33 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:179: RULE_WS
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:179: RULE_WS
{
mRULE_WS();
}
break;
case 34 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:187: RULE_ANY_OTHER
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1:187: RULE_ANY_OTHER
{
mRULE_ANY_OTHER();
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTestParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTestParser.java
index 38b1e12..131dbaa 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTestParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTestParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g 2008-12-03 21:43:18
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g 2008-12-04 21:06:46
package org.eclipse.xtext.parser.internal;
@@ -37,7 +37,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
public String[] getTokenNames() { return tokenNames; }
- public String getGrammarFileName() { return "../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g"; }
+ public String getGrammarFileName() { return "./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g"; }
@@ -61,7 +61,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start entryRuleGrammar
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:62:1: entryRuleGrammar returns [EObject current=null] : iv_ruleGrammar= ruleGrammar EOF ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:62:1: entryRuleGrammar returns [EObject current=null] : iv_ruleGrammar= ruleGrammar EOF ;
public final EObject entryRuleGrammar() throws RecognitionException {
EObject current = null;
@@ -69,8 +69,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:62:49: (iv_ruleGrammar= ruleGrammar EOF )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:63:2: iv_ruleGrammar= ruleGrammar EOF
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:62:49: (iv_ruleGrammar= ruleGrammar EOF )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:63:2: iv_ruleGrammar= ruleGrammar EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleGrammar_in_entryRuleGrammar70);
@@ -96,7 +96,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start ruleGrammar
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:70:1: ruleGrammar returns [EObject current=null] : ( ( ( ( ( ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID ) ) ( '.' (lv_idElements= RULE_ID ) )* ) ( ( 'extends' (lv_superGrammarIdElements= RULE_ID ) ) ( '.' (lv_superGrammarIdElements= RULE_ID ) )* )? ) (lv_metamodelDeclarations= ruleAbstractMetamodelDeclaration )* ) (lv_rules= ruleAbstractRule )+ ) ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:70:1: ruleGrammar returns [EObject current=null] : ( ( ( ( ( ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID ) ) ( '.' (lv_idElements= RULE_ID ) )* ) ( ( 'extends' (lv_superGrammarIdElements= RULE_ID ) ) ( '.' (lv_superGrammarIdElements= RULE_ID ) )* )? ) (lv_metamodelDeclarations= ruleAbstractMetamodelDeclaration )* ) (lv_rules= ruleAbstractRule )+ ) ;
public final EObject ruleGrammar() throws RecognitionException {
EObject current = null;
@@ -110,25 +110,25 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:72:33: ( ( ( ( ( ( ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID ) ) ( '.' (lv_idElements= RULE_ID ) )* ) ( ( 'extends' (lv_superGrammarIdElements= RULE_ID ) ) ( '.' (lv_superGrammarIdElements= RULE_ID ) )* )? ) (lv_metamodelDeclarations= ruleAbstractMetamodelDeclaration )* ) (lv_rules= ruleAbstractRule )+ ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:73:1: ( ( ( ( ( ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID ) ) ( '.' (lv_idElements= RULE_ID ) )* ) ( ( 'extends' (lv_superGrammarIdElements= RULE_ID ) ) ( '.' (lv_superGrammarIdElements= RULE_ID ) )* )? ) (lv_metamodelDeclarations= ruleAbstractMetamodelDeclaration )* ) (lv_rules= ruleAbstractRule )+ )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:72:33: ( ( ( ( ( ( ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID ) ) ( '.' (lv_idElements= RULE_ID ) )* ) ( ( 'extends' (lv_superGrammarIdElements= RULE_ID ) ) ( '.' (lv_superGrammarIdElements= RULE_ID ) )* )? ) (lv_metamodelDeclarations= ruleAbstractMetamodelDeclaration )* ) (lv_rules= ruleAbstractRule )+ ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:73:1: ( ( ( ( ( ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID ) ) ( '.' (lv_idElements= RULE_ID ) )* ) ( ( 'extends' (lv_superGrammarIdElements= RULE_ID ) ) ( '.' (lv_superGrammarIdElements= RULE_ID ) )* )? ) (lv_metamodelDeclarations= ruleAbstractMetamodelDeclaration )* ) (lv_rules= ruleAbstractRule )+ )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:73:1: ( ( ( ( ( ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID ) ) ( '.' (lv_idElements= RULE_ID ) )* ) ( ( 'extends' (lv_superGrammarIdElements= RULE_ID ) ) ( '.' (lv_superGrammarIdElements= RULE_ID ) )* )? ) (lv_metamodelDeclarations= ruleAbstractMetamodelDeclaration )* ) (lv_rules= ruleAbstractRule )+ )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:73:2: ( ( ( ( ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID ) ) ( '.' (lv_idElements= RULE_ID ) )* ) ( ( 'extends' (lv_superGrammarIdElements= RULE_ID ) ) ( '.' (lv_superGrammarIdElements= RULE_ID ) )* )? ) (lv_metamodelDeclarations= ruleAbstractMetamodelDeclaration )* ) (lv_rules= ruleAbstractRule )+
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:73:1: ( ( ( ( ( ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID ) ) ( '.' (lv_idElements= RULE_ID ) )* ) ( ( 'extends' (lv_superGrammarIdElements= RULE_ID ) ) ( '.' (lv_superGrammarIdElements= RULE_ID ) )* )? ) (lv_metamodelDeclarations= ruleAbstractMetamodelDeclaration )* ) (lv_rules= ruleAbstractRule )+ )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:73:2: ( ( ( ( ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID ) ) ( '.' (lv_idElements= RULE_ID ) )* ) ( ( 'extends' (lv_superGrammarIdElements= RULE_ID ) ) ( '.' (lv_superGrammarIdElements= RULE_ID ) )* )? ) (lv_metamodelDeclarations= ruleAbstractMetamodelDeclaration )* ) (lv_rules= ruleAbstractRule )+
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:73:2: ( ( ( ( ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID ) ) ( '.' (lv_idElements= RULE_ID ) )* ) ( ( 'extends' (lv_superGrammarIdElements= RULE_ID ) ) ( '.' (lv_superGrammarIdElements= RULE_ID ) )* )? ) (lv_metamodelDeclarations= ruleAbstractMetamodelDeclaration )* )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:73:3: ( ( ( ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID ) ) ( '.' (lv_idElements= RULE_ID ) )* ) ( ( 'extends' (lv_superGrammarIdElements= RULE_ID ) ) ( '.' (lv_superGrammarIdElements= RULE_ID ) )* )? ) (lv_metamodelDeclarations= ruleAbstractMetamodelDeclaration )*
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:73:2: ( ( ( ( ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID ) ) ( '.' (lv_idElements= RULE_ID ) )* ) ( ( 'extends' (lv_superGrammarIdElements= RULE_ID ) ) ( '.' (lv_superGrammarIdElements= RULE_ID ) )* )? ) (lv_metamodelDeclarations= ruleAbstractMetamodelDeclaration )* )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:73:3: ( ( ( ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID ) ) ( '.' (lv_idElements= RULE_ID ) )* ) ( ( 'extends' (lv_superGrammarIdElements= RULE_ID ) ) ( '.' (lv_superGrammarIdElements= RULE_ID ) )* )? ) (lv_metamodelDeclarations= ruleAbstractMetamodelDeclaration )*
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:73:3: ( ( ( ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID ) ) ( '.' (lv_idElements= RULE_ID ) )* ) ( ( 'extends' (lv_superGrammarIdElements= RULE_ID ) ) ( '.' (lv_superGrammarIdElements= RULE_ID ) )* )? )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:73:4: ( ( ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID ) ) ( '.' (lv_idElements= RULE_ID ) )* ) ( ( 'extends' (lv_superGrammarIdElements= RULE_ID ) ) ( '.' (lv_superGrammarIdElements= RULE_ID ) )* )?
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:73:3: ( ( ( ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID ) ) ( '.' (lv_idElements= RULE_ID ) )* ) ( ( 'extends' (lv_superGrammarIdElements= RULE_ID ) ) ( '.' (lv_superGrammarIdElements= RULE_ID ) )* )? )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:73:4: ( ( ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID ) ) ( '.' (lv_idElements= RULE_ID ) )* ) ( ( 'extends' (lv_superGrammarIdElements= RULE_ID ) ) ( '.' (lv_superGrammarIdElements= RULE_ID ) )* )?
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:73:4: ( ( ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID ) ) ( '.' (lv_idElements= RULE_ID ) )* )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:73:5: ( ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID ) ) ( '.' (lv_idElements= RULE_ID ) )*
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:73:4: ( ( ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID ) ) ( '.' (lv_idElements= RULE_ID ) )* )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:73:5: ( ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID ) ) ( '.' (lv_idElements= RULE_ID ) )*
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:73:5: ( ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:73:6: ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:73:5: ( ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:73:6: ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:73:6: ( (lv_abstract= 'abstract language' ) | 'language' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:73:6: ( (lv_abstract= 'abstract language' ) | 'language' )
int alt1=2;
int LA1_0 = input.LA(1);
@@ -146,10 +146,10 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
switch (alt1) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:73:7: (lv_abstract= 'abstract language' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:73:7: (lv_abstract= 'abstract language' )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:73:7: (lv_abstract= 'abstract language' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:75:6: lv_abstract= 'abstract language'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:73:7: (lv_abstract= 'abstract language' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:75:6: lv_abstract= 'abstract language'
{
lv_abstract=(Token)input.LT(1);
match(input,11,FOLLOW_11_in_ruleGrammar131);
@@ -171,7 +171,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
break;
case 2 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:90:6: 'language'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:90:6: 'language'
{
match(input,12,FOLLOW_12_in_ruleGrammar158);
@@ -183,8 +183,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:94:2: (lv_idElements= RULE_ID )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:96:6: lv_idElements= RULE_ID
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:94:2: (lv_idElements= RULE_ID )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:96:6: lv_idElements= RULE_ID
{
lv_idElements=(Token)input.LT(1);
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleGrammar180);
@@ -205,7 +205,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:110:3: ( '.' (lv_idElements= RULE_ID ) )*
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:110:3: ( '.' (lv_idElements= RULE_ID ) )*
loop2:
do {
int alt2=2;
@@ -218,14 +218,14 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
switch (alt2) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:110:4: '.' (lv_idElements= RULE_ID )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:110:4: '.' (lv_idElements= RULE_ID )
{
match(input,13,FOLLOW_13_in_ruleGrammar202);
createLeafNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0" /* xtext::Keyword */, null);
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:114:1: (lv_idElements= RULE_ID )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:116:6: lv_idElements= RULE_ID
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:114:1: (lv_idElements= RULE_ID )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:116:6: lv_idElements= RULE_ID
{
lv_idElements=(Token)input.LT(1);
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleGrammar223);
@@ -255,7 +255,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:130:5: ( ( 'extends' (lv_superGrammarIdElements= RULE_ID ) ) ( '.' (lv_superGrammarIdElements= RULE_ID ) )* )?
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:130:5: ( ( 'extends' (lv_superGrammarIdElements= RULE_ID ) ) ( '.' (lv_superGrammarIdElements= RULE_ID ) )* )?
int alt4=2;
int LA4_0 = input.LA(1);
@@ -264,17 +264,17 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
switch (alt4) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:130:6: ( 'extends' (lv_superGrammarIdElements= RULE_ID ) ) ( '.' (lv_superGrammarIdElements= RULE_ID ) )*
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:130:6: ( 'extends' (lv_superGrammarIdElements= RULE_ID ) ) ( '.' (lv_superGrammarIdElements= RULE_ID ) )*
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:130:6: ( 'extends' (lv_superGrammarIdElements= RULE_ID ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:130:7: 'extends' (lv_superGrammarIdElements= RULE_ID )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:130:6: ( 'extends' (lv_superGrammarIdElements= RULE_ID ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:130:7: 'extends' (lv_superGrammarIdElements= RULE_ID )
{
match(input,14,FOLLOW_14_in_ruleGrammar248);
createLeafNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0/@abstractTokens.0" /* xtext::Keyword */, null);
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:134:1: (lv_superGrammarIdElements= RULE_ID )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:136:6: lv_superGrammarIdElements= RULE_ID
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:134:1: (lv_superGrammarIdElements= RULE_ID )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:136:6: lv_superGrammarIdElements= RULE_ID
{
lv_superGrammarIdElements=(Token)input.LT(1);
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleGrammar269);
@@ -295,7 +295,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:150:3: ( '.' (lv_superGrammarIdElements= RULE_ID ) )*
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:150:3: ( '.' (lv_superGrammarIdElements= RULE_ID ) )*
loop3:
do {
int alt3=2;
@@ -308,14 +308,14 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
switch (alt3) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:150:4: '.' (lv_superGrammarIdElements= RULE_ID )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:150:4: '.' (lv_superGrammarIdElements= RULE_ID )
{
match(input,13,FOLLOW_13_in_ruleGrammar291);
createLeafNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1/@abstractTokens.0" /* xtext::Keyword */, null);
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:154:1: (lv_superGrammarIdElements= RULE_ID )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:156:6: lv_superGrammarIdElements= RULE_ID
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:154:1: (lv_superGrammarIdElements= RULE_ID )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:156:6: lv_superGrammarIdElements= RULE_ID
{
lv_superGrammarIdElements=(Token)input.LT(1);
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleGrammar312);
@@ -351,7 +351,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:170:7: (lv_metamodelDeclarations= ruleAbstractMetamodelDeclaration )*
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:170:7: (lv_metamodelDeclarations= ruleAbstractMetamodelDeclaration )*
loop5:
do {
int alt5=2;
@@ -364,7 +364,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
switch (alt5) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:173:6: lv_metamodelDeclarations= ruleAbstractMetamodelDeclaration
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:173:6: lv_metamodelDeclarations= ruleAbstractMetamodelDeclaration
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.1/@terminal" /* xtext::RuleCall */, currentNode);
@@ -394,7 +394,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:187:4: (lv_rules= ruleAbstractRule )+
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:187:4: (lv_rules= ruleAbstractRule )+
int cnt6=0;
loop6:
do {
@@ -408,7 +408,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
switch (alt6) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:190:6: lv_rules= ruleAbstractRule
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:190:6: lv_rules= ruleAbstractRule
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.1/@terminal" /* xtext::RuleCall */, currentNode);
@@ -460,7 +460,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start entryRuleAbstractRule
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:209:1: entryRuleAbstractRule returns [EObject current=null] : iv_ruleAbstractRule= ruleAbstractRule EOF ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:209:1: entryRuleAbstractRule returns [EObject current=null] : iv_ruleAbstractRule= ruleAbstractRule EOF ;
public final EObject entryRuleAbstractRule() throws RecognitionException {
EObject current = null;
@@ -468,8 +468,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:209:54: (iv_ruleAbstractRule= ruleAbstractRule EOF )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:210:2: iv_ruleAbstractRule= ruleAbstractRule EOF
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:209:54: (iv_ruleAbstractRule= ruleAbstractRule EOF )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:210:2: iv_ruleAbstractRule= ruleAbstractRule EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.1" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleAbstractRule_in_entryRuleAbstractRule442);
@@ -495,7 +495,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start ruleAbstractRule
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:217:1: ruleAbstractRule returns [EObject current=null] : (this_LexerRule= ruleLexerRule | this_ParserRule= ruleParserRule ) ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:217:1: ruleAbstractRule returns [EObject current=null] : (this_LexerRule= ruleLexerRule | this_ParserRule= ruleParserRule ) ;
public final EObject ruleAbstractRule() throws RecognitionException {
EObject current = null;
@@ -506,10 +506,10 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:219:33: ( (this_LexerRule= ruleLexerRule | this_ParserRule= ruleParserRule ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:220:1: (this_LexerRule= ruleLexerRule | this_ParserRule= ruleParserRule )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:219:33: ( (this_LexerRule= ruleLexerRule | this_ParserRule= ruleParserRule ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:220:1: (this_LexerRule= ruleLexerRule | this_ParserRule= ruleParserRule )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:220:1: (this_LexerRule= ruleLexerRule | this_ParserRule= ruleParserRule )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:220:1: (this_LexerRule= ruleLexerRule | this_ParserRule= ruleParserRule )
int alt7=2;
int LA7_0 = input.LA(1);
@@ -527,7 +527,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
switch (alt7) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:221:5: this_LexerRule= ruleLexerRule
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:221:5: this_LexerRule= ruleLexerRule
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.1/@alternatives/@groups.0" /* xtext::RuleCall */, currentNode);
@@ -544,7 +544,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
break;
case 2 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:231:5: this_ParserRule= ruleParserRule
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:231:5: this_ParserRule= ruleParserRule
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.1/@alternatives/@groups.1" /* xtext::RuleCall */, currentNode);
@@ -581,7 +581,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start entryRuleAbstractMetamodelDeclaration
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:244:1: entryRuleAbstractMetamodelDeclaration returns [EObject current=null] : iv_ruleAbstractMetamodelDeclaration= ruleAbstractMetamodelDeclaration EOF ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:244:1: entryRuleAbstractMetamodelDeclaration returns [EObject current=null] : iv_ruleAbstractMetamodelDeclaration= ruleAbstractMetamodelDeclaration EOF ;
public final EObject entryRuleAbstractMetamodelDeclaration() throws RecognitionException {
EObject current = null;
@@ -589,8 +589,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:244:70: (iv_ruleAbstractMetamodelDeclaration= ruleAbstractMetamodelDeclaration EOF )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:245:2: iv_ruleAbstractMetamodelDeclaration= ruleAbstractMetamodelDeclaration EOF
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:244:70: (iv_ruleAbstractMetamodelDeclaration= ruleAbstractMetamodelDeclaration EOF )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:245:2: iv_ruleAbstractMetamodelDeclaration= ruleAbstractMetamodelDeclaration EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.2" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleAbstractMetamodelDeclaration_in_entryRuleAbstractMetamodelDeclaration560);
@@ -616,7 +616,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start ruleAbstractMetamodelDeclaration
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:252:1: ruleAbstractMetamodelDeclaration returns [EObject current=null] : (this_GeneratedMetamodel= ruleGeneratedMetamodel | this_ReferencedMetamodel= ruleReferencedMetamodel ) ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:252:1: ruleAbstractMetamodelDeclaration returns [EObject current=null] : (this_GeneratedMetamodel= ruleGeneratedMetamodel | this_ReferencedMetamodel= ruleReferencedMetamodel ) ;
public final EObject ruleAbstractMetamodelDeclaration() throws RecognitionException {
EObject current = null;
@@ -627,10 +627,10 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:254:33: ( (this_GeneratedMetamodel= ruleGeneratedMetamodel | this_ReferencedMetamodel= ruleReferencedMetamodel ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:255:1: (this_GeneratedMetamodel= ruleGeneratedMetamodel | this_ReferencedMetamodel= ruleReferencedMetamodel )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:254:33: ( (this_GeneratedMetamodel= ruleGeneratedMetamodel | this_ReferencedMetamodel= ruleReferencedMetamodel ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:255:1: (this_GeneratedMetamodel= ruleGeneratedMetamodel | this_ReferencedMetamodel= ruleReferencedMetamodel )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:255:1: (this_GeneratedMetamodel= ruleGeneratedMetamodel | this_ReferencedMetamodel= ruleReferencedMetamodel )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:255:1: (this_GeneratedMetamodel= ruleGeneratedMetamodel | this_ReferencedMetamodel= ruleReferencedMetamodel )
int alt8=2;
int LA8_0 = input.LA(1);
@@ -648,7 +648,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
switch (alt8) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:256:5: this_GeneratedMetamodel= ruleGeneratedMetamodel
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:256:5: this_GeneratedMetamodel= ruleGeneratedMetamodel
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.2/@alternatives/@groups.0" /* xtext::RuleCall */, currentNode);
@@ -665,7 +665,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
break;
case 2 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:266:5: this_ReferencedMetamodel= ruleReferencedMetamodel
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:266:5: this_ReferencedMetamodel= ruleReferencedMetamodel
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.2/@alternatives/@groups.1" /* xtext::RuleCall */, currentNode);
@@ -702,7 +702,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start entryRuleGeneratedMetamodel
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:279:1: entryRuleGeneratedMetamodel returns [EObject current=null] : iv_ruleGeneratedMetamodel= ruleGeneratedMetamodel EOF ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:279:1: entryRuleGeneratedMetamodel returns [EObject current=null] : iv_ruleGeneratedMetamodel= ruleGeneratedMetamodel EOF ;
public final EObject entryRuleGeneratedMetamodel() throws RecognitionException {
EObject current = null;
@@ -710,8 +710,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:279:60: (iv_ruleGeneratedMetamodel= ruleGeneratedMetamodel EOF )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:280:2: iv_ruleGeneratedMetamodel= ruleGeneratedMetamodel EOF
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:279:60: (iv_ruleGeneratedMetamodel= ruleGeneratedMetamodel EOF )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:280:2: iv_ruleGeneratedMetamodel= ruleGeneratedMetamodel EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.3" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleGeneratedMetamodel_in_entryRuleGeneratedMetamodel678);
@@ -737,7 +737,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start ruleGeneratedMetamodel
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:287:1: ruleGeneratedMetamodel returns [EObject current=null] : ( ( ( 'generate' (lv_name= RULE_ID ) ) (lv_nsURI= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )? ) ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:287:1: ruleGeneratedMetamodel returns [EObject current=null] : ( ( ( 'generate' (lv_name= RULE_ID ) ) (lv_nsURI= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )? ) ;
public final EObject ruleGeneratedMetamodel() throws RecognitionException {
EObject current = null;
@@ -747,24 +747,24 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:289:33: ( ( ( ( 'generate' (lv_name= RULE_ID ) ) (lv_nsURI= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )? ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:290:1: ( ( ( 'generate' (lv_name= RULE_ID ) ) (lv_nsURI= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )? )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:289:33: ( ( ( ( 'generate' (lv_name= RULE_ID ) ) (lv_nsURI= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )? ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:290:1: ( ( ( 'generate' (lv_name= RULE_ID ) ) (lv_nsURI= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )? )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:290:1: ( ( ( 'generate' (lv_name= RULE_ID ) ) (lv_nsURI= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )? )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:290:2: ( ( 'generate' (lv_name= RULE_ID ) ) (lv_nsURI= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )?
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:290:1: ( ( ( 'generate' (lv_name= RULE_ID ) ) (lv_nsURI= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )? )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:290:2: ( ( 'generate' (lv_name= RULE_ID ) ) (lv_nsURI= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )?
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:290:2: ( ( 'generate' (lv_name= RULE_ID ) ) (lv_nsURI= RULE_STRING ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:290:3: ( 'generate' (lv_name= RULE_ID ) ) (lv_nsURI= RULE_STRING )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:290:2: ( ( 'generate' (lv_name= RULE_ID ) ) (lv_nsURI= RULE_STRING ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:290:3: ( 'generate' (lv_name= RULE_ID ) ) (lv_nsURI= RULE_STRING )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:290:3: ( 'generate' (lv_name= RULE_ID ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:290:4: 'generate' (lv_name= RULE_ID )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:290:3: ( 'generate' (lv_name= RULE_ID ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:290:4: 'generate' (lv_name= RULE_ID )
{
match(input,15,FOLLOW_15_in_ruleGeneratedMetamodel724);
createLeafNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0" /* xtext::Keyword */, null);
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:294:1: (lv_name= RULE_ID )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:296:6: lv_name= RULE_ID
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:294:1: (lv_name= RULE_ID )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:296:6: lv_name= RULE_ID
{
lv_name=(Token)input.LT(1);
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleGeneratedMetamodel745);
@@ -785,8 +785,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:310:3: (lv_nsURI= RULE_STRING )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:312:6: lv_nsURI= RULE_STRING
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:310:3: (lv_nsURI= RULE_STRING )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:312:6: lv_nsURI= RULE_STRING
{
lv_nsURI=(Token)input.LT(1);
match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleGeneratedMetamodel778);
@@ -807,7 +807,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:326:3: ( 'as' (lv_alias= RULE_ID ) )?
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:326:3: ( 'as' (lv_alias= RULE_ID ) )?
int alt9=2;
int LA9_0 = input.LA(1);
@@ -816,14 +816,14 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
switch (alt9) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:326:4: 'as' (lv_alias= RULE_ID )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:326:4: 'as' (lv_alias= RULE_ID )
{
match(input,16,FOLLOW_16_in_ruleGeneratedMetamodel800);
createLeafNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.3/@alternatives/@abstractTokens.1/@abstractTokens.0" /* xtext::Keyword */, null);
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:330:1: (lv_alias= RULE_ID )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:332:6: lv_alias= RULE_ID
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:330:1: (lv_alias= RULE_ID )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:332:6: lv_alias= RULE_ID
{
lv_alias=(Token)input.LT(1);
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleGeneratedMetamodel821);
@@ -868,7 +868,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start entryRuleReferencedMetamodel
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:351:1: entryRuleReferencedMetamodel returns [EObject current=null] : iv_ruleReferencedMetamodel= ruleReferencedMetamodel EOF ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:351:1: entryRuleReferencedMetamodel returns [EObject current=null] : iv_ruleReferencedMetamodel= ruleReferencedMetamodel EOF ;
public final EObject entryRuleReferencedMetamodel() throws RecognitionException {
EObject current = null;
@@ -876,8 +876,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:351:61: (iv_ruleReferencedMetamodel= ruleReferencedMetamodel EOF )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:352:2: iv_ruleReferencedMetamodel= ruleReferencedMetamodel EOF
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:351:61: (iv_ruleReferencedMetamodel= ruleReferencedMetamodel EOF )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:352:2: iv_ruleReferencedMetamodel= ruleReferencedMetamodel EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.4" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleReferencedMetamodel_in_entryRuleReferencedMetamodel869);
@@ -903,7 +903,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start ruleReferencedMetamodel
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:359:1: ruleReferencedMetamodel returns [EObject current=null] : ( ( 'import' (lv_uri= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )? ) ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:359:1: ruleReferencedMetamodel returns [EObject current=null] : ( ( 'import' (lv_uri= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )? ) ;
public final EObject ruleReferencedMetamodel() throws RecognitionException {
EObject current = null;
@@ -912,21 +912,21 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:361:33: ( ( ( 'import' (lv_uri= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )? ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:362:1: ( ( 'import' (lv_uri= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )? )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:361:33: ( ( ( 'import' (lv_uri= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )? ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:362:1: ( ( 'import' (lv_uri= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )? )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:362:1: ( ( 'import' (lv_uri= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )? )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:362:2: ( 'import' (lv_uri= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )?
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:362:1: ( ( 'import' (lv_uri= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )? )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:362:2: ( 'import' (lv_uri= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )?
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:362:2: ( 'import' (lv_uri= RULE_STRING ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:362:3: 'import' (lv_uri= RULE_STRING )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:362:2: ( 'import' (lv_uri= RULE_STRING ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:362:3: 'import' (lv_uri= RULE_STRING )
{
match(input,17,FOLLOW_17_in_ruleReferencedMetamodel914);
createLeafNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.0" /* xtext::Keyword */, null);
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:366:1: (lv_uri= RULE_STRING )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:368:6: lv_uri= RULE_STRING
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:366:1: (lv_uri= RULE_STRING )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:368:6: lv_uri= RULE_STRING
{
lv_uri=(Token)input.LT(1);
match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleReferencedMetamodel935);
@@ -947,7 +947,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:382:3: ( 'as' (lv_alias= RULE_ID ) )?
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:382:3: ( 'as' (lv_alias= RULE_ID ) )?
int alt10=2;
int LA10_0 = input.LA(1);
@@ -956,14 +956,14 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
switch (alt10) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:382:4: 'as' (lv_alias= RULE_ID )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:382:4: 'as' (lv_alias= RULE_ID )
{
match(input,16,FOLLOW_16_in_ruleReferencedMetamodel957);
createLeafNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.4/@alternatives/@abstractTokens.1/@abstractTokens.0" /* xtext::Keyword */, null);
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:386:1: (lv_alias= RULE_ID )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:388:6: lv_alias= RULE_ID
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:386:1: (lv_alias= RULE_ID )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:388:6: lv_alias= RULE_ID
{
lv_alias=(Token)input.LT(1);
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleReferencedMetamodel978);
@@ -1008,7 +1008,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start entryRuleLexerRule
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:407:1: entryRuleLexerRule returns [EObject current=null] : iv_ruleLexerRule= ruleLexerRule EOF ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:407:1: entryRuleLexerRule returns [EObject current=null] : iv_ruleLexerRule= ruleLexerRule EOF ;
public final EObject entryRuleLexerRule() throws RecognitionException {
EObject current = null;
@@ -1016,8 +1016,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:407:51: (iv_ruleLexerRule= ruleLexerRule EOF )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:408:2: iv_ruleLexerRule= ruleLexerRule EOF
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:407:51: (iv_ruleLexerRule= ruleLexerRule EOF )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:408:2: iv_ruleLexerRule= ruleLexerRule EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.5" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleLexerRule_in_entryRuleLexerRule1026);
@@ -1043,7 +1043,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start ruleLexerRule
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:415:1: ruleLexerRule returns [EObject current=null] : ( ( ( ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_body= RULE_STRING ) ) ';' ) ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:415:1: ruleLexerRule returns [EObject current=null] : ( ( ( ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_body= RULE_STRING ) ) ';' ) ;
public final EObject ruleLexerRule() throws RecognitionException {
EObject current = null;
@@ -1054,25 +1054,25 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:417:33: ( ( ( ( ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_body= RULE_STRING ) ) ';' ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:418:1: ( ( ( ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_body= RULE_STRING ) ) ';' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:417:33: ( ( ( ( ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_body= RULE_STRING ) ) ';' ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:418:1: ( ( ( ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_body= RULE_STRING ) ) ';' )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:418:1: ( ( ( ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_body= RULE_STRING ) ) ';' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:418:2: ( ( ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_body= RULE_STRING ) ) ';'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:418:1: ( ( ( ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_body= RULE_STRING ) ) ';' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:418:2: ( ( ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_body= RULE_STRING ) ) ';'
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:418:2: ( ( ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_body= RULE_STRING ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:418:3: ( ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_body= RULE_STRING )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:418:2: ( ( ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_body= RULE_STRING ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:418:3: ( ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_body= RULE_STRING )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:418:3: ( ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:418:4: ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:418:3: ( ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:418:4: ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':'
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:418:4: ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:418:5: ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )?
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:418:4: ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:418:5: ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )?
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:418:5: ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:418:6: ( 'native' | 'lexer' ) (lv_name= RULE_ID )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:418:5: ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:418:6: ( 'native' | 'lexer' ) (lv_name= RULE_ID )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:418:6: ( 'native' | 'lexer' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:418:6: ( 'native' | 'lexer' )
int alt11=2;
int LA11_0 = input.LA(1);
@@ -1090,7 +1090,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
switch (alt11) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:418:7: 'native'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:418:7: 'native'
{
match(input,18,FOLLOW_18_in_ruleLexerRule1075);
@@ -1100,7 +1100,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
break;
case 2 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:423:6: 'lexer'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:423:6: 'lexer'
{
match(input,19,FOLLOW_19_in_ruleLexerRule1090);
@@ -1112,8 +1112,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:427:2: (lv_name= RULE_ID )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:429:6: lv_name= RULE_ID
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:427:2: (lv_name= RULE_ID )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:429:6: lv_name= RULE_ID
{
lv_name=(Token)input.LT(1);
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleLexerRule1112);
@@ -1134,7 +1134,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:443:3: ( 'returns' (lv_type= ruleTypeRef ) )?
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:443:3: ( 'returns' (lv_type= ruleTypeRef ) )?
int alt12=2;
int LA12_0 = input.LA(1);
@@ -1143,14 +1143,14 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
switch (alt12) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:443:4: 'returns' (lv_type= ruleTypeRef )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:443:4: 'returns' (lv_type= ruleTypeRef )
{
match(input,20,FOLLOW_20_in_ruleLexerRule1134);
createLeafNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0" /* xtext::Keyword */, null);
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:447:1: (lv_type= ruleTypeRef )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:450:6: lv_type= ruleTypeRef
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:447:1: (lv_type= ruleTypeRef )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:450:6: lv_type= ruleTypeRef
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1/@terminal" /* xtext::RuleCall */, currentNode);
@@ -1187,8 +1187,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:468:2: (lv_body= RULE_STRING )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:470:6: lv_body= RULE_STRING
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:468:2: (lv_body= RULE_STRING )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:470:6: lv_body= RULE_STRING
{
lv_body=(Token)input.LT(1);
match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleLexerRule1206);
@@ -1234,7 +1234,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start entryRuleParserRule
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:493:1: entryRuleParserRule returns [EObject current=null] : iv_ruleParserRule= ruleParserRule EOF ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:493:1: entryRuleParserRule returns [EObject current=null] : iv_ruleParserRule= ruleParserRule EOF ;
public final EObject entryRuleParserRule() throws RecognitionException {
EObject current = null;
@@ -1242,8 +1242,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:493:52: (iv_ruleParserRule= ruleParserRule EOF )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:494:2: iv_ruleParserRule= ruleParserRule EOF
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:493:52: (iv_ruleParserRule= ruleParserRule EOF )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:494:2: iv_ruleParserRule= ruleParserRule EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.6" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleParserRule_in_entryRuleParserRule1262);
@@ -1269,7 +1269,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start ruleParserRule
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:501:1: ruleParserRule returns [EObject current=null] : ( ( ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_alternatives= ruleAlternatives ) ) ';' ) ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:501:1: ruleParserRule returns [EObject current=null] : ( ( ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_alternatives= ruleAlternatives ) ) ';' ) ;
public final EObject ruleParserRule() throws RecognitionException {
EObject current = null;
@@ -1281,23 +1281,23 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:503:33: ( ( ( ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_alternatives= ruleAlternatives ) ) ';' ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:504:1: ( ( ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_alternatives= ruleAlternatives ) ) ';' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:503:33: ( ( ( ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_alternatives= ruleAlternatives ) ) ';' ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:504:1: ( ( ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_alternatives= ruleAlternatives ) ) ';' )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:504:1: ( ( ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_alternatives= ruleAlternatives ) ) ';' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:504:2: ( ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_alternatives= ruleAlternatives ) ) ';'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:504:1: ( ( ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_alternatives= ruleAlternatives ) ) ';' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:504:2: ( ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_alternatives= ruleAlternatives ) ) ';'
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:504:2: ( ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_alternatives= ruleAlternatives ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:504:3: ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_alternatives= ruleAlternatives )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:504:2: ( ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_alternatives= ruleAlternatives ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:504:3: ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_alternatives= ruleAlternatives )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:504:3: ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:504:4: ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:504:3: ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:504:4: ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':'
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:504:4: ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:504:5: (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )?
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:504:4: ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:504:5: (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )?
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:504:5: (lv_name= RULE_ID )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:506:6: lv_name= RULE_ID
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:504:5: (lv_name= RULE_ID )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:506:6: lv_name= RULE_ID
{
lv_name=(Token)input.LT(1);
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleParserRule1321);
@@ -1315,7 +1315,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:520:2: ( 'returns' (lv_type= ruleTypeRef ) )?
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:520:2: ( 'returns' (lv_type= ruleTypeRef ) )?
int alt13=2;
int LA13_0 = input.LA(1);
@@ -1324,14 +1324,14 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
switch (alt13) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:520:3: 'returns' (lv_type= ruleTypeRef )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:520:3: 'returns' (lv_type= ruleTypeRef )
{
match(input,20,FOLLOW_20_in_ruleParserRule1342);
createLeafNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.6/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0" /* xtext::Keyword */, null);
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:524:1: (lv_type= ruleTypeRef )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:527:6: lv_type= ruleTypeRef
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:524:1: (lv_type= ruleTypeRef )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:527:6: lv_type= ruleTypeRef
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.6/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1/@terminal" /* xtext::RuleCall */, currentNode);
@@ -1368,8 +1368,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:545:2: (lv_alternatives= ruleAlternatives )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:548:6: lv_alternatives= ruleAlternatives
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:545:2: (lv_alternatives= ruleAlternatives )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:548:6: lv_alternatives= ruleAlternatives
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.6/@alternatives/@abstractTokens.0/@abstractTokens.1/@terminal" /* xtext::RuleCall */, currentNode);
@@ -1418,7 +1418,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start entryRuleTypeRef
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:571:1: entryRuleTypeRef returns [EObject current=null] : iv_ruleTypeRef= ruleTypeRef EOF ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:571:1: entryRuleTypeRef returns [EObject current=null] : iv_ruleTypeRef= ruleTypeRef EOF ;
public final EObject entryRuleTypeRef() throws RecognitionException {
EObject current = null;
@@ -1426,8 +1426,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:571:49: (iv_ruleTypeRef= ruleTypeRef EOF )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:572:2: iv_ruleTypeRef= ruleTypeRef EOF
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:571:49: (iv_ruleTypeRef= ruleTypeRef EOF )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:572:2: iv_ruleTypeRef= ruleTypeRef EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.7" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleTypeRef_in_entryRuleTypeRef1476);
@@ -1453,7 +1453,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start ruleTypeRef
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:579:1: ruleTypeRef returns [EObject current=null] : ( ( (lv_alias= RULE_ID ) '::' )? (lv_name= RULE_ID ) ) ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:579:1: ruleTypeRef returns [EObject current=null] : ( ( (lv_alias= RULE_ID ) '::' )? (lv_name= RULE_ID ) ) ;
public final EObject ruleTypeRef() throws RecognitionException {
EObject current = null;
@@ -1462,13 +1462,13 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:581:33: ( ( ( (lv_alias= RULE_ID ) '::' )? (lv_name= RULE_ID ) ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:582:1: ( ( (lv_alias= RULE_ID ) '::' )? (lv_name= RULE_ID ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:581:33: ( ( ( (lv_alias= RULE_ID ) '::' )? (lv_name= RULE_ID ) ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:582:1: ( ( (lv_alias= RULE_ID ) '::' )? (lv_name= RULE_ID ) )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:582:1: ( ( (lv_alias= RULE_ID ) '::' )? (lv_name= RULE_ID ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:582:2: ( (lv_alias= RULE_ID ) '::' )? (lv_name= RULE_ID )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:582:1: ( ( (lv_alias= RULE_ID ) '::' )? (lv_name= RULE_ID ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:582:2: ( (lv_alias= RULE_ID ) '::' )? (lv_name= RULE_ID )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:582:2: ( (lv_alias= RULE_ID ) '::' )?
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:582:2: ( (lv_alias= RULE_ID ) '::' )?
int alt14=2;
int LA14_0 = input.LA(1);
@@ -1481,10 +1481,10 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
switch (alt14) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:582:3: (lv_alias= RULE_ID ) '::'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:582:3: (lv_alias= RULE_ID ) '::'
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:582:3: (lv_alias= RULE_ID )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:584:6: lv_alias= RULE_ID
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:582:3: (lv_alias= RULE_ID )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:584:6: lv_alias= RULE_ID
{
lv_alias=(Token)input.LT(1);
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleTypeRef1533);
@@ -1512,8 +1512,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:602:3: (lv_name= RULE_ID )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:604:6: lv_name= RULE_ID
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:602:3: (lv_name= RULE_ID )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:604:6: lv_name= RULE_ID
{
lv_name=(Token)input.LT(1);
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleTypeRef1576);
@@ -1552,7 +1552,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start entryRuleAlternatives
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:623:1: entryRuleAlternatives returns [EObject current=null] : iv_ruleAlternatives= ruleAlternatives EOF ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:623:1: entryRuleAlternatives returns [EObject current=null] : iv_ruleAlternatives= ruleAlternatives EOF ;
public final EObject entryRuleAlternatives() throws RecognitionException {
EObject current = null;
@@ -1560,8 +1560,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:623:54: (iv_ruleAlternatives= ruleAlternatives EOF )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:624:2: iv_ruleAlternatives= ruleAlternatives EOF
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:623:54: (iv_ruleAlternatives= ruleAlternatives EOF )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:624:2: iv_ruleAlternatives= ruleAlternatives EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.8" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleAlternatives_in_entryRuleAlternatives1622);
@@ -1587,7 +1587,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start ruleAlternatives
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:631:1: ruleAlternatives returns [EObject current=null] : (this_Group= ruleGroup ( ( () '|' ) (lv_groups= ruleGroup ) )* ) ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:631:1: ruleAlternatives returns [EObject current=null] : (this_Group= ruleGroup ( ( () '|' ) (lv_groups= ruleGroup ) )* ) ;
public final EObject ruleAlternatives() throws RecognitionException {
EObject current = null;
@@ -1598,11 +1598,11 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:633:33: ( (this_Group= ruleGroup ( ( () '|' ) (lv_groups= ruleGroup ) )* ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:634:1: (this_Group= ruleGroup ( ( () '|' ) (lv_groups= ruleGroup ) )* )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:633:33: ( (this_Group= ruleGroup ( ( () '|' ) (lv_groups= ruleGroup ) )* ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:634:1: (this_Group= ruleGroup ( ( () '|' ) (lv_groups= ruleGroup ) )* )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:634:1: (this_Group= ruleGroup ( ( () '|' ) (lv_groups= ruleGroup ) )* )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:635:5: this_Group= ruleGroup ( ( () '|' ) (lv_groups= ruleGroup ) )*
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:634:1: (this_Group= ruleGroup ( ( () '|' ) (lv_groups= ruleGroup ) )* )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:635:5: this_Group= ruleGroup ( ( () '|' ) (lv_groups= ruleGroup ) )*
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.8/@alternatives/@abstractTokens.0" /* xtext::RuleCall */, currentNode);
@@ -1615,7 +1615,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
current = this_Group;
currentNode = currentNode.getParent();
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:643:1: ( ( () '|' ) (lv_groups= ruleGroup ) )*
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:643:1: ( ( () '|' ) (lv_groups= ruleGroup ) )*
loop15:
do {
int alt15=2;
@@ -1628,13 +1628,13 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
switch (alt15) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:643:2: ( () '|' ) (lv_groups= ruleGroup )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:643:2: ( () '|' ) (lv_groups= ruleGroup )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:643:2: ( () '|' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:643:3: () '|'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:643:2: ( () '|' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:643:3: () '|'
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:643:3: ()
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:644:5:
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:643:3: ()
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:644:5:
{
temp=factory.create("Alternatives");
@@ -1657,8 +1657,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:659:2: (lv_groups= ruleGroup )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:662:6: lv_groups= ruleGroup
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:659:2: (lv_groups= ruleGroup )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:662:6: lv_groups= ruleGroup
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.8/@alternatives/@abstractTokens.1/@abstractTokens.1/@terminal" /* xtext::RuleCall */, currentNode);
@@ -1709,7 +1709,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start entryRuleGroup
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:681:1: entryRuleGroup returns [EObject current=null] : iv_ruleGroup= ruleGroup EOF ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:681:1: entryRuleGroup returns [EObject current=null] : iv_ruleGroup= ruleGroup EOF ;
public final EObject entryRuleGroup() throws RecognitionException {
EObject current = null;
@@ -1717,8 +1717,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:681:47: (iv_ruleGroup= ruleGroup EOF )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:682:2: iv_ruleGroup= ruleGroup EOF
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:681:47: (iv_ruleGroup= ruleGroup EOF )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:682:2: iv_ruleGroup= ruleGroup EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.9" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleGroup_in_entryRuleGroup1774);
@@ -1744,7 +1744,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start ruleGroup
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:689:1: ruleGroup returns [EObject current=null] : (this_AbstractToken= ruleAbstractToken ( () (lv_abstractTokens= ruleAbstractToken ) )* ) ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:689:1: ruleGroup returns [EObject current=null] : (this_AbstractToken= ruleAbstractToken ( () (lv_abstractTokens= ruleAbstractToken ) )* ) ;
public final EObject ruleGroup() throws RecognitionException {
EObject current = null;
@@ -1755,11 +1755,11 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:691:33: ( (this_AbstractToken= ruleAbstractToken ( () (lv_abstractTokens= ruleAbstractToken ) )* ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:692:1: (this_AbstractToken= ruleAbstractToken ( () (lv_abstractTokens= ruleAbstractToken ) )* )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:691:33: ( (this_AbstractToken= ruleAbstractToken ( () (lv_abstractTokens= ruleAbstractToken ) )* ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:692:1: (this_AbstractToken= ruleAbstractToken ( () (lv_abstractTokens= ruleAbstractToken ) )* )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:692:1: (this_AbstractToken= ruleAbstractToken ( () (lv_abstractTokens= ruleAbstractToken ) )* )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:693:5: this_AbstractToken= ruleAbstractToken ( () (lv_abstractTokens= ruleAbstractToken ) )*
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:692:1: (this_AbstractToken= ruleAbstractToken ( () (lv_abstractTokens= ruleAbstractToken ) )* )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:693:5: this_AbstractToken= ruleAbstractToken ( () (lv_abstractTokens= ruleAbstractToken ) )*
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.9/@alternatives/@abstractTokens.0" /* xtext::RuleCall */, currentNode);
@@ -1772,7 +1772,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
current = this_AbstractToken;
currentNode = currentNode.getParent();
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:701:1: ( () (lv_abstractTokens= ruleAbstractToken ) )*
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:701:1: ( () (lv_abstractTokens= ruleAbstractToken ) )*
loop16:
do {
int alt16=2;
@@ -1785,10 +1785,10 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
switch (alt16) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:701:2: () (lv_abstractTokens= ruleAbstractToken )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:701:2: () (lv_abstractTokens= ruleAbstractToken )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:701:2: ()
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:702:5:
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:701:2: ()
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:702:5:
{
temp=factory.create("Group");
@@ -1804,8 +1804,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:713:2: (lv_abstractTokens= ruleAbstractToken )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:716:6: lv_abstractTokens= ruleAbstractToken
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:713:2: (lv_abstractTokens= ruleAbstractToken )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:716:6: lv_abstractTokens= ruleAbstractToken
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.9/@alternatives/@abstractTokens.1/@abstractTokens.1/@terminal" /* xtext::RuleCall */, currentNode);
@@ -1856,7 +1856,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start entryRuleAbstractToken
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:735:1: entryRuleAbstractToken returns [EObject current=null] : iv_ruleAbstractToken= ruleAbstractToken EOF ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:735:1: entryRuleAbstractToken returns [EObject current=null] : iv_ruleAbstractToken= ruleAbstractToken EOF ;
public final EObject entryRuleAbstractToken() throws RecognitionException {
EObject current = null;
@@ -1864,8 +1864,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:735:55: (iv_ruleAbstractToken= ruleAbstractToken EOF )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:736:2: iv_ruleAbstractToken= ruleAbstractToken EOF
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:735:55: (iv_ruleAbstractToken= ruleAbstractToken EOF )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:736:2: iv_ruleAbstractToken= ruleAbstractToken EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.10" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleAbstractToken_in_entryRuleAbstractToken1915);
@@ -1891,7 +1891,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start ruleAbstractToken
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:743:1: ruleAbstractToken returns [EObject current=null] : ( ( (this_Assignment= ruleAssignment | this_Action= ruleAction ) | this_AbstractTerminal= ruleAbstractTerminal ) (lv_cardinality= ( ( '?' | '*' ) | '+' ) )? ) ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:743:1: ruleAbstractToken returns [EObject current=null] : ( ( (this_Assignment= ruleAssignment | this_Action= ruleAction ) | this_AbstractTerminal= ruleAbstractTerminal ) (lv_cardinality= ( ( '?' | '*' ) | '+' ) )? ) ;
public final EObject ruleAbstractToken() throws RecognitionException {
EObject current = null;
@@ -1905,13 +1905,13 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:745:33: ( ( ( (this_Assignment= ruleAssignment | this_Action= ruleAction ) | this_AbstractTerminal= ruleAbstractTerminal ) (lv_cardinality= ( ( '?' | '*' ) | '+' ) )? ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:746:1: ( ( (this_Assignment= ruleAssignment | this_Action= ruleAction ) | this_AbstractTerminal= ruleAbstractTerminal ) (lv_cardinality= ( ( '?' | '*' ) | '+' ) )? )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:745:33: ( ( ( (this_Assignment= ruleAssignment | this_Action= ruleAction ) | this_AbstractTerminal= ruleAbstractTerminal ) (lv_cardinality= ( ( '?' | '*' ) | '+' ) )? ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:746:1: ( ( (this_Assignment= ruleAssignment | this_Action= ruleAction ) | this_AbstractTerminal= ruleAbstractTerminal ) (lv_cardinality= ( ( '?' | '*' ) | '+' ) )? )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:746:1: ( ( (this_Assignment= ruleAssignment | this_Action= ruleAction ) | this_AbstractTerminal= ruleAbstractTerminal ) (lv_cardinality= ( ( '?' | '*' ) | '+' ) )? )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:746:2: ( (this_Assignment= ruleAssignment | this_Action= ruleAction ) | this_AbstractTerminal= ruleAbstractTerminal ) (lv_cardinality= ( ( '?' | '*' ) | '+' ) )?
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:746:1: ( ( (this_Assignment= ruleAssignment | this_Action= ruleAction ) | this_AbstractTerminal= ruleAbstractTerminal ) (lv_cardinality= ( ( '?' | '*' ) | '+' ) )? )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:746:2: ( (this_Assignment= ruleAssignment | this_Action= ruleAction ) | this_AbstractTerminal= ruleAbstractTerminal ) (lv_cardinality= ( ( '?' | '*' ) | '+' ) )?
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:746:2: ( (this_Assignment= ruleAssignment | this_Action= ruleAction ) | this_AbstractTerminal= ruleAbstractTerminal )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:746:2: ( (this_Assignment= ruleAssignment | this_Action= ruleAction ) | this_AbstractTerminal= ruleAbstractTerminal )
int alt18=2;
switch ( input.LA(1) ) {
case RULE_ID:
@@ -1953,9 +1953,9 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
switch (alt18) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:746:3: (this_Assignment= ruleAssignment | this_Action= ruleAction )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:746:3: (this_Assignment= ruleAssignment | this_Action= ruleAction )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:746:3: (this_Assignment= ruleAssignment | this_Action= ruleAction )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:746:3: (this_Assignment= ruleAssignment | this_Action= ruleAction )
int alt17=2;
int LA17_0 = input.LA(1);
@@ -1973,7 +1973,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
switch (alt17) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:747:5: this_Assignment= ruleAssignment
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:747:5: this_Assignment= ruleAssignment
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.10/@alternatives/@abstractTokens.0/@groups.0/@groups.0" /* xtext::RuleCall */, currentNode);
@@ -1990,7 +1990,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
break;
case 2 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:757:5: this_Action= ruleAction
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:757:5: this_Action= ruleAction
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.10/@alternatives/@abstractTokens.0/@groups.0/@groups.1" /* xtext::RuleCall */, currentNode);
@@ -2013,7 +2013,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
break;
case 2 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:767:5: this_AbstractTerminal= ruleAbstractTerminal
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:767:5: this_AbstractTerminal= ruleAbstractTerminal
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.10/@alternatives/@abstractTokens.0/@groups.1" /* xtext::RuleCall */, currentNode);
@@ -2032,7 +2032,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:775:2: (lv_cardinality= ( ( '?' | '*' ) | '+' ) )?
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:775:2: (lv_cardinality= ( ( '?' | '*' ) | '+' ) )?
int alt21=2;
int LA21_0 = input.LA(1);
@@ -2041,9 +2041,9 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
switch (alt21) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:777:6: lv_cardinality= ( ( '?' | '*' ) | '+' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:777:6: lv_cardinality= ( ( '?' | '*' ) | '+' )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:777:21: ( ( '?' | '*' ) | '+' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:777:21: ( ( '?' | '*' ) | '+' )
int alt20=2;
int LA20_0 = input.LA(1);
@@ -2061,9 +2061,9 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
switch (alt20) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:777:22: ( '?' | '*' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:777:22: ( '?' | '*' )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:777:22: ( '?' | '*' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:777:22: ( '?' | '*' )
int alt19=2;
int LA19_0 = input.LA(1);
@@ -2081,7 +2081,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
switch (alt19) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:777:23: '?'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:777:23: '?'
{
match(input,25,FOLLOW_25_in_ruleAbstractToken2052);
@@ -2091,7 +2091,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
break;
case 2 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:782:6: '*'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:782:6: '*'
{
match(input,26,FOLLOW_26_in_ruleAbstractToken2067);
@@ -2107,7 +2107,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
break;
case 2 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:787:6: '+'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:787:6: '+'
{
match(input,27,FOLLOW_27_in_ruleAbstractToken2083);
@@ -2154,7 +2154,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start entryRuleAssignment
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:806:1: entryRuleAssignment returns [EObject current=null] : iv_ruleAssignment= ruleAssignment EOF ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:806:1: entryRuleAssignment returns [EObject current=null] : iv_ruleAssignment= ruleAssignment EOF ;
public final EObject entryRuleAssignment() throws RecognitionException {
EObject current = null;
@@ -2162,8 +2162,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:806:52: (iv_ruleAssignment= ruleAssignment EOF )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:807:2: iv_ruleAssignment= ruleAssignment EOF
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:806:52: (iv_ruleAssignment= ruleAssignment EOF )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:807:2: iv_ruleAssignment= ruleAssignment EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.11" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleAssignment_in_entryRuleAssignment2132);
@@ -2189,7 +2189,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start ruleAssignment
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:814:1: ruleAssignment returns [EObject current=null] : ( ( (lv_feature= RULE_ID ) (lv_operator= ( ( '+=' | '=' ) | '?=' ) ) ) (lv_terminal= ruleAbstractTerminal ) ) ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:814:1: ruleAssignment returns [EObject current=null] : ( ( (lv_feature= RULE_ID ) (lv_operator= ( ( '+=' | '=' ) | '?=' ) ) ) (lv_terminal= ruleAbstractTerminal ) ) ;
public final EObject ruleAssignment() throws RecognitionException {
EObject current = null;
@@ -2200,17 +2200,17 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:816:33: ( ( ( (lv_feature= RULE_ID ) (lv_operator= ( ( '+=' | '=' ) | '?=' ) ) ) (lv_terminal= ruleAbstractTerminal ) ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:817:1: ( ( (lv_feature= RULE_ID ) (lv_operator= ( ( '+=' | '=' ) | '?=' ) ) ) (lv_terminal= ruleAbstractTerminal ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:816:33: ( ( ( (lv_feature= RULE_ID ) (lv_operator= ( ( '+=' | '=' ) | '?=' ) ) ) (lv_terminal= ruleAbstractTerminal ) ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:817:1: ( ( (lv_feature= RULE_ID ) (lv_operator= ( ( '+=' | '=' ) | '?=' ) ) ) (lv_terminal= ruleAbstractTerminal ) )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:817:1: ( ( (lv_feature= RULE_ID ) (lv_operator= ( ( '+=' | '=' ) | '?=' ) ) ) (lv_terminal= ruleAbstractTerminal ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:817:2: ( (lv_feature= RULE_ID ) (lv_operator= ( ( '+=' | '=' ) | '?=' ) ) ) (lv_terminal= ruleAbstractTerminal )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:817:1: ( ( (lv_feature= RULE_ID ) (lv_operator= ( ( '+=' | '=' ) | '?=' ) ) ) (lv_terminal= ruleAbstractTerminal ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:817:2: ( (lv_feature= RULE_ID ) (lv_operator= ( ( '+=' | '=' ) | '?=' ) ) ) (lv_terminal= ruleAbstractTerminal )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:817:2: ( (lv_feature= RULE_ID ) (lv_operator= ( ( '+=' | '=' ) | '?=' ) ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:817:3: (lv_feature= RULE_ID ) (lv_operator= ( ( '+=' | '=' ) | '?=' ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:817:2: ( (lv_feature= RULE_ID ) (lv_operator= ( ( '+=' | '=' ) | '?=' ) ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:817:3: (lv_feature= RULE_ID ) (lv_operator= ( ( '+=' | '=' ) | '?=' ) )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:817:3: (lv_feature= RULE_ID )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:819:6: lv_feature= RULE_ID
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:817:3: (lv_feature= RULE_ID )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:819:6: lv_feature= RULE_ID
{
lv_feature=(Token)input.LT(1);
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleAssignment2189);
@@ -2228,10 +2228,10 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:833:2: (lv_operator= ( ( '+=' | '=' ) | '?=' ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:835:6: lv_operator= ( ( '+=' | '=' ) | '?=' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:833:2: (lv_operator= ( ( '+=' | '=' ) | '?=' ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:835:6: lv_operator= ( ( '+=' | '=' ) | '?=' )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:835:18: ( ( '+=' | '=' ) | '?=' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:835:18: ( ( '+=' | '=' ) | '?=' )
int alt23=2;
int LA23_0 = input.LA(1);
@@ -2249,9 +2249,9 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
switch (alt23) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:835:19: ( '+=' | '=' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:835:19: ( '+=' | '=' )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:835:19: ( '+=' | '=' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:835:19: ( '+=' | '=' )
int alt22=2;
int LA22_0 = input.LA(1);
@@ -2269,7 +2269,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
switch (alt22) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:835:20: '+='
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:835:20: '+='
{
match(input,28,FOLLOW_28_in_ruleAssignment2223);
@@ -2279,7 +2279,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
break;
case 2 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:840:6: '='
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:840:6: '='
{
match(input,29,FOLLOW_29_in_ruleAssignment2238);
@@ -2295,7 +2295,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
break;
case 2 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:845:6: '?='
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:845:6: '?='
{
match(input,30,FOLLOW_30_in_ruleAssignment2254);
@@ -2321,8 +2321,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:859:3: (lv_terminal= ruleAbstractTerminal )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:862:6: lv_terminal= ruleAbstractTerminal
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:859:3: (lv_terminal= ruleAbstractTerminal )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:862:6: lv_terminal= ruleAbstractTerminal
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.11/@alternatives/@abstractTokens.1/@terminal" /* xtext::RuleCall */, currentNode);
@@ -2364,7 +2364,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start entryRuleAction
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:881:1: entryRuleAction returns [EObject current=null] : iv_ruleAction= ruleAction EOF ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:881:1: entryRuleAction returns [EObject current=null] : iv_ruleAction= ruleAction EOF ;
public final EObject entryRuleAction() throws RecognitionException {
EObject current = null;
@@ -2372,8 +2372,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:881:48: (iv_ruleAction= ruleAction EOF )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:882:2: iv_ruleAction= ruleAction EOF
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:881:48: (iv_ruleAction= ruleAction EOF )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:882:2: iv_ruleAction= ruleAction EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.12" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleAction_in_entryRuleAction2341);
@@ -2399,7 +2399,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start ruleAction
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:889:1: ruleAction returns [EObject current=null] : ( ( ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) ) 'current' ) '}' ) ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:889:1: ruleAction returns [EObject current=null] : ( ( ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) ) 'current' ) '}' ) ;
public final EObject ruleAction() throws RecognitionException {
EObject current = null;
@@ -2410,35 +2410,35 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:891:33: ( ( ( ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) ) 'current' ) '}' ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:1: ( ( ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) ) 'current' ) '}' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:891:33: ( ( ( ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) ) 'current' ) '}' ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:1: ( ( ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) ) 'current' ) '}' )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:1: ( ( ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) ) 'current' ) '}' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:2: ( ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) ) 'current' ) '}'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:1: ( ( ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) ) 'current' ) '}' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:2: ( ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) ) 'current' ) '}'
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:2: ( ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) ) 'current' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:3: ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) ) 'current'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:2: ( ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) ) 'current' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:3: ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) ) 'current'
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:3: ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:4: ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:3: ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:4: ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:4: ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:5: ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:4: ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:5: ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:5: ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:6: ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:5: ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:6: ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.'
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:6: ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:7: ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:6: ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:7: ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:7: ( '{' ( 'current' '=' )? )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:8: '{' ( 'current' '=' )?
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:7: ( '{' ( 'current' '=' )? )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:892:8: '{' ( 'current' '=' )?
{
match(input,31,FOLLOW_31_in_ruleAction2391);
createLeafNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.12/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0" /* xtext::Keyword */, null);
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:896:1: ( 'current' '=' )?
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:896:1: ( 'current' '=' )?
int alt24=2;
int LA24_0 = input.LA(1);
@@ -2447,7 +2447,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
switch (alt24) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:896:2: 'current' '='
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:896:2: 'current' '='
{
match(input,32,FOLLOW_32_in_ruleAction2401);
@@ -2466,8 +2466,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:904:4: (lv_typeName= ruleTypeRef )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:907:6: lv_typeName= ruleTypeRef
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:904:4: (lv_typeName= ruleTypeRef )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:907:6: lv_typeName= ruleTypeRef
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.12/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal" /* xtext::RuleCall */, currentNode);
@@ -2498,8 +2498,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:925:2: (lv_feature= RULE_ID )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:927:6: lv_feature= RULE_ID
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:925:2: (lv_feature= RULE_ID )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:927:6: lv_feature= RULE_ID
{
lv_feature=(Token)input.LT(1);
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleAction2483);
@@ -2520,10 +2520,10 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:941:3: (lv_operator= ( '=' | '+=' ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:943:6: lv_operator= ( '=' | '+=' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:941:3: (lv_operator= ( '=' | '+=' ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:943:6: lv_operator= ( '=' | '+=' )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:943:18: ( '=' | '+=' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:943:18: ( '=' | '+=' )
int alt25=2;
int LA25_0 = input.LA(1);
@@ -2541,7 +2541,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
switch (alt25) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:943:19: '='
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:943:19: '='
{
match(input,29,FOLLOW_29_in_ruleAction2517);
@@ -2551,7 +2551,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
break;
case 2 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:948:6: '+='
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:948:6: '+='
{
match(input,28,FOLLOW_28_in_ruleAction2532);
@@ -2609,7 +2609,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start entryRuleAbstractTerminal
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:975:1: entryRuleAbstractTerminal returns [EObject current=null] : iv_ruleAbstractTerminal= ruleAbstractTerminal EOF ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:975:1: entryRuleAbstractTerminal returns [EObject current=null] : iv_ruleAbstractTerminal= ruleAbstractTerminal EOF ;
public final EObject entryRuleAbstractTerminal() throws RecognitionException {
EObject current = null;
@@ -2617,8 +2617,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:975:58: (iv_ruleAbstractTerminal= ruleAbstractTerminal EOF )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:976:2: iv_ruleAbstractTerminal= ruleAbstractTerminal EOF
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:975:58: (iv_ruleAbstractTerminal= ruleAbstractTerminal EOF )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:976:2: iv_ruleAbstractTerminal= ruleAbstractTerminal EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.13" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleAbstractTerminal_in_entryRuleAbstractTerminal2600);
@@ -2644,7 +2644,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start ruleAbstractTerminal
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:983:1: ruleAbstractTerminal returns [EObject current=null] : ( ( (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall ) | this_ParenthesizedElement= ruleParenthesizedElement ) | this_CrossReference= ruleCrossReference ) ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:983:1: ruleAbstractTerminal returns [EObject current=null] : ( ( (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall ) | this_ParenthesizedElement= ruleParenthesizedElement ) | this_CrossReference= ruleCrossReference ) ;
public final EObject ruleAbstractTerminal() throws RecognitionException {
EObject current = null;
@@ -2659,10 +2659,10 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:985:33: ( ( ( (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall ) | this_ParenthesizedElement= ruleParenthesizedElement ) | this_CrossReference= ruleCrossReference ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:986:1: ( ( (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall ) | this_ParenthesizedElement= ruleParenthesizedElement ) | this_CrossReference= ruleCrossReference )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:985:33: ( ( ( (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall ) | this_ParenthesizedElement= ruleParenthesizedElement ) | this_CrossReference= ruleCrossReference ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:986:1: ( ( (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall ) | this_ParenthesizedElement= ruleParenthesizedElement ) | this_CrossReference= ruleCrossReference )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:986:1: ( ( (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall ) | this_ParenthesizedElement= ruleParenthesizedElement ) | this_CrossReference= ruleCrossReference )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:986:1: ( ( (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall ) | this_ParenthesizedElement= ruleParenthesizedElement ) | this_CrossReference= ruleCrossReference )
int alt28=2;
int LA28_0 = input.LA(1);
@@ -2680,9 +2680,9 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
switch (alt28) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:986:2: ( (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall ) | this_ParenthesizedElement= ruleParenthesizedElement )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:986:2: ( (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall ) | this_ParenthesizedElement= ruleParenthesizedElement )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:986:2: ( (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall ) | this_ParenthesizedElement= ruleParenthesizedElement )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:986:2: ( (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall ) | this_ParenthesizedElement= ruleParenthesizedElement )
int alt27=2;
int LA27_0 = input.LA(1);
@@ -2700,9 +2700,9 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
switch (alt27) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:986:3: (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:986:3: (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:986:3: (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:986:3: (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall )
int alt26=2;
int LA26_0 = input.LA(1);
@@ -2720,7 +2720,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
switch (alt26) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:987:5: this_Keyword= ruleKeyword
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:987:5: this_Keyword= ruleKeyword
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.13/@alternatives/@groups.0/@groups.0/@groups.0" /* xtext::RuleCall */, currentNode);
@@ -2737,7 +2737,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
break;
case 2 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:997:5: this_RuleCall= ruleRuleCall
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:997:5: this_RuleCall= ruleRuleCall
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.13/@alternatives/@groups.0/@groups.0/@groups.1" /* xtext::RuleCall */, currentNode);
@@ -2760,7 +2760,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
break;
case 2 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1007:5: this_ParenthesizedElement= ruleParenthesizedElement
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1007:5: this_ParenthesizedElement= ruleParenthesizedElement
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.13/@alternatives/@groups.0/@groups.1" /* xtext::RuleCall */, currentNode);
@@ -2783,7 +2783,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
break;
case 2 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1017:5: this_CrossReference= ruleCrossReference
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1017:5: this_CrossReference= ruleCrossReference
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.13/@alternatives/@groups.1" /* xtext::RuleCall */, currentNode);
@@ -2820,7 +2820,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start entryRuleCrossReference
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1030:1: entryRuleCrossReference returns [EObject current=null] : iv_ruleCrossReference= ruleCrossReference EOF ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1030:1: entryRuleCrossReference returns [EObject current=null] : iv_ruleCrossReference= ruleCrossReference EOF ;
public final EObject entryRuleCrossReference() throws RecognitionException {
EObject current = null;
@@ -2828,8 +2828,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1030:56: (iv_ruleCrossReference= ruleCrossReference EOF )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1031:2: iv_ruleCrossReference= ruleCrossReference EOF
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1030:56: (iv_ruleCrossReference= ruleCrossReference EOF )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1031:2: iv_ruleCrossReference= ruleCrossReference EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.14" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleCrossReference_in_entryRuleCrossReference2776);
@@ -2855,7 +2855,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start ruleCrossReference
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1038:1: ruleCrossReference returns [EObject current=null] : ( ( ( '[' (lv_type= ruleTypeRef ) ) ( '|' ( ( RULE_ID ) ) )? ) ']' ) ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1038:1: ruleCrossReference returns [EObject current=null] : ( ( ( '[' (lv_type= ruleTypeRef ) ) ( '|' ( ( RULE_ID ) ) )? ) ']' ) ;
public final EObject ruleCrossReference() throws RecognitionException {
EObject current = null;
@@ -2864,24 +2864,24 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1040:33: ( ( ( ( '[' (lv_type= ruleTypeRef ) ) ( '|' ( ( RULE_ID ) ) )? ) ']' ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1041:1: ( ( ( '[' (lv_type= ruleTypeRef ) ) ( '|' ( ( RULE_ID ) ) )? ) ']' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1040:33: ( ( ( ( '[' (lv_type= ruleTypeRef ) ) ( '|' ( ( RULE_ID ) ) )? ) ']' ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1041:1: ( ( ( '[' (lv_type= ruleTypeRef ) ) ( '|' ( ( RULE_ID ) ) )? ) ']' )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1041:1: ( ( ( '[' (lv_type= ruleTypeRef ) ) ( '|' ( ( RULE_ID ) ) )? ) ']' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1041:2: ( ( '[' (lv_type= ruleTypeRef ) ) ( '|' ( ( RULE_ID ) ) )? ) ']'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1041:1: ( ( ( '[' (lv_type= ruleTypeRef ) ) ( '|' ( ( RULE_ID ) ) )? ) ']' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1041:2: ( ( '[' (lv_type= ruleTypeRef ) ) ( '|' ( ( RULE_ID ) ) )? ) ']'
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1041:2: ( ( '[' (lv_type= ruleTypeRef ) ) ( '|' ( ( RULE_ID ) ) )? )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1041:3: ( '[' (lv_type= ruleTypeRef ) ) ( '|' ( ( RULE_ID ) ) )?
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1041:2: ( ( '[' (lv_type= ruleTypeRef ) ) ( '|' ( ( RULE_ID ) ) )? )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1041:3: ( '[' (lv_type= ruleTypeRef ) ) ( '|' ( ( RULE_ID ) ) )?
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1041:3: ( '[' (lv_type= ruleTypeRef ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1041:4: '[' (lv_type= ruleTypeRef )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1041:3: ( '[' (lv_type= ruleTypeRef ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1041:4: '[' (lv_type= ruleTypeRef )
{
match(input,34,FOLLOW_34_in_ruleCrossReference2822);
createLeafNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.14/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0" /* xtext::Keyword */, null);
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1045:1: (lv_type= ruleTypeRef )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1048:6: lv_type= ruleTypeRef
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1045:1: (lv_type= ruleTypeRef )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1048:6: lv_type= ruleTypeRef
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.14/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal" /* xtext::RuleCall */, currentNode);
@@ -2905,7 +2905,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1062:3: ( '|' ( ( RULE_ID ) ) )?
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1062:3: ( '|' ( ( RULE_ID ) ) )?
int alt29=2;
int LA29_0 = input.LA(1);
@@ -2914,14 +2914,14 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
}
switch (alt29) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1062:4: '|' ( ( RULE_ID ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1062:4: '|' ( ( RULE_ID ) )
{
match(input,24,FOLLOW_24_in_ruleCrossReference2871);
createLeafNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.14/@alternatives/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0" /* xtext::Keyword */, null);
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1066:1: ( ( RULE_ID ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1069:3: ( RULE_ID )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1066:1: ( ( RULE_ID ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1069:3: ( RULE_ID )
{
if (current==null) {
@@ -2929,8 +2929,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
associateNodeWithAstElement(currentNode, current);
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1075:1: ( RULE_ID )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1076:2: RULE_ID
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1075:1: ( RULE_ID )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1076:2: RULE_ID
{
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleCrossReference2895);
@@ -2976,7 +2976,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start entryRuleParenthesizedElement
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1090:1: entryRuleParenthesizedElement returns [EObject current=null] : iv_ruleParenthesizedElement= ruleParenthesizedElement EOF ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1090:1: entryRuleParenthesizedElement returns [EObject current=null] : iv_ruleParenthesizedElement= ruleParenthesizedElement EOF ;
public final EObject entryRuleParenthesizedElement() throws RecognitionException {
EObject current = null;
@@ -2984,8 +2984,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1090:62: (iv_ruleParenthesizedElement= ruleParenthesizedElement EOF )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1091:2: iv_ruleParenthesizedElement= ruleParenthesizedElement EOF
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1090:62: (iv_ruleParenthesizedElement= ruleParenthesizedElement EOF )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1091:2: iv_ruleParenthesizedElement= ruleParenthesizedElement EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.15" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleParenthesizedElement_in_entryRuleParenthesizedElement2946);
@@ -3011,7 +3011,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start ruleParenthesizedElement
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1098:1: ruleParenthesizedElement returns [EObject current=null] : ( ( '(' this_Alternatives= ruleAlternatives ) ')' ) ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1098:1: ruleParenthesizedElement returns [EObject current=null] : ( ( '(' this_Alternatives= ruleAlternatives ) ')' ) ;
public final EObject ruleParenthesizedElement() throws RecognitionException {
EObject current = null;
@@ -3020,14 +3020,14 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1100:33: ( ( ( '(' this_Alternatives= ruleAlternatives ) ')' ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1101:1: ( ( '(' this_Alternatives= ruleAlternatives ) ')' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1100:33: ( ( ( '(' this_Alternatives= ruleAlternatives ) ')' ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1101:1: ( ( '(' this_Alternatives= ruleAlternatives ) ')' )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1101:1: ( ( '(' this_Alternatives= ruleAlternatives ) ')' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1101:2: ( '(' this_Alternatives= ruleAlternatives ) ')'
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1101:1: ( ( '(' this_Alternatives= ruleAlternatives ) ')' )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1101:2: ( '(' this_Alternatives= ruleAlternatives ) ')'
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1101:2: ( '(' this_Alternatives= ruleAlternatives )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1101:3: '(' this_Alternatives= ruleAlternatives
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1101:2: ( '(' this_Alternatives= ruleAlternatives )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1101:3: '(' this_Alternatives= ruleAlternatives
{
match(input,36,FOLLOW_36_in_ruleParenthesizedElement2991);
@@ -3072,7 +3072,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start entryRuleKeyword
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1123:1: entryRuleKeyword returns [EObject current=null] : iv_ruleKeyword= ruleKeyword EOF ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1123:1: entryRuleKeyword returns [EObject current=null] : iv_ruleKeyword= ruleKeyword EOF ;
public final EObject entryRuleKeyword() throws RecognitionException {
EObject current = null;
@@ -3080,8 +3080,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1123:49: (iv_ruleKeyword= ruleKeyword EOF )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1124:2: iv_ruleKeyword= ruleKeyword EOF
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1123:49: (iv_ruleKeyword= ruleKeyword EOF )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1124:2: iv_ruleKeyword= ruleKeyword EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.16" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleKeyword_in_entryRuleKeyword3057);
@@ -3107,7 +3107,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start ruleKeyword
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1131:1: ruleKeyword returns [EObject current=null] : (lv_value= RULE_STRING ) ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1131:1: ruleKeyword returns [EObject current=null] : (lv_value= RULE_STRING ) ;
public final EObject ruleKeyword() throws RecognitionException {
EObject current = null;
@@ -3115,11 +3115,11 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1133:33: ( (lv_value= RULE_STRING ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1134:1: (lv_value= RULE_STRING )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1133:33: ( (lv_value= RULE_STRING ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1134:1: (lv_value= RULE_STRING )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1134:1: (lv_value= RULE_STRING )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1136:6: lv_value= RULE_STRING
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1134:1: (lv_value= RULE_STRING )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1136:6: lv_value= RULE_STRING
{
lv_value=(Token)input.LT(1);
match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleKeyword3112);
@@ -3155,7 +3155,7 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start entryRuleRuleCall
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1155:1: entryRuleRuleCall returns [EObject current=null] : iv_ruleRuleCall= ruleRuleCall EOF ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1155:1: entryRuleRuleCall returns [EObject current=null] : iv_ruleRuleCall= ruleRuleCall EOF ;
public final EObject entryRuleRuleCall() throws RecognitionException {
EObject current = null;
@@ -3163,8 +3163,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1155:50: (iv_ruleRuleCall= ruleRuleCall EOF )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1156:2: iv_ruleRuleCall= ruleRuleCall EOF
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1155:50: (iv_ruleRuleCall= ruleRuleCall EOF )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1156:2: iv_ruleRuleCall= ruleRuleCall EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.17" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleRuleCall_in_entryRuleRuleCall3157);
@@ -3190,17 +3190,17 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
// $ANTLR start ruleRuleCall
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1163:1: ruleRuleCall returns [EObject current=null] : ( ( RULE_ID ) ) ;
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1163:1: ruleRuleCall returns [EObject current=null] : ( ( RULE_ID ) ) ;
public final EObject ruleRuleCall() throws RecognitionException {
EObject current = null;
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1165:33: ( ( ( RULE_ID ) ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1166:1: ( ( RULE_ID ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1165:33: ( ( ( RULE_ID ) ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1166:1: ( ( RULE_ID ) )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1166:1: ( ( RULE_ID ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1169:3: ( RULE_ID )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1166:1: ( ( RULE_ID ) )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1169:3: ( RULE_ID )
{
if (current==null) {
@@ -3208,8 +3208,8 @@ public class InternalXtextGrammarTestParser extends AbstractAntlrParser {
associateNodeWithAstElement(currentNode, current);
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1175:1: ( RULE_ID )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1176:2: RULE_ID
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1175:1: ( RULE_ID )
+ // ./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g:1176:2: RULE_ID
{
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleRuleCall3215);
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest__.g b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest__.g
index 2646574..1e4fefd 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest__.g
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest__.g
@@ -35,25 +35,25 @@ T35 : ']' ;
T36 : '(' ;
T37 : ')' ;
-// $ANTLR src "../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g" 1186
+// $ANTLR src "./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g" 1186
RULE_ID : ('^')?('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*;
-// $ANTLR src "../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g" 1188
+// $ANTLR src "./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g" 1188
RULE_INT : ('0'..'9')+;
-// $ANTLR src "../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g" 1190
+// $ANTLR src "./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g" 1190
RULE_STRING : '"' ( '\\' ('b'|'t'|'n'|'f'|'r'|'\"'|'\''|'\\') | ~('\\'|'"') )* '"' | '\'' ( '\\' ('b'|'t'|'n'|'f'|'r'|'\"'|'\''|'\\') | ~('\\'|'\'') )* '\'';
-// $ANTLR src "../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g" 1192
+// $ANTLR src "./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g" 1192
RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )* '*/' {$channel=HIDDEN;};
-// $ANTLR src "../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g" 1194
+// $ANTLR src "./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g" 1194
RULE_SL_COMMENT : '//' ~('\n'|'\r')* ('\r'? '\n')? {$channel=HIDDEN;};
-// $ANTLR src "../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g" 1196
+// $ANTLR src "./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g" 1196
RULE_WS : (' '|'\t'|'\r'|'\n')+ {$channel=HIDDEN;};
-// $ANTLR src "../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g" 1198
+// $ANTLR src "./src-gen/org/eclipse/xtext/parser/internal/InternalXtextGrammarTest.g" 1198
RULE_ANY_OTHER : .;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/XtextGrammarTestParseTreeConstructor.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/XtextGrammarTestParseTreeConstructor.java
index 138d9af..556c20a 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/XtextGrammarTestParseTreeConstructor.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/XtextGrammarTestParseTreeConstructor.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.services.XtextGrammarTestGrammarAccess;
public class XtextGrammarTestParseTreeConstructor extends AbstractParseTreeConstructor {
@@ -58,7 +60,7 @@ protected class Grammar_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGrammar().eleGroup();
}
protected Solution createSolution() {
@@ -86,7 +88,7 @@ protected class Grammar_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGrammar().ele0Group();
}
protected Solution createSolution() {
@@ -114,7 +116,7 @@ protected class Grammar_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGrammar().ele00Group();
}
protected Solution createSolution() {
@@ -142,7 +144,7 @@ protected class Grammar_0_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGrammar().ele000Group();
}
protected Solution createSolution() {
@@ -170,7 +172,7 @@ protected class Grammar_0_0_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGrammar().ele0000Group();
}
protected Solution createSolution() {
@@ -198,7 +200,7 @@ protected class Grammar_0_0_0_0_0_Alternatives extends AlternativesToken {
}
public Alternatives getGrammarElement() {
- return (Alternatives)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGrammar().ele00000Alternatives();
}
protected Solution createSolution() {
@@ -219,7 +221,7 @@ protected class Grammar_0_0_0_0_0_0_Assignment_abstract extends AssignmentToken
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@groups.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGrammar().ele000000AssignmentAbstract();
}
protected Solution createSolution() {
@@ -227,7 +229,7 @@ protected class Grammar_0_0_0_0_0_0_Assignment_abstract extends AssignmentToken
IInstanceDescription obj = current.cloneAndConsume("abstract");
if("abstract language".equals(value)) { // xtext::Keyword
type = AssignmentType.KW;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@groups.0/@terminal");
+ element = XtextGrammarTestGrammarAccess.INSTANCE.prGrammar().ele0000000KeywordAbstractLanguage();
return new Solution(obj);
}
return null;
@@ -242,7 +244,7 @@ protected class Grammar_0_0_0_0_0_1_Keyword_language extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@groups.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGrammar().ele000001KeywordLanguage();
}
}
@@ -255,7 +257,7 @@ protected class Grammar_0_0_0_0_1_Assignment_idElements extends AssignmentToken
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGrammar().ele00001AssignmentIdElements();
}
protected Solution createSolution() {
@@ -263,7 +265,7 @@ protected class Grammar_0_0_0_0_1_Assignment_idElements extends AssignmentToken
IInstanceDescription obj = current.cloneAndConsume("idElements");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = XtextGrammarTestGrammarAccess.INSTANCE.prGrammar().ele000010LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -279,7 +281,7 @@ protected class Grammar_0_0_0_1_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGrammar().ele0001Group();
}
protected Solution createSolution() {
@@ -307,7 +309,7 @@ protected class Grammar_0_0_0_1_0_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGrammar().ele00010Keyword();
}
}
@@ -319,7 +321,7 @@ protected class Grammar_0_0_0_1_1_Assignment_idElements extends AssignmentToken
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGrammar().ele00011AssignmentIdElements();
}
protected Solution createSolution() {
@@ -327,7 +329,7 @@ protected class Grammar_0_0_0_1_1_Assignment_idElements extends AssignmentToken
IInstanceDescription obj = current.cloneAndConsume("idElements");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1/@terminal");
+ element = XtextGrammarTestGrammarAccess.INSTANCE.prGrammar().ele000110LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -344,7 +346,7 @@ protected class Grammar_0_0_1_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGrammar().ele001Group();
}
protected Solution createSolution() {
@@ -372,7 +374,7 @@ protected class Grammar_0_0_1_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGrammar().ele0010Group();
}
protected Solution createSolution() {
@@ -400,7 +402,7 @@ protected class Grammar_0_0_1_0_0_Keyword_extends extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGrammar().ele00100KeywordExtends();
}
}
@@ -412,7 +414,7 @@ protected class Grammar_0_0_1_0_1_Assignment_superGrammarIdElements extends Assi
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGrammar().ele00101AssignmentSuperGrammarIdElements();
}
protected Solution createSolution() {
@@ -420,7 +422,7 @@ protected class Grammar_0_0_1_0_1_Assignment_superGrammarIdElements extends Assi
IInstanceDescription obj = current.cloneAndConsume("superGrammarIdElements");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = XtextGrammarTestGrammarAccess.INSTANCE.prGrammar().ele001010LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -436,7 +438,7 @@ protected class Grammar_0_0_1_1_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGrammar().ele0011Group();
}
protected Solution createSolution() {
@@ -464,7 +466,7 @@ protected class Grammar_0_0_1_1_0_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGrammar().ele00110Keyword();
}
}
@@ -476,7 +478,7 @@ protected class Grammar_0_0_1_1_1_Assignment_superGrammarIdElements extends Assi
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGrammar().ele00111AssignmentSuperGrammarIdElements();
}
protected Solution createSolution() {
@@ -484,7 +486,7 @@ protected class Grammar_0_0_1_1_1_Assignment_superGrammarIdElements extends Assi
IInstanceDescription obj = current.cloneAndConsume("superGrammarIdElements");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1/@abstractTokens.1/@terminal");
+ element = XtextGrammarTestGrammarAccess.INSTANCE.prGrammar().ele001110LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -502,7 +504,7 @@ protected class Grammar_0_1_Assignment_metamodelDeclarations extends AssignmentT
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGrammar().ele01AssignmentMetamodelDeclarations();
}
protected Solution createSolution() {
@@ -531,7 +533,7 @@ protected class Grammar_1_Assignment_rules extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0/@alternatives/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGrammar().ele1AssignmentRules();
}
protected Solution createSolution() {
@@ -569,7 +571,7 @@ protected class AbstractRule_Alternatives extends AlternativesToken {
}
public Alternatives getGrammarElement() {
- return (Alternatives)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.1/@alternatives");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAbstractRule().eleAlternatives();
}
protected Solution createSolution() {
@@ -590,7 +592,7 @@ protected class AbstractRule_0_RuleCall_LexerRule extends RuleCallToken {
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.1/@alternatives/@groups.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAbstractRule().ele0ParserRuleCallLexerRule();
}
protected Solution createSolution() {
@@ -608,7 +610,7 @@ protected class AbstractRule_1_RuleCall_ParserRule extends RuleCallToken {
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.1/@alternatives/@groups.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAbstractRule().ele1ParserRuleCallParserRule();
}
protected Solution createSolution() {
@@ -636,7 +638,7 @@ protected class AbstractMetamodelDeclaration_Alternatives extends AlternativesTo
}
public Alternatives getGrammarElement() {
- return (Alternatives)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.2/@alternatives");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAbstractMetamodelDeclaration().eleAlternatives();
}
protected Solution createSolution() {
@@ -657,7 +659,7 @@ protected class AbstractMetamodelDeclaration_0_RuleCall_GeneratedMetamodel exten
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.2/@alternatives/@groups.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAbstractMetamodelDeclaration().ele0ParserRuleCallGeneratedMetamodel();
}
protected Solution createSolution() {
@@ -675,7 +677,7 @@ protected class AbstractMetamodelDeclaration_1_RuleCall_ReferencedMetamodel exte
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.2/@alternatives/@groups.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAbstractMetamodelDeclaration().ele1ParserRuleCallReferencedMetamodel();
}
protected Solution createSolution() {
@@ -703,7 +705,7 @@ protected class GeneratedMetamodel_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.3/@alternatives");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGeneratedMetamodel().eleGroup();
}
protected Solution createSolution() {
@@ -731,7 +733,7 @@ protected class GeneratedMetamodel_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.3/@alternatives/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGeneratedMetamodel().ele0Group();
}
protected Solution createSolution() {
@@ -759,7 +761,7 @@ protected class GeneratedMetamodel_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGeneratedMetamodel().ele00Group();
}
protected Solution createSolution() {
@@ -787,7 +789,7 @@ protected class GeneratedMetamodel_0_0_0_Keyword_generate extends KeywordToken
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGeneratedMetamodel().ele000KeywordGenerate();
}
}
@@ -799,7 +801,7 @@ protected class GeneratedMetamodel_0_0_1_Assignment_name extends AssignmentToken
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGeneratedMetamodel().ele001AssignmentName();
}
protected Solution createSolution() {
@@ -807,7 +809,7 @@ protected class GeneratedMetamodel_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/XtextGrammarTest.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = XtextGrammarTestGrammarAccess.INSTANCE.prGeneratedMetamodel().ele0010LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -823,7 +825,7 @@ protected class GeneratedMetamodel_0_1_Assignment_nsURI extends AssignmentToken
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGeneratedMetamodel().ele01AssignmentNsURI();
}
protected Solution createSolution() {
@@ -831,7 +833,7 @@ protected class GeneratedMetamodel_0_1_Assignment_nsURI extends AssignmentToken
IInstanceDescription obj = current.cloneAndConsume("nsURI");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = XtextGrammarTestGrammarAccess.INSTANCE.prGeneratedMetamodel().ele010LexerRuleCallSTRING();
return new Solution(obj);
}
return null;
@@ -847,7 +849,7 @@ protected class GeneratedMetamodel_1_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.3/@alternatives/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGeneratedMetamodel().ele1Group();
}
protected Solution createSolution() {
@@ -875,7 +877,7 @@ protected class GeneratedMetamodel_1_0_Keyword_as extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.3/@alternatives/@abstractTokens.1/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGeneratedMetamodel().ele10KeywordAs();
}
}
@@ -887,7 +889,7 @@ protected class GeneratedMetamodel_1_1_Assignment_alias extends AssignmentToken
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.3/@alternatives/@abstractTokens.1/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGeneratedMetamodel().ele11AssignmentAlias();
}
protected Solution createSolution() {
@@ -895,7 +897,7 @@ protected class GeneratedMetamodel_1_1_Assignment_alias extends AssignmentToken
IInstanceDescription obj = current.cloneAndConsume("alias");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.3/@alternatives/@abstractTokens.1/@abstractTokens.1/@terminal");
+ element = XtextGrammarTestGrammarAccess.INSTANCE.prGeneratedMetamodel().ele110LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -921,7 +923,7 @@ protected class ReferencedMetamodel_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.4/@alternatives");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prReferencedMetamodel().eleGroup();
}
protected Solution createSolution() {
@@ -949,7 +951,7 @@ protected class ReferencedMetamodel_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.4/@alternatives/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prReferencedMetamodel().ele0Group();
}
protected Solution createSolution() {
@@ -977,7 +979,7 @@ protected class ReferencedMetamodel_0_0_Keyword_import extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prReferencedMetamodel().ele00KeywordImport();
}
}
@@ -989,7 +991,7 @@ protected class ReferencedMetamodel_0_1_Assignment_uri extends AssignmentToken
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prReferencedMetamodel().ele01AssignmentUri();
}
protected Solution createSolution() {
@@ -997,7 +999,7 @@ protected class ReferencedMetamodel_0_1_Assignment_uri extends AssignmentToken
IInstanceDescription obj = current.cloneAndConsume("uri");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = XtextGrammarTestGrammarAccess.INSTANCE.prReferencedMetamodel().ele010LexerRuleCallSTRING();
return new Solution(obj);
}
return null;
@@ -1013,7 +1015,7 @@ protected class ReferencedMetamodel_1_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.4/@alternatives/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prReferencedMetamodel().ele1Group();
}
protected Solution createSolution() {
@@ -1041,7 +1043,7 @@ protected class ReferencedMetamodel_1_0_Keyword_as extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.4/@alternatives/@abstractTokens.1/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prReferencedMetamodel().ele10KeywordAs();
}
}
@@ -1053,7 +1055,7 @@ protected class ReferencedMetamodel_1_1_Assignment_alias extends AssignmentToken
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.4/@alternatives/@abstractTokens.1/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prReferencedMetamodel().ele11AssignmentAlias();
}
protected Solution createSolution() {
@@ -1061,7 +1063,7 @@ protected class ReferencedMetamodel_1_1_Assignment_alias extends AssignmentToken
IInstanceDescription obj = current.cloneAndConsume("alias");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.4/@alternatives/@abstractTokens.1/@abstractTokens.1/@terminal");
+ element = XtextGrammarTestGrammarAccess.INSTANCE.prReferencedMetamodel().ele110LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -1087,7 +1089,7 @@ protected class LexerRule_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.5/@alternatives");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prLexerRule().eleGroup();
}
protected Solution createSolution() {
@@ -1115,7 +1117,7 @@ protected class LexerRule_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.5/@alternatives/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prLexerRule().ele0Group();
}
protected Solution createSolution() {
@@ -1143,7 +1145,7 @@ protected class LexerRule_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prLexerRule().ele00Group();
}
protected Solution createSolution() {
@@ -1171,7 +1173,7 @@ protected class LexerRule_0_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prLexerRule().ele000Group();
}
protected Solution createSolution() {
@@ -1199,7 +1201,7 @@ protected class LexerRule_0_0_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prLexerRule().ele0000Group();
}
protected Solution createSolution() {
@@ -1227,7 +1229,7 @@ protected class LexerRule_0_0_0_0_0_Alternatives extends AlternativesToken {
}
public Alternatives getGrammarElement() {
- return (Alternatives)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prLexerRule().ele00000Alternatives();
}
protected Solution createSolution() {
@@ -1248,7 +1250,7 @@ protected class LexerRule_0_0_0_0_0_0_Keyword_native extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@groups.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prLexerRule().ele000000KeywordNative();
}
}
@@ -1260,7 +1262,7 @@ protected class LexerRule_0_0_0_0_0_1_Keyword_lexer extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@groups.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prLexerRule().ele000001KeywordLexer();
}
}
@@ -1273,7 +1275,7 @@ protected class LexerRule_0_0_0_0_1_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prLexerRule().ele00001AssignmentName();
}
protected Solution createSolution() {
@@ -1281,7 +1283,7 @@ protected class LexerRule_0_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/XtextGrammarTest.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = XtextGrammarTestGrammarAccess.INSTANCE.prLexerRule().ele000010LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -1297,7 +1299,7 @@ protected class LexerRule_0_0_0_1_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prLexerRule().ele0001Group();
}
protected Solution createSolution() {
@@ -1325,7 +1327,7 @@ protected class LexerRule_0_0_0_1_0_Keyword_returns extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prLexerRule().ele00010KeywordReturns();
}
}
@@ -1337,7 +1339,7 @@ protected class LexerRule_0_0_0_1_1_Assignment_type extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prLexerRule().ele00011AssignmentType();
}
protected Solution createSolution() {
@@ -1367,7 +1369,7 @@ protected class LexerRule_0_0_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prLexerRule().ele001Keyword();
}
}
@@ -1380,7 +1382,7 @@ protected class LexerRule_0_1_Assignment_body extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prLexerRule().ele01AssignmentBody();
}
protected Solution createSolution() {
@@ -1388,7 +1390,7 @@ protected class LexerRule_0_1_Assignment_body extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("body");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = XtextGrammarTestGrammarAccess.INSTANCE.prLexerRule().ele010LexerRuleCallSTRING();
return new Solution(obj);
}
return null;
@@ -1404,7 +1406,7 @@ protected class LexerRule_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.5/@alternatives/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prLexerRule().ele1Keyword();
}
}
@@ -1426,7 +1428,7 @@ protected class ParserRule_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.6/@alternatives");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prParserRule().eleGroup();
}
protected Solution createSolution() {
@@ -1454,7 +1456,7 @@ protected class ParserRule_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.6/@alternatives/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prParserRule().ele0Group();
}
protected Solution createSolution() {
@@ -1482,7 +1484,7 @@ protected class ParserRule_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.6/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prParserRule().ele00Group();
}
protected Solution createSolution() {
@@ -1510,7 +1512,7 @@ protected class ParserRule_0_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.6/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prParserRule().ele000Group();
}
protected Solution createSolution() {
@@ -1538,7 +1540,7 @@ protected class ParserRule_0_0_0_0_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.6/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prParserRule().ele0000AssignmentName();
}
protected Solution createSolution() {
@@ -1546,7 +1548,7 @@ protected class ParserRule_0_0_0_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/XtextGrammarTest.xmi#//@rules.6/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@terminal");
+ element = XtextGrammarTestGrammarAccess.INSTANCE.prParserRule().ele00000LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -1561,7 +1563,7 @@ protected class ParserRule_0_0_0_1_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.6/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prParserRule().ele0001Group();
}
protected Solution createSolution() {
@@ -1589,7 +1591,7 @@ protected class ParserRule_0_0_0_1_0_Keyword_returns extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.6/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prParserRule().ele00010KeywordReturns();
}
}
@@ -1601,7 +1603,7 @@ protected class ParserRule_0_0_0_1_1_Assignment_type extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.6/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prParserRule().ele00011AssignmentType();
}
protected Solution createSolution() {
@@ -1631,7 +1633,7 @@ protected class ParserRule_0_0_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.6/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prParserRule().ele001Keyword();
}
}
@@ -1644,7 +1646,7 @@ protected class ParserRule_0_1_Assignment_alternatives extends AssignmentToken
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.6/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prParserRule().ele01AssignmentAlternatives();
}
protected Solution createSolution() {
@@ -1673,7 +1675,7 @@ protected class ParserRule_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.6/@alternatives/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prParserRule().ele1Keyword();
}
}
@@ -1695,7 +1697,7 @@ protected class TypeRef_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.7/@alternatives");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prTypeRef().eleGroup();
}
protected Solution createSolution() {
@@ -1723,7 +1725,7 @@ protected class TypeRef_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.7/@alternatives/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prTypeRef().ele0Group();
}
protected Solution createSolution() {
@@ -1751,7 +1753,7 @@ protected class TypeRef_0_0_Assignment_alias extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.7/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prTypeRef().ele00AssignmentAlias();
}
protected Solution createSolution() {
@@ -1759,7 +1761,7 @@ protected class TypeRef_0_0_Assignment_alias extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("alias");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.7/@alternatives/@abstractTokens.0/@abstractTokens.0/@terminal");
+ element = XtextGrammarTestGrammarAccess.INSTANCE.prTypeRef().ele000LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -1774,7 +1776,7 @@ protected class TypeRef_0_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.7/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prTypeRef().ele01Keyword();
}
}
@@ -1787,7 +1789,7 @@ protected class TypeRef_1_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.7/@alternatives/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prTypeRef().ele1AssignmentName();
}
protected Solution createSolution() {
@@ -1795,7 +1797,7 @@ protected class TypeRef_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/XtextGrammarTest.xmi#//@rules.7/@alternatives/@abstractTokens.1/@terminal");
+ element = XtextGrammarTestGrammarAccess.INSTANCE.prTypeRef().ele10LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -1807,12 +1809,12 @@ protected class TypeRef_1_Assignment_name extends AssignmentToken {
/************ begin Rule Alternatives ****************
*
- * Alternatives returns XtextTest :: AbstractElement : Group ( { current = XtextTest :: Alternatives . groups += current } '|' groups += Group ) * ;
+ * (error)
*
**/
-// Group ( { current = XtextTest :: Alternatives . groups += current } '|' groups += Group ) *
+// (error)
protected class Alternatives_Group extends GroupToken {
public Alternatives_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -1820,7 +1822,7 @@ protected class Alternatives_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.8/@alternatives");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAlternatives().eleGroup();
}
protected Solution createSolution() {
@@ -1848,7 +1850,7 @@ protected class Alternatives_0_RuleCall_Group extends RuleCallToken {
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.8/@alternatives/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAlternatives().ele0ParserRuleCallGroup();
}
protected Solution createSolution() {
@@ -1858,7 +1860,7 @@ protected class Alternatives_0_RuleCall_Group extends RuleCallToken {
}
}
-// ( { current = XtextTest :: Alternatives . groups += current } '|' groups += Group ) *
+// (error)
protected class Alternatives_1_Group extends GroupToken {
public Alternatives_1_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -1866,7 +1868,7 @@ protected class Alternatives_1_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.8/@alternatives/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAlternatives().ele1Group();
}
protected Solution createSolution() {
@@ -1886,7 +1888,7 @@ protected class Alternatives_1_Group extends GroupToken {
}
}
-// { current = XtextTest :: Alternatives . groups += current } '|'
+// (error)
protected class Alternatives_1_0_Group extends GroupToken {
public Alternatives_1_0_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -1894,7 +1896,7 @@ protected class Alternatives_1_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.8/@alternatives/@abstractTokens.1/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAlternatives().ele10Group();
}
protected Solution createSolution() {
@@ -1914,7 +1916,7 @@ protected class Alternatives_1_0_Group extends GroupToken {
}
}
-// { current = XtextTest :: Alternatives . groups += current }
+// (error)
protected class Alternatives_1_0_0_Action_Alternatives_groups extends ActionToken {
public Alternatives_1_0_0_Action_Alternatives_groups(IInstanceDescription curr, AbstractToken pred) {
@@ -1922,7 +1924,7 @@ protected class Alternatives_1_0_0_Action_Alternatives_groups extends ActionToke
}
public Action getGrammarElement() {
- return (Action)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.8/@alternatives/@abstractTokens.1/@abstractTokens.0/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAlternatives().ele100ActionAlternativesgroups();
}
protected Solution createSolution() {
@@ -1942,7 +1944,7 @@ protected class Alternatives_1_0_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.8/@alternatives/@abstractTokens.1/@abstractTokens.0/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAlternatives().ele101Keyword();
}
}
@@ -1955,7 +1957,7 @@ protected class Alternatives_1_1_Assignment_groups extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.8/@alternatives/@abstractTokens.1/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAlternatives().ele11AssignmentGroups();
}
protected Solution createSolution() {
@@ -1981,12 +1983,12 @@ protected class Alternatives_1_1_Assignment_groups extends AssignmentToken {
/************ begin Rule Group ****************
*
- * Group returns XtextTest :: AbstractElement : AbstractToken ( { current = XtextTest :: Group . abstractTokens += current } abstractTokens += AbstractToken ) * ;
+ * (error)
*
**/
-// AbstractToken ( { current = XtextTest :: Group . abstractTokens += current } abstractTokens += AbstractToken ) *
+// (error)
protected class Group_Group extends GroupToken {
public Group_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -1994,7 +1996,7 @@ protected class Group_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.9/@alternatives");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGroup().eleGroup();
}
protected Solution createSolution() {
@@ -2022,7 +2024,7 @@ protected class Group_0_RuleCall_AbstractToken extends RuleCallToken {
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.9/@alternatives/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGroup().ele0ParserRuleCallAbstractToken();
}
protected Solution createSolution() {
@@ -2032,7 +2034,7 @@ protected class Group_0_RuleCall_AbstractToken extends RuleCallToken {
}
}
-// ( { current = XtextTest :: Group . abstractTokens += current } abstractTokens += AbstractToken ) *
+// (error)
protected class Group_1_Group extends GroupToken {
public Group_1_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -2040,7 +2042,7 @@ protected class Group_1_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.9/@alternatives/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGroup().ele1Group();
}
protected Solution createSolution() {
@@ -2060,7 +2062,7 @@ protected class Group_1_Group extends GroupToken {
}
}
-// { current = XtextTest :: Group . abstractTokens += current }
+// (error)
protected class Group_1_0_Action_Group_abstractTokens extends ActionToken {
public Group_1_0_Action_Group_abstractTokens(IInstanceDescription curr, AbstractToken pred) {
@@ -2068,7 +2070,7 @@ protected class Group_1_0_Action_Group_abstractTokens extends ActionToken {
}
public Action getGrammarElement() {
- return (Action)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.9/@alternatives/@abstractTokens.1/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGroup().ele10ActionGroupabstractTokens();
}
protected Solution createSolution() {
@@ -2088,7 +2090,7 @@ protected class Group_1_1_Assignment_abstractTokens extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.9/@alternatives/@abstractTokens.1/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prGroup().ele11AssignmentAbstractTokens();
}
protected Solution createSolution() {
@@ -2114,7 +2116,7 @@ protected class Group_1_1_Assignment_abstractTokens extends AssignmentToken {
/************ begin Rule AbstractToken ****************
*
- * AbstractToken returns XtextTest :: AbstractElement : ( Assignment | Action | AbstractTerminal ) ( cardinality = ( '?' | '*' | '+' ) ) ? ;
+ * (error)
*
**/
@@ -2127,7 +2129,7 @@ protected class AbstractToken_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.10/@alternatives");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAbstractToken().eleGroup();
}
protected Solution createSolution() {
@@ -2155,7 +2157,7 @@ protected class AbstractToken_0_Alternatives extends AlternativesToken {
}
public Alternatives getGrammarElement() {
- return (Alternatives)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.10/@alternatives/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAbstractToken().ele0Alternatives();
}
protected Solution createSolution() {
@@ -2176,7 +2178,7 @@ protected class AbstractToken_0_0_Alternatives extends AlternativesToken {
}
public Alternatives getGrammarElement() {
- return (Alternatives)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.10/@alternatives/@abstractTokens.0/@groups.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAbstractToken().ele00Alternatives();
}
protected Solution createSolution() {
@@ -2197,7 +2199,7 @@ protected class AbstractToken_0_0_0_RuleCall_Assignment extends RuleCallToken {
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.10/@alternatives/@abstractTokens.0/@groups.0/@groups.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAbstractToken().ele000ParserRuleCallAssignment();
}
protected Solution createSolution() {
@@ -2215,7 +2217,7 @@ protected class AbstractToken_0_0_1_RuleCall_Action extends RuleCallToken {
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.10/@alternatives/@abstractTokens.0/@groups.0/@groups.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAbstractToken().ele001ParserRuleCallAction();
}
protected Solution createSolution() {
@@ -2234,7 +2236,7 @@ protected class AbstractToken_0_1_RuleCall_AbstractTerminal extends RuleCallToke
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.10/@alternatives/@abstractTokens.0/@groups.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAbstractToken().ele01ParserRuleCallAbstractTerminal();
}
protected Solution createSolution() {
@@ -2253,7 +2255,7 @@ protected class AbstractToken_1_Assignment_cardinality extends AssignmentToken
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.10/@alternatives/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAbstractToken().ele1AssignmentCardinality();
}
protected Solution createSolution() {
@@ -2261,17 +2263,17 @@ protected class AbstractToken_1_Assignment_cardinality extends AssignmentToken
IInstanceDescription obj = current.cloneAndConsume("cardinality");
if("?".equals(value)) { // xtext::Keyword
type = AssignmentType.KW;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.10/@alternatives/@abstractTokens.1/@terminal/@groups.0/@groups.0");
+ element = XtextGrammarTestGrammarAccess.INSTANCE.prAbstractToken().ele1000Keyword();
return new Solution(obj);
}
if("*".equals(value)) { // xtext::Keyword
type = AssignmentType.KW;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.10/@alternatives/@abstractTokens.1/@terminal/@groups.0/@groups.1");
+ element = XtextGrammarTestGrammarAccess.INSTANCE.prAbstractToken().ele1001Keyword();
return new Solution(obj);
}
if("+".equals(value)) { // xtext::Keyword
type = AssignmentType.KW;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.10/@alternatives/@abstractTokens.1/@terminal/@groups.1");
+ element = XtextGrammarTestGrammarAccess.INSTANCE.prAbstractToken().ele101Keyword();
return new Solution(obj);
}
return null;
@@ -2283,7 +2285,7 @@ protected class AbstractToken_1_Assignment_cardinality extends AssignmentToken
/************ begin Rule Assignment ****************
*
- * Assignment returns XtextTest :: Assignment : feature = ID operator = ( '+=' | '=' | '?=' ) terminal = AbstractTerminal ;
+ * (error)
*
**/
@@ -2296,7 +2298,7 @@ protected class Assignment_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.11/@alternatives");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAssignment().eleGroup();
}
protected Solution createSolution() {
@@ -2324,7 +2326,7 @@ protected class Assignment_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.11/@alternatives/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAssignment().ele0Group();
}
protected Solution createSolution() {
@@ -2352,7 +2354,7 @@ protected class Assignment_0_0_Assignment_feature extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.11/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAssignment().ele00AssignmentFeature();
}
protected Solution createSolution() {
@@ -2360,7 +2362,7 @@ protected class Assignment_0_0_Assignment_feature extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("feature");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.11/@alternatives/@abstractTokens.0/@abstractTokens.0/@terminal");
+ element = XtextGrammarTestGrammarAccess.INSTANCE.prAssignment().ele000LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -2375,7 +2377,7 @@ protected class Assignment_0_1_Assignment_operator extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.11/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAssignment().ele01AssignmentOperator();
}
protected Solution createSolution() {
@@ -2383,17 +2385,17 @@ protected class Assignment_0_1_Assignment_operator extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("operator");
if("+=".equals(value)) { // xtext::Keyword
type = AssignmentType.KW;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.11/@alternatives/@abstractTokens.0/@abstractTokens.1/@terminal/@groups.0/@groups.0");
+ element = XtextGrammarTestGrammarAccess.INSTANCE.prAssignment().ele01000Keyword();
return new Solution(obj);
}
if("=".equals(value)) { // xtext::Keyword
type = AssignmentType.KW;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.11/@alternatives/@abstractTokens.0/@abstractTokens.1/@terminal/@groups.0/@groups.1");
+ element = XtextGrammarTestGrammarAccess.INSTANCE.prAssignment().ele01001Keyword();
return new Solution(obj);
}
if("?=".equals(value)) { // xtext::Keyword
type = AssignmentType.KW;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.11/@alternatives/@abstractTokens.0/@abstractTokens.1/@terminal/@groups.1");
+ element = XtextGrammarTestGrammarAccess.INSTANCE.prAssignment().ele0101Keyword();
return new Solution(obj);
}
return null;
@@ -2409,7 +2411,7 @@ protected class Assignment_1_Assignment_terminal extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.11/@alternatives/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAssignment().ele1AssignmentTerminal();
}
protected Solution createSolution() {
@@ -2434,7 +2436,7 @@ protected class Assignment_1_Assignment_terminal extends AssignmentToken {
/************ begin Rule Action ****************
*
- * Action returns XtextTest :: Action : '{' ( 'current' '=' ) ? typeName = TypeRef '.' feature = ID operator = ( '=' | '+=' ) 'current' '}' ;
+ * (error)
*
**/
@@ -2447,7 +2449,7 @@ protected class Action_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.12/@alternatives");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAction().eleGroup();
}
protected Solution createSolution() {
@@ -2475,7 +2477,7 @@ protected class Action_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.12/@alternatives/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAction().ele0Group();
}
protected Solution createSolution() {
@@ -2503,7 +2505,7 @@ protected class Action_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.12/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAction().ele00Group();
}
protected Solution createSolution() {
@@ -2531,7 +2533,7 @@ protected class Action_0_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.12/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAction().ele000Group();
}
protected Solution createSolution() {
@@ -2559,7 +2561,7 @@ protected class Action_0_0_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.12/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAction().ele0000Group();
}
protected Solution createSolution() {
@@ -2587,7 +2589,7 @@ protected class Action_0_0_0_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.12/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAction().ele00000Group();
}
protected Solution createSolution() {
@@ -2615,7 +2617,7 @@ protected class Action_0_0_0_0_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.12/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAction().ele000000Group();
}
protected Solution createSolution() {
@@ -2643,7 +2645,7 @@ protected class Action_0_0_0_0_0_0_0_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.12/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAction().ele0000000Keyword();
}
}
@@ -2655,7 +2657,7 @@ protected class Action_0_0_0_0_0_0_1_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.12/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAction().ele0000001Group();
}
protected Solution createSolution() {
@@ -2683,7 +2685,7 @@ protected class Action_0_0_0_0_0_0_1_0_Keyword_current extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.12/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAction().ele00000010KeywordCurrent();
}
}
@@ -2695,7 +2697,7 @@ protected class Action_0_0_0_0_0_0_1_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.12/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAction().ele00000011Keyword();
}
}
@@ -2709,7 +2711,7 @@ protected class Action_0_0_0_0_0_1_Assignment_typeName extends AssignmentToken
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.12/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAction().ele000001AssignmentTypeName();
}
protected Solution createSolution() {
@@ -2738,7 +2740,7 @@ protected class Action_0_0_0_0_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.12/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAction().ele00001Keyword();
}
}
@@ -2751,7 +2753,7 @@ protected class Action_0_0_0_1_Assignment_feature extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.12/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAction().ele0001AssignmentFeature();
}
protected Solution createSolution() {
@@ -2759,7 +2761,7 @@ protected class Action_0_0_0_1_Assignment_feature extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("feature");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.12/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = XtextGrammarTestGrammarAccess.INSTANCE.prAction().ele00010LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -2775,7 +2777,7 @@ protected class Action_0_0_1_Assignment_operator extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.12/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAction().ele001AssignmentOperator();
}
protected Solution createSolution() {
@@ -2783,12 +2785,12 @@ protected class Action_0_0_1_Assignment_operator extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("operator");
if("=".equals(value)) { // xtext::Keyword
type = AssignmentType.KW;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.12/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal/@groups.0");
+ element = XtextGrammarTestGrammarAccess.INSTANCE.prAction().ele00100Keyword();
return new Solution(obj);
}
if("+=".equals(value)) { // xtext::Keyword
type = AssignmentType.KW;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.12/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal/@groups.1");
+ element = XtextGrammarTestGrammarAccess.INSTANCE.prAction().ele00101Keyword();
return new Solution(obj);
}
return null;
@@ -2804,7 +2806,7 @@ protected class Action_0_1_Keyword_current extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.12/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAction().ele01KeywordCurrent();
}
}
@@ -2817,7 +2819,7 @@ protected class Action_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.12/@alternatives/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAction().ele1Keyword();
}
}
@@ -2826,7 +2828,7 @@ protected class Action_1_Keyword extends KeywordToken {
/************ begin Rule AbstractTerminal ****************
*
- * AbstractTerminal returns XtextTest :: AbstractElement : Keyword | RuleCall | ParenthesizedElement | CrossReference ;
+ * (error)
*
**/
@@ -2839,7 +2841,7 @@ protected class AbstractTerminal_Alternatives extends AlternativesToken {
}
public Alternatives getGrammarElement() {
- return (Alternatives)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.13/@alternatives");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAbstractTerminal().eleAlternatives();
}
protected Solution createSolution() {
@@ -2860,7 +2862,7 @@ protected class AbstractTerminal_0_Alternatives extends AlternativesToken {
}
public Alternatives getGrammarElement() {
- return (Alternatives)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.13/@alternatives/@groups.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAbstractTerminal().ele0Alternatives();
}
protected Solution createSolution() {
@@ -2881,7 +2883,7 @@ protected class AbstractTerminal_0_0_Alternatives extends AlternativesToken {
}
public Alternatives getGrammarElement() {
- return (Alternatives)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.13/@alternatives/@groups.0/@groups.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAbstractTerminal().ele00Alternatives();
}
protected Solution createSolution() {
@@ -2902,7 +2904,7 @@ protected class AbstractTerminal_0_0_0_RuleCall_Keyword extends RuleCallToken {
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.13/@alternatives/@groups.0/@groups.0/@groups.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAbstractTerminal().ele000ParserRuleCallKeyword();
}
protected Solution createSolution() {
@@ -2920,7 +2922,7 @@ protected class AbstractTerminal_0_0_1_RuleCall_RuleCall extends RuleCallToken {
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.13/@alternatives/@groups.0/@groups.0/@groups.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAbstractTerminal().ele001ParserRuleCallRuleCall();
}
protected Solution createSolution() {
@@ -2939,7 +2941,7 @@ protected class AbstractTerminal_0_1_RuleCall_ParenthesizedElement extends RuleC
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.13/@alternatives/@groups.0/@groups.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAbstractTerminal().ele01ParserRuleCallParenthesizedElement();
}
protected Solution createSolution() {
@@ -2958,7 +2960,7 @@ protected class AbstractTerminal_1_RuleCall_CrossReference extends RuleCallToken
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.13/@alternatives/@groups.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prAbstractTerminal().ele1ParserRuleCallCrossReference();
}
protected Solution createSolution() {
@@ -2973,12 +2975,12 @@ protected class AbstractTerminal_1_RuleCall_CrossReference extends RuleCallToken
/************ begin Rule CrossReference ****************
*
- * CrossReference : '[' type = TypeRef ( '|' rule = [ XtextTest :: LexerRule ] ) ? ']' ;
+ * (error)
*
**/
-// '[' type = TypeRef ( '|' rule = [ XtextTest :: LexerRule ] ) ? ']'
+// (error)
protected class CrossReference_Group extends GroupToken {
public CrossReference_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -2986,7 +2988,7 @@ protected class CrossReference_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.14/@alternatives");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prCrossReference().eleGroup();
}
protected Solution createSolution() {
@@ -3006,7 +3008,7 @@ protected class CrossReference_Group extends GroupToken {
}
}
-// '[' type = TypeRef ( '|' rule = [ XtextTest :: LexerRule ] ) ?
+// (error)
protected class CrossReference_0_Group extends GroupToken {
public CrossReference_0_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -3014,7 +3016,7 @@ protected class CrossReference_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.14/@alternatives/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prCrossReference().ele0Group();
}
protected Solution createSolution() {
@@ -3042,7 +3044,7 @@ protected class CrossReference_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.14/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prCrossReference().ele00Group();
}
protected Solution createSolution() {
@@ -3070,7 +3072,7 @@ protected class CrossReference_0_0_0_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.14/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prCrossReference().ele000Keyword();
}
}
@@ -3082,7 +3084,7 @@ protected class CrossReference_0_0_1_Assignment_type extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.14/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prCrossReference().ele001AssignmentType();
}
protected Solution createSolution() {
@@ -3103,7 +3105,7 @@ protected class CrossReference_0_0_1_Assignment_type extends AssignmentToken {
}
-// ( '|' rule = [ XtextTest :: LexerRule ] ) ?
+// (error)
protected class CrossReference_0_1_Group extends GroupToken {
public CrossReference_0_1_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -3111,7 +3113,7 @@ protected class CrossReference_0_1_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.14/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prCrossReference().ele01Group();
}
protected Solution createSolution() {
@@ -3139,11 +3141,11 @@ protected class CrossReference_0_1_0_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.14/@alternatives/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prCrossReference().ele010Keyword();
}
}
-// rule = [ XtextTest :: LexerRule ]
+// (error)
protected class CrossReference_0_1_1_Assignment_rule extends AssignmentToken {
public CrossReference_0_1_1_Assignment_rule(IInstanceDescription curr, AbstractToken pred) {
@@ -3151,7 +3153,7 @@ protected class CrossReference_0_1_1_Assignment_rule extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.14/@alternatives/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prCrossReference().ele011AssignmentRule();
}
protected Solution createSolution() {
@@ -3161,7 +3163,7 @@ protected class CrossReference_0_1_1_Assignment_rule extends AssignmentToken {
IInstanceDescription param = getDescr((EObject)value);
if(param.isInstanceOf("LexerRule")) {
type = AssignmentType.CR;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.14/@alternatives/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1/@terminal");
+ element = XtextGrammarTestGrammarAccess.INSTANCE.prCrossReference().ele0110CrossReferenceLexerRule();
return new Solution(obj);
}
}
@@ -3179,7 +3181,7 @@ protected class CrossReference_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.14/@alternatives/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prCrossReference().ele1Keyword();
}
}
@@ -3188,7 +3190,7 @@ protected class CrossReference_1_Keyword extends KeywordToken {
/************ begin Rule ParenthesizedElement ****************
*
- * ParenthesizedElement returns XtextTest :: AbstractElement : '(' Alternatives ')' ;
+ * (error)
*
**/
@@ -3201,7 +3203,7 @@ protected class ParenthesizedElement_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.15/@alternatives");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prParenthesizedElement().eleGroup();
}
protected Solution createSolution() {
@@ -3229,7 +3231,7 @@ protected class ParenthesizedElement_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.15/@alternatives/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prParenthesizedElement().ele0Group();
}
protected Solution createSolution() {
@@ -3257,7 +3259,7 @@ protected class ParenthesizedElement_0_0_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.15/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prParenthesizedElement().ele00Keyword();
}
}
@@ -3269,7 +3271,7 @@ protected class ParenthesizedElement_0_1_RuleCall_Alternatives extends RuleCallT
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.15/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prParenthesizedElement().ele01ParserRuleCallAlternatives();
}
protected Solution createSolution() {
@@ -3288,7 +3290,7 @@ protected class ParenthesizedElement_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.15/@alternatives/@abstractTokens.1");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prParenthesizedElement().ele1Keyword();
}
}
@@ -3310,7 +3312,7 @@ protected class Keyword_Assignment_value extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.16/@alternatives");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prKeyword().eleAssignmentValue();
}
protected Solution createSolution() {
@@ -3318,7 +3320,7 @@ protected class Keyword_Assignment_value extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("value");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.16/@alternatives/@terminal");
+ element = XtextGrammarTestGrammarAccess.INSTANCE.prKeyword().ele0LexerRuleCallSTRING();
return new Solution(obj);
}
return null;
@@ -3329,12 +3331,12 @@ protected class Keyword_Assignment_value extends AssignmentToken {
/************ begin Rule RuleCall ****************
*
- * RuleCall : rule = [ XtextTest :: AbstractRule ] ;
+ * (error)
*
**/
-// rule = [ XtextTest :: AbstractRule ]
+// (error)
protected class RuleCall_Assignment_rule extends AssignmentToken {
public RuleCall_Assignment_rule(IInstanceDescription curr, AbstractToken pred) {
@@ -3342,7 +3344,7 @@ protected class RuleCall_Assignment_rule extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.17/@alternatives");
+ return XtextGrammarTestGrammarAccess.INSTANCE.prRuleCall().eleAssignmentRule();
}
protected Solution createSolution() {
@@ -3352,7 +3354,7 @@ protected class RuleCall_Assignment_rule extends AssignmentToken {
IInstanceDescription param = getDescr((EObject)value);
if(param.isInstanceOf("AbstractRule")) {
type = AssignmentType.CR;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.17/@alternatives/@terminal");
+ element = XtextGrammarTestGrammarAccess.INSTANCE.prRuleCall().ele0CrossReferenceAbstractRule();
return new Solution(obj);
}
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/internal/InternalComplexReconstrTestLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/internal/InternalComplexReconstrTestLexer.java
index 90690e8..aff6024 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/internal/InternalComplexReconstrTestLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/internal/InternalComplexReconstrTestLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parsetree/reconstr/parser/internal/InternalComplexReconstrTest.g 2008-12-03 21:38:41
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parsetree/reconstr/parser/internal/InternalComplexReconstrTest.g 2008-12-04 21:06:51
package org.eclipse.xtext.parsetree.reconstr.parser.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/internal/InternalComplexReconstrTestParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/internal/InternalComplexReconstrTestParser.java
index d91252a..f40166d 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/internal/InternalComplexReconstrTestParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/internal/InternalComplexReconstrTestParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parsetree/reconstr/parser/internal/InternalComplexReconstrTest.g 2008-12-03 21:38:41
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parsetree/reconstr/parser/internal/InternalComplexReconstrTest.g 2008-12-04 21:06:51
package org.eclipse.xtext.parsetree.reconstr.parser.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/internal/InternalSimpleReconstrTestLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/internal/InternalSimpleReconstrTestLexer.java
index 0f8ac94..b0035e9 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/internal/InternalSimpleReconstrTestLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/internal/InternalSimpleReconstrTestLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parsetree/reconstr/parser/internal/InternalSimpleReconstrTest.g 2008-12-03 21:38:41
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parsetree/reconstr/parser/internal/InternalSimpleReconstrTest.g 2008-12-04 21:06:50
package org.eclipse.xtext.parsetree.reconstr.parser.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/internal/InternalSimpleReconstrTestParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/internal/InternalSimpleReconstrTestParser.java
index 3bd1875..1518a11 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/internal/InternalSimpleReconstrTestParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/internal/InternalSimpleReconstrTestParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parsetree/reconstr/parser/internal/InternalSimpleReconstrTest.g 2008-12-03 21:38:41
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parsetree/reconstr/parser/internal/InternalSimpleReconstrTest.g 2008-12-04 21:06:50
package org.eclipse.xtext.parsetree.reconstr.parser.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parsetree/reconstr/ComplexReconstrTestParseTreeConstructor.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parsetree/reconstr/ComplexReconstrTestParseTreeConstructor.java
index 13ebd99..c243a12 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parsetree/reconstr/ComplexReconstrTestParseTreeConstructor.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parsetree/reconstr/ComplexReconstrTestParseTreeConstructor.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.parsetree.reconstr.services.ComplexReconstrTestGrammarAccess;
public class ComplexReconstrTestParseTreeConstructor extends AbstractParseTreeConstructor {
@@ -38,12 +40,12 @@ public class ComplexReconstrTestParseTreeConstructor extends AbstractParseTreeCo
/************ begin Rule Op ****************
*
- * Op returns complexrewritetest :: Expression : Term ( { current = complexrewritetest :: Add . addOperands += current } '+' addOperands += Term | { current = complexrewritetest :: Minus . minusOperands += current } '-' minusOperands += Term ) * ;
+ * (error)
*
**/
-// Term ( { current = complexrewritetest :: Add . addOperands += current } '+' addOperands += Term | { current = complexrewritetest :: Minus . minusOperands += current } '-' minusOperands += Term ) *
+// (error)
protected class Op_Group extends GroupToken {
public Op_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -51,7 +53,7 @@ protected class Op_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.0/@alternatives");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prOp().eleGroup();
}
protected Solution createSolution() {
@@ -79,7 +81,7 @@ protected class Op_0_RuleCall_Term extends RuleCallToken {
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.0/@alternatives/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prOp().ele0ParserRuleCallTerm();
}
protected Solution createSolution() {
@@ -89,7 +91,7 @@ protected class Op_0_RuleCall_Term extends RuleCallToken {
}
}
-// ( { current = complexrewritetest :: Add . addOperands += current } '+' addOperands += Term | { current = complexrewritetest :: Minus . minusOperands += current } '-' minusOperands += Term ) *
+// (error)
protected class Op_1_Alternatives extends AlternativesToken {
public Op_1_Alternatives(IInstanceDescription curr, AbstractToken pred) {
@@ -97,7 +99,7 @@ protected class Op_1_Alternatives extends AlternativesToken {
}
public Alternatives getGrammarElement() {
- return (Alternatives)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.0/@alternatives/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prOp().ele1Alternatives();
}
protected Solution createSolution() {
@@ -110,7 +112,7 @@ protected class Op_1_Alternatives extends AlternativesToken {
}
}
-// { current = complexrewritetest :: Add . addOperands += current } '+' addOperands += Term
+// (error)
protected class Op_1_0_Group extends GroupToken {
public Op_1_0_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -118,7 +120,7 @@ protected class Op_1_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.0/@alternatives/@abstractTokens.1/@groups.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prOp().ele10Group();
}
protected Solution createSolution() {
@@ -138,7 +140,7 @@ protected class Op_1_0_Group extends GroupToken {
}
}
-// { current = complexrewritetest :: Add . addOperands += current } '+'
+// (error)
protected class Op_1_0_0_Group extends GroupToken {
public Op_1_0_0_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -146,7 +148,7 @@ protected class Op_1_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.0/@alternatives/@abstractTokens.1/@groups.0/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prOp().ele100Group();
}
protected Solution createSolution() {
@@ -166,7 +168,7 @@ protected class Op_1_0_0_Group extends GroupToken {
}
}
-// { current = complexrewritetest :: Add . addOperands += current }
+// (error)
protected class Op_1_0_0_0_Action_Add_addOperands extends ActionToken {
public Op_1_0_0_0_Action_Add_addOperands(IInstanceDescription curr, AbstractToken pred) {
@@ -174,7 +176,7 @@ protected class Op_1_0_0_0_Action_Add_addOperands extends ActionToken {
}
public Action getGrammarElement() {
- return (Action)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.0/@alternatives/@abstractTokens.1/@groups.0/@abstractTokens.0/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prOp().ele1000ActionAddaddOperands();
}
protected Solution createSolution() {
@@ -194,7 +196,7 @@ protected class Op_1_0_0_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.0/@alternatives/@abstractTokens.1/@groups.0/@abstractTokens.0/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prOp().ele1001Keyword();
}
}
@@ -207,7 +209,7 @@ protected class Op_1_0_1_Assignment_addOperands extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.0/@alternatives/@abstractTokens.1/@groups.0/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prOp().ele101AssignmentAddOperands();
}
protected Solution createSolution() {
@@ -228,7 +230,7 @@ protected class Op_1_0_1_Assignment_addOperands extends AssignmentToken {
}
-// { current = complexrewritetest :: Minus . minusOperands += current } '-' minusOperands += Term
+// (error)
protected class Op_1_1_Group extends GroupToken {
public Op_1_1_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -236,7 +238,7 @@ protected class Op_1_1_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.0/@alternatives/@abstractTokens.1/@groups.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prOp().ele11Group();
}
protected Solution createSolution() {
@@ -256,7 +258,7 @@ protected class Op_1_1_Group extends GroupToken {
}
}
-// { current = complexrewritetest :: Minus . minusOperands += current } '-'
+// (error)
protected class Op_1_1_0_Group extends GroupToken {
public Op_1_1_0_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -264,7 +266,7 @@ protected class Op_1_1_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.0/@alternatives/@abstractTokens.1/@groups.1/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prOp().ele110Group();
}
protected Solution createSolution() {
@@ -284,7 +286,7 @@ protected class Op_1_1_0_Group extends GroupToken {
}
}
-// { current = complexrewritetest :: Minus . minusOperands += current }
+// (error)
protected class Op_1_1_0_0_Action_Minus_minusOperands extends ActionToken {
public Op_1_1_0_0_Action_Minus_minusOperands(IInstanceDescription curr, AbstractToken pred) {
@@ -292,7 +294,7 @@ protected class Op_1_1_0_0_Action_Minus_minusOperands extends ActionToken {
}
public Action getGrammarElement() {
- return (Action)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.0/@alternatives/@abstractTokens.1/@groups.1/@abstractTokens.0/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prOp().ele1100ActionMinusminusOperands();
}
protected Solution createSolution() {
@@ -312,7 +314,7 @@ protected class Op_1_1_0_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.0/@alternatives/@abstractTokens.1/@groups.1/@abstractTokens.0/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prOp().ele1101Keyword();
}
}
@@ -325,7 +327,7 @@ protected class Op_1_1_1_Assignment_minusOperands extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.0/@alternatives/@abstractTokens.1/@groups.1/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prOp().ele111AssignmentMinusOperands();
}
protected Solution createSolution() {
@@ -352,7 +354,7 @@ protected class Op_1_1_1_Assignment_minusOperands extends AssignmentToken {
/************ begin Rule Term ****************
*
- * Term returns complexrewritetest :: Expression : Atom | Parens ;
+ * (error)
*
**/
@@ -365,7 +367,7 @@ protected class Term_Alternatives extends AlternativesToken {
}
public Alternatives getGrammarElement() {
- return (Alternatives)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.1/@alternatives");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTerm().eleAlternatives();
}
protected Solution createSolution() {
@@ -386,7 +388,7 @@ protected class Term_0_RuleCall_Atom extends RuleCallToken {
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.1/@alternatives/@groups.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTerm().ele0ParserRuleCallAtom();
}
protected Solution createSolution() {
@@ -404,7 +406,7 @@ protected class Term_1_RuleCall_Parens extends RuleCallToken {
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.1/@alternatives/@groups.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTerm().ele1ParserRuleCallParens();
}
protected Solution createSolution() {
@@ -432,7 +434,7 @@ protected class Atom_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.2/@alternatives");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prAtom().eleAssignmentName();
}
protected Solution createSolution() {
@@ -440,7 +442,7 @@ protected class Atom_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/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.2/@alternatives/@terminal");
+ element = ComplexReconstrTestGrammarAccess.INSTANCE.prAtom().ele0LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -451,7 +453,7 @@ protected class Atom_Assignment_name extends AssignmentToken {
/************ begin Rule Parens ****************
*
- * Parens returns complexrewritetest :: Expression : '(' Op ')' ( em = '!' ) ? ;
+ * (error)
*
**/
@@ -464,7 +466,7 @@ protected class Parens_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.3/@alternatives");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prParens().eleGroup();
}
protected Solution createSolution() {
@@ -492,7 +494,7 @@ protected class Parens_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.3/@alternatives/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prParens().ele0Group();
}
protected Solution createSolution() {
@@ -520,7 +522,7 @@ protected class Parens_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prParens().ele00Group();
}
protected Solution createSolution() {
@@ -548,7 +550,7 @@ protected class Parens_0_0_0_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prParens().ele000Keyword();
}
}
@@ -560,7 +562,7 @@ protected class Parens_0_0_1_RuleCall_Op extends RuleCallToken {
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prParens().ele001ParserRuleCallOp();
}
protected Solution createSolution() {
@@ -579,7 +581,7 @@ protected class Parens_0_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prParens().ele01Keyword();
}
}
@@ -592,7 +594,7 @@ protected class Parens_1_Assignment_em extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.3/@alternatives/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prParens().ele1AssignmentEm();
}
protected Solution createSolution() {
@@ -600,7 +602,7 @@ protected class Parens_1_Assignment_em extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("em");
if("!".equals(value)) { // xtext::Keyword
type = AssignmentType.KW;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.3/@alternatives/@abstractTokens.1/@terminal");
+ element = ComplexReconstrTestGrammarAccess.INSTANCE.prParens().ele10Keyword();
return new Solution(obj);
}
return null;
@@ -612,12 +614,12 @@ protected class Parens_1_Assignment_em extends AssignmentToken {
/************ begin Rule TrickyA ****************
*
- * TrickyA returns complexrewritetest :: TypeA1 : 'TA' TrickyA1 ( name += ID ) * ( { current = complexrewritetest :: TypeB . x = current } 'x' | { current = complexrewritetest :: TypeC . x = current } 'y' ) ? name += STRING ;
+ * (error)
*
**/
-// 'TA' TrickyA1 ( name += ID ) * ( { current = complexrewritetest :: TypeB . x = current } 'x' | { current = complexrewritetest :: TypeC . x = current } 'y' ) ? name += STRING
+// (error)
protected class TrickyA_Group extends GroupToken {
public TrickyA_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -625,7 +627,7 @@ protected class TrickyA_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.4/@alternatives");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyA().eleGroup();
}
protected Solution createSolution() {
@@ -645,7 +647,7 @@ protected class TrickyA_Group extends GroupToken {
}
}
-// 'TA' TrickyA1 ( name += ID ) * ( { current = complexrewritetest :: TypeB . x = current } 'x' | { current = complexrewritetest :: TypeC . x = current } 'y' ) ?
+// (error)
protected class TrickyA_0_Group extends GroupToken {
public TrickyA_0_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -653,7 +655,7 @@ protected class TrickyA_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.4/@alternatives/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyA().ele0Group();
}
protected Solution createSolution() {
@@ -681,7 +683,7 @@ protected class TrickyA_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyA().ele00Group();
}
protected Solution createSolution() {
@@ -709,7 +711,7 @@ protected class TrickyA_0_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyA().ele000Group();
}
protected Solution createSolution() {
@@ -737,7 +739,7 @@ protected class TrickyA_0_0_0_0_Keyword_TA extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyA().ele0000KeywordTA();
}
}
@@ -749,7 +751,7 @@ protected class TrickyA_0_0_0_1_RuleCall_TrickyA1 extends RuleCallToken {
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyA().ele0001ParserRuleCallTrickyA1();
}
protected Solution createSolution() {
@@ -768,7 +770,7 @@ protected class TrickyA_0_0_1_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyA().ele001AssignmentName();
}
protected Solution createSolution() {
@@ -776,7 +778,7 @@ protected class TrickyA_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/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyA().ele0010LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -784,7 +786,7 @@ protected class TrickyA_0_0_1_Assignment_name extends AssignmentToken {
}
-// ( { current = complexrewritetest :: TypeB . x = current } 'x' | { current = complexrewritetest :: TypeC . x = current } 'y' ) ?
+// (error)
protected class TrickyA_0_1_Alternatives extends AlternativesToken {
public TrickyA_0_1_Alternatives(IInstanceDescription curr, AbstractToken pred) {
@@ -792,7 +794,7 @@ protected class TrickyA_0_1_Alternatives extends AlternativesToken {
}
public Alternatives getGrammarElement() {
- return (Alternatives)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyA().ele01Alternatives();
}
protected Solution createSolution() {
@@ -805,7 +807,7 @@ protected class TrickyA_0_1_Alternatives extends AlternativesToken {
}
}
-// { current = complexrewritetest :: TypeB . x = current } 'x'
+// (error)
protected class TrickyA_0_1_0_Group extends GroupToken {
public TrickyA_0_1_0_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -813,7 +815,7 @@ protected class TrickyA_0_1_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.1/@groups.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyA().ele010Group();
}
protected Solution createSolution() {
@@ -833,7 +835,7 @@ protected class TrickyA_0_1_0_Group extends GroupToken {
}
}
-// { current = complexrewritetest :: TypeB . x = current }
+// (error)
protected class TrickyA_0_1_0_0_Action_TypeB_x extends ActionToken {
public TrickyA_0_1_0_0_Action_TypeB_x(IInstanceDescription curr, AbstractToken pred) {
@@ -841,7 +843,7 @@ protected class TrickyA_0_1_0_0_Action_TypeB_x extends ActionToken {
}
public Action getGrammarElement() {
- return (Action)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.1/@groups.0/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyA().ele0100ActionTypeBx();
}
protected Solution createSolution() {
@@ -861,12 +863,12 @@ protected class TrickyA_0_1_0_1_Keyword_x extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.1/@groups.0/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyA().ele0101KeywordX();
}
}
-// { current = complexrewritetest :: TypeC . x = current } 'y'
+// (error)
protected class TrickyA_0_1_1_Group extends GroupToken {
public TrickyA_0_1_1_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -874,7 +876,7 @@ protected class TrickyA_0_1_1_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.1/@groups.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyA().ele011Group();
}
protected Solution createSolution() {
@@ -894,7 +896,7 @@ protected class TrickyA_0_1_1_Group extends GroupToken {
}
}
-// { current = complexrewritetest :: TypeC . x = current }
+// (error)
protected class TrickyA_0_1_1_0_Action_TypeC_x extends ActionToken {
public TrickyA_0_1_1_0_Action_TypeC_x(IInstanceDescription curr, AbstractToken pred) {
@@ -902,7 +904,7 @@ protected class TrickyA_0_1_1_0_Action_TypeC_x extends ActionToken {
}
public Action getGrammarElement() {
- return (Action)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.1/@groups.1/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyA().ele0110ActionTypeCx();
}
protected Solution createSolution() {
@@ -922,7 +924,7 @@ protected class TrickyA_0_1_1_1_Keyword_y extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.1/@groups.1/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyA().ele0111KeywordY();
}
}
@@ -937,7 +939,7 @@ protected class TrickyA_1_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.4/@alternatives/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyA().ele1AssignmentName();
}
protected Solution createSolution() {
@@ -945,7 +947,7 @@ protected class TrickyA_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/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.4/@alternatives/@abstractTokens.1/@terminal");
+ element = ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyA().ele10LexerRuleCallSTRING();
return new Solution(obj);
}
return null;
@@ -957,7 +959,7 @@ protected class TrickyA_1_Assignment_name extends AssignmentToken {
/************ begin Rule TrickyA1 ****************
*
- * TrickyA1 returns complexrewritetest :: TypeD : name += ID ;
+ * (error)
*
**/
@@ -970,7 +972,7 @@ protected class TrickyA1_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.5/@alternatives");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyA1().eleAssignmentName();
}
protected Solution createSolution() {
@@ -978,7 +980,7 @@ protected class TrickyA1_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/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.5/@alternatives/@terminal");
+ element = ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyA1().ele0LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -1002,7 +1004,7 @@ protected class TrickyB_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.6/@alternatives");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyB().eleGroup();
}
protected Solution createSolution() {
@@ -1030,7 +1032,7 @@ protected class TrickyB_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.6/@alternatives/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyB().ele0Group();
}
protected Solution createSolution() {
@@ -1058,7 +1060,7 @@ protected class TrickyB_0_0_Keyword_TB extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.6/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyB().ele00KeywordTB();
}
}
@@ -1070,7 +1072,7 @@ protected class TrickyB_0_1_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.6/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyB().ele01Group();
}
protected Solution createSolution() {
@@ -1098,7 +1100,7 @@ protected class TrickyB_0_1_0_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.6/@alternatives/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyB().ele010AssignmentName();
}
protected Solution createSolution() {
@@ -1106,7 +1108,7 @@ protected class TrickyB_0_1_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/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.6/@alternatives/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0/@terminal");
+ element = ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyB().ele0100LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -1121,7 +1123,7 @@ protected class TrickyB_0_1_1_Assignment_type extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.6/@alternatives/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyB().ele011AssignmentType();
}
protected Solution createSolution() {
@@ -1129,7 +1131,7 @@ protected class TrickyB_0_1_1_Assignment_type extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("type");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.6/@alternatives/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1/@terminal");
+ element = ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyB().ele0110LexerRuleCallINT();
return new Solution(obj);
}
return null;
@@ -1146,7 +1148,7 @@ protected class TrickyB_1_Assignment_type extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.6/@alternatives/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyB().ele1AssignmentType();
}
protected Solution createSolution() {
@@ -1154,7 +1156,7 @@ protected class TrickyB_1_Assignment_type extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("type");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.6/@alternatives/@abstractTokens.1/@terminal");
+ element = ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyB().ele10LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -1166,12 +1168,12 @@ protected class TrickyB_1_Assignment_type extends AssignmentToken {
/************ begin Rule TrickyC ****************
*
- * TrickyC : 'TC' name = ID ( { current = complexrewritetest :: C1 . x = current } 'x' ) ? ( { current = complexrewritetest :: C2 . y = current } 'y' ) ? ( { current = complexrewritetest :: C3 . z = current } 'z' ) ? ;
+ * (error)
*
**/
-// 'TC' name = ID ( { current = complexrewritetest :: C1 . x = current } 'x' ) ? ( { current = complexrewritetest :: C2 . y = current } 'y' ) ? ( { current = complexrewritetest :: C3 . z = current } 'z' ) ?
+// (error)
protected class TrickyC_Group extends GroupToken {
public TrickyC_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -1179,7 +1181,7 @@ protected class TrickyC_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.7/@alternatives");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyC().eleGroup();
}
protected Solution createSolution() {
@@ -1199,7 +1201,7 @@ protected class TrickyC_Group extends GroupToken {
}
}
-// 'TC' name = ID ( { current = complexrewritetest :: C1 . x = current } 'x' ) ? ( { current = complexrewritetest :: C2 . y = current } 'y' ) ?
+// (error)
protected class TrickyC_0_Group extends GroupToken {
public TrickyC_0_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -1207,7 +1209,7 @@ protected class TrickyC_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.7/@alternatives/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyC().ele0Group();
}
protected Solution createSolution() {
@@ -1227,7 +1229,7 @@ protected class TrickyC_0_Group extends GroupToken {
}
}
-// 'TC' name = ID ( { current = complexrewritetest :: C1 . x = current } 'x' ) ?
+// (error)
protected class TrickyC_0_0_Group extends GroupToken {
public TrickyC_0_0_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -1235,7 +1237,7 @@ protected class TrickyC_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.7/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyC().ele00Group();
}
protected Solution createSolution() {
@@ -1263,7 +1265,7 @@ protected class TrickyC_0_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.7/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyC().ele000Group();
}
protected Solution createSolution() {
@@ -1291,7 +1293,7 @@ protected class TrickyC_0_0_0_0_Keyword_TC extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.7/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyC().ele0000KeywordTC();
}
}
@@ -1303,7 +1305,7 @@ protected class TrickyC_0_0_0_1_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.7/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyC().ele0001AssignmentName();
}
protected Solution createSolution() {
@@ -1311,7 +1313,7 @@ protected class TrickyC_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/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.7/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyC().ele00010LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -1319,7 +1321,7 @@ protected class TrickyC_0_0_0_1_Assignment_name extends AssignmentToken {
}
-// ( { current = complexrewritetest :: C1 . x = current } 'x' ) ?
+// (error)
protected class TrickyC_0_0_1_Group extends GroupToken {
public TrickyC_0_0_1_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -1327,7 +1329,7 @@ protected class TrickyC_0_0_1_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.7/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyC().ele001Group();
}
protected Solution createSolution() {
@@ -1347,7 +1349,7 @@ protected class TrickyC_0_0_1_Group extends GroupToken {
}
}
-// { current = complexrewritetest :: C1 . x = current }
+// (error)
protected class TrickyC_0_0_1_0_Action_C1_x extends ActionToken {
public TrickyC_0_0_1_0_Action_C1_x(IInstanceDescription curr, AbstractToken pred) {
@@ -1355,7 +1357,7 @@ protected class TrickyC_0_0_1_0_Action_C1_x extends ActionToken {
}
public Action getGrammarElement() {
- return (Action)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.7/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyC().ele0010ActionC1x();
}
protected Solution createSolution() {
@@ -1375,13 +1377,13 @@ protected class TrickyC_0_0_1_1_Keyword_x extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.7/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyC().ele0011KeywordX();
}
}
-// ( { current = complexrewritetest :: C2 . y = current } 'y' ) ?
+// (error)
protected class TrickyC_0_1_Group extends GroupToken {
public TrickyC_0_1_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -1389,7 +1391,7 @@ protected class TrickyC_0_1_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.7/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyC().ele01Group();
}
protected Solution createSolution() {
@@ -1409,7 +1411,7 @@ protected class TrickyC_0_1_Group extends GroupToken {
}
}
-// { current = complexrewritetest :: C2 . y = current }
+// (error)
protected class TrickyC_0_1_0_Action_C2_y extends ActionToken {
public TrickyC_0_1_0_Action_C2_y(IInstanceDescription curr, AbstractToken pred) {
@@ -1417,7 +1419,7 @@ protected class TrickyC_0_1_0_Action_C2_y extends ActionToken {
}
public Action getGrammarElement() {
- return (Action)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.7/@alternatives/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyC().ele010ActionC2y();
}
protected Solution createSolution() {
@@ -1437,13 +1439,13 @@ protected class TrickyC_0_1_1_Keyword_y extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.7/@alternatives/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyC().ele011KeywordY();
}
}
-// ( { current = complexrewritetest :: C3 . z = current } 'z' ) ?
+// (error)
protected class TrickyC_1_Group extends GroupToken {
public TrickyC_1_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -1451,7 +1453,7 @@ protected class TrickyC_1_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.7/@alternatives/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyC().ele1Group();
}
protected Solution createSolution() {
@@ -1471,7 +1473,7 @@ protected class TrickyC_1_Group extends GroupToken {
}
}
-// { current = complexrewritetest :: C3 . z = current }
+// (error)
protected class TrickyC_1_0_Action_C3_z extends ActionToken {
public TrickyC_1_0_Action_C3_z(IInstanceDescription curr, AbstractToken pred) {
@@ -1479,7 +1481,7 @@ protected class TrickyC_1_0_Action_C3_z extends ActionToken {
}
public Action getGrammarElement() {
- return (Action)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.7/@alternatives/@abstractTokens.1/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyC().ele10ActionC3z();
}
protected Solution createSolution() {
@@ -1499,7 +1501,7 @@ protected class TrickyC_1_1_Keyword_z extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.7/@alternatives/@abstractTokens.1/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyC().ele11KeywordZ();
}
}
@@ -1522,7 +1524,7 @@ protected class TrickyD_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.8/@alternatives");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyD().eleGroup();
}
protected Solution createSolution() {
@@ -1550,7 +1552,7 @@ protected class TrickyD_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.8/@alternatives/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyD().ele0Group();
}
protected Solution createSolution() {
@@ -1578,7 +1580,7 @@ protected class TrickyD_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.8/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyD().ele00Group();
}
protected Solution createSolution() {
@@ -1606,7 +1608,7 @@ protected class TrickyD_0_0_0_Keyword_TD extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.8/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyD().ele000KeywordTD();
}
}
@@ -1618,7 +1620,7 @@ protected class TrickyD_0_0_1_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.8/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyD().ele001Group();
}
protected Solution createSolution() {
@@ -1646,7 +1648,7 @@ protected class TrickyD_0_0_1_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.8/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyD().ele0010Group();
}
protected Solution createSolution() {
@@ -1674,7 +1676,7 @@ protected class TrickyD_0_0_1_0_0_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.8/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyD().ele00100AssignmentName();
}
protected Solution createSolution() {
@@ -1682,7 +1684,7 @@ protected class TrickyD_0_0_1_0_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/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.8/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0/@abstractTokens.0/@terminal");
+ element = ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyD().ele001000LexerRuleCallINT();
return new Solution(obj);
}
return null;
@@ -1697,7 +1699,7 @@ protected class TrickyD_0_0_1_0_1_Assignment_foo extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.8/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyD().ele00101AssignmentFoo();
}
protected Solution createSolution() {
@@ -1705,7 +1707,7 @@ protected class TrickyD_0_0_1_0_1_Assignment_foo extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("foo");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.8/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyD().ele001010LexerRuleCallSTRING();
return new Solution(obj);
}
return null;
@@ -1721,7 +1723,7 @@ protected class TrickyD_0_0_1_1_Assignment_type extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.8/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyD().ele0011AssignmentType();
}
protected Solution createSolution() {
@@ -1729,7 +1731,7 @@ protected class TrickyD_0_0_1_1_Assignment_type extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("type");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.8/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1/@terminal");
+ element = ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyD().ele00110LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -1746,7 +1748,7 @@ protected class TrickyD_0_1_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.8/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyD().ele01Group();
}
protected Solution createSolution() {
@@ -1774,7 +1776,7 @@ protected class TrickyD_0_1_0_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.8/@alternatives/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyD().ele010AssignmentName();
}
protected Solution createSolution() {
@@ -1782,7 +1784,7 @@ protected class TrickyD_0_1_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/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.8/@alternatives/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0/@terminal");
+ element = ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyD().ele0100LexerRuleCallINT();
return new Solution(obj);
}
return null;
@@ -1797,7 +1799,7 @@ protected class TrickyD_0_1_1_Assignment_type extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.8/@alternatives/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyD().ele011AssignmentType();
}
protected Solution createSolution() {
@@ -1805,7 +1807,7 @@ protected class TrickyD_0_1_1_Assignment_type extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("type");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.8/@alternatives/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1/@terminal");
+ element = ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyD().ele0110LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -1822,7 +1824,7 @@ protected class TrickyD_1_Assignment_type extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.8/@alternatives/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyD().ele1AssignmentType();
}
protected Solution createSolution() {
@@ -1830,7 +1832,7 @@ protected class TrickyD_1_Assignment_type extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("type");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.8/@alternatives/@abstractTokens.1/@terminal");
+ element = ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyD().ele10LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -1855,7 +1857,7 @@ protected class TrickyE_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.9/@alternatives");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyE().eleGroup();
}
protected Solution createSolution() {
@@ -1883,7 +1885,7 @@ protected class TrickyE_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.9/@alternatives/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyE().ele0Group();
}
protected Solution createSolution() {
@@ -1911,7 +1913,7 @@ protected class TrickyE_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.9/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyE().ele00Group();
}
protected Solution createSolution() {
@@ -1939,7 +1941,7 @@ protected class TrickyE_0_0_0_Keyword_TE extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.9/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyE().ele000KeywordTE();
}
}
@@ -1951,7 +1953,7 @@ protected class TrickyE_0_0_1_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.9/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyE().ele001Group();
}
protected Solution createSolution() {
@@ -1979,7 +1981,7 @@ protected class TrickyE_0_0_1_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.9/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyE().ele0010Group();
}
protected Solution createSolution() {
@@ -2007,7 +2009,7 @@ protected class TrickyE_0_0_1_0_0_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.9/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyE().ele00100AssignmentName();
}
protected Solution createSolution() {
@@ -2015,7 +2017,7 @@ protected class TrickyE_0_0_1_0_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/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.9/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0/@abstractTokens.0/@terminal");
+ element = ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyE().ele001000LexerRuleCallINT();
return new Solution(obj);
}
return null;
@@ -2030,7 +2032,7 @@ protected class TrickyE_0_0_1_0_1_Assignment_foo extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.9/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyE().ele00101AssignmentFoo();
}
protected Solution createSolution() {
@@ -2038,7 +2040,7 @@ protected class TrickyE_0_0_1_0_1_Assignment_foo extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("foo");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.9/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyE().ele001010LexerRuleCallSTRING();
return new Solution(obj);
}
return null;
@@ -2054,7 +2056,7 @@ protected class TrickyE_0_0_1_1_Assignment_type extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.9/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyE().ele0011AssignmentType();
}
protected Solution createSolution() {
@@ -2062,7 +2064,7 @@ protected class TrickyE_0_0_1_1_Assignment_type extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("type");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.9/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1/@terminal");
+ element = ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyE().ele00110LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -2079,7 +2081,7 @@ protected class TrickyE_0_1_Keyword_x extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.9/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyE().ele01KeywordX();
}
}
@@ -2092,7 +2094,7 @@ protected class TrickyE_1_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.9/@alternatives/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyE().ele1Group();
}
protected Solution createSolution() {
@@ -2120,7 +2122,7 @@ protected class TrickyE_1_0_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.9/@alternatives/@abstractTokens.1/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyE().ele10AssignmentName();
}
protected Solution createSolution() {
@@ -2128,7 +2130,7 @@ protected class TrickyE_1_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/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.9/@alternatives/@abstractTokens.1/@abstractTokens.0/@terminal");
+ element = ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyE().ele100LexerRuleCallINT();
return new Solution(obj);
}
return null;
@@ -2143,7 +2145,7 @@ protected class TrickyE_1_1_Assignment_type extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.9/@alternatives/@abstractTokens.1/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyE().ele11AssignmentType();
}
protected Solution createSolution() {
@@ -2151,7 +2153,7 @@ protected class TrickyE_1_1_Assignment_type extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("type");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.9/@alternatives/@abstractTokens.1/@abstractTokens.1/@terminal");
+ element = ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyE().ele110LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -2177,7 +2179,7 @@ protected class TrickyF_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.10/@alternatives");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyF().eleGroup();
}
protected Solution createSolution() {
@@ -2205,7 +2207,7 @@ protected class TrickyF_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.10/@alternatives/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyF().ele0Group();
}
protected Solution createSolution() {
@@ -2233,7 +2235,7 @@ protected class TrickyF_0_0_Keyword_TF extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.10/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyF().ele00KeywordTF();
}
}
@@ -2245,7 +2247,7 @@ protected class TrickyF_0_1_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.10/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyF().ele01Group();
}
protected Solution createSolution() {
@@ -2273,7 +2275,7 @@ protected class TrickyF_0_1_0_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.10/@alternatives/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyF().ele010AssignmentName();
}
protected Solution createSolution() {
@@ -2281,7 +2283,7 @@ protected class TrickyF_0_1_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/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.10/@alternatives/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0/@terminal");
+ element = ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyF().ele0100LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -2296,7 +2298,7 @@ protected class TrickyF_0_1_1_Assignment_type extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.10/@alternatives/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyF().ele011AssignmentType();
}
protected Solution createSolution() {
@@ -2304,7 +2306,7 @@ protected class TrickyF_0_1_1_Assignment_type extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("type");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.10/@alternatives/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1/@terminal");
+ element = ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyF().ele0110LexerRuleCallINT();
return new Solution(obj);
}
return null;
@@ -2321,7 +2323,7 @@ protected class TrickyF_1_Alternatives extends AlternativesToken {
}
public Alternatives getGrammarElement() {
- return (Alternatives)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.10/@alternatives/@abstractTokens.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyF().ele1Alternatives();
}
protected Solution createSolution() {
@@ -2342,7 +2344,7 @@ protected class TrickyF_1_0_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.10/@alternatives/@abstractTokens.1/@groups.0");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyF().ele10AssignmentName();
}
protected Solution createSolution() {
@@ -2350,7 +2352,7 @@ protected class TrickyF_1_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/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.10/@alternatives/@abstractTokens.1/@groups.0/@terminal");
+ element = ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyF().ele100LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -2365,7 +2367,7 @@ protected class TrickyF_1_1_Assignment_type extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.10/@alternatives/@abstractTokens.1/@groups.1");
+ return ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyF().ele11AssignmentType();
}
protected Solution createSolution() {
@@ -2373,7 +2375,7 @@ protected class TrickyF_1_1_Assignment_type extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("type");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.10/@alternatives/@abstractTokens.1/@groups.1/@terminal");
+ element = ComplexReconstrTestGrammarAccess.INSTANCE.prTrickyF().ele110LexerRuleCallINT();
return new Solution(obj);
}
return null;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parsetree/reconstr/SimpleReconstrTestParseTreeConstructor.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parsetree/reconstr/SimpleReconstrTestParseTreeConstructor.java
index 755bd47..a9542cb 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parsetree/reconstr/SimpleReconstrTestParseTreeConstructor.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parsetree/reconstr/SimpleReconstrTestParseTreeConstructor.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.parsetree.reconstr.services.SimpleReconstrTestGrammarAccess;
public class SimpleReconstrTestParseTreeConstructor extends AbstractParseTreeConstructor {
@@ -36,12 +38,12 @@ public class SimpleReconstrTestParseTreeConstructor extends AbstractParseTreeCon
/************ begin Rule Op ****************
*
- * Op returns simplerewritetest :: Expression : Term ( { current = simplerewritetest :: Op . values += current } values += Term ) * ;
+ * (error)
*
**/
-// Term ( { current = simplerewritetest :: Op . values += current } values += Term ) *
+// (error)
protected class Op_Group extends GroupToken {
public Op_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -49,7 +51,7 @@ protected class Op_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.0/@alternatives");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prOp().eleGroup();
}
protected Solution createSolution() {
@@ -77,7 +79,7 @@ protected class Op_0_RuleCall_Term extends RuleCallToken {
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.0/@alternatives/@abstractTokens.0");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prOp().ele0ParserRuleCallTerm();
}
protected Solution createSolution() {
@@ -87,7 +89,7 @@ protected class Op_0_RuleCall_Term extends RuleCallToken {
}
}
-// ( { current = simplerewritetest :: Op . values += current } values += Term ) *
+// (error)
protected class Op_1_Group extends GroupToken {
public Op_1_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -95,7 +97,7 @@ protected class Op_1_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.0/@alternatives/@abstractTokens.1");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prOp().ele1Group();
}
protected Solution createSolution() {
@@ -115,7 +117,7 @@ protected class Op_1_Group extends GroupToken {
}
}
-// { current = simplerewritetest :: Op . values += current }
+// (error)
protected class Op_1_0_Action_Op_values extends ActionToken {
public Op_1_0_Action_Op_values(IInstanceDescription curr, AbstractToken pred) {
@@ -123,7 +125,7 @@ protected class Op_1_0_Action_Op_values extends ActionToken {
}
public Action getGrammarElement() {
- return (Action)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.0/@alternatives/@abstractTokens.1/@abstractTokens.0");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prOp().ele10ActionOpvalues();
}
protected Solution createSolution() {
@@ -143,7 +145,7 @@ protected class Op_1_1_Assignment_values extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.0/@alternatives/@abstractTokens.1/@abstractTokens.1");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prOp().ele11AssignmentValues();
}
protected Solution createSolution() {
@@ -169,7 +171,7 @@ protected class Op_1_1_Assignment_values extends AssignmentToken {
/************ begin Rule Term ****************
*
- * Term returns simplerewritetest :: Expression : Atom | TwoNumbers | ManyStrings | Parens | Type | Ref2 | Spare ;
+ * (error)
*
**/
@@ -182,7 +184,7 @@ protected class Term_Alternatives extends AlternativesToken {
}
public Alternatives getGrammarElement() {
- return (Alternatives)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.1/@alternatives");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prTerm().eleAlternatives();
}
protected Solution createSolution() {
@@ -203,7 +205,7 @@ protected class Term_0_Alternatives extends AlternativesToken {
}
public Alternatives getGrammarElement() {
- return (Alternatives)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.1/@alternatives/@groups.0");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prTerm().ele0Alternatives();
}
protected Solution createSolution() {
@@ -224,7 +226,7 @@ protected class Term_0_0_Alternatives extends AlternativesToken {
}
public Alternatives getGrammarElement() {
- return (Alternatives)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.1/@alternatives/@groups.0/@groups.0");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prTerm().ele00Alternatives();
}
protected Solution createSolution() {
@@ -245,7 +247,7 @@ protected class Term_0_0_0_Alternatives extends AlternativesToken {
}
public Alternatives getGrammarElement() {
- return (Alternatives)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.1/@alternatives/@groups.0/@groups.0/@groups.0");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prTerm().ele000Alternatives();
}
protected Solution createSolution() {
@@ -266,7 +268,7 @@ protected class Term_0_0_0_0_Alternatives extends AlternativesToken {
}
public Alternatives getGrammarElement() {
- return (Alternatives)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.1/@alternatives/@groups.0/@groups.0/@groups.0/@groups.0");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prTerm().ele0000Alternatives();
}
protected Solution createSolution() {
@@ -287,7 +289,7 @@ protected class Term_0_0_0_0_0_Alternatives extends AlternativesToken {
}
public Alternatives getGrammarElement() {
- return (Alternatives)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.1/@alternatives/@groups.0/@groups.0/@groups.0/@groups.0/@groups.0");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prTerm().ele00000Alternatives();
}
protected Solution createSolution() {
@@ -308,7 +310,7 @@ protected class Term_0_0_0_0_0_0_RuleCall_Atom extends RuleCallToken {
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.1/@alternatives/@groups.0/@groups.0/@groups.0/@groups.0/@groups.0/@groups.0");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prTerm().ele000000ParserRuleCallAtom();
}
protected Solution createSolution() {
@@ -326,7 +328,7 @@ protected class Term_0_0_0_0_0_1_RuleCall_TwoNumbers extends RuleCallToken {
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.1/@alternatives/@groups.0/@groups.0/@groups.0/@groups.0/@groups.0/@groups.1");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prTerm().ele000001ParserRuleCallTwoNumbers();
}
protected Solution createSolution() {
@@ -345,7 +347,7 @@ protected class Term_0_0_0_0_1_RuleCall_ManyStrings extends RuleCallToken {
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.1/@alternatives/@groups.0/@groups.0/@groups.0/@groups.0/@groups.1");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prTerm().ele00001ParserRuleCallManyStrings();
}
protected Solution createSolution() {
@@ -364,7 +366,7 @@ protected class Term_0_0_0_1_RuleCall_Parens extends RuleCallToken {
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.1/@alternatives/@groups.0/@groups.0/@groups.0/@groups.1");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prTerm().ele0001ParserRuleCallParens();
}
protected Solution createSolution() {
@@ -383,7 +385,7 @@ protected class Term_0_0_1_RuleCall_Type extends RuleCallToken {
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.1/@alternatives/@groups.0/@groups.0/@groups.1");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prTerm().ele001ParserRuleCallType();
}
protected Solution createSolution() {
@@ -402,7 +404,7 @@ protected class Term_0_1_RuleCall_Ref2 extends RuleCallToken {
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.1/@alternatives/@groups.0/@groups.1");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prTerm().ele01ParserRuleCallRef2();
}
protected Solution createSolution() {
@@ -421,7 +423,7 @@ protected class Term_1_RuleCall_Spare extends RuleCallToken {
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.1/@alternatives/@groups.1");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prTerm().ele1ParserRuleCallSpare();
}
protected Solution createSolution() {
@@ -449,7 +451,7 @@ protected class Atom_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.2/@alternatives");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prAtom().eleAssignmentName();
}
protected Solution createSolution() {
@@ -457,7 +459,7 @@ protected class Atom_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/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.2/@alternatives/@terminal");
+ element = SimpleReconstrTestGrammarAccess.INSTANCE.prAtom().ele0LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -468,7 +470,7 @@ protected class Atom_Assignment_name extends AssignmentToken {
/************ begin Rule Parens ****************
*
- * Parens returns simplerewritetest :: Expression : '(' Op ')' ( em = '!' ) ? ;
+ * (error)
*
**/
@@ -481,7 +483,7 @@ protected class Parens_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.3/@alternatives");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prParens().eleGroup();
}
protected Solution createSolution() {
@@ -509,7 +511,7 @@ protected class Parens_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.3/@alternatives/@abstractTokens.0");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prParens().ele0Group();
}
protected Solution createSolution() {
@@ -537,7 +539,7 @@ protected class Parens_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prParens().ele00Group();
}
protected Solution createSolution() {
@@ -565,7 +567,7 @@ protected class Parens_0_0_0_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prParens().ele000Keyword();
}
}
@@ -577,7 +579,7 @@ protected class Parens_0_0_1_RuleCall_Op extends RuleCallToken {
}
public RuleCall getGrammarElement() {
- return (RuleCall)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prParens().ele001ParserRuleCallOp();
}
protected Solution createSolution() {
@@ -596,7 +598,7 @@ protected class Parens_0_1_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prParens().ele01Keyword();
}
}
@@ -609,7 +611,7 @@ protected class Parens_1_Assignment_em extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.3/@alternatives/@abstractTokens.1");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prParens().ele1AssignmentEm();
}
protected Solution createSolution() {
@@ -617,7 +619,7 @@ protected class Parens_1_Assignment_em extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("em");
if("!".equals(value)) { // xtext::Keyword
type = AssignmentType.KW;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.3/@alternatives/@abstractTokens.1/@terminal");
+ element = SimpleReconstrTestGrammarAccess.INSTANCE.prParens().ele10Keyword();
return new Solution(obj);
}
return null;
@@ -642,7 +644,7 @@ protected class TwoNumbers_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.4/@alternatives");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prTwoNumbers().eleGroup();
}
protected Solution createSolution() {
@@ -670,7 +672,7 @@ protected class TwoNumbers_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.4/@alternatives/@abstractTokens.0");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prTwoNumbers().ele0Group();
}
protected Solution createSolution() {
@@ -698,7 +700,7 @@ protected class TwoNumbers_0_0_Assignment_num1 extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prTwoNumbers().ele00AssignmentNum1();
}
protected Solution createSolution() {
@@ -706,7 +708,7 @@ protected class TwoNumbers_0_0_Assignment_num1 extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("num1");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.0/@terminal");
+ element = SimpleReconstrTestGrammarAccess.INSTANCE.prTwoNumbers().ele000LexerRuleCallINT();
return new Solution(obj);
}
return null;
@@ -721,7 +723,7 @@ protected class TwoNumbers_0_1_Assignment_num2 extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prTwoNumbers().ele01AssignmentNum2();
}
protected Solution createSolution() {
@@ -729,7 +731,7 @@ protected class TwoNumbers_0_1_Assignment_num2 extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("num2");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = SimpleReconstrTestGrammarAccess.INSTANCE.prTwoNumbers().ele010LexerRuleCallINT();
return new Solution(obj);
}
return null;
@@ -745,7 +747,7 @@ protected class TwoNumbers_1_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.4/@alternatives/@abstractTokens.1");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prTwoNumbers().ele1Group();
}
protected Solution createSolution() {
@@ -773,7 +775,7 @@ protected class TwoNumbers_1_0_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.4/@alternatives/@abstractTokens.1/@abstractTokens.0");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prTwoNumbers().ele10Keyword();
}
}
@@ -785,7 +787,7 @@ protected class TwoNumbers_1_1_Assignment_num3 extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.4/@alternatives/@abstractTokens.1/@abstractTokens.1");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prTwoNumbers().ele11AssignmentNum3();
}
protected Solution createSolution() {
@@ -793,7 +795,7 @@ protected class TwoNumbers_1_1_Assignment_num3 extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("num3");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.4/@alternatives/@abstractTokens.1/@abstractTokens.1/@terminal");
+ element = SimpleReconstrTestGrammarAccess.INSTANCE.prTwoNumbers().ele110LexerRuleCallINT();
return new Solution(obj);
}
return null;
@@ -819,7 +821,7 @@ protected class ManyStrings_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.5/@alternatives");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prManyStrings().eleGroup();
}
protected Solution createSolution() {
@@ -847,7 +849,7 @@ protected class ManyStrings_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.5/@alternatives/@abstractTokens.0");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prManyStrings().ele0Group();
}
protected Solution createSolution() {
@@ -875,7 +877,7 @@ protected class ManyStrings_0_0_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prManyStrings().ele00Keyword();
}
}
@@ -887,7 +889,7 @@ protected class ManyStrings_0_1_Assignment_str1 extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prManyStrings().ele01AssignmentStr1();
}
protected Solution createSolution() {
@@ -895,7 +897,7 @@ protected class ManyStrings_0_1_Assignment_str1 extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("str1");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = SimpleReconstrTestGrammarAccess.INSTANCE.prManyStrings().ele010LexerRuleCallSTRING();
return new Solution(obj);
}
return null;
@@ -911,7 +913,7 @@ protected class ManyStrings_1_Assignment_str2 extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.5/@alternatives/@abstractTokens.1");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prManyStrings().ele1AssignmentStr2();
}
protected Solution createSolution() {
@@ -919,7 +921,7 @@ protected class ManyStrings_1_Assignment_str2 extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("str2");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.5/@alternatives/@abstractTokens.1/@terminal");
+ element = SimpleReconstrTestGrammarAccess.INSTANCE.prManyStrings().ele10LexerRuleCallSTRING();
return new Solution(obj);
}
return null;
@@ -931,12 +933,12 @@ protected class ManyStrings_1_Assignment_str2 extends AssignmentToken {
/************ begin Rule Type ****************
*
- * Type : 'type' name = ID 'extends' ^extends = [ simplerewritetest :: Type ] ;
+ * (error)
*
**/
-// 'type' name = ID 'extends' ^extends = [ simplerewritetest :: Type ]
+// (error)
protected class Type_Group extends GroupToken {
public Type_Group(IInstanceDescription curr, AbstractToken pred) {
@@ -944,7 +946,7 @@ protected class Type_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.6/@alternatives");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prType().eleGroup();
}
protected Solution createSolution() {
@@ -972,7 +974,7 @@ protected class Type_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.6/@alternatives/@abstractTokens.0");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prType().ele0Group();
}
protected Solution createSolution() {
@@ -1000,7 +1002,7 @@ protected class Type_0_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.6/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prType().ele00Group();
}
protected Solution createSolution() {
@@ -1028,7 +1030,7 @@ protected class Type_0_0_0_Keyword_type extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.6/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prType().ele000KeywordType();
}
}
@@ -1040,7 +1042,7 @@ protected class Type_0_0_1_Assignment_name extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.6/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prType().ele001AssignmentName();
}
protected Solution createSolution() {
@@ -1048,7 +1050,7 @@ protected class Type_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/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.6/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = SimpleReconstrTestGrammarAccess.INSTANCE.prType().ele0010LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -1064,12 +1066,12 @@ protected class Type_0_1_Keyword_extends extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.6/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prType().ele01KeywordExtends();
}
}
-// ^extends = [ simplerewritetest :: Type ]
+// (error)
protected class Type_1_Assignment_extends extends AssignmentToken {
public Type_1_Assignment_extends(IInstanceDescription curr, AbstractToken pred) {
@@ -1077,7 +1079,7 @@ protected class Type_1_Assignment_extends extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.6/@alternatives/@abstractTokens.1");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prType().ele1AssignmentExtends();
}
protected Solution createSolution() {
@@ -1087,7 +1089,7 @@ protected class Type_1_Assignment_extends extends AssignmentToken {
IInstanceDescription param = getDescr((EObject)value);
if(param.isInstanceOf("Type")) {
type = AssignmentType.CR;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.6/@alternatives/@abstractTokens.1/@terminal");
+ element = SimpleReconstrTestGrammarAccess.INSTANCE.prType().ele10CrossReferenceType();
return new Solution(obj);
}
}
@@ -1113,7 +1115,7 @@ protected class Ref2_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.7/@alternatives");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prRef2().eleGroup();
}
protected Solution createSolution() {
@@ -1141,7 +1143,7 @@ protected class Ref2_0_Keyword_2 extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.7/@alternatives/@abstractTokens.0");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prRef2().ele0Keyword();
}
}
@@ -1153,7 +1155,7 @@ protected class Ref2_1_Assignment_ref2 extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.7/@alternatives/@abstractTokens.1");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prRef2().ele1AssignmentRef2();
}
protected Solution createSolution() {
@@ -1161,17 +1163,17 @@ protected class Ref2_1_Assignment_ref2 extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("ref2");
if("mykeyword1".equals(value)) { // xtext::Keyword
type = AssignmentType.KW;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.7/@alternatives/@abstractTokens.1/@terminal/@groups.0/@groups.0");
+ element = SimpleReconstrTestGrammarAccess.INSTANCE.prRef2().ele1000KeywordMykeyword1();
return new Solution(obj);
}
if("mykeyword2".equals(value)) { // xtext::Keyword
type = AssignmentType.KW;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.7/@alternatives/@abstractTokens.1/@terminal/@groups.1");
+ element = SimpleReconstrTestGrammarAccess.INSTANCE.prRef2().ele101KeywordMykeyword2();
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/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.7/@alternatives/@abstractTokens.1/@terminal/@groups.0/@groups.1");
+ element = SimpleReconstrTestGrammarAccess.INSTANCE.prRef2().ele1001LexerRuleCallSTRING();
return new Solution(obj);
}
return null;
@@ -1196,7 +1198,7 @@ protected class Spare_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.8/@alternatives");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prSpare().eleGroup();
}
protected Solution createSolution() {
@@ -1224,7 +1226,7 @@ protected class Spare_0_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.8/@alternatives/@abstractTokens.0");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prSpare().ele0Group();
}
protected Solution createSolution() {
@@ -1252,7 +1254,7 @@ protected class Spare_0_0_Keyword_3 extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.8/@alternatives/@abstractTokens.0/@abstractTokens.0");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prSpare().ele00Keyword();
}
}
@@ -1264,7 +1266,7 @@ protected class Spare_0_1_Assignment_id extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.8/@alternatives/@abstractTokens.0/@abstractTokens.1");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prSpare().ele01AssignmentId();
}
protected Solution createSolution() {
@@ -1272,7 +1274,7 @@ protected class Spare_0_1_Assignment_id extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("id");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.8/@alternatives/@abstractTokens.0/@abstractTokens.1/@terminal");
+ element = SimpleReconstrTestGrammarAccess.INSTANCE.prSpare().ele010LexerRuleCallID();
return new Solution(obj);
}
return null;
@@ -1288,7 +1290,7 @@ protected class Spare_1_Group extends GroupToken {
}
public Group getGrammarElement() {
- return (Group)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.8/@alternatives/@abstractTokens.1");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prSpare().ele1Group();
}
protected Solution createSolution() {
@@ -1316,7 +1318,7 @@ protected class Spare_1_0_Keyword extends KeywordToken {
}
public Keyword getGrammarElement() {
- return (Keyword)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.8/@alternatives/@abstractTokens.1/@abstractTokens.0");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prSpare().ele10Keyword();
}
}
@@ -1328,7 +1330,7 @@ protected class Spare_1_1_Assignment_id extends AssignmentToken {
}
public Assignment getGrammarElement() {
- return (Assignment)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.8/@alternatives/@abstractTokens.1/@abstractTokens.1");
+ return SimpleReconstrTestGrammarAccess.INSTANCE.prSpare().ele11AssignmentId();
}
protected Solution createSolution() {
@@ -1336,7 +1338,7 @@ protected class Spare_1_1_Assignment_id extends AssignmentToken {
IInstanceDescription obj = current.cloneAndConsume("id");
if(true) { // xtext::RuleCall FIXME: check if value is valid for lexer rule
type = AssignmentType.LRC;
- element = (AbstractElement)getGrammarEle("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.8/@alternatives/@abstractTokens.1/@abstractTokens.1/@terminal");
+ element = SimpleReconstrTestGrammarAccess.INSTANCE.prSpare().ele110LexerRuleCallID();
return new Solution(obj);
}
return null;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/services/ComplexReconstrTestGrammarAccess.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/services/ComplexReconstrTestGrammarAccess.java
index 005e4e5..f642817 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/services/ComplexReconstrTestGrammarAccess.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/services/ComplexReconstrTestGrammarAccess.java
@@ -4,98 +4,932 @@ Generated with Xtext
package org.eclipse.xtext.parsetree.reconstr.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 ComplexReconstrTestGrammarAccess extends BaseEPackageAccess implements IGrammarAccess {
-
- private static final String COMPLEXRECONSTRTEST_GRAMMAR_CP_URI = "classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.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(ComplexReconstrTestGrammarAccess.class.getClassLoader(),COMPLEXRECONSTRTEST_GRAMMAR_CP_URI);
+ public class OpElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private RuleCall c0ParserRuleCallTerm;
+ private Alternatives c1Alternatives;
+ private Group c10Group;
+ private Group c100Group;
+ private Action c1000ActionAddaddOperands;
+ private Keyword c1001Keyword;
+ private Assignment c101AssignmentAddOperands;
+ private RuleCall c1010ParserRuleCallTerm;
+ private Group c11Group;
+ private Group c110Group;
+ private Action c1100ActionMinusminusOperands;
+ private Keyword c1101Keyword;
+ private Assignment c111AssignmentMinusOperands;
+ private RuleCall c1110ParserRuleCallTerm;
+
+ // (error)
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(1));
+ }
+
+ // (error)
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(1));
+ }
+
+ // Term
+ public RuleCall ele0ParserRuleCallTerm() {
+ return (c0ParserRuleCallTerm != null) ? c0ParserRuleCallTerm : (c0ParserRuleCallTerm = (RuleCall)eleGroup().eContents().get(0));
+ }
+
+ // (error)
+ public Alternatives ele1Alternatives() {
+ return (c1Alternatives != null) ? c1Alternatives : (c1Alternatives = (Alternatives)eleGroup().eContents().get(1));
+ }
+
+ // (error)
+ public Group ele10Group() {
+ return (c10Group != null) ? c10Group : (c10Group = (Group)ele1Alternatives().eContents().get(0));
+ }
+
+ // (error)
+ public Group ele100Group() {
+ return (c100Group != null) ? c100Group : (c100Group = (Group)ele10Group().eContents().get(0));
+ }
+
+ // (error)
+ public Action ele1000ActionAddaddOperands() {
+ return (c1000ActionAddaddOperands != null) ? c1000ActionAddaddOperands : (c1000ActionAddaddOperands = (Action)ele100Group().eContents().get(0));
+ }
+
+ // '+'
+ public Keyword ele1001Keyword() {
+ return (c1001Keyword != null) ? c1001Keyword : (c1001Keyword = (Keyword)ele100Group().eContents().get(1));
+ }
+
+ // addOperands += Term
+ public Assignment ele101AssignmentAddOperands() {
+ return (c101AssignmentAddOperands != null) ? c101AssignmentAddOperands : (c101AssignmentAddOperands = (Assignment)ele10Group().eContents().get(1));
+ }
+
+ // Term
+ public RuleCall ele1010ParserRuleCallTerm() {
+ return (c1010ParserRuleCallTerm != null) ? c1010ParserRuleCallTerm : (c1010ParserRuleCallTerm = (RuleCall)ele101AssignmentAddOperands().eContents().get(0));
+ }
+
+ // (error)
+ public Group ele11Group() {
+ return (c11Group != null) ? c11Group : (c11Group = (Group)ele1Alternatives().eContents().get(1));
+ }
+
+ // (error)
+ public Group ele110Group() {
+ return (c110Group != null) ? c110Group : (c110Group = (Group)ele11Group().eContents().get(0));
+ }
+
+ // (error)
+ public Action ele1100ActionMinusminusOperands() {
+ return (c1100ActionMinusminusOperands != null) ? c1100ActionMinusminusOperands : (c1100ActionMinusminusOperands = (Action)ele110Group().eContents().get(0));
+ }
+
+ // '-'
+ public Keyword ele1101Keyword() {
+ return (c1101Keyword != null) ? c1101Keyword : (c1101Keyword = (Keyword)ele110Group().eContents().get(1));
+ }
+
+ // minusOperands += Term
+ public Assignment ele111AssignmentMinusOperands() {
+ return (c111AssignmentMinusOperands != null) ? c111AssignmentMinusOperands : (c111AssignmentMinusOperands = (Assignment)ele11Group().eContents().get(1));
+ }
+
+ // Term
+ public RuleCall ele1110ParserRuleCallTerm() {
+ return (c1110ParserRuleCallTerm != null) ? c1110ParserRuleCallTerm : (c1110ParserRuleCallTerm = (RuleCall)ele111AssignmentMinusOperands().eContents().get(0));
}
- return GRAMMAR;
- }
-
-
- public ParserRule pr_Op() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.0"),true);
}
- public ParserRule pr_Term() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.1"),true);
+ public class TermElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Alternatives cAlternatives;
+ private RuleCall c0ParserRuleCallAtom;
+ private RuleCall c1ParserRuleCallParens;
+
+ // (error)
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(2));
+ }
+
+ // Atom | Parens
+ public Alternatives eleAlternatives() {
+ return (cAlternatives != null) ? cAlternatives : (cAlternatives = (Alternatives)getRule().eContents().get(1));
+ }
+
+ // Atom
+ public RuleCall ele0ParserRuleCallAtom() {
+ return (c0ParserRuleCallAtom != null) ? c0ParserRuleCallAtom : (c0ParserRuleCallAtom = (RuleCall)eleAlternatives().eContents().get(0));
+ }
+
+ // Parens
+ public RuleCall ele1ParserRuleCallParens() {
+ return (c1ParserRuleCallParens != null) ? c1ParserRuleCallParens : (c1ParserRuleCallParens = (RuleCall)eleAlternatives().eContents().get(1));
+ }
}
- public ParserRule pr_Atom() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.2"),true);
+ public class AtomElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Assignment cAssignmentName;
+ private RuleCall c0LexerRuleCallID;
+
+ // Atom : name = ID ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(3));
+ }
+
+ // name = ID
+ public Assignment eleAssignmentName() {
+ return (cAssignmentName != null) ? cAssignmentName : (cAssignmentName = (Assignment)getRule().eContents().get(0));
+ }
+
+ // ID
+ public RuleCall ele0LexerRuleCallID() {
+ return (c0LexerRuleCallID != null) ? c0LexerRuleCallID : (c0LexerRuleCallID = (RuleCall)eleAssignmentName().eContents().get(0));
+ }
}
- public ParserRule pr_Parens() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.3"),true);
+ public class ParensElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Group c00Group;
+ private Keyword c000Keyword;
+ private RuleCall c001ParserRuleCallOp;
+ private Keyword c01Keyword;
+ private Assignment c1AssignmentEm;
+ private Keyword c10Keyword;
+
+ // (error)
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(4));
+ }
+
+ // '(' Op ')' ( em = '!' ) ?
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(1));
+ }
+
+ // '(' Op ')'
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // '(' Op
+ public Group ele00Group() {
+ return (c00Group != null) ? c00Group : (c00Group = (Group)ele0Group().eContents().get(0));
+ }
+
+ // '('
+ public Keyword ele000Keyword() {
+ return (c000Keyword != null) ? c000Keyword : (c000Keyword = (Keyword)ele00Group().eContents().get(0));
+ }
+
+ // Op
+ public RuleCall ele001ParserRuleCallOp() {
+ return (c001ParserRuleCallOp != null) ? c001ParserRuleCallOp : (c001ParserRuleCallOp = (RuleCall)ele00Group().eContents().get(1));
+ }
+
+ // ')'
+ public Keyword ele01Keyword() {
+ return (c01Keyword != null) ? c01Keyword : (c01Keyword = (Keyword)ele0Group().eContents().get(1));
+ }
+
+ // ( em = '!' ) ?
+ public Assignment ele1AssignmentEm() {
+ return (c1AssignmentEm != null) ? c1AssignmentEm : (c1AssignmentEm = (Assignment)eleGroup().eContents().get(1));
+ }
+
+ // '!'
+ public Keyword ele10Keyword() {
+ return (c10Keyword != null) ? c10Keyword : (c10Keyword = (Keyword)ele1AssignmentEm().eContents().get(0));
+ }
}
- public ParserRule pr_TrickyA() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.4"),true);
+ public class TrickyAElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Group c00Group;
+ private Group c000Group;
+ private Keyword c0000KeywordTA;
+ private RuleCall c0001ParserRuleCallTrickyA1;
+ private Assignment c001AssignmentName;
+ private RuleCall c0010LexerRuleCallID;
+ private Alternatives c01Alternatives;
+ private Group c010Group;
+ private Action c0100ActionTypeBx;
+ private Keyword c0101KeywordX;
+ private Group c011Group;
+ private Action c0110ActionTypeCx;
+ private Keyword c0111KeywordY;
+ private Assignment c1AssignmentName;
+ private RuleCall c10LexerRuleCallSTRING;
+
+ // (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(1));
+ }
+
+ // (error)
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // 'TA' TrickyA1 ( name += ID ) *
+ public Group ele00Group() {
+ return (c00Group != null) ? c00Group : (c00Group = (Group)ele0Group().eContents().get(0));
+ }
+
+ // 'TA' TrickyA1
+ public Group ele000Group() {
+ return (c000Group != null) ? c000Group : (c000Group = (Group)ele00Group().eContents().get(0));
+ }
+
+ // 'TA'
+ public Keyword ele0000KeywordTA() {
+ return (c0000KeywordTA != null) ? c0000KeywordTA : (c0000KeywordTA = (Keyword)ele000Group().eContents().get(0));
+ }
+
+ // TrickyA1
+ public RuleCall ele0001ParserRuleCallTrickyA1() {
+ return (c0001ParserRuleCallTrickyA1 != null) ? c0001ParserRuleCallTrickyA1 : (c0001ParserRuleCallTrickyA1 = (RuleCall)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));
+ }
+
+ // (error)
+ public Alternatives ele01Alternatives() {
+ return (c01Alternatives != null) ? c01Alternatives : (c01Alternatives = (Alternatives)ele0Group().eContents().get(1));
+ }
+
+ // (error)
+ public Group ele010Group() {
+ return (c010Group != null) ? c010Group : (c010Group = (Group)ele01Alternatives().eContents().get(0));
+ }
+
+ // (error)
+ public Action ele0100ActionTypeBx() {
+ return (c0100ActionTypeBx != null) ? c0100ActionTypeBx : (c0100ActionTypeBx = (Action)ele010Group().eContents().get(0));
+ }
+
+ // 'x'
+ public Keyword ele0101KeywordX() {
+ return (c0101KeywordX != null) ? c0101KeywordX : (c0101KeywordX = (Keyword)ele010Group().eContents().get(1));
+ }
+
+ // (error)
+ public Group ele011Group() {
+ return (c011Group != null) ? c011Group : (c011Group = (Group)ele01Alternatives().eContents().get(1));
+ }
+
+ // (error)
+ public Action ele0110ActionTypeCx() {
+ return (c0110ActionTypeCx != null) ? c0110ActionTypeCx : (c0110ActionTypeCx = (Action)ele011Group().eContents().get(0));
+ }
+
+ // 'y'
+ public Keyword ele0111KeywordY() {
+ return (c0111KeywordY != null) ? c0111KeywordY : (c0111KeywordY = (Keyword)ele011Group().eContents().get(1));
+ }
+
+ // name += STRING
+ public Assignment ele1AssignmentName() {
+ return (c1AssignmentName != null) ? c1AssignmentName : (c1AssignmentName = (Assignment)eleGroup().eContents().get(1));
+ }
+
+ // STRING
+ public RuleCall ele10LexerRuleCallSTRING() {
+ return (c10LexerRuleCallSTRING != null) ? c10LexerRuleCallSTRING : (c10LexerRuleCallSTRING = (RuleCall)ele1AssignmentName().eContents().get(0));
+ }
}
- public ParserRule pr_TrickyA1() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.5"),true);
+ public class TrickyA1Elements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Assignment cAssignmentName;
+ private RuleCall c0LexerRuleCallID;
+
+ // (error)
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(6));
+ }
+
+ // name += ID
+ public Assignment eleAssignmentName() {
+ return (cAssignmentName != null) ? cAssignmentName : (cAssignmentName = (Assignment)getRule().eContents().get(1));
+ }
+
+ // ID
+ public RuleCall ele0LexerRuleCallID() {
+ return (c0LexerRuleCallID != null) ? c0LexerRuleCallID : (c0LexerRuleCallID = (RuleCall)eleAssignmentName().eContents().get(0));
+ }
}
- public ParserRule pr_TrickyB() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.6"),true);
+ public class TrickyBElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Keyword c00KeywordTB;
+ private Group c01Group;
+ private Assignment c010AssignmentName;
+ private RuleCall c0100LexerRuleCallID;
+ private Assignment c011AssignmentType;
+ private RuleCall c0110LexerRuleCallINT;
+ private Assignment c1AssignmentType;
+ private RuleCall c10LexerRuleCallID;
+
+ // TrickyB : 'TB' ( name = ID type += INT ) ? ( type += ID ) * ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(7));
+ }
+
+ // 'TB' ( name = ID type += INT ) ? ( type += ID ) *
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // 'TB' ( name = ID type += INT ) ?
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // 'TB'
+ public Keyword ele00KeywordTB() {
+ return (c00KeywordTB != null) ? c00KeywordTB : (c00KeywordTB = (Keyword)ele0Group().eContents().get(0));
+ }
+
+ // ( name = ID type += INT ) ?
+ public Group ele01Group() {
+ return (c01Group != null) ? c01Group : (c01Group = (Group)ele0Group().eContents().get(1));
+ }
+
+ // name = ID
+ public Assignment ele010AssignmentName() {
+ return (c010AssignmentName != null) ? c010AssignmentName : (c010AssignmentName = (Assignment)ele01Group().eContents().get(0));
+ }
+
+ // ID
+ public RuleCall ele0100LexerRuleCallID() {
+ return (c0100LexerRuleCallID != null) ? c0100LexerRuleCallID : (c0100LexerRuleCallID = (RuleCall)ele010AssignmentName().eContents().get(0));
+ }
+
+ // type += INT
+ public Assignment ele011AssignmentType() {
+ return (c011AssignmentType != null) ? c011AssignmentType : (c011AssignmentType = (Assignment)ele01Group().eContents().get(1));
+ }
+
+ // INT
+ public RuleCall ele0110LexerRuleCallINT() {
+ return (c0110LexerRuleCallINT != null) ? c0110LexerRuleCallINT : (c0110LexerRuleCallINT = (RuleCall)ele011AssignmentType().eContents().get(0));
+ }
+
+ // ( type += ID ) *
+ public Assignment ele1AssignmentType() {
+ return (c1AssignmentType != null) ? c1AssignmentType : (c1AssignmentType = (Assignment)eleGroup().eContents().get(1));
+ }
+
+ // ID
+ public RuleCall ele10LexerRuleCallID() {
+ return (c10LexerRuleCallID != null) ? c10LexerRuleCallID : (c10LexerRuleCallID = (RuleCall)ele1AssignmentType().eContents().get(0));
+ }
}
- public ParserRule pr_TrickyC() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.7"),true);
+ public class TrickyCElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Group c00Group;
+ private Group c000Group;
+ private Keyword c0000KeywordTC;
+ private Assignment c0001AssignmentName;
+ private RuleCall c00010LexerRuleCallID;
+ private Group c001Group;
+ private Action c0010ActionC1x;
+ private Keyword c0011KeywordX;
+ private Group c01Group;
+ private Action c010ActionC2y;
+ private Keyword c011KeywordY;
+ private Group c1Group;
+ private Action c10ActionC3z;
+ private Keyword c11KeywordZ;
+
+ // (error)
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(8));
+ }
+
+ // (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));
+ }
+
+ // 'TC' name = ID
+ public Group ele000Group() {
+ return (c000Group != null) ? c000Group : (c000Group = (Group)ele00Group().eContents().get(0));
+ }
+
+ // 'TC'
+ public Keyword ele0000KeywordTC() {
+ return (c0000KeywordTC != null) ? c0000KeywordTC : (c0000KeywordTC = (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 Action ele0010ActionC1x() {
+ return (c0010ActionC1x != null) ? c0010ActionC1x : (c0010ActionC1x = (Action)ele001Group().eContents().get(0));
+ }
+
+ // 'x'
+ public Keyword ele0011KeywordX() {
+ return (c0011KeywordX != null) ? c0011KeywordX : (c0011KeywordX = (Keyword)ele001Group().eContents().get(1));
+ }
+
+ // (error)
+ public Group ele01Group() {
+ return (c01Group != null) ? c01Group : (c01Group = (Group)ele0Group().eContents().get(1));
+ }
+
+ // (error)
+ public Action ele010ActionC2y() {
+ return (c010ActionC2y != null) ? c010ActionC2y : (c010ActionC2y = (Action)ele01Group().eContents().get(0));
+ }
+
+ // 'y'
+ public Keyword ele011KeywordY() {
+ return (c011KeywordY != null) ? c011KeywordY : (c011KeywordY = (Keyword)ele01Group().eContents().get(1));
+ }
+
+ // (error)
+ public Group ele1Group() {
+ return (c1Group != null) ? c1Group : (c1Group = (Group)eleGroup().eContents().get(1));
+ }
+
+ // (error)
+ public Action ele10ActionC3z() {
+ return (c10ActionC3z != null) ? c10ActionC3z : (c10ActionC3z = (Action)ele1Group().eContents().get(0));
+ }
+
+ // 'z'
+ public Keyword ele11KeywordZ() {
+ return (c11KeywordZ != null) ? c11KeywordZ : (c11KeywordZ = (Keyword)ele1Group().eContents().get(1));
+ }
}
- public ParserRule pr_TrickyD() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.8"),true);
+ public class TrickyDElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Group c00Group;
+ private Keyword c000KeywordTD;
+ private Group c001Group;
+ private Group c0010Group;
+ private Assignment c00100AssignmentName;
+ private RuleCall c001000LexerRuleCallINT;
+ private Assignment c00101AssignmentFoo;
+ private RuleCall c001010LexerRuleCallSTRING;
+ private Assignment c0011AssignmentType;
+ private RuleCall c00110LexerRuleCallID;
+ private Group c01Group;
+ private Assignment c010AssignmentName;
+ private RuleCall c0100LexerRuleCallINT;
+ private Assignment c011AssignmentType;
+ private RuleCall c0110LexerRuleCallID;
+ private Assignment c1AssignmentType;
+ private RuleCall c10LexerRuleCallID;
+
+ // TrickyD : 'TD' ( name += INT foo = STRING type += ID ) ? ( name += INT type += ID ) ? ( type += ID ) * ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(9));
+ }
+
+ // 'TD' ( name += INT foo = STRING type += ID ) ? ( name += INT type += ID ) ? ( type += ID ) *
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // 'TD' ( name += INT foo = STRING type += ID ) ? ( name += INT type += ID ) ?
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // 'TD' ( name += INT foo = STRING type += ID ) ?
+ public Group ele00Group() {
+ return (c00Group != null) ? c00Group : (c00Group = (Group)ele0Group().eContents().get(0));
+ }
+
+ // 'TD'
+ public Keyword ele000KeywordTD() {
+ return (c000KeywordTD != null) ? c000KeywordTD : (c000KeywordTD = (Keyword)ele00Group().eContents().get(0));
+ }
+
+ // ( name += INT foo = STRING type += ID ) ?
+ public Group ele001Group() {
+ return (c001Group != null) ? c001Group : (c001Group = (Group)ele00Group().eContents().get(1));
+ }
+
+ // name += INT foo = STRING
+ public Group ele0010Group() {
+ return (c0010Group != null) ? c0010Group : (c0010Group = (Group)ele001Group().eContents().get(0));
+ }
+
+ // name += INT
+ public Assignment ele00100AssignmentName() {
+ return (c00100AssignmentName != null) ? c00100AssignmentName : (c00100AssignmentName = (Assignment)ele0010Group().eContents().get(0));
+ }
+
+ // INT
+ public RuleCall ele001000LexerRuleCallINT() {
+ return (c001000LexerRuleCallINT != null) ? c001000LexerRuleCallINT : (c001000LexerRuleCallINT = (RuleCall)ele00100AssignmentName().eContents().get(0));
+ }
+
+ // foo = STRING
+ public Assignment ele00101AssignmentFoo() {
+ return (c00101AssignmentFoo != null) ? c00101AssignmentFoo : (c00101AssignmentFoo = (Assignment)ele0010Group().eContents().get(1));
+ }
+
+ // STRING
+ public RuleCall ele001010LexerRuleCallSTRING() {
+ return (c001010LexerRuleCallSTRING != null) ? c001010LexerRuleCallSTRING : (c001010LexerRuleCallSTRING = (RuleCall)ele00101AssignmentFoo().eContents().get(0));
+ }
+
+ // type += ID
+ public Assignment ele0011AssignmentType() {
+ return (c0011AssignmentType != null) ? c0011AssignmentType : (c0011AssignmentType = (Assignment)ele001Group().eContents().get(1));
+ }
+
+ // ID
+ public RuleCall ele00110LexerRuleCallID() {
+ return (c00110LexerRuleCallID != null) ? c00110LexerRuleCallID : (c00110LexerRuleCallID = (RuleCall)ele0011AssignmentType().eContents().get(0));
+ }
+
+ // ( name += INT type += ID ) ?
+ public Group ele01Group() {
+ return (c01Group != null) ? c01Group : (c01Group = (Group)ele0Group().eContents().get(1));
+ }
+
+ // name += INT
+ public Assignment ele010AssignmentName() {
+ return (c010AssignmentName != null) ? c010AssignmentName : (c010AssignmentName = (Assignment)ele01Group().eContents().get(0));
+ }
+
+ // INT
+ public RuleCall ele0100LexerRuleCallINT() {
+ return (c0100LexerRuleCallINT != null) ? c0100LexerRuleCallINT : (c0100LexerRuleCallINT = (RuleCall)ele010AssignmentName().eContents().get(0));
+ }
+
+ // type += ID
+ public Assignment ele011AssignmentType() {
+ return (c011AssignmentType != null) ? c011AssignmentType : (c011AssignmentType = (Assignment)ele01Group().eContents().get(1));
+ }
+
+ // ID
+ public RuleCall ele0110LexerRuleCallID() {
+ return (c0110LexerRuleCallID != null) ? c0110LexerRuleCallID : (c0110LexerRuleCallID = (RuleCall)ele011AssignmentType().eContents().get(0));
+ }
+
+ // ( type += ID ) *
+ public Assignment ele1AssignmentType() {
+ return (c1AssignmentType != null) ? c1AssignmentType : (c1AssignmentType = (Assignment)eleGroup().eContents().get(1));
+ }
+
+ // ID
+ public RuleCall ele10LexerRuleCallID() {
+ return (c10LexerRuleCallID != null) ? c10LexerRuleCallID : (c10LexerRuleCallID = (RuleCall)ele1AssignmentType().eContents().get(0));
+ }
}
- public ParserRule pr_TrickyE() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.9"),true);
+ public class TrickyEElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Group c00Group;
+ private Keyword c000KeywordTE;
+ private Group c001Group;
+ private Group c0010Group;
+ private Assignment c00100AssignmentName;
+ private RuleCall c001000LexerRuleCallINT;
+ private Assignment c00101AssignmentFoo;
+ private RuleCall c001010LexerRuleCallSTRING;
+ private Assignment c0011AssignmentType;
+ private RuleCall c00110LexerRuleCallID;
+ private Keyword c01KeywordX;
+ private Group c1Group;
+ private Assignment c10AssignmentName;
+ private RuleCall c100LexerRuleCallINT;
+ private Assignment c11AssignmentType;
+ private RuleCall c110LexerRuleCallID;
+
+ // TrickyE : 'TE' ( name += INT foo += STRING type += ID ) * 'x' ( name += INT type += ID ) * ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(10));
+ }
+
+ // 'TE' ( name += INT foo += STRING type += ID ) * 'x' ( name += INT type += ID ) *
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // 'TE' ( name += INT foo += STRING type += ID ) * 'x'
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // 'TE' ( name += INT foo += STRING type += ID ) *
+ public Group ele00Group() {
+ return (c00Group != null) ? c00Group : (c00Group = (Group)ele0Group().eContents().get(0));
+ }
+
+ // 'TE'
+ public Keyword ele000KeywordTE() {
+ return (c000KeywordTE != null) ? c000KeywordTE : (c000KeywordTE = (Keyword)ele00Group().eContents().get(0));
+ }
+
+ // ( name += INT foo += STRING type += ID ) *
+ public Group ele001Group() {
+ return (c001Group != null) ? c001Group : (c001Group = (Group)ele00Group().eContents().get(1));
+ }
+
+ // name += INT foo += STRING
+ public Group ele0010Group() {
+ return (c0010Group != null) ? c0010Group : (c0010Group = (Group)ele001Group().eContents().get(0));
+ }
+
+ // name += INT
+ public Assignment ele00100AssignmentName() {
+ return (c00100AssignmentName != null) ? c00100AssignmentName : (c00100AssignmentName = (Assignment)ele0010Group().eContents().get(0));
+ }
+
+ // INT
+ public RuleCall ele001000LexerRuleCallINT() {
+ return (c001000LexerRuleCallINT != null) ? c001000LexerRuleCallINT : (c001000LexerRuleCallINT = (RuleCall)ele00100AssignmentName().eContents().get(0));
+ }
+
+ // foo += STRING
+ public Assignment ele00101AssignmentFoo() {
+ return (c00101AssignmentFoo != null) ? c00101AssignmentFoo : (c00101AssignmentFoo = (Assignment)ele0010Group().eContents().get(1));
+ }
+
+ // STRING
+ public RuleCall ele001010LexerRuleCallSTRING() {
+ return (c001010LexerRuleCallSTRING != null) ? c001010LexerRuleCallSTRING : (c001010LexerRuleCallSTRING = (RuleCall)ele00101AssignmentFoo().eContents().get(0));
+ }
+
+ // type += ID
+ public Assignment ele0011AssignmentType() {
+ return (c0011AssignmentType != null) ? c0011AssignmentType : (c0011AssignmentType = (Assignment)ele001Group().eContents().get(1));
+ }
+
+ // ID
+ public RuleCall ele00110LexerRuleCallID() {
+ return (c00110LexerRuleCallID != null) ? c00110LexerRuleCallID : (c00110LexerRuleCallID = (RuleCall)ele0011AssignmentType().eContents().get(0));
+ }
+
+ // 'x'
+ public Keyword ele01KeywordX() {
+ return (c01KeywordX != null) ? c01KeywordX : (c01KeywordX = (Keyword)ele0Group().eContents().get(1));
+ }
+
+ // ( name += INT type += ID ) *
+ public Group ele1Group() {
+ return (c1Group != null) ? c1Group : (c1Group = (Group)eleGroup().eContents().get(1));
+ }
+
+ // name += INT
+ public Assignment ele10AssignmentName() {
+ return (c10AssignmentName != null) ? c10AssignmentName : (c10AssignmentName = (Assignment)ele1Group().eContents().get(0));
+ }
+
+ // INT
+ public RuleCall ele100LexerRuleCallINT() {
+ return (c100LexerRuleCallINT != null) ? c100LexerRuleCallINT : (c100LexerRuleCallINT = (RuleCall)ele10AssignmentName().eContents().get(0));
+ }
+
+ // type += ID
+ public Assignment ele11AssignmentType() {
+ return (c11AssignmentType != null) ? c11AssignmentType : (c11AssignmentType = (Assignment)ele1Group().eContents().get(1));
+ }
+
+ // ID
+ public RuleCall ele110LexerRuleCallID() {
+ return (c110LexerRuleCallID != null) ? c110LexerRuleCallID : (c110LexerRuleCallID = (RuleCall)ele11AssignmentType().eContents().get(0));
+ }
}
- public ParserRule pr_TrickyF() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi#//@rules.10"),true);
+ public class TrickyFElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Keyword c00KeywordTF;
+ private Group c01Group;
+ private Assignment c010AssignmentName;
+ private RuleCall c0100LexerRuleCallID;
+ private Assignment c011AssignmentType;
+ private RuleCall c0110LexerRuleCallINT;
+ private Alternatives c1Alternatives;
+ private Assignment c10AssignmentName;
+ private RuleCall c100LexerRuleCallID;
+ private Assignment c11AssignmentType;
+ private RuleCall c110LexerRuleCallINT;
+
+ // TrickyF : 'TF' ( name += ID type += INT ) * ( name += ID | type += INT ) ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(11));
+ }
+
+ // 'TF' ( name += ID type += INT ) * ( name += ID | type += INT )
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // 'TF' ( name += ID type += INT ) *
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // 'TF'
+ public Keyword ele00KeywordTF() {
+ return (c00KeywordTF != null) ? c00KeywordTF : (c00KeywordTF = (Keyword)ele0Group().eContents().get(0));
+ }
+
+ // ( name += ID type += INT ) *
+ public Group ele01Group() {
+ return (c01Group != null) ? c01Group : (c01Group = (Group)ele0Group().eContents().get(1));
+ }
+
+ // name += ID
+ public Assignment ele010AssignmentName() {
+ return (c010AssignmentName != null) ? c010AssignmentName : (c010AssignmentName = (Assignment)ele01Group().eContents().get(0));
+ }
+
+ // ID
+ public RuleCall ele0100LexerRuleCallID() {
+ return (c0100LexerRuleCallID != null) ? c0100LexerRuleCallID : (c0100LexerRuleCallID = (RuleCall)ele010AssignmentName().eContents().get(0));
+ }
+
+ // type += INT
+ public Assignment ele011AssignmentType() {
+ return (c011AssignmentType != null) ? c011AssignmentType : (c011AssignmentType = (Assignment)ele01Group().eContents().get(1));
+ }
+
+ // INT
+ public RuleCall ele0110LexerRuleCallINT() {
+ return (c0110LexerRuleCallINT != null) ? c0110LexerRuleCallINT : (c0110LexerRuleCallINT = (RuleCall)ele011AssignmentType().eContents().get(0));
+ }
+
+ // name += ID | type += INT
+ public Alternatives ele1Alternatives() {
+ return (c1Alternatives != null) ? c1Alternatives : (c1Alternatives = (Alternatives)eleGroup().eContents().get(1));
+ }
+
+ // name += ID
+ public Assignment ele10AssignmentName() {
+ return (c10AssignmentName != null) ? c10AssignmentName : (c10AssignmentName = (Assignment)ele1Alternatives().eContents().get(0));
+ }
+
+ // ID
+ public RuleCall ele100LexerRuleCallID() {
+ return (c100LexerRuleCallID != null) ? c100LexerRuleCallID : (c100LexerRuleCallID = (RuleCall)ele10AssignmentName().eContents().get(0));
+ }
+
+ // type += INT
+ public Assignment ele11AssignmentType() {
+ return (c11AssignmentType != null) ? c11AssignmentType : (c11AssignmentType = (Assignment)ele1Alternatives().eContents().get(1));
+ }
+
+ // INT
+ public RuleCall ele110LexerRuleCallINT() {
+ return (c110LexerRuleCallINT != null) ? c110LexerRuleCallINT : (c110LexerRuleCallINT = (RuleCall)ele11AssignmentType().eContents().get(0));
+ }
}
+
+ public final static ComplexReconstrTestGrammarAccess INSTANCE = new ComplexReconstrTestGrammarAccess();
+ private static final String COMPLEXRECONSTRTEST_GRAMMAR_CP_URI = "classpath:/org/eclipse/xtext/parsetree/reconstr/ComplexReconstrTest.xmi";
+ private static Grammar GRAMMAR = null;
+ private static OpElements pOp;
+ private static TermElements pTerm;
+ private static AtomElements pAtom;
+ private static ParensElements pParens;
+ private static TrickyAElements pTrickyA;
+ private static TrickyA1Elements pTrickyA1;
+ private static TrickyBElements pTrickyB;
+ private static TrickyCElements pTrickyC;
+ private static TrickyDElements pTrickyD;
+ private static TrickyEElements pTrickyE;
+ private static TrickyFElements pTrickyF;
+
+ @SuppressWarnings("unused")
+ public synchronized Grammar getGrammar() {
+ if (GRAMMAR==null) {
+ // assert the XtextPackage implementation is loaded
+ XtextPackage xtextPackage = XtextPackage.eINSTANCE;
+ GRAMMAR = (Grammar) loadGrammarFile(ComplexReconstrTestGrammarAccess.class.getClassLoader(),COMPLEXRECONSTRTEST_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);
- }
+
+ // (error)
+ public OpElements prOp() {
+ return (pOp != null) ? pOp : (pOp = new OpElements());
+ }
- public LexerRule lr_STRING() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.2"),true);
- }
+ // (error)
+ public TermElements prTerm() {
+ return (pTerm != null) ? pTerm : (pTerm = new TermElements());
+ }
- public LexerRule lr_ML_COMMENT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.3"),true);
- }
+ // Atom : name = ID ;
+ public AtomElements prAtom() {
+ return (pAtom != null) ? pAtom : (pAtom = new AtomElements());
+ }
- public LexerRule lr_SL_COMMENT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.4"),true);
- }
+ // (error)
+ public ParensElements prParens() {
+ return (pParens != null) ? pParens : (pParens = new ParensElements());
+ }
- public LexerRule lr_WS() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.5"),true);
- }
+ // (error)
+ public TrickyAElements prTrickyA() {
+ return (pTrickyA != null) ? pTrickyA : (pTrickyA = new TrickyAElements());
+ }
- 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 TrickyA1Elements prTrickyA1() {
+ return (pTrickyA1 != null) ? pTrickyA1 : (pTrickyA1 = new TrickyA1Elements());
+ }
+
+ // TrickyB : 'TB' ( name = ID type += INT ) ? ( type += ID ) * ;
+ public TrickyBElements prTrickyB() {
+ return (pTrickyB != null) ? pTrickyB : (pTrickyB = new TrickyBElements());
+ }
+
+ // (error)
+ public TrickyCElements prTrickyC() {
+ return (pTrickyC != null) ? pTrickyC : (pTrickyC = new TrickyCElements());
+ }
+
+ // TrickyD : 'TD' ( name += INT foo = STRING type += ID ) ? ( name += INT type += ID ) ? ( type += ID ) * ;
+ public TrickyDElements prTrickyD() {
+ return (pTrickyD != null) ? pTrickyD : (pTrickyD = new TrickyDElements());
+ }
+
+ // TrickyE : 'TE' ( name += INT foo += STRING type += ID ) * 'x' ( name += INT type += ID ) * ;
+ public TrickyEElements prTrickyE() {
+ return (pTrickyE != null) ? pTrickyE : (pTrickyE = new TrickyEElements());
+ }
-
+ // TrickyF : 'TF' ( name += ID type += INT ) * ( name += ID | type += INT ) ;
+ public TrickyFElements prTrickyF() {
+ return (pTrickyF != null) ? pTrickyF : (pTrickyF = new TrickyFElements());
+ }
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/services/SimpleReconstrTestGrammarAccess.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/services/SimpleReconstrTestGrammarAccess.java
index 8731218..aa02b30 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/services/SimpleReconstrTestGrammarAccess.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/services/SimpleReconstrTestGrammarAccess.java
@@ -4,90 +4,596 @@ Generated with Xtext
package org.eclipse.xtext.parsetree.reconstr.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 SimpleReconstrTestGrammarAccess extends BaseEPackageAccess implements IGrammarAccess {
-
- private static final String SIMPLERECONSTRTEST_GRAMMAR_CP_URI = "classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.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(SimpleReconstrTestGrammarAccess.class.getClassLoader(),SIMPLERECONSTRTEST_GRAMMAR_CP_URI);
+ public class OpElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private RuleCall c0ParserRuleCallTerm;
+ private Group c1Group;
+ private Action c10ActionOpvalues;
+ private Assignment c11AssignmentValues;
+ private RuleCall c110ParserRuleCallTerm;
+
+ // (error)
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(1));
+ }
+
+ // (error)
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(1));
+ }
+
+ // Term
+ public RuleCall ele0ParserRuleCallTerm() {
+ return (c0ParserRuleCallTerm != null) ? c0ParserRuleCallTerm : (c0ParserRuleCallTerm = (RuleCall)eleGroup().eContents().get(0));
+ }
+
+ // (error)
+ public Group ele1Group() {
+ return (c1Group != null) ? c1Group : (c1Group = (Group)eleGroup().eContents().get(1));
+ }
+
+ // (error)
+ public Action ele10ActionOpvalues() {
+ return (c10ActionOpvalues != null) ? c10ActionOpvalues : (c10ActionOpvalues = (Action)ele1Group().eContents().get(0));
+ }
+
+ // values += Term
+ public Assignment ele11AssignmentValues() {
+ return (c11AssignmentValues != null) ? c11AssignmentValues : (c11AssignmentValues = (Assignment)ele1Group().eContents().get(1));
+ }
+
+ // Term
+ public RuleCall ele110ParserRuleCallTerm() {
+ return (c110ParserRuleCallTerm != null) ? c110ParserRuleCallTerm : (c110ParserRuleCallTerm = (RuleCall)ele11AssignmentValues().eContents().get(0));
}
- return GRAMMAR;
- }
-
-
- public ParserRule pr_Op() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.0"),true);
}
- public ParserRule pr_Term() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.1"),true);
+ public class TermElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Alternatives cAlternatives;
+ private Alternatives c0Alternatives;
+ private Alternatives c00Alternatives;
+ private Alternatives c000Alternatives;
+ private Alternatives c0000Alternatives;
+ private Alternatives c00000Alternatives;
+ private RuleCall c000000ParserRuleCallAtom;
+ private RuleCall c000001ParserRuleCallTwoNumbers;
+ private RuleCall c00001ParserRuleCallManyStrings;
+ private RuleCall c0001ParserRuleCallParens;
+ private RuleCall c001ParserRuleCallType;
+ private RuleCall c01ParserRuleCallRef2;
+ private RuleCall c1ParserRuleCallSpare;
+
+ // (error)
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(2));
+ }
+
+ // Atom | TwoNumbers | ManyStrings | Parens | Type | Ref2 | Spare
+ public Alternatives eleAlternatives() {
+ return (cAlternatives != null) ? cAlternatives : (cAlternatives = (Alternatives)getRule().eContents().get(1));
+ }
+
+ // Atom | TwoNumbers | ManyStrings | Parens | Type | Ref2
+ public Alternatives ele0Alternatives() {
+ return (c0Alternatives != null) ? c0Alternatives : (c0Alternatives = (Alternatives)eleAlternatives().eContents().get(0));
+ }
+
+ // Atom | TwoNumbers | ManyStrings | Parens | Type
+ public Alternatives ele00Alternatives() {
+ return (c00Alternatives != null) ? c00Alternatives : (c00Alternatives = (Alternatives)ele0Alternatives().eContents().get(0));
+ }
+
+ // Atom | TwoNumbers | ManyStrings | Parens
+ public Alternatives ele000Alternatives() {
+ return (c000Alternatives != null) ? c000Alternatives : (c000Alternatives = (Alternatives)ele00Alternatives().eContents().get(0));
+ }
+
+ // Atom | TwoNumbers | ManyStrings
+ public Alternatives ele0000Alternatives() {
+ return (c0000Alternatives != null) ? c0000Alternatives : (c0000Alternatives = (Alternatives)ele000Alternatives().eContents().get(0));
+ }
+
+ // Atom | TwoNumbers
+ public Alternatives ele00000Alternatives() {
+ return (c00000Alternatives != null) ? c00000Alternatives : (c00000Alternatives = (Alternatives)ele0000Alternatives().eContents().get(0));
+ }
+
+ // Atom
+ public RuleCall ele000000ParserRuleCallAtom() {
+ return (c000000ParserRuleCallAtom != null) ? c000000ParserRuleCallAtom : (c000000ParserRuleCallAtom = (RuleCall)ele00000Alternatives().eContents().get(0));
+ }
+
+ // TwoNumbers
+ public RuleCall ele000001ParserRuleCallTwoNumbers() {
+ return (c000001ParserRuleCallTwoNumbers != null) ? c000001ParserRuleCallTwoNumbers : (c000001ParserRuleCallTwoNumbers = (RuleCall)ele00000Alternatives().eContents().get(1));
+ }
+
+ // ManyStrings
+ public RuleCall ele00001ParserRuleCallManyStrings() {
+ return (c00001ParserRuleCallManyStrings != null) ? c00001ParserRuleCallManyStrings : (c00001ParserRuleCallManyStrings = (RuleCall)ele0000Alternatives().eContents().get(1));
+ }
+
+ // Parens
+ public RuleCall ele0001ParserRuleCallParens() {
+ return (c0001ParserRuleCallParens != null) ? c0001ParserRuleCallParens : (c0001ParserRuleCallParens = (RuleCall)ele000Alternatives().eContents().get(1));
+ }
+
+ // Type
+ public RuleCall ele001ParserRuleCallType() {
+ return (c001ParserRuleCallType != null) ? c001ParserRuleCallType : (c001ParserRuleCallType = (RuleCall)ele00Alternatives().eContents().get(1));
+ }
+
+ // Ref2
+ public RuleCall ele01ParserRuleCallRef2() {
+ return (c01ParserRuleCallRef2 != null) ? c01ParserRuleCallRef2 : (c01ParserRuleCallRef2 = (RuleCall)ele0Alternatives().eContents().get(1));
+ }
+
+ // Spare
+ public RuleCall ele1ParserRuleCallSpare() {
+ return (c1ParserRuleCallSpare != null) ? c1ParserRuleCallSpare : (c1ParserRuleCallSpare = (RuleCall)eleAlternatives().eContents().get(1));
+ }
}
- public ParserRule pr_Atom() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.2"),true);
+ public class AtomElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Assignment cAssignmentName;
+ private RuleCall c0LexerRuleCallID;
+
+ // Atom : name = ID ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(3));
+ }
+
+ // name = ID
+ public Assignment eleAssignmentName() {
+ return (cAssignmentName != null) ? cAssignmentName : (cAssignmentName = (Assignment)getRule().eContents().get(0));
+ }
+
+ // ID
+ public RuleCall ele0LexerRuleCallID() {
+ return (c0LexerRuleCallID != null) ? c0LexerRuleCallID : (c0LexerRuleCallID = (RuleCall)eleAssignmentName().eContents().get(0));
+ }
}
- public ParserRule pr_Parens() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.3"),true);
+ public class ParensElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Group c00Group;
+ private Keyword c000Keyword;
+ private RuleCall c001ParserRuleCallOp;
+ private Keyword c01Keyword;
+ private Assignment c1AssignmentEm;
+ private Keyword c10Keyword;
+
+ // (error)
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(4));
+ }
+
+ // '(' Op ')' ( em = '!' ) ?
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(1));
+ }
+
+ // '(' Op ')'
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // '(' Op
+ public Group ele00Group() {
+ return (c00Group != null) ? c00Group : (c00Group = (Group)ele0Group().eContents().get(0));
+ }
+
+ // '('
+ public Keyword ele000Keyword() {
+ return (c000Keyword != null) ? c000Keyword : (c000Keyword = (Keyword)ele00Group().eContents().get(0));
+ }
+
+ // Op
+ public RuleCall ele001ParserRuleCallOp() {
+ return (c001ParserRuleCallOp != null) ? c001ParserRuleCallOp : (c001ParserRuleCallOp = (RuleCall)ele00Group().eContents().get(1));
+ }
+
+ // ')'
+ public Keyword ele01Keyword() {
+ return (c01Keyword != null) ? c01Keyword : (c01Keyword = (Keyword)ele0Group().eContents().get(1));
+ }
+
+ // ( em = '!' ) ?
+ public Assignment ele1AssignmentEm() {
+ return (c1AssignmentEm != null) ? c1AssignmentEm : (c1AssignmentEm = (Assignment)eleGroup().eContents().get(1));
+ }
+
+ // '!'
+ public Keyword ele10Keyword() {
+ return (c10Keyword != null) ? c10Keyword : (c10Keyword = (Keyword)ele1AssignmentEm().eContents().get(0));
+ }
}
- public ParserRule pr_TwoNumbers() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.4"),true);
+ public class TwoNumbersElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Assignment c00AssignmentNum1;
+ private RuleCall c000LexerRuleCallINT;
+ private Assignment c01AssignmentNum2;
+ private RuleCall c010LexerRuleCallINT;
+ private Group c1Group;
+ private Keyword c10Keyword;
+ private Assignment c11AssignmentNum3;
+ private RuleCall c110LexerRuleCallINT;
+
+ // TwoNumbers : num1 = INT num2 = INT ( '#' num3 += INT ) * ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(5));
+ }
+
+ // num1 = INT num2 = INT ( '#' num3 += INT ) *
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // num1 = INT num2 = INT
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // num1 = INT
+ public Assignment ele00AssignmentNum1() {
+ return (c00AssignmentNum1 != null) ? c00AssignmentNum1 : (c00AssignmentNum1 = (Assignment)ele0Group().eContents().get(0));
+ }
+
+ // INT
+ public RuleCall ele000LexerRuleCallINT() {
+ return (c000LexerRuleCallINT != null) ? c000LexerRuleCallINT : (c000LexerRuleCallINT = (RuleCall)ele00AssignmentNum1().eContents().get(0));
+ }
+
+ // num2 = INT
+ public Assignment ele01AssignmentNum2() {
+ return (c01AssignmentNum2 != null) ? c01AssignmentNum2 : (c01AssignmentNum2 = (Assignment)ele0Group().eContents().get(1));
+ }
+
+ // INT
+ public RuleCall ele010LexerRuleCallINT() {
+ return (c010LexerRuleCallINT != null) ? c010LexerRuleCallINT : (c010LexerRuleCallINT = (RuleCall)ele01AssignmentNum2().eContents().get(0));
+ }
+
+ // ( '#' num3 += INT ) *
+ public Group ele1Group() {
+ return (c1Group != null) ? c1Group : (c1Group = (Group)eleGroup().eContents().get(1));
+ }
+
+ // '#'
+ public Keyword ele10Keyword() {
+ return (c10Keyword != null) ? c10Keyword : (c10Keyword = (Keyword)ele1Group().eContents().get(0));
+ }
+
+ // num3 += INT
+ public Assignment ele11AssignmentNum3() {
+ return (c11AssignmentNum3 != null) ? c11AssignmentNum3 : (c11AssignmentNum3 = (Assignment)ele1Group().eContents().get(1));
+ }
+
+ // INT
+ public RuleCall ele110LexerRuleCallINT() {
+ return (c110LexerRuleCallINT != null) ? c110LexerRuleCallINT : (c110LexerRuleCallINT = (RuleCall)ele11AssignmentNum3().eContents().get(0));
+ }
}
- public ParserRule pr_ManyStrings() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.5"),true);
+ public class ManyStringsElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Keyword c00Keyword;
+ private Assignment c01AssignmentStr1;
+ private RuleCall c010LexerRuleCallSTRING;
+ private Assignment c1AssignmentStr2;
+ private RuleCall c10LexerRuleCallSTRING;
+
+ // ManyStrings : '=' ( str1 += STRING ) * str2 += STRING ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(6));
+ }
+
+ // '=' ( str1 += STRING ) * str2 += STRING
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // '=' ( str1 += STRING ) *
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // '='
+ public Keyword ele00Keyword() {
+ return (c00Keyword != null) ? c00Keyword : (c00Keyword = (Keyword)ele0Group().eContents().get(0));
+ }
+
+ // ( str1 += STRING ) *
+ public Assignment ele01AssignmentStr1() {
+ return (c01AssignmentStr1 != null) ? c01AssignmentStr1 : (c01AssignmentStr1 = (Assignment)ele0Group().eContents().get(1));
+ }
+
+ // STRING
+ public RuleCall ele010LexerRuleCallSTRING() {
+ return (c010LexerRuleCallSTRING != null) ? c010LexerRuleCallSTRING : (c010LexerRuleCallSTRING = (RuleCall)ele01AssignmentStr1().eContents().get(0));
+ }
+
+ // str2 += STRING
+ public Assignment ele1AssignmentStr2() {
+ return (c1AssignmentStr2 != null) ? c1AssignmentStr2 : (c1AssignmentStr2 = (Assignment)eleGroup().eContents().get(1));
+ }
+
+ // STRING
+ public RuleCall ele10LexerRuleCallSTRING() {
+ return (c10LexerRuleCallSTRING != null) ? c10LexerRuleCallSTRING : (c10LexerRuleCallSTRING = (RuleCall)ele1AssignmentStr2().eContents().get(0));
+ }
}
- public ParserRule pr_Type() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.6"),true);
+ public class TypeElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Group c00Group;
+ private Keyword c000KeywordType;
+ private Assignment c001AssignmentName;
+ private RuleCall c0010LexerRuleCallID;
+ private Keyword c01KeywordExtends;
+ private Assignment c1AssignmentExtends;
+ private CrossReference c10CrossReferenceType;
+
+ // (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));
+ }
+
+ // 'type' name = ID 'extends'
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // 'type' name = ID
+ public Group ele00Group() {
+ return (c00Group != null) ? c00Group : (c00Group = (Group)ele0Group().eContents().get(0));
+ }
+
+ // 'type'
+ public Keyword ele000KeywordType() {
+ return (c000KeywordType != null) ? c000KeywordType : (c000KeywordType = (Keyword)ele00Group().eContents().get(0));
+ }
+
+ // 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));
+ }
+
+ // 'extends'
+ public Keyword ele01KeywordExtends() {
+ return (c01KeywordExtends != null) ? c01KeywordExtends : (c01KeywordExtends = (Keyword)ele0Group().eContents().get(1));
+ }
+
+ // (error)
+ public Assignment ele1AssignmentExtends() {
+ return (c1AssignmentExtends != null) ? c1AssignmentExtends : (c1AssignmentExtends = (Assignment)eleGroup().eContents().get(1));
+ }
+
+ // (error)
+ public CrossReference ele10CrossReferenceType() {
+ return (c10CrossReferenceType != null) ? c10CrossReferenceType : (c10CrossReferenceType = (CrossReference)ele1AssignmentExtends().eContents().get(0));
+ }
}
- public ParserRule pr_Ref2() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.7"),true);
+ public class Ref2Elements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Keyword c0Keyword;
+ private Assignment c1AssignmentRef2;
+ private Alternatives c10Alternatives;
+ private Alternatives c100Alternatives;
+ private Keyword c1000KeywordMykeyword1;
+ private RuleCall c1001LexerRuleCallSTRING;
+ private Keyword c101KeywordMykeyword2;
+
+ // Ref2 : '#2' ref2 = ( 'mykeyword1' | STRING | 'mykeyword2' ) ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(8));
+ }
+
+ // '#2' ref2 = ( 'mykeyword1' | STRING | 'mykeyword2' )
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // '#2'
+ public Keyword ele0Keyword() {
+ return (c0Keyword != null) ? c0Keyword : (c0Keyword = (Keyword)eleGroup().eContents().get(0));
+ }
+
+ // ref2 = ( 'mykeyword1' | STRING | 'mykeyword2' )
+ public Assignment ele1AssignmentRef2() {
+ return (c1AssignmentRef2 != null) ? c1AssignmentRef2 : (c1AssignmentRef2 = (Assignment)eleGroup().eContents().get(1));
+ }
+
+ // 'mykeyword1' | STRING | 'mykeyword2'
+ public Alternatives ele10Alternatives() {
+ return (c10Alternatives != null) ? c10Alternatives : (c10Alternatives = (Alternatives)ele1AssignmentRef2().eContents().get(0));
+ }
+
+ // 'mykeyword1' | STRING
+ public Alternatives ele100Alternatives() {
+ return (c100Alternatives != null) ? c100Alternatives : (c100Alternatives = (Alternatives)ele10Alternatives().eContents().get(0));
+ }
+
+ // 'mykeyword1'
+ public Keyword ele1000KeywordMykeyword1() {
+ return (c1000KeywordMykeyword1 != null) ? c1000KeywordMykeyword1 : (c1000KeywordMykeyword1 = (Keyword)ele100Alternatives().eContents().get(0));
+ }
+
+ // STRING
+ public RuleCall ele1001LexerRuleCallSTRING() {
+ return (c1001LexerRuleCallSTRING != null) ? c1001LexerRuleCallSTRING : (c1001LexerRuleCallSTRING = (RuleCall)ele100Alternatives().eContents().get(1));
+ }
+
+ // 'mykeyword2'
+ public Keyword ele101KeywordMykeyword2() {
+ return (c101KeywordMykeyword2 != null) ? c101KeywordMykeyword2 : (c101KeywordMykeyword2 = (Keyword)ele10Alternatives().eContents().get(1));
+ }
}
- public ParserRule pr_Spare() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi#//@rules.8"),true);
+ public class SpareElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Keyword c00Keyword;
+ private Assignment c01AssignmentId;
+ private RuleCall c010LexerRuleCallID;
+ private Group c1Group;
+ private Keyword c10Keyword;
+ private Assignment c11AssignmentId;
+ private RuleCall c110LexerRuleCallID;
+
+ // Spare : '#3' id += ID ( '.' id += ID ) * ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(9));
+ }
+
+ // '#3' id += ID ( '.' id += ID ) *
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // '#3' id += ID
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // '#3'
+ public Keyword ele00Keyword() {
+ return (c00Keyword != null) ? c00Keyword : (c00Keyword = (Keyword)ele0Group().eContents().get(0));
+ }
+
+ // id += ID
+ public Assignment ele01AssignmentId() {
+ return (c01AssignmentId != null) ? c01AssignmentId : (c01AssignmentId = (Assignment)ele0Group().eContents().get(1));
+ }
+
+ // ID
+ public RuleCall ele010LexerRuleCallID() {
+ return (c010LexerRuleCallID != null) ? c010LexerRuleCallID : (c010LexerRuleCallID = (RuleCall)ele01AssignmentId().eContents().get(0));
+ }
+
+ // ( '.' id += ID ) *
+ public Group ele1Group() {
+ return (c1Group != null) ? c1Group : (c1Group = (Group)eleGroup().eContents().get(1));
+ }
+
+ // '.'
+ public Keyword ele10Keyword() {
+ return (c10Keyword != null) ? c10Keyword : (c10Keyword = (Keyword)ele1Group().eContents().get(0));
+ }
+
+ // id += ID
+ public Assignment ele11AssignmentId() {
+ return (c11AssignmentId != null) ? c11AssignmentId : (c11AssignmentId = (Assignment)ele1Group().eContents().get(1));
+ }
+
+ // ID
+ public RuleCall ele110LexerRuleCallID() {
+ return (c110LexerRuleCallID != null) ? c110LexerRuleCallID : (c110LexerRuleCallID = (RuleCall)ele11AssignmentId().eContents().get(0));
+ }
}
+
+ public final static SimpleReconstrTestGrammarAccess INSTANCE = new SimpleReconstrTestGrammarAccess();
+
+ private static final String SIMPLERECONSTRTEST_GRAMMAR_CP_URI = "classpath:/org/eclipse/xtext/parsetree/reconstr/SimpleReconstrTest.xmi";
+ private static Grammar GRAMMAR = null;
+ private static OpElements pOp;
+ private static TermElements pTerm;
+ private static AtomElements pAtom;
+ private static ParensElements pParens;
+ private static TwoNumbersElements pTwoNumbers;
+ private static ManyStringsElements pManyStrings;
+ private static TypeElements pType;
+ private static Ref2Elements pRef2;
+ private static SpareElements pSpare;
+ @SuppressWarnings("unused")
+ public synchronized Grammar getGrammar() {
+ if (GRAMMAR==null) {
+ // assert the XtextPackage implementation is loaded
+ XtextPackage xtextPackage = XtextPackage.eINSTANCE;
+ GRAMMAR = (Grammar) loadGrammarFile(SimpleReconstrTestGrammarAccess.class.getClassLoader(),SIMPLERECONSTRTEST_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);
- }
+
+ // (error)
+ public OpElements prOp() {
+ return (pOp != null) ? pOp : (pOp = new OpElements());
+ }
- public LexerRule lr_STRING() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.2"),true);
- }
+ // (error)
+ public TermElements prTerm() {
+ return (pTerm != null) ? pTerm : (pTerm = new TermElements());
+ }
- public LexerRule lr_ML_COMMENT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.3"),true);
- }
+ // Atom : name = ID ;
+ public AtomElements prAtom() {
+ return (pAtom != null) ? pAtom : (pAtom = new AtomElements());
+ }
- public LexerRule lr_SL_COMMENT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.4"),true);
- }
+ // (error)
+ public ParensElements prParens() {
+ return (pParens != null) ? pParens : (pParens = new ParensElements());
+ }
- public LexerRule lr_WS() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.5"),true);
- }
+ // TwoNumbers : num1 = INT num2 = INT ( '#' num3 += INT ) * ;
+ public TwoNumbersElements prTwoNumbers() {
+ return (pTwoNumbers != null) ? pTwoNumbers : (pTwoNumbers = new TwoNumbersElements());
+ }
- public LexerRule lr_ANY_OTHER() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.6"),true);
- }
+ // ManyStrings : '=' ( str1 += STRING ) * str2 += STRING ;
+ public ManyStringsElements prManyStrings() {
+ return (pManyStrings != null) ? pManyStrings : (pManyStrings = new ManyStringsElements());
+ }
+
+ // (error)
+ public TypeElements prType() {
+ return (pType != null) ? pType : (pType = new TypeElements());
+ }
+
+ // Ref2 : '#2' ref2 = ( 'mykeyword1' | STRING | 'mykeyword2' ) ;
+ public Ref2Elements prRef2() {
+ return (pRef2 != null) ? pRef2 : (pRef2 = new Ref2Elements());
+ }
-
+ // Spare : '#3' id += ID ( '.' id += ID ) * ;
+ public SpareElements prSpare() {
+ return (pSpare != null) ? pSpare : (pSpare = new SpareElements());
+ }
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/services/XtextGrammarTestGrammarAccess.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/services/XtextGrammarTestGrammarAccess.java
index 9e34847..9424831 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/services/XtextGrammarTestGrammarAccess.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/services/XtextGrammarTestGrammarAccess.java
@@ -4,126 +4,1385 @@ Generated with Xtext
package org.eclipse.xtext.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 XtextGrammarTestGrammarAccess extends BaseEPackageAccess implements IGrammarAccess {
-
- private static final String XTEXTGRAMMARTEST_GRAMMAR_CP_URI = "classpath:/org/eclipse/xtext/XtextGrammarTest.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(XtextGrammarTestGrammarAccess.class.getClassLoader(),XTEXTGRAMMARTEST_GRAMMAR_CP_URI);
+ public class GrammarElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Group c00Group;
+ private Group c000Group;
+ private Group c0000Group;
+ private Alternatives c00000Alternatives;
+ private Assignment c000000AssignmentAbstract;
+ private Keyword c0000000KeywordAbstractLanguage;
+ private Keyword c000001KeywordLanguage;
+ private Assignment c00001AssignmentIdElements;
+ private RuleCall c000010LexerRuleCallID;
+ private Group c0001Group;
+ private Keyword c00010Keyword;
+ private Assignment c00011AssignmentIdElements;
+ private RuleCall c000110LexerRuleCallID;
+ private Group c001Group;
+ private Group c0010Group;
+ private Keyword c00100KeywordExtends;
+ private Assignment c00101AssignmentSuperGrammarIdElements;
+ private RuleCall c001010LexerRuleCallID;
+ private Group c0011Group;
+ private Keyword c00110Keyword;
+ private Assignment c00111AssignmentSuperGrammarIdElements;
+ private RuleCall c001110LexerRuleCallID;
+ private Assignment c01AssignmentMetamodelDeclarations;
+ private RuleCall c010ParserRuleCallAbstractMetamodelDeclaration;
+ private Assignment c1AssignmentRules;
+ private RuleCall c10ParserRuleCallAbstractRule;
+
+ // Grammar : ( abstract ?= 'abstract language' | 'language' ) idElements += ID ( '.' idElements += ID ) * ( 'extends' superGrammarIdElements += ID ( '.' superGrammarIdElements += ID ) * ) ? ( metamodelDeclarations += AbstractMetamodelDeclaration ) * ( rules += AbstractRule ) + ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(1));
+ }
+
+ // ( abstract ?= 'abstract language' | 'language' ) idElements += ID ( '.' idElements += ID ) * ( 'extends' superGrammarIdElements += ID ( '.' superGrammarIdElements += ID ) * ) ? ( metamodelDeclarations += AbstractMetamodelDeclaration ) * ( rules += AbstractRule ) +
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // ( abstract ?= 'abstract language' | 'language' ) idElements += ID ( '.' idElements += ID ) * ( 'extends' superGrammarIdElements += ID ( '.' superGrammarIdElements += ID ) * ) ? ( metamodelDeclarations += AbstractMetamodelDeclaration ) *
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // ( abstract ?= 'abstract language' | 'language' ) idElements += ID ( '.' idElements += ID ) * ( 'extends' superGrammarIdElements += ID ( '.' superGrammarIdElements += ID ) * ) ?
+ public Group ele00Group() {
+ return (c00Group != null) ? c00Group : (c00Group = (Group)ele0Group().eContents().get(0));
+ }
+
+ // ( abstract ?= 'abstract language' | 'language' ) idElements += ID ( '.' idElements += ID ) *
+ public Group ele000Group() {
+ return (c000Group != null) ? c000Group : (c000Group = (Group)ele00Group().eContents().get(0));
+ }
+
+ // ( abstract ?= 'abstract language' | 'language' ) idElements += ID
+ public Group ele0000Group() {
+ return (c0000Group != null) ? c0000Group : (c0000Group = (Group)ele000Group().eContents().get(0));
+ }
+
+ // abstract ?= 'abstract language' | 'language'
+ public Alternatives ele00000Alternatives() {
+ return (c00000Alternatives != null) ? c00000Alternatives : (c00000Alternatives = (Alternatives)ele0000Group().eContents().get(0));
+ }
+
+ // abstract ?= 'abstract language'
+ public Assignment ele000000AssignmentAbstract() {
+ return (c000000AssignmentAbstract != null) ? c000000AssignmentAbstract : (c000000AssignmentAbstract = (Assignment)ele00000Alternatives().eContents().get(0));
+ }
+
+ // 'abstract language'
+ public Keyword ele0000000KeywordAbstractLanguage() {
+ return (c0000000KeywordAbstractLanguage != null) ? c0000000KeywordAbstractLanguage : (c0000000KeywordAbstractLanguage = (Keyword)ele000000AssignmentAbstract().eContents().get(0));
+ }
+
+ // 'language'
+ public Keyword ele000001KeywordLanguage() {
+ return (c000001KeywordLanguage != null) ? c000001KeywordLanguage : (c000001KeywordLanguage = (Keyword)ele00000Alternatives().eContents().get(1));
+ }
+
+ // idElements += ID
+ public Assignment ele00001AssignmentIdElements() {
+ return (c00001AssignmentIdElements != null) ? c00001AssignmentIdElements : (c00001AssignmentIdElements = (Assignment)ele0000Group().eContents().get(1));
+ }
+
+ // ID
+ public RuleCall ele000010LexerRuleCallID() {
+ return (c000010LexerRuleCallID != null) ? c000010LexerRuleCallID : (c000010LexerRuleCallID = (RuleCall)ele00001AssignmentIdElements().eContents().get(0));
+ }
+
+ // ( '.' idElements += ID ) *
+ public Group ele0001Group() {
+ return (c0001Group != null) ? c0001Group : (c0001Group = (Group)ele000Group().eContents().get(1));
+ }
+
+ // '.'
+ public Keyword ele00010Keyword() {
+ return (c00010Keyword != null) ? c00010Keyword : (c00010Keyword = (Keyword)ele0001Group().eContents().get(0));
+ }
+
+ // idElements += ID
+ public Assignment ele00011AssignmentIdElements() {
+ return (c00011AssignmentIdElements != null) ? c00011AssignmentIdElements : (c00011AssignmentIdElements = (Assignment)ele0001Group().eContents().get(1));
+ }
+
+ // ID
+ public RuleCall ele000110LexerRuleCallID() {
+ return (c000110LexerRuleCallID != null) ? c000110LexerRuleCallID : (c000110LexerRuleCallID = (RuleCall)ele00011AssignmentIdElements().eContents().get(0));
+ }
+
+ // ( 'extends' superGrammarIdElements += ID ( '.' superGrammarIdElements += ID ) * ) ?
+ public Group ele001Group() {
+ return (c001Group != null) ? c001Group : (c001Group = (Group)ele00Group().eContents().get(1));
+ }
+
+ // 'extends' superGrammarIdElements += ID
+ public Group ele0010Group() {
+ return (c0010Group != null) ? c0010Group : (c0010Group = (Group)ele001Group().eContents().get(0));
+ }
+
+ // 'extends'
+ public Keyword ele00100KeywordExtends() {
+ return (c00100KeywordExtends != null) ? c00100KeywordExtends : (c00100KeywordExtends = (Keyword)ele0010Group().eContents().get(0));
+ }
+
+ // superGrammarIdElements += ID
+ public Assignment ele00101AssignmentSuperGrammarIdElements() {
+ return (c00101AssignmentSuperGrammarIdElements != null) ? c00101AssignmentSuperGrammarIdElements : (c00101AssignmentSuperGrammarIdElements = (Assignment)ele0010Group().eContents().get(1));
+ }
+
+ // ID
+ public RuleCall ele001010LexerRuleCallID() {
+ return (c001010LexerRuleCallID != null) ? c001010LexerRuleCallID : (c001010LexerRuleCallID = (RuleCall)ele00101AssignmentSuperGrammarIdElements().eContents().get(0));
+ }
+
+ // ( '.' superGrammarIdElements += ID ) *
+ public Group ele0011Group() {
+ return (c0011Group != null) ? c0011Group : (c0011Group = (Group)ele001Group().eContents().get(1));
+ }
+
+ // '.'
+ public Keyword ele00110Keyword() {
+ return (c00110Keyword != null) ? c00110Keyword : (c00110Keyword = (Keyword)ele0011Group().eContents().get(0));
+ }
+
+ // superGrammarIdElements += ID
+ public Assignment ele00111AssignmentSuperGrammarIdElements() {
+ return (c00111AssignmentSuperGrammarIdElements != null) ? c00111AssignmentSuperGrammarIdElements : (c00111AssignmentSuperGrammarIdElements = (Assignment)ele0011Group().eContents().get(1));
+ }
+
+ // ID
+ public RuleCall ele001110LexerRuleCallID() {
+ return (c001110LexerRuleCallID != null) ? c001110LexerRuleCallID : (c001110LexerRuleCallID = (RuleCall)ele00111AssignmentSuperGrammarIdElements().eContents().get(0));
+ }
+
+ // ( metamodelDeclarations += AbstractMetamodelDeclaration ) *
+ public Assignment ele01AssignmentMetamodelDeclarations() {
+ return (c01AssignmentMetamodelDeclarations != null) ? c01AssignmentMetamodelDeclarations : (c01AssignmentMetamodelDeclarations = (Assignment)ele0Group().eContents().get(1));
+ }
+
+ // AbstractMetamodelDeclaration
+ public RuleCall ele010ParserRuleCallAbstractMetamodelDeclaration() {
+ return (c010ParserRuleCallAbstractMetamodelDeclaration != null) ? c010ParserRuleCallAbstractMetamodelDeclaration : (c010ParserRuleCallAbstractMetamodelDeclaration = (RuleCall)ele01AssignmentMetamodelDeclarations().eContents().get(0));
+ }
+
+ // ( rules += AbstractRule ) +
+ public Assignment ele1AssignmentRules() {
+ return (c1AssignmentRules != null) ? c1AssignmentRules : (c1AssignmentRules = (Assignment)eleGroup().eContents().get(1));
+ }
+
+ // AbstractRule
+ public RuleCall ele10ParserRuleCallAbstractRule() {
+ return (c10ParserRuleCallAbstractRule != null) ? c10ParserRuleCallAbstractRule : (c10ParserRuleCallAbstractRule = (RuleCall)ele1AssignmentRules().eContents().get(0));
}
- return GRAMMAR;
- }
-
-
- public ParserRule pr_Grammar() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.0"),true);
}
- public ParserRule pr_AbstractRule() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.1"),true);
+ public class AbstractRuleElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Alternatives cAlternatives;
+ private RuleCall c0ParserRuleCallLexerRule;
+ private RuleCall c1ParserRuleCallParserRule;
+
+ // AbstractRule : LexerRule | ParserRule ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(2));
+ }
+
+ // LexerRule | ParserRule
+ public Alternatives eleAlternatives() {
+ return (cAlternatives != null) ? cAlternatives : (cAlternatives = (Alternatives)getRule().eContents().get(0));
+ }
+
+ // LexerRule
+ public RuleCall ele0ParserRuleCallLexerRule() {
+ return (c0ParserRuleCallLexerRule != null) ? c0ParserRuleCallLexerRule : (c0ParserRuleCallLexerRule = (RuleCall)eleAlternatives().eContents().get(0));
+ }
+
+ // ParserRule
+ public RuleCall ele1ParserRuleCallParserRule() {
+ return (c1ParserRuleCallParserRule != null) ? c1ParserRuleCallParserRule : (c1ParserRuleCallParserRule = (RuleCall)eleAlternatives().eContents().get(1));
+ }
}
- public ParserRule pr_AbstractMetamodelDeclaration() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.2"),true);
+ public class AbstractMetamodelDeclarationElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Alternatives cAlternatives;
+ private RuleCall c0ParserRuleCallGeneratedMetamodel;
+ private RuleCall c1ParserRuleCallReferencedMetamodel;
+
+ // AbstractMetamodelDeclaration : GeneratedMetamodel | ReferencedMetamodel ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(3));
+ }
+
+ // GeneratedMetamodel | ReferencedMetamodel
+ public Alternatives eleAlternatives() {
+ return (cAlternatives != null) ? cAlternatives : (cAlternatives = (Alternatives)getRule().eContents().get(0));
+ }
+
+ // GeneratedMetamodel
+ public RuleCall ele0ParserRuleCallGeneratedMetamodel() {
+ return (c0ParserRuleCallGeneratedMetamodel != null) ? c0ParserRuleCallGeneratedMetamodel : (c0ParserRuleCallGeneratedMetamodel = (RuleCall)eleAlternatives().eContents().get(0));
+ }
+
+ // ReferencedMetamodel
+ public RuleCall ele1ParserRuleCallReferencedMetamodel() {
+ return (c1ParserRuleCallReferencedMetamodel != null) ? c1ParserRuleCallReferencedMetamodel : (c1ParserRuleCallReferencedMetamodel = (RuleCall)eleAlternatives().eContents().get(1));
+ }
}
- public ParserRule pr_GeneratedMetamodel() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.3"),true);
+ public class GeneratedMetamodelElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Group c00Group;
+ private Keyword c000KeywordGenerate;
+ private Assignment c001AssignmentName;
+ private RuleCall c0010LexerRuleCallID;
+ private Assignment c01AssignmentNsURI;
+ private RuleCall c010LexerRuleCallSTRING;
+ private Group c1Group;
+ private Keyword c10KeywordAs;
+ private Assignment c11AssignmentAlias;
+ private RuleCall c110LexerRuleCallID;
+
+ // GeneratedMetamodel : 'generate' name = ID nsURI = STRING ( 'as' alias = ID ) ? ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(4));
+ }
+
+ // 'generate' name = ID nsURI = STRING ( 'as' alias = ID ) ?
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // 'generate' name = ID nsURI = STRING
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // 'generate' name = ID
+ public Group ele00Group() {
+ return (c00Group != null) ? c00Group : (c00Group = (Group)ele0Group().eContents().get(0));
+ }
+
+ // 'generate'
+ public Keyword ele000KeywordGenerate() {
+ return (c000KeywordGenerate != null) ? c000KeywordGenerate : (c000KeywordGenerate = (Keyword)ele00Group().eContents().get(0));
+ }
+
+ // 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));
+ }
+
+ // nsURI = STRING
+ public Assignment ele01AssignmentNsURI() {
+ return (c01AssignmentNsURI != null) ? c01AssignmentNsURI : (c01AssignmentNsURI = (Assignment)ele0Group().eContents().get(1));
+ }
+
+ // STRING
+ public RuleCall ele010LexerRuleCallSTRING() {
+ return (c010LexerRuleCallSTRING != null) ? c010LexerRuleCallSTRING : (c010LexerRuleCallSTRING = (RuleCall)ele01AssignmentNsURI().eContents().get(0));
+ }
+
+ // ( 'as' alias = ID ) ?
+ public Group ele1Group() {
+ return (c1Group != null) ? c1Group : (c1Group = (Group)eleGroup().eContents().get(1));
+ }
+
+ // 'as'
+ public Keyword ele10KeywordAs() {
+ return (c10KeywordAs != null) ? c10KeywordAs : (c10KeywordAs = (Keyword)ele1Group().eContents().get(0));
+ }
+
+ // alias = ID
+ public Assignment ele11AssignmentAlias() {
+ return (c11AssignmentAlias != null) ? c11AssignmentAlias : (c11AssignmentAlias = (Assignment)ele1Group().eContents().get(1));
+ }
+
+ // ID
+ public RuleCall ele110LexerRuleCallID() {
+ return (c110LexerRuleCallID != null) ? c110LexerRuleCallID : (c110LexerRuleCallID = (RuleCall)ele11AssignmentAlias().eContents().get(0));
+ }
}
- public ParserRule pr_ReferencedMetamodel() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.4"),true);
+ public class ReferencedMetamodelElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Keyword c00KeywordImport;
+ private Assignment c01AssignmentUri;
+ private RuleCall c010LexerRuleCallSTRING;
+ private Group c1Group;
+ private Keyword c10KeywordAs;
+ private Assignment c11AssignmentAlias;
+ private RuleCall c110LexerRuleCallID;
+
+ // ReferencedMetamodel : 'import' uri = STRING ( 'as' alias = ID ) ? ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(5));
+ }
+
+ // 'import' uri = STRING ( 'as' alias = ID ) ?
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // 'import' uri = STRING
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // 'import'
+ public Keyword ele00KeywordImport() {
+ return (c00KeywordImport != null) ? c00KeywordImport : (c00KeywordImport = (Keyword)ele0Group().eContents().get(0));
+ }
+
+ // uri = STRING
+ public Assignment ele01AssignmentUri() {
+ return (c01AssignmentUri != null) ? c01AssignmentUri : (c01AssignmentUri = (Assignment)ele0Group().eContents().get(1));
+ }
+
+ // STRING
+ public RuleCall ele010LexerRuleCallSTRING() {
+ return (c010LexerRuleCallSTRING != null) ? c010LexerRuleCallSTRING : (c010LexerRuleCallSTRING = (RuleCall)ele01AssignmentUri().eContents().get(0));
+ }
+
+ // ( 'as' alias = ID ) ?
+ public Group ele1Group() {
+ return (c1Group != null) ? c1Group : (c1Group = (Group)eleGroup().eContents().get(1));
+ }
+
+ // 'as'
+ public Keyword ele10KeywordAs() {
+ return (c10KeywordAs != null) ? c10KeywordAs : (c10KeywordAs = (Keyword)ele1Group().eContents().get(0));
+ }
+
+ // alias = ID
+ public Assignment ele11AssignmentAlias() {
+ return (c11AssignmentAlias != null) ? c11AssignmentAlias : (c11AssignmentAlias = (Assignment)ele1Group().eContents().get(1));
+ }
+
+ // ID
+ public RuleCall ele110LexerRuleCallID() {
+ return (c110LexerRuleCallID != null) ? c110LexerRuleCallID : (c110LexerRuleCallID = (RuleCall)ele11AssignmentAlias().eContents().get(0));
+ }
}
- public ParserRule pr_LexerRule() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.5"),true);
+ public class LexerRuleElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Group c00Group;
+ private Group c000Group;
+ private Group c0000Group;
+ private Alternatives c00000Alternatives;
+ private Keyword c000000KeywordNative;
+ private Keyword c000001KeywordLexer;
+ private Assignment c00001AssignmentName;
+ private RuleCall c000010LexerRuleCallID;
+ private Group c0001Group;
+ private Keyword c00010KeywordReturns;
+ private Assignment c00011AssignmentType;
+ private RuleCall c000110ParserRuleCallTypeRef;
+ private Keyword c001Keyword;
+ private Assignment c01AssignmentBody;
+ private RuleCall c010LexerRuleCallSTRING;
+ private Keyword c1Keyword;
+
+ // LexerRule : ( 'native' | 'lexer' ) name = ID ( 'returns' type = TypeRef ) ? ':' body = STRING ';' ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(6));
+ }
+
+ // ( 'native' | 'lexer' ) name = ID ( 'returns' type = TypeRef ) ? ':' body = STRING ';'
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // ( 'native' | 'lexer' ) name = ID ( 'returns' type = TypeRef ) ? ':' body = STRING
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // ( 'native' | 'lexer' ) name = ID ( 'returns' type = TypeRef ) ? ':'
+ public Group ele00Group() {
+ return (c00Group != null) ? c00Group : (c00Group = (Group)ele0Group().eContents().get(0));
+ }
+
+ // ( 'native' | 'lexer' ) name = ID ( 'returns' type = TypeRef ) ?
+ public Group ele000Group() {
+ return (c000Group != null) ? c000Group : (c000Group = (Group)ele00Group().eContents().get(0));
+ }
+
+ // ( 'native' | 'lexer' ) name = ID
+ public Group ele0000Group() {
+ return (c0000Group != null) ? c0000Group : (c0000Group = (Group)ele000Group().eContents().get(0));
+ }
+
+ // 'native' | 'lexer'
+ public Alternatives ele00000Alternatives() {
+ return (c00000Alternatives != null) ? c00000Alternatives : (c00000Alternatives = (Alternatives)ele0000Group().eContents().get(0));
+ }
+
+ // 'native'
+ public Keyword ele000000KeywordNative() {
+ return (c000000KeywordNative != null) ? c000000KeywordNative : (c000000KeywordNative = (Keyword)ele00000Alternatives().eContents().get(0));
+ }
+
+ // 'lexer'
+ public Keyword ele000001KeywordLexer() {
+ return (c000001KeywordLexer != null) ? c000001KeywordLexer : (c000001KeywordLexer = (Keyword)ele00000Alternatives().eContents().get(1));
+ }
+
+ // name = ID
+ public Assignment ele00001AssignmentName() {
+ return (c00001AssignmentName != null) ? c00001AssignmentName : (c00001AssignmentName = (Assignment)ele0000Group().eContents().get(1));
+ }
+
+ // ID
+ public RuleCall ele000010LexerRuleCallID() {
+ return (c000010LexerRuleCallID != null) ? c000010LexerRuleCallID : (c000010LexerRuleCallID = (RuleCall)ele00001AssignmentName().eContents().get(0));
+ }
+
+ // ( 'returns' type = TypeRef ) ?
+ public Group ele0001Group() {
+ return (c0001Group != null) ? c0001Group : (c0001Group = (Group)ele000Group().eContents().get(1));
+ }
+
+ // 'returns'
+ public Keyword ele00010KeywordReturns() {
+ return (c00010KeywordReturns != null) ? c00010KeywordReturns : (c00010KeywordReturns = (Keyword)ele0001Group().eContents().get(0));
+ }
+
+ // type = TypeRef
+ public Assignment ele00011AssignmentType() {
+ return (c00011AssignmentType != null) ? c00011AssignmentType : (c00011AssignmentType = (Assignment)ele0001Group().eContents().get(1));
+ }
+
+ // TypeRef
+ public RuleCall ele000110ParserRuleCallTypeRef() {
+ return (c000110ParserRuleCallTypeRef != null) ? c000110ParserRuleCallTypeRef : (c000110ParserRuleCallTypeRef = (RuleCall)ele00011AssignmentType().eContents().get(0));
+ }
+
+ // ':'
+ public Keyword ele001Keyword() {
+ return (c001Keyword != null) ? c001Keyword : (c001Keyword = (Keyword)ele00Group().eContents().get(1));
+ }
+
+ // body = STRING
+ public Assignment ele01AssignmentBody() {
+ return (c01AssignmentBody != null) ? c01AssignmentBody : (c01AssignmentBody = (Assignment)ele0Group().eContents().get(1));
+ }
+
+ // STRING
+ public RuleCall ele010LexerRuleCallSTRING() {
+ return (c010LexerRuleCallSTRING != null) ? c010LexerRuleCallSTRING : (c010LexerRuleCallSTRING = (RuleCall)ele01AssignmentBody().eContents().get(0));
+ }
+
+ // ';'
+ public Keyword ele1Keyword() {
+ return (c1Keyword != null) ? c1Keyword : (c1Keyword = (Keyword)eleGroup().eContents().get(1));
+ }
}
- public ParserRule pr_ParserRule() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.6"),true);
+ public class ParserRuleElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Group c00Group;
+ private Group c000Group;
+ private Assignment c0000AssignmentName;
+ private RuleCall c00000LexerRuleCallID;
+ private Group c0001Group;
+ private Keyword c00010KeywordReturns;
+ private Assignment c00011AssignmentType;
+ private RuleCall c000110ParserRuleCallTypeRef;
+ private Keyword c001Keyword;
+ private Assignment c01AssignmentAlternatives;
+ private RuleCall c010ParserRuleCallAlternatives;
+ private Keyword c1Keyword;
+
+ // ParserRule : name = ID ( 'returns' type = TypeRef ) ? ':' alternatives = Alternatives ';' ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(7));
+ }
+
+ // name = ID ( 'returns' type = TypeRef ) ? ':' alternatives = Alternatives ';'
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // name = ID ( 'returns' type = TypeRef ) ? ':' alternatives = Alternatives
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // name = ID ( 'returns' type = TypeRef ) ? ':'
+ public Group ele00Group() {
+ return (c00Group != null) ? c00Group : (c00Group = (Group)ele0Group().eContents().get(0));
+ }
+
+ // name = ID ( 'returns' type = TypeRef ) ?
+ public Group ele000Group() {
+ return (c000Group != null) ? c000Group : (c000Group = (Group)ele00Group().eContents().get(0));
+ }
+
+ // name = ID
+ public Assignment ele0000AssignmentName() {
+ return (c0000AssignmentName != null) ? c0000AssignmentName : (c0000AssignmentName = (Assignment)ele000Group().eContents().get(0));
+ }
+
+ // ID
+ public RuleCall ele00000LexerRuleCallID() {
+ return (c00000LexerRuleCallID != null) ? c00000LexerRuleCallID : (c00000LexerRuleCallID = (RuleCall)ele0000AssignmentName().eContents().get(0));
+ }
+
+ // ( 'returns' type = TypeRef ) ?
+ public Group ele0001Group() {
+ return (c0001Group != null) ? c0001Group : (c0001Group = (Group)ele000Group().eContents().get(1));
+ }
+
+ // 'returns'
+ public Keyword ele00010KeywordReturns() {
+ return (c00010KeywordReturns != null) ? c00010KeywordReturns : (c00010KeywordReturns = (Keyword)ele0001Group().eContents().get(0));
+ }
+
+ // type = TypeRef
+ public Assignment ele00011AssignmentType() {
+ return (c00011AssignmentType != null) ? c00011AssignmentType : (c00011AssignmentType = (Assignment)ele0001Group().eContents().get(1));
+ }
+
+ // TypeRef
+ public RuleCall ele000110ParserRuleCallTypeRef() {
+ return (c000110ParserRuleCallTypeRef != null) ? c000110ParserRuleCallTypeRef : (c000110ParserRuleCallTypeRef = (RuleCall)ele00011AssignmentType().eContents().get(0));
+ }
+
+ // ':'
+ public Keyword ele001Keyword() {
+ return (c001Keyword != null) ? c001Keyword : (c001Keyword = (Keyword)ele00Group().eContents().get(1));
+ }
+
+ // alternatives = Alternatives
+ public Assignment ele01AssignmentAlternatives() {
+ return (c01AssignmentAlternatives != null) ? c01AssignmentAlternatives : (c01AssignmentAlternatives = (Assignment)ele0Group().eContents().get(1));
+ }
+
+ // Alternatives
+ public RuleCall ele010ParserRuleCallAlternatives() {
+ return (c010ParserRuleCallAlternatives != null) ? c010ParserRuleCallAlternatives : (c010ParserRuleCallAlternatives = (RuleCall)ele01AssignmentAlternatives().eContents().get(0));
+ }
+
+ // ';'
+ public Keyword ele1Keyword() {
+ return (c1Keyword != null) ? c1Keyword : (c1Keyword = (Keyword)eleGroup().eContents().get(1));
+ }
}
- public ParserRule pr_TypeRef() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.7"),true);
+ public class TypeRefElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Assignment c00AssignmentAlias;
+ private RuleCall c000LexerRuleCallID;
+ private Keyword c01Keyword;
+ private Assignment c1AssignmentName;
+ private RuleCall c10LexerRuleCallID;
+
+ // TypeRef : ( alias = ID '::' ) ? name = ID ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(8));
+ }
+
+ // ( alias = ID '::' ) ? name = ID
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(0));
+ }
+
+ // ( alias = ID '::' ) ?
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // alias = ID
+ public Assignment ele00AssignmentAlias() {
+ return (c00AssignmentAlias != null) ? c00AssignmentAlias : (c00AssignmentAlias = (Assignment)ele0Group().eContents().get(0));
+ }
+
+ // ID
+ public RuleCall ele000LexerRuleCallID() {
+ return (c000LexerRuleCallID != null) ? c000LexerRuleCallID : (c000LexerRuleCallID = (RuleCall)ele00AssignmentAlias().eContents().get(0));
+ }
+
+ // '::'
+ public Keyword ele01Keyword() {
+ return (c01Keyword != null) ? c01Keyword : (c01Keyword = (Keyword)ele0Group().eContents().get(1));
+ }
+
+ // 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 ParserRule pr_Alternatives() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.8"),true);
+ public class AlternativesElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private RuleCall c0ParserRuleCallGroup;
+ private Group c1Group;
+ private Group c10Group;
+ private Action c100ActionAlternativesgroups;
+ private Keyword c101Keyword;
+ private Assignment c11AssignmentGroups;
+ private RuleCall c110ParserRuleCallGroup;
+
+ // (error)
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(9));
+ }
+
+ // (error)
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(1));
+ }
+
+ // Group
+ public RuleCall ele0ParserRuleCallGroup() {
+ return (c0ParserRuleCallGroup != null) ? c0ParserRuleCallGroup : (c0ParserRuleCallGroup = (RuleCall)eleGroup().eContents().get(0));
+ }
+
+ // (error)
+ public Group ele1Group() {
+ return (c1Group != null) ? c1Group : (c1Group = (Group)eleGroup().eContents().get(1));
+ }
+
+ // (error)
+ public Group ele10Group() {
+ return (c10Group != null) ? c10Group : (c10Group = (Group)ele1Group().eContents().get(0));
+ }
+
+ // (error)
+ public Action ele100ActionAlternativesgroups() {
+ return (c100ActionAlternativesgroups != null) ? c100ActionAlternativesgroups : (c100ActionAlternativesgroups = (Action)ele10Group().eContents().get(0));
+ }
+
+ // '|'
+ public Keyword ele101Keyword() {
+ return (c101Keyword != null) ? c101Keyword : (c101Keyword = (Keyword)ele10Group().eContents().get(1));
+ }
+
+ // groups += Group
+ public Assignment ele11AssignmentGroups() {
+ return (c11AssignmentGroups != null) ? c11AssignmentGroups : (c11AssignmentGroups = (Assignment)ele1Group().eContents().get(1));
+ }
+
+ // Group
+ public RuleCall ele110ParserRuleCallGroup() {
+ return (c110ParserRuleCallGroup != null) ? c110ParserRuleCallGroup : (c110ParserRuleCallGroup = (RuleCall)ele11AssignmentGroups().eContents().get(0));
+ }
}
- public ParserRule pr_Group() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.9"),true);
+ public class GroupElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private RuleCall c0ParserRuleCallAbstractToken;
+ private Group c1Group;
+ private Action c10ActionGroupabstractTokens;
+ private Assignment c11AssignmentAbstractTokens;
+ private RuleCall c110ParserRuleCallAbstractToken;
+
+ // (error)
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(10));
+ }
+
+ // (error)
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(1));
+ }
+
+ // AbstractToken
+ public RuleCall ele0ParserRuleCallAbstractToken() {
+ return (c0ParserRuleCallAbstractToken != null) ? c0ParserRuleCallAbstractToken : (c0ParserRuleCallAbstractToken = (RuleCall)eleGroup().eContents().get(0));
+ }
+
+ // (error)
+ public Group ele1Group() {
+ return (c1Group != null) ? c1Group : (c1Group = (Group)eleGroup().eContents().get(1));
+ }
+
+ // (error)
+ public Action ele10ActionGroupabstractTokens() {
+ return (c10ActionGroupabstractTokens != null) ? c10ActionGroupabstractTokens : (c10ActionGroupabstractTokens = (Action)ele1Group().eContents().get(0));
+ }
+
+ // abstractTokens += AbstractToken
+ public Assignment ele11AssignmentAbstractTokens() {
+ return (c11AssignmentAbstractTokens != null) ? c11AssignmentAbstractTokens : (c11AssignmentAbstractTokens = (Assignment)ele1Group().eContents().get(1));
+ }
+
+ // AbstractToken
+ public RuleCall ele110ParserRuleCallAbstractToken() {
+ return (c110ParserRuleCallAbstractToken != null) ? c110ParserRuleCallAbstractToken : (c110ParserRuleCallAbstractToken = (RuleCall)ele11AssignmentAbstractTokens().eContents().get(0));
+ }
}
- public ParserRule pr_AbstractToken() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.10"),true);
+ public class AbstractTokenElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Alternatives c0Alternatives;
+ private Alternatives c00Alternatives;
+ private RuleCall c000ParserRuleCallAssignment;
+ private RuleCall c001ParserRuleCallAction;
+ private RuleCall c01ParserRuleCallAbstractTerminal;
+ private Assignment c1AssignmentCardinality;
+ private Alternatives c10Alternatives;
+ private Alternatives c100Alternatives;
+ private Keyword c1000Keyword;
+ private Keyword c1001Keyword;
+ private Keyword c101Keyword;
+
+ // (error)
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(11));
+ }
+
+ // ( Assignment | Action | AbstractTerminal ) ( cardinality = ( '?' | '*' | '+' ) ) ?
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(1));
+ }
+
+ // Assignment | Action | AbstractTerminal
+ public Alternatives ele0Alternatives() {
+ return (c0Alternatives != null) ? c0Alternatives : (c0Alternatives = (Alternatives)eleGroup().eContents().get(0));
+ }
+
+ // Assignment | Action
+ public Alternatives ele00Alternatives() {
+ return (c00Alternatives != null) ? c00Alternatives : (c00Alternatives = (Alternatives)ele0Alternatives().eContents().get(0));
+ }
+
+ // Assignment
+ public RuleCall ele000ParserRuleCallAssignment() {
+ return (c000ParserRuleCallAssignment != null) ? c000ParserRuleCallAssignment : (c000ParserRuleCallAssignment = (RuleCall)ele00Alternatives().eContents().get(0));
+ }
+
+ // Action
+ public RuleCall ele001ParserRuleCallAction() {
+ return (c001ParserRuleCallAction != null) ? c001ParserRuleCallAction : (c001ParserRuleCallAction = (RuleCall)ele00Alternatives().eContents().get(1));
+ }
+
+ // AbstractTerminal
+ public RuleCall ele01ParserRuleCallAbstractTerminal() {
+ return (c01ParserRuleCallAbstractTerminal != null) ? c01ParserRuleCallAbstractTerminal : (c01ParserRuleCallAbstractTerminal = (RuleCall)ele0Alternatives().eContents().get(1));
+ }
+
+ // ( cardinality = ( '?' | '*' | '+' ) ) ?
+ public Assignment ele1AssignmentCardinality() {
+ return (c1AssignmentCardinality != null) ? c1AssignmentCardinality : (c1AssignmentCardinality = (Assignment)eleGroup().eContents().get(1));
+ }
+
+ // '?' | '*' | '+'
+ public Alternatives ele10Alternatives() {
+ return (c10Alternatives != null) ? c10Alternatives : (c10Alternatives = (Alternatives)ele1AssignmentCardinality().eContents().get(0));
+ }
+
+ // '?' | '*'
+ public Alternatives ele100Alternatives() {
+ return (c100Alternatives != null) ? c100Alternatives : (c100Alternatives = (Alternatives)ele10Alternatives().eContents().get(0));
+ }
+
+ // '?'
+ public Keyword ele1000Keyword() {
+ return (c1000Keyword != null) ? c1000Keyword : (c1000Keyword = (Keyword)ele100Alternatives().eContents().get(0));
+ }
+
+ // '*'
+ public Keyword ele1001Keyword() {
+ return (c1001Keyword != null) ? c1001Keyword : (c1001Keyword = (Keyword)ele100Alternatives().eContents().get(1));
+ }
+
+ // '+'
+ public Keyword ele101Keyword() {
+ return (c101Keyword != null) ? c101Keyword : (c101Keyword = (Keyword)ele10Alternatives().eContents().get(1));
+ }
}
- public ParserRule pr_Assignment() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.11"),true);
+ public class AssignmentElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Assignment c00AssignmentFeature;
+ private RuleCall c000LexerRuleCallID;
+ private Assignment c01AssignmentOperator;
+ private Alternatives c010Alternatives;
+ private Alternatives c0100Alternatives;
+ private Keyword c01000Keyword;
+ private Keyword c01001Keyword;
+ private Keyword c0101Keyword;
+ private Assignment c1AssignmentTerminal;
+ private RuleCall c10ParserRuleCallAbstractTerminal;
+
+ // (error)
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(12));
+ }
+
+ // feature = ID operator = ( '+=' | '=' | '?=' ) terminal = AbstractTerminal
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(1));
+ }
+
+ // feature = ID operator = ( '+=' | '=' | '?=' )
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // feature = ID
+ public Assignment ele00AssignmentFeature() {
+ return (c00AssignmentFeature != null) ? c00AssignmentFeature : (c00AssignmentFeature = (Assignment)ele0Group().eContents().get(0));
+ }
+
+ // ID
+ public RuleCall ele000LexerRuleCallID() {
+ return (c000LexerRuleCallID != null) ? c000LexerRuleCallID : (c000LexerRuleCallID = (RuleCall)ele00AssignmentFeature().eContents().get(0));
+ }
+
+ // operator = ( '+=' | '=' | '?=' )
+ public Assignment ele01AssignmentOperator() {
+ return (c01AssignmentOperator != null) ? c01AssignmentOperator : (c01AssignmentOperator = (Assignment)ele0Group().eContents().get(1));
+ }
+
+ // '+=' | '=' | '?='
+ public Alternatives ele010Alternatives() {
+ return (c010Alternatives != null) ? c010Alternatives : (c010Alternatives = (Alternatives)ele01AssignmentOperator().eContents().get(0));
+ }
+
+ // '+=' | '='
+ public Alternatives ele0100Alternatives() {
+ return (c0100Alternatives != null) ? c0100Alternatives : (c0100Alternatives = (Alternatives)ele010Alternatives().eContents().get(0));
+ }
+
+ // '+='
+ public Keyword ele01000Keyword() {
+ return (c01000Keyword != null) ? c01000Keyword : (c01000Keyword = (Keyword)ele0100Alternatives().eContents().get(0));
+ }
+
+ // '='
+ public Keyword ele01001Keyword() {
+ return (c01001Keyword != null) ? c01001Keyword : (c01001Keyword = (Keyword)ele0100Alternatives().eContents().get(1));
+ }
+
+ // '?='
+ public Keyword ele0101Keyword() {
+ return (c0101Keyword != null) ? c0101Keyword : (c0101Keyword = (Keyword)ele010Alternatives().eContents().get(1));
+ }
+
+ // terminal = AbstractTerminal
+ public Assignment ele1AssignmentTerminal() {
+ return (c1AssignmentTerminal != null) ? c1AssignmentTerminal : (c1AssignmentTerminal = (Assignment)eleGroup().eContents().get(1));
+ }
+
+ // AbstractTerminal
+ public RuleCall ele10ParserRuleCallAbstractTerminal() {
+ return (c10ParserRuleCallAbstractTerminal != null) ? c10ParserRuleCallAbstractTerminal : (c10ParserRuleCallAbstractTerminal = (RuleCall)ele1AssignmentTerminal().eContents().get(0));
+ }
}
- public ParserRule pr_Action() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.12"),true);
+ public class ActionElements 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 c0000000Keyword;
+ private Group c0000001Group;
+ private Keyword c00000010KeywordCurrent;
+ private Keyword c00000011Keyword;
+ private Assignment c000001AssignmentTypeName;
+ private RuleCall c0000010ParserRuleCallTypeRef;
+ private Keyword c00001Keyword;
+ private Assignment c0001AssignmentFeature;
+ private RuleCall c00010LexerRuleCallID;
+ private Assignment c001AssignmentOperator;
+ private Alternatives c0010Alternatives;
+ private Keyword c00100Keyword;
+ private Keyword c00101Keyword;
+ private Keyword c01KeywordCurrent;
+ private Keyword c1Keyword;
+
+ // (error)
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(13));
+ }
+
+ // '{' ( 'current' '=' ) ? typeName = TypeRef '.' feature = ID operator = ( '=' | '+=' ) 'current' '}'
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(1));
+ }
+
+ // '{' ( 'current' '=' ) ? typeName = TypeRef '.' feature = ID operator = ( '=' | '+=' ) 'current'
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // '{' ( 'current' '=' ) ? typeName = TypeRef '.' feature = ID operator = ( '=' | '+=' )
+ public Group ele00Group() {
+ return (c00Group != null) ? c00Group : (c00Group = (Group)ele0Group().eContents().get(0));
+ }
+
+ // '{' ( 'current' '=' ) ? typeName = TypeRef '.' feature = ID
+ public Group ele000Group() {
+ return (c000Group != null) ? c000Group : (c000Group = (Group)ele00Group().eContents().get(0));
+ }
+
+ // '{' ( 'current' '=' ) ? typeName = TypeRef '.'
+ public Group ele0000Group() {
+ return (c0000Group != null) ? c0000Group : (c0000Group = (Group)ele000Group().eContents().get(0));
+ }
+
+ // '{' ( 'current' '=' ) ? typeName = TypeRef
+ public Group ele00000Group() {
+ return (c00000Group != null) ? c00000Group : (c00000Group = (Group)ele0000Group().eContents().get(0));
+ }
+
+ // '{' ( 'current' '=' ) ?
+ public Group ele000000Group() {
+ return (c000000Group != null) ? c000000Group : (c000000Group = (Group)ele00000Group().eContents().get(0));
+ }
+
+ // '{'
+ public Keyword ele0000000Keyword() {
+ return (c0000000Keyword != null) ? c0000000Keyword : (c0000000Keyword = (Keyword)ele000000Group().eContents().get(0));
+ }
+
+ // ( 'current' '=' ) ?
+ public Group ele0000001Group() {
+ return (c0000001Group != null) ? c0000001Group : (c0000001Group = (Group)ele000000Group().eContents().get(1));
+ }
+
+ // 'current'
+ public Keyword ele00000010KeywordCurrent() {
+ return (c00000010KeywordCurrent != null) ? c00000010KeywordCurrent : (c00000010KeywordCurrent = (Keyword)ele0000001Group().eContents().get(0));
+ }
+
+ // '='
+ public Keyword ele00000011Keyword() {
+ return (c00000011Keyword != null) ? c00000011Keyword : (c00000011Keyword = (Keyword)ele0000001Group().eContents().get(1));
+ }
+
+ // typeName = TypeRef
+ public Assignment ele000001AssignmentTypeName() {
+ return (c000001AssignmentTypeName != null) ? c000001AssignmentTypeName : (c000001AssignmentTypeName = (Assignment)ele00000Group().eContents().get(1));
+ }
+
+ // TypeRef
+ public RuleCall ele0000010ParserRuleCallTypeRef() {
+ return (c0000010ParserRuleCallTypeRef != null) ? c0000010ParserRuleCallTypeRef : (c0000010ParserRuleCallTypeRef = (RuleCall)ele000001AssignmentTypeName().eContents().get(0));
+ }
+
+ // '.'
+ public Keyword ele00001Keyword() {
+ return (c00001Keyword != null) ? c00001Keyword : (c00001Keyword = (Keyword)ele0000Group().eContents().get(1));
+ }
+
+ // feature = ID
+ public Assignment ele0001AssignmentFeature() {
+ return (c0001AssignmentFeature != null) ? c0001AssignmentFeature : (c0001AssignmentFeature = (Assignment)ele000Group().eContents().get(1));
+ }
+
+ // ID
+ public RuleCall ele00010LexerRuleCallID() {
+ return (c00010LexerRuleCallID != null) ? c00010LexerRuleCallID : (c00010LexerRuleCallID = (RuleCall)ele0001AssignmentFeature().eContents().get(0));
+ }
+
+ // operator = ( '=' | '+=' )
+ public Assignment ele001AssignmentOperator() {
+ return (c001AssignmentOperator != null) ? c001AssignmentOperator : (c001AssignmentOperator = (Assignment)ele00Group().eContents().get(1));
+ }
+
+ // '=' | '+='
+ public Alternatives ele0010Alternatives() {
+ return (c0010Alternatives != null) ? c0010Alternatives : (c0010Alternatives = (Alternatives)ele001AssignmentOperator().eContents().get(0));
+ }
+
+ // '='
+ public Keyword ele00100Keyword() {
+ return (c00100Keyword != null) ? c00100Keyword : (c00100Keyword = (Keyword)ele0010Alternatives().eContents().get(0));
+ }
+
+ // '+='
+ public Keyword ele00101Keyword() {
+ return (c00101Keyword != null) ? c00101Keyword : (c00101Keyword = (Keyword)ele0010Alternatives().eContents().get(1));
+ }
+
+ // 'current'
+ public Keyword ele01KeywordCurrent() {
+ return (c01KeywordCurrent != null) ? c01KeywordCurrent : (c01KeywordCurrent = (Keyword)ele0Group().eContents().get(1));
+ }
+
+ // '}'
+ public Keyword ele1Keyword() {
+ return (c1Keyword != null) ? c1Keyword : (c1Keyword = (Keyword)eleGroup().eContents().get(1));
+ }
}
- public ParserRule pr_AbstractTerminal() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.13"),true);
+ public class AbstractTerminalElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Alternatives cAlternatives;
+ private Alternatives c0Alternatives;
+ private Alternatives c00Alternatives;
+ private RuleCall c000ParserRuleCallKeyword;
+ private RuleCall c001ParserRuleCallRuleCall;
+ private RuleCall c01ParserRuleCallParenthesizedElement;
+ private RuleCall c1ParserRuleCallCrossReference;
+
+ // (error)
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(14));
+ }
+
+ // Keyword | RuleCall | ParenthesizedElement | CrossReference
+ public Alternatives eleAlternatives() {
+ return (cAlternatives != null) ? cAlternatives : (cAlternatives = (Alternatives)getRule().eContents().get(1));
+ }
+
+ // Keyword | RuleCall | ParenthesizedElement
+ public Alternatives ele0Alternatives() {
+ return (c0Alternatives != null) ? c0Alternatives : (c0Alternatives = (Alternatives)eleAlternatives().eContents().get(0));
+ }
+
+ // Keyword | RuleCall
+ public Alternatives ele00Alternatives() {
+ return (c00Alternatives != null) ? c00Alternatives : (c00Alternatives = (Alternatives)ele0Alternatives().eContents().get(0));
+ }
+
+ // Keyword
+ public RuleCall ele000ParserRuleCallKeyword() {
+ return (c000ParserRuleCallKeyword != null) ? c000ParserRuleCallKeyword : (c000ParserRuleCallKeyword = (RuleCall)ele00Alternatives().eContents().get(0));
+ }
+
+ // RuleCall
+ public RuleCall ele001ParserRuleCallRuleCall() {
+ return (c001ParserRuleCallRuleCall != null) ? c001ParserRuleCallRuleCall : (c001ParserRuleCallRuleCall = (RuleCall)ele00Alternatives().eContents().get(1));
+ }
+
+ // ParenthesizedElement
+ public RuleCall ele01ParserRuleCallParenthesizedElement() {
+ return (c01ParserRuleCallParenthesizedElement != null) ? c01ParserRuleCallParenthesizedElement : (c01ParserRuleCallParenthesizedElement = (RuleCall)ele0Alternatives().eContents().get(1));
+ }
+
+ // CrossReference
+ public RuleCall ele1ParserRuleCallCrossReference() {
+ return (c1ParserRuleCallCrossReference != null) ? c1ParserRuleCallCrossReference : (c1ParserRuleCallCrossReference = (RuleCall)eleAlternatives().eContents().get(1));
+ }
}
- public ParserRule pr_CrossReference() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.14"),true);
+ public class CrossReferenceElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Group c00Group;
+ private Keyword c000Keyword;
+ private Assignment c001AssignmentType;
+ private RuleCall c0010ParserRuleCallTypeRef;
+ private Group c01Group;
+ private Keyword c010Keyword;
+ private Assignment c011AssignmentRule;
+ private CrossReference c0110CrossReferenceLexerRule;
+ private Keyword c1Keyword;
+
+ // (error)
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(15));
+ }
+
+ // (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));
+ }
+
+ // '[' type = TypeRef
+ public Group ele00Group() {
+ return (c00Group != null) ? c00Group : (c00Group = (Group)ele0Group().eContents().get(0));
+ }
+
+ // '['
+ public Keyword ele000Keyword() {
+ return (c000Keyword != null) ? c000Keyword : (c000Keyword = (Keyword)ele00Group().eContents().get(0));
+ }
+
+ // type = TypeRef
+ public Assignment ele001AssignmentType() {
+ return (c001AssignmentType != null) ? c001AssignmentType : (c001AssignmentType = (Assignment)ele00Group().eContents().get(1));
+ }
+
+ // TypeRef
+ public RuleCall ele0010ParserRuleCallTypeRef() {
+ return (c0010ParserRuleCallTypeRef != null) ? c0010ParserRuleCallTypeRef : (c0010ParserRuleCallTypeRef = (RuleCall)ele001AssignmentType().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 ele011AssignmentRule() {
+ return (c011AssignmentRule != null) ? c011AssignmentRule : (c011AssignmentRule = (Assignment)ele01Group().eContents().get(1));
+ }
+
+ // (error)
+ public CrossReference ele0110CrossReferenceLexerRule() {
+ return (c0110CrossReferenceLexerRule != null) ? c0110CrossReferenceLexerRule : (c0110CrossReferenceLexerRule = (CrossReference)ele011AssignmentRule().eContents().get(0));
+ }
+
+ // ']'
+ public Keyword ele1Keyword() {
+ return (c1Keyword != null) ? c1Keyword : (c1Keyword = (Keyword)eleGroup().eContents().get(1));
+ }
}
- public ParserRule pr_ParenthesizedElement() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.15"),true);
+ public class ParenthesizedElementElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Group cGroup;
+ private Group c0Group;
+ private Keyword c00Keyword;
+ private RuleCall c01ParserRuleCallAlternatives;
+ private Keyword c1Keyword;
+
+ // (error)
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(16));
+ }
+
+ // '(' Alternatives ')'
+ public Group eleGroup() {
+ return (cGroup != null) ? cGroup : (cGroup = (Group)getRule().eContents().get(1));
+ }
+
+ // '(' Alternatives
+ public Group ele0Group() {
+ return (c0Group != null) ? c0Group : (c0Group = (Group)eleGroup().eContents().get(0));
+ }
+
+ // '('
+ public Keyword ele00Keyword() {
+ return (c00Keyword != null) ? c00Keyword : (c00Keyword = (Keyword)ele0Group().eContents().get(0));
+ }
+
+ // Alternatives
+ public RuleCall ele01ParserRuleCallAlternatives() {
+ return (c01ParserRuleCallAlternatives != null) ? c01ParserRuleCallAlternatives : (c01ParserRuleCallAlternatives = (RuleCall)ele0Group().eContents().get(1));
+ }
+
+ // ')'
+ public Keyword ele1Keyword() {
+ return (c1Keyword != null) ? c1Keyword : (c1Keyword = (Keyword)eleGroup().eContents().get(1));
+ }
}
- public ParserRule pr_Keyword() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.16"),true);
+ public class KeywordElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Assignment cAssignmentValue;
+ private RuleCall c0LexerRuleCallSTRING;
+
+ // Keyword : value = STRING ;
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(17));
+ }
+
+ // value = STRING
+ public Assignment eleAssignmentValue() {
+ return (cAssignmentValue != null) ? cAssignmentValue : (cAssignmentValue = (Assignment)getRule().eContents().get(0));
+ }
+
+ // STRING
+ public RuleCall ele0LexerRuleCallSTRING() {
+ return (c0LexerRuleCallSTRING != null) ? c0LexerRuleCallSTRING : (c0LexerRuleCallSTRING = (RuleCall)eleAssignmentValue().eContents().get(0));
+ }
}
- public ParserRule pr_RuleCall() {
- return (ParserRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/XtextGrammarTest.xmi#//@rules.17"),true);
+ public class RuleCallElements implements IParserRuleAccess {
+ private ParserRule rule;
+ private Assignment cAssignmentRule;
+ private CrossReference c0CrossReferenceAbstractRule;
+
+ // (error)
+ public ParserRule getRule() {
+ return (rule != null) ? rule : (rule = (ParserRule) getGrammar().eContents().get(18));
+ }
+
+ // (error)
+ public Assignment eleAssignmentRule() {
+ return (cAssignmentRule != null) ? cAssignmentRule : (cAssignmentRule = (Assignment)getRule().eContents().get(0));
+ }
+
+ // (error)
+ public CrossReference ele0CrossReferenceAbstractRule() {
+ return (c0CrossReferenceAbstractRule != null) ? c0CrossReferenceAbstractRule : (c0CrossReferenceAbstractRule = (CrossReference)eleAssignmentRule().eContents().get(0));
+ }
}
+
+ public final static XtextGrammarTestGrammarAccess INSTANCE = new XtextGrammarTestGrammarAccess();
+
+ private static final String XTEXTGRAMMARTEST_GRAMMAR_CP_URI = "classpath:/org/eclipse/xtext/XtextGrammarTest.xmi";
+ private static Grammar GRAMMAR = null;
+ private static GrammarElements pGrammar;
+ private static AbstractRuleElements pAbstractRule;
+ private static AbstractMetamodelDeclarationElements pAbstractMetamodelDeclaration;
+ private static GeneratedMetamodelElements pGeneratedMetamodel;
+ private static ReferencedMetamodelElements pReferencedMetamodel;
+ private static LexerRuleElements pLexerRule;
+ private static ParserRuleElements pParserRule;
+ private static TypeRefElements pTypeRef;
+ private static AlternativesElements pAlternatives;
+ private static GroupElements pGroup;
+ private static AbstractTokenElements pAbstractToken;
+ private static AssignmentElements pAssignment;
+ private static ActionElements pAction;
+ private static AbstractTerminalElements pAbstractTerminal;
+ private static CrossReferenceElements pCrossReference;
+ private static ParenthesizedElementElements pParenthesizedElement;
+ private static KeywordElements pKeyword;
+ private static RuleCallElements pRuleCall;
+ @SuppressWarnings("unused")
+ public synchronized Grammar getGrammar() {
+ if (GRAMMAR==null) {
+ // assert the XtextPackage implementation is loaded
+ XtextPackage xtextPackage = XtextPackage.eINSTANCE;
+ GRAMMAR = (Grammar) loadGrammarFile(XtextGrammarTestGrammarAccess.class.getClassLoader(),XTEXTGRAMMARTEST_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);
- }
+
+ // Grammar : ( abstract ?= 'abstract language' | 'language' ) idElements += ID ( '.' idElements += ID ) * ( 'extends' superGrammarIdElements += ID ( '.' superGrammarIdElements += ID ) * ) ? ( metamodelDeclarations += AbstractMetamodelDeclaration ) * ( rules += AbstractRule ) + ;
+ public GrammarElements prGrammar() {
+ return (pGrammar != null) ? pGrammar : (pGrammar = new GrammarElements());
+ }
- public LexerRule lr_STRING() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.2"),true);
- }
+ // AbstractRule : LexerRule | ParserRule ;
+ public AbstractRuleElements prAbstractRule() {
+ return (pAbstractRule != null) ? pAbstractRule : (pAbstractRule = new AbstractRuleElements());
+ }
- public LexerRule lr_ML_COMMENT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.3"),true);
- }
+ // AbstractMetamodelDeclaration : GeneratedMetamodel | ReferencedMetamodel ;
+ public AbstractMetamodelDeclarationElements prAbstractMetamodelDeclaration() {
+ return (pAbstractMetamodelDeclaration != null) ? pAbstractMetamodelDeclaration : (pAbstractMetamodelDeclaration = new AbstractMetamodelDeclarationElements());
+ }
- public LexerRule lr_SL_COMMENT() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.4"),true);
- }
+ // GeneratedMetamodel : 'generate' name = ID nsURI = STRING ( 'as' alias = ID ) ? ;
+ public GeneratedMetamodelElements prGeneratedMetamodel() {
+ return (pGeneratedMetamodel != null) ? pGeneratedMetamodel : (pGeneratedMetamodel = new GeneratedMetamodelElements());
+ }
- public LexerRule lr_WS() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.5"),true);
- }
+ // ReferencedMetamodel : 'import' uri = STRING ( 'as' alias = ID ) ? ;
+ public ReferencedMetamodelElements prReferencedMetamodel() {
+ return (pReferencedMetamodel != null) ? pReferencedMetamodel : (pReferencedMetamodel = new ReferencedMetamodelElements());
+ }
- public LexerRule lr_ANY_OTHER() {
- return (LexerRule) getGrammar().eResource().getResourceSet().getEObject(URI.createURI("classpath:/org/eclipse/xtext/builtin/XtextBuiltin.xmi#//@rules.6"),true);
- }
+ // LexerRule : ( 'native' | 'lexer' ) name = ID ( 'returns' type = TypeRef ) ? ':' body = STRING ';' ;
+ public LexerRuleElements prLexerRule() {
+ return (pLexerRule != null) ? pLexerRule : (pLexerRule = new LexerRuleElements());
+ }
+
+ // ParserRule : name = ID ( 'returns' type = TypeRef ) ? ':' alternatives = Alternatives ';' ;
+ public ParserRuleElements prParserRule() {
+ return (pParserRule != null) ? pParserRule : (pParserRule = new ParserRuleElements());
+ }
+
+ // TypeRef : ( alias = ID '::' ) ? name = ID ;
+ public TypeRefElements prTypeRef() {
+ return (pTypeRef != null) ? pTypeRef : (pTypeRef = new TypeRefElements());
+ }
+
+ // (error)
+ public AlternativesElements prAlternatives() {
+ return (pAlternatives != null) ? pAlternatives : (pAlternatives = new AlternativesElements());
+ }
+
+ // (error)
+ public GroupElements prGroup() {
+ return (pGroup != null) ? pGroup : (pGroup = new GroupElements());
+ }
+
+ // (error)
+ public AbstractTokenElements prAbstractToken() {
+ return (pAbstractToken != null) ? pAbstractToken : (pAbstractToken = new AbstractTokenElements());
+ }
+
+ // (error)
+ public AssignmentElements prAssignment() {
+ return (pAssignment != null) ? pAssignment : (pAssignment = new AssignmentElements());
+ }
+
+ // (error)
+ public ActionElements prAction() {
+ return (pAction != null) ? pAction : (pAction = new ActionElements());
+ }
+
+ // (error)
+ public AbstractTerminalElements prAbstractTerminal() {
+ return (pAbstractTerminal != null) ? pAbstractTerminal : (pAbstractTerminal = new AbstractTerminalElements());
+ }
+
+ // (error)
+ public CrossReferenceElements prCrossReference() {
+ return (pCrossReference != null) ? pCrossReference : (pCrossReference = new CrossReferenceElements());
+ }
+
+ // (error)
+ public ParenthesizedElementElements prParenthesizedElement() {
+ return (pParenthesizedElement != null) ? pParenthesizedElement : (pParenthesizedElement = new ParenthesizedElementElements());
+ }
+
+ // Keyword : value = STRING ;
+ public KeywordElements prKeyword() {
+ return (pKeyword != null) ? pKeyword : (pKeyword = new KeywordElements());
+ }
-
+ // (error)
+ public RuleCallElements prRuleCall() {
+ return (pRuleCall != null) ? pRuleCall : (pRuleCall = new RuleCallElements());
+ }
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/ReferenceGrammar.ecore b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/ReferenceGrammar.ecore
index d5d6059..e06ff31 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/ReferenceGrammar.ecore
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/ReferenceGrammar.ecore
@@ -13,12 +13,12 @@
<eStructuralFeatures xsi:type="ecore:EReference" name="familie" upperBound="-1" eType="//Familie" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Person">
- <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>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="age">
+ <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
+ </eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Kind" eSuperTypes="//Person"/>
<eClassifiers xsi:type="ecore:EClass" name="Erwachsener" eSuperTypes="//Person"/>
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalActionTestLanguageLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalActionTestLanguageLexer.java
index 341ae17..c2b587c 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalActionTestLanguageLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalActionTestLanguageLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalActionTestLanguage.g 2008-12-03 21:38:43
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalActionTestLanguage.g 2008-12-04 21:06:54
package org.eclipse.xtext.testlanguages.parser.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalActionTestLanguageParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalActionTestLanguageParser.java
index add34a3..b3d1991 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalActionTestLanguageParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalActionTestLanguageParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalActionTestLanguage.g 2008-12-03 21:38:43
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalActionTestLanguage.g 2008-12-04 21:06:54
package org.eclipse.xtext.testlanguages.parser.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguageLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguageLexer.java
index 98cc524..5c6a0c8 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguageLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguageLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g 2008-12-03 21:43:19
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g 2008-12-04 21:07:00
package org.eclipse.xtext.testlanguages.parser.internal;
@@ -33,14 +33,14 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
public InternalContentAssistTestLanguageLexer(CharStream input) {
super(input);
}
- public String getGrammarFileName() { return "../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g"; }
+ public String getGrammarFileName() { return "./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g"; }
// $ANTLR start T11
public final void mT11() throws RecognitionException {
try {
int _type = T11;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:10:5: ( 'abstract rules' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:10:7: 'abstract rules'
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:10:5: ( 'abstract rules' )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:10:7: 'abstract rules'
{
match("abstract rules");
@@ -58,8 +58,8 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
public final void mT12() throws RecognitionException {
try {
int _type = T12;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:11:5: ( 'end' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:11:7: 'end'
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:11:5: ( 'end' )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:11:7: 'end'
{
match("end");
@@ -77,8 +77,8 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
public final void mT13() throws RecognitionException {
try {
int _type = T13;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:12:5: ( '(' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:12:7: '('
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:12:5: ( '(' )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:12:7: '('
{
match('(');
@@ -95,8 +95,8 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
public final void mT14() throws RecognitionException {
try {
int _type = T14;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:13:5: ( ')' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:13:7: ')'
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:13:5: ( ')' )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:13:7: ')'
{
match(')');
@@ -113,8 +113,8 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
public final void mT15() throws RecognitionException {
try {
int _type = T15;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:14:5: ( ';' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:14:7: ';'
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:14:5: ( ';' )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:14:7: ';'
{
match(';');
@@ -131,8 +131,8 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
public final void mT16() throws RecognitionException {
try {
int _type = T16;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:15:5: ( 'rule' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:15:7: 'rule'
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:15:5: ( 'rule' )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:15:7: 'rule'
{
match("rule");
@@ -150,8 +150,8 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
public final void mT17() throws RecognitionException {
try {
int _type = T17;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:16:5: ( ':' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:16:7: ':'
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:16:5: ( ':' )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:16:7: ':'
{
match(':');
@@ -168,10 +168,10 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
public final void mRULE_ID() throws RecognitionException {
try {
int _type = RULE_ID;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:291:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:291:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:291:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:291:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:291:11: ( '^' )?
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:291:11: ( '^' )?
int alt1=2;
int LA1_0 = input.LA(1);
@@ -180,7 +180,7 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
}
switch (alt1) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:291:12: '^'
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:291:12: '^'
{
match('^');
@@ -199,7 +199,7 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
recover(mse); throw mse;
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:291:41: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:291:41: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
loop2:
do {
int alt2=2;
@@ -212,7 +212,7 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
switch (alt2) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:
{
if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
input.consume();
@@ -247,10 +247,10 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
public final void mRULE_INT() throws RecognitionException {
try {
int _type = RULE_INT;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:293:10: ( ( '0' .. '9' )+ )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:293:12: ( '0' .. '9' )+
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:293:10: ( ( '0' .. '9' )+ )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:293:12: ( '0' .. '9' )+
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:293:12: ( '0' .. '9' )+
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:293:12: ( '0' .. '9' )+
int cnt3=0;
loop3:
do {
@@ -264,7 +264,7 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
switch (alt3) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:293:13: '0' .. '9'
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:293:13: '0' .. '9'
{
matchRange('0','9');
@@ -294,7 +294,7 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
public final void mRULE_STRING() throws RecognitionException {
try {
int _type = RULE_STRING;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:295:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\"' ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\\'' ) )* '\\'' )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:295:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\"' ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\\'' ) )* '\\'' )
int alt6=2;
int LA6_0 = input.LA(1);
@@ -312,10 +312,10 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
}
switch (alt6) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:295:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\"' ) )* '\"'
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:295:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\"' ) )* '\"'
{
match('\"');
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:295:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\"' ) )*
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:295:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\"' ) )*
loop4:
do {
int alt4=3;
@@ -331,7 +331,7 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
switch (alt4) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:295:21: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:295:21: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' )
{
match('\\');
if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||input.LA(1)=='t' ) {
@@ -348,7 +348,7 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
}
break;
case 2 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:295:65: ~ ( '\\\\' | '\"' )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:295:65: ~ ( '\\\\' | '\"' )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFE') ) {
input.consume();
@@ -374,10 +374,10 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
}
break;
case 2 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:295:101: '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\\'' ) )* '\\''
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:295:101: '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\\'' ) )* '\\''
{
match('\'');
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:295:106: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\\'' ) )*
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:295:106: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\\'' ) )*
loop5:
do {
int alt5=3;
@@ -393,7 +393,7 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
switch (alt5) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:295:108: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:295:108: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' )
{
match('\\');
if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||input.LA(1)=='t' ) {
@@ -410,7 +410,7 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
}
break;
case 2 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:295:152: ~ ( '\\\\' | '\\'' )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:295:152: ~ ( '\\\\' | '\\'' )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFE') ) {
input.consume();
@@ -448,12 +448,12 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
public final void mRULE_ML_COMMENT() throws RecognitionException {
try {
int _type = RULE_ML_COMMENT;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:297:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:297:19: '/*' ( options {greedy=false; } : . )* '*/'
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:297:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:297:19: '/*' ( options {greedy=false; } : . )* '*/'
{
match("/*");
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:297:24: ( options {greedy=false; } : . )*
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:297:24: ( options {greedy=false; } : . )*
loop7:
do {
int alt7=2;
@@ -478,7 +478,7 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
switch (alt7) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:297:52: .
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:297:52: .
{
matchAny();
@@ -507,12 +507,12 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
public final void mRULE_SL_COMMENT() throws RecognitionException {
try {
int _type = RULE_SL_COMMENT;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:299:17: ( '//' (~ ( '\\n' | '\\r' ) )* ( ( '\\r' )? '\\n' )? )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:299:19: '//' (~ ( '\\n' | '\\r' ) )* ( ( '\\r' )? '\\n' )?
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:299:17: ( '//' (~ ( '\\n' | '\\r' ) )* ( ( '\\r' )? '\\n' )? )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:299:19: '//' (~ ( '\\n' | '\\r' ) )* ( ( '\\r' )? '\\n' )?
{
match("//");
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:299:24: (~ ( '\\n' | '\\r' ) )*
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:299:24: (~ ( '\\n' | '\\r' ) )*
loop8:
do {
int alt8=2;
@@ -525,7 +525,7 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
switch (alt8) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:299:24: ~ ( '\\n' | '\\r' )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:299:24: ~ ( '\\n' | '\\r' )
{
if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFE') ) {
input.consume();
@@ -546,7 +546,7 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
}
} while (true);
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:299:38: ( ( '\\r' )? '\\n' )?
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:299:38: ( ( '\\r' )? '\\n' )?
int alt10=2;
int LA10_0 = input.LA(1);
@@ -555,9 +555,9 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
}
switch (alt10) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:299:39: ( '\\r' )? '\\n'
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:299:39: ( '\\r' )? '\\n'
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:299:39: ( '\\r' )?
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:299:39: ( '\\r' )?
int alt9=2;
int LA9_0 = input.LA(1);
@@ -566,7 +566,7 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
}
switch (alt9) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:299:39: '\\r'
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:299:39: '\\r'
{
match('\r');
@@ -597,10 +597,10 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
public final void mRULE_WS() throws RecognitionException {
try {
int _type = RULE_WS;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:301:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:301:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:301:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:301:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:301:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:301:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
int cnt11=0;
loop11:
do {
@@ -614,7 +614,7 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
switch (alt11) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:
{
if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) {
input.consume();
@@ -654,8 +654,8 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
public final void mRULE_ANY_OTHER() throws RecognitionException {
try {
int _type = RULE_ANY_OTHER;
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:303:16: ( . )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:303:18: .
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:303:16: ( . )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:303:18: .
{
matchAny();
@@ -669,7 +669,7 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
// $ANTLR end RULE_ANY_OTHER
public void mTokens() throws RecognitionException {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:8: ( T11 | T12 | T13 | T14 | T15 | T16 | T17 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:8: ( T11 | T12 | T13 | T14 | T15 | T16 | T17 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER )
int alt12=14;
int LA12_0 = input.LA(1);
@@ -847,98 +847,98 @@ public class InternalContentAssistTestLanguageLexer extends Lexer {
}
switch (alt12) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:10: T11
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:10: T11
{
mT11();
}
break;
case 2 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:14: T12
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:14: T12
{
mT12();
}
break;
case 3 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:18: T13
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:18: T13
{
mT13();
}
break;
case 4 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:22: T14
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:22: T14
{
mT14();
}
break;
case 5 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:26: T15
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:26: T15
{
mT15();
}
break;
case 6 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:30: T16
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:30: T16
{
mT16();
}
break;
case 7 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:34: T17
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:34: T17
{
mT17();
}
break;
case 8 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:38: RULE_ID
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:38: RULE_ID
{
mRULE_ID();
}
break;
case 9 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:46: RULE_INT
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:46: RULE_INT
{
mRULE_INT();
}
break;
case 10 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:55: RULE_STRING
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:55: RULE_STRING
{
mRULE_STRING();
}
break;
case 11 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:67: RULE_ML_COMMENT
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:67: RULE_ML_COMMENT
{
mRULE_ML_COMMENT();
}
break;
case 12 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:83: RULE_SL_COMMENT
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:83: RULE_SL_COMMENT
{
mRULE_SL_COMMENT();
}
break;
case 13 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:99: RULE_WS
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:99: RULE_WS
{
mRULE_WS();
}
break;
case 14 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:107: RULE_ANY_OTHER
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:1:107: RULE_ANY_OTHER
{
mRULE_ANY_OTHER();
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguageParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguageParser.java
index eaebb9c..4eb9efb 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguageParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguageParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g 2008-12-03 21:43:19
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g 2008-12-04 21:07:00
package org.eclipse.xtext.testlanguages.parser.internal;
@@ -37,7 +37,7 @@ public class InternalContentAssistTestLanguageParser extends AbstractAntlrParser
public String[] getTokenNames() { return tokenNames; }
- public String getGrammarFileName() { return "../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g"; }
+ public String getGrammarFileName() { return "./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g"; }
@@ -61,7 +61,7 @@ public class InternalContentAssistTestLanguageParser extends AbstractAntlrParser
// $ANTLR start entryRuleStart
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:62:1: entryRuleStart returns [EObject current=null] : iv_ruleStart= ruleStart EOF ;
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:62:1: entryRuleStart returns [EObject current=null] : iv_ruleStart= ruleStart EOF ;
public final EObject entryRuleStart() throws RecognitionException {
EObject current = null;
@@ -69,8 +69,8 @@ public class InternalContentAssistTestLanguageParser extends AbstractAntlrParser
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:62:47: (iv_ruleStart= ruleStart EOF )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:63:2: iv_ruleStart= ruleStart EOF
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:62:47: (iv_ruleStart= ruleStart EOF )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:63:2: iv_ruleStart= ruleStart EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/testlanguages/ContentAssistTestLanguage.xmi#//@rules.0" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleStart_in_entryRuleStart70);
@@ -96,7 +96,7 @@ public class InternalContentAssistTestLanguageParser extends AbstractAntlrParser
// $ANTLR start ruleStart
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:70:1: ruleStart returns [EObject current=null] : ( ( 'abstract rules' (lv_rules= ruleAbstractRule )+ ) 'end' ) ;
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:70:1: ruleStart returns [EObject current=null] : ( ( 'abstract rules' (lv_rules= ruleAbstractRule )+ ) 'end' ) ;
public final EObject ruleStart() throws RecognitionException {
EObject current = null;
@@ -105,20 +105,20 @@ public class InternalContentAssistTestLanguageParser extends AbstractAntlrParser
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:72:33: ( ( ( 'abstract rules' (lv_rules= ruleAbstractRule )+ ) 'end' ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:73:1: ( ( 'abstract rules' (lv_rules= ruleAbstractRule )+ ) 'end' )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:72:33: ( ( ( 'abstract rules' (lv_rules= ruleAbstractRule )+ ) 'end' ) )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:73:1: ( ( 'abstract rules' (lv_rules= ruleAbstractRule )+ ) 'end' )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:73:1: ( ( 'abstract rules' (lv_rules= ruleAbstractRule )+ ) 'end' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:73:2: ( 'abstract rules' (lv_rules= ruleAbstractRule )+ ) 'end'
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:73:1: ( ( 'abstract rules' (lv_rules= ruleAbstractRule )+ ) 'end' )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:73:2: ( 'abstract rules' (lv_rules= ruleAbstractRule )+ ) 'end'
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:73:2: ( 'abstract rules' (lv_rules= ruleAbstractRule )+ )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:73:3: 'abstract rules' (lv_rules= ruleAbstractRule )+
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:73:2: ( 'abstract rules' (lv_rules= ruleAbstractRule )+ )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:73:3: 'abstract rules' (lv_rules= ruleAbstractRule )+
{
match(input,11,FOLLOW_11_in_ruleStart115);
createLeafNode("classpath:/org/eclipse/xtext/testlanguages/ContentAssistTestLanguage.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0" /* xtext::Keyword */, null);
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:77:1: (lv_rules= ruleAbstractRule )+
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:77:1: (lv_rules= ruleAbstractRule )+
int cnt1=0;
loop1:
do {
@@ -132,7 +132,7 @@ public class InternalContentAssistTestLanguageParser extends AbstractAntlrParser
switch (alt1) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:80:6: lv_rules= ruleAbstractRule
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:80:6: lv_rules= ruleAbstractRule
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/testlanguages/ContentAssistTestLanguage.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.1/@terminal" /* xtext::RuleCall */, currentNode);
@@ -191,7 +191,7 @@ public class InternalContentAssistTestLanguageParser extends AbstractAntlrParser
// $ANTLR start entryRuleAbstractRule
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:103:1: entryRuleAbstractRule returns [EObject current=null] : iv_ruleAbstractRule= ruleAbstractRule EOF ;
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:103:1: entryRuleAbstractRule returns [EObject current=null] : iv_ruleAbstractRule= ruleAbstractRule EOF ;
public final EObject entryRuleAbstractRule() throws RecognitionException {
EObject current = null;
@@ -199,8 +199,8 @@ public class InternalContentAssistTestLanguageParser extends AbstractAntlrParser
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:103:54: (iv_ruleAbstractRule= ruleAbstractRule EOF )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:104:2: iv_ruleAbstractRule= ruleAbstractRule EOF
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:103:54: (iv_ruleAbstractRule= ruleAbstractRule EOF )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:104:2: iv_ruleAbstractRule= ruleAbstractRule EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/testlanguages/ContentAssistTestLanguage.xmi#//@rules.1" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleAbstractRule_in_entryRuleAbstractRule199);
@@ -226,7 +226,7 @@ public class InternalContentAssistTestLanguageParser extends AbstractAntlrParser
// $ANTLR start ruleAbstractRule
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:111:1: ruleAbstractRule returns [EObject current=null] : (this_FirstAbstractRuleChild= ruleFirstAbstractRuleChild | this_SecondAbstractRuleChild= ruleSecondAbstractRuleChild ) ;
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:111:1: ruleAbstractRule returns [EObject current=null] : (this_FirstAbstractRuleChild= ruleFirstAbstractRuleChild | this_SecondAbstractRuleChild= ruleSecondAbstractRuleChild ) ;
public final EObject ruleAbstractRule() throws RecognitionException {
EObject current = null;
@@ -237,10 +237,10 @@ public class InternalContentAssistTestLanguageParser extends AbstractAntlrParser
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:113:33: ( (this_FirstAbstractRuleChild= ruleFirstAbstractRuleChild | this_SecondAbstractRuleChild= ruleSecondAbstractRuleChild ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:114:1: (this_FirstAbstractRuleChild= ruleFirstAbstractRuleChild | this_SecondAbstractRuleChild= ruleSecondAbstractRuleChild )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:113:33: ( (this_FirstAbstractRuleChild= ruleFirstAbstractRuleChild | this_SecondAbstractRuleChild= ruleSecondAbstractRuleChild ) )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:114:1: (this_FirstAbstractRuleChild= ruleFirstAbstractRuleChild | this_SecondAbstractRuleChild= ruleSecondAbstractRuleChild )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:114:1: (this_FirstAbstractRuleChild= ruleFirstAbstractRuleChild | this_SecondAbstractRuleChild= ruleSecondAbstractRuleChild )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:114:1: (this_FirstAbstractRuleChild= ruleFirstAbstractRuleChild | this_SecondAbstractRuleChild= ruleSecondAbstractRuleChild )
int alt2=2;
int LA2_0 = input.LA(1);
@@ -268,7 +268,7 @@ public class InternalContentAssistTestLanguageParser extends AbstractAntlrParser
}
switch (alt2) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:115:5: this_FirstAbstractRuleChild= ruleFirstAbstractRuleChild
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:115:5: this_FirstAbstractRuleChild= ruleFirstAbstractRuleChild
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/testlanguages/ContentAssistTestLanguage.xmi#//@rules.1/@alternatives/@groups.0" /* xtext::RuleCall */, currentNode);
@@ -285,7 +285,7 @@ public class InternalContentAssistTestLanguageParser extends AbstractAntlrParser
}
break;
case 2 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:125:5: this_SecondAbstractRuleChild= ruleSecondAbstractRuleChild
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:125:5: this_SecondAbstractRuleChild= ruleSecondAbstractRuleChild
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/testlanguages/ContentAssistTestLanguage.xmi#//@rules.1/@alternatives/@groups.1" /* xtext::RuleCall */, currentNode);
@@ -322,7 +322,7 @@ public class InternalContentAssistTestLanguageParser extends AbstractAntlrParser
// $ANTLR start entryRuleFirstAbstractRuleChild
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:138:1: entryRuleFirstAbstractRuleChild returns [EObject current=null] : iv_ruleFirstAbstractRuleChild= ruleFirstAbstractRuleChild EOF ;
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:138:1: entryRuleFirstAbstractRuleChild returns [EObject current=null] : iv_ruleFirstAbstractRuleChild= ruleFirstAbstractRuleChild EOF ;
public final EObject entryRuleFirstAbstractRuleChild() throws RecognitionException {
EObject current = null;
@@ -330,8 +330,8 @@ public class InternalContentAssistTestLanguageParser extends AbstractAntlrParser
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:138:64: (iv_ruleFirstAbstractRuleChild= ruleFirstAbstractRuleChild EOF )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:139:2: iv_ruleFirstAbstractRuleChild= ruleFirstAbstractRuleChild EOF
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:138:64: (iv_ruleFirstAbstractRuleChild= ruleFirstAbstractRuleChild EOF )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:139:2: iv_ruleFirstAbstractRuleChild= ruleFirstAbstractRuleChild EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/testlanguages/ContentAssistTestLanguage.xmi#//@rules.2" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleFirstAbstractRuleChild_in_entryRuleFirstAbstractRuleChild317);
@@ -357,7 +357,7 @@ public class InternalContentAssistTestLanguageParser extends AbstractAntlrParser
// $ANTLR start ruleFirstAbstractRuleChild
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:146:1: ruleFirstAbstractRuleChild returns [EObject current=null] : ( ( ( ( (lv_name= RULE_ID ) '(' ) (lv_elements= ruleAbstractRule )+ ) ')' ) ';' ) ;
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:146:1: ruleFirstAbstractRuleChild returns [EObject current=null] : ( ( ( ( (lv_name= RULE_ID ) '(' ) (lv_elements= ruleAbstractRule )+ ) ')' ) ';' ) ;
public final EObject ruleFirstAbstractRuleChild() throws RecognitionException {
EObject current = null;
@@ -367,23 +367,23 @@ public class InternalContentAssistTestLanguageParser extends AbstractAntlrParser
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:148:33: ( ( ( ( ( (lv_name= RULE_ID ) '(' ) (lv_elements= ruleAbstractRule )+ ) ')' ) ';' ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:149:1: ( ( ( ( (lv_name= RULE_ID ) '(' ) (lv_elements= ruleAbstractRule )+ ) ')' ) ';' )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:148:33: ( ( ( ( ( (lv_name= RULE_ID ) '(' ) (lv_elements= ruleAbstractRule )+ ) ')' ) ';' ) )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:149:1: ( ( ( ( (lv_name= RULE_ID ) '(' ) (lv_elements= ruleAbstractRule )+ ) ')' ) ';' )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:149:1: ( ( ( ( (lv_name= RULE_ID ) '(' ) (lv_elements= ruleAbstractRule )+ ) ')' ) ';' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:149:2: ( ( ( (lv_name= RULE_ID ) '(' ) (lv_elements= ruleAbstractRule )+ ) ')' ) ';'
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:149:1: ( ( ( ( (lv_name= RULE_ID ) '(' ) (lv_elements= ruleAbstractRule )+ ) ')' ) ';' )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:149:2: ( ( ( (lv_name= RULE_ID ) '(' ) (lv_elements= ruleAbstractRule )+ ) ')' ) ';'
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:149:2: ( ( ( (lv_name= RULE_ID ) '(' ) (lv_elements= ruleAbstractRule )+ ) ')' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:149:3: ( ( (lv_name= RULE_ID ) '(' ) (lv_elements= ruleAbstractRule )+ ) ')'
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:149:2: ( ( ( (lv_name= RULE_ID ) '(' ) (lv_elements= ruleAbstractRule )+ ) ')' )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:149:3: ( ( (lv_name= RULE_ID ) '(' ) (lv_elements= ruleAbstractRule )+ ) ')'
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:149:3: ( ( (lv_name= RULE_ID ) '(' ) (lv_elements= ruleAbstractRule )+ )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:149:4: ( (lv_name= RULE_ID ) '(' ) (lv_elements= ruleAbstractRule )+
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:149:3: ( ( (lv_name= RULE_ID ) '(' ) (lv_elements= ruleAbstractRule )+ )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:149:4: ( (lv_name= RULE_ID ) '(' ) (lv_elements= ruleAbstractRule )+
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:149:4: ( (lv_name= RULE_ID ) '(' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:149:5: (lv_name= RULE_ID ) '('
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:149:4: ( (lv_name= RULE_ID ) '(' )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:149:5: (lv_name= RULE_ID ) '('
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:149:5: (lv_name= RULE_ID )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:151:6: lv_name= RULE_ID
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:149:5: (lv_name= RULE_ID )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:151:6: lv_name= RULE_ID
{
lv_name=(Token)input.LT(1);
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleFirstAbstractRuleChild376);
@@ -408,7 +408,7 @@ public class InternalContentAssistTestLanguageParser extends AbstractAntlrParser
}
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:169:2: (lv_elements= ruleAbstractRule )+
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:169:2: (lv_elements= ruleAbstractRule )+
int cnt3=0;
loop3:
do {
@@ -422,7 +422,7 @@ public class InternalContentAssistTestLanguageParser extends AbstractAntlrParser
switch (alt3) {
case 1 :
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:172:6: lv_elements= ruleAbstractRule
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:172:6: lv_elements= ruleAbstractRule
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/testlanguages/ContentAssistTestLanguage.xmi#//@rules.2/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal" /* xtext::RuleCall */, currentNode);
@@ -488,7 +488,7 @@ public class InternalContentAssistTestLanguageParser extends AbstractAntlrParser
// $ANTLR start entryRuleSecondAbstractRuleChild
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:199:1: entryRuleSecondAbstractRuleChild returns [EObject current=null] : iv_ruleSecondAbstractRuleChild= ruleSecondAbstractRuleChild EOF ;
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:199:1: entryRuleSecondAbstractRuleChild returns [EObject current=null] : iv_ruleSecondAbstractRuleChild= ruleSecondAbstractRuleChild EOF ;
public final EObject entryRuleSecondAbstractRuleChild() throws RecognitionException {
EObject current = null;
@@ -496,8 +496,8 @@ public class InternalContentAssistTestLanguageParser extends AbstractAntlrParser
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:199:65: (iv_ruleSecondAbstractRuleChild= ruleSecondAbstractRuleChild EOF )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:200:2: iv_ruleSecondAbstractRuleChild= ruleSecondAbstractRuleChild EOF
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:199:65: (iv_ruleSecondAbstractRuleChild= ruleSecondAbstractRuleChild EOF )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:200:2: iv_ruleSecondAbstractRuleChild= ruleSecondAbstractRuleChild EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/testlanguages/ContentAssistTestLanguage.xmi#//@rules.3" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleSecondAbstractRuleChild_in_entryRuleSecondAbstractRuleChild491);
@@ -523,7 +523,7 @@ public class InternalContentAssistTestLanguageParser extends AbstractAntlrParser
// $ANTLR start ruleSecondAbstractRuleChild
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:207:1: ruleSecondAbstractRuleChild returns [EObject current=null] : ( ( ( ( (lv_name= RULE_ID ) 'rule' ) ':' ) (lv_rule= ruleAbstractRuleCall ) ) ';' ) ;
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:207:1: ruleSecondAbstractRuleChild returns [EObject current=null] : ( ( ( ( (lv_name= RULE_ID ) 'rule' ) ':' ) (lv_rule= ruleAbstractRuleCall ) ) ';' ) ;
public final EObject ruleSecondAbstractRuleChild() throws RecognitionException {
EObject current = null;
@@ -533,23 +533,23 @@ public class InternalContentAssistTestLanguageParser extends AbstractAntlrParser
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:209:33: ( ( ( ( ( (lv_name= RULE_ID ) 'rule' ) ':' ) (lv_rule= ruleAbstractRuleCall ) ) ';' ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:210:1: ( ( ( ( (lv_name= RULE_ID ) 'rule' ) ':' ) (lv_rule= ruleAbstractRuleCall ) ) ';' )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:209:33: ( ( ( ( ( (lv_name= RULE_ID ) 'rule' ) ':' ) (lv_rule= ruleAbstractRuleCall ) ) ';' ) )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:210:1: ( ( ( ( (lv_name= RULE_ID ) 'rule' ) ':' ) (lv_rule= ruleAbstractRuleCall ) ) ';' )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:210:1: ( ( ( ( (lv_name= RULE_ID ) 'rule' ) ':' ) (lv_rule= ruleAbstractRuleCall ) ) ';' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:210:2: ( ( ( (lv_name= RULE_ID ) 'rule' ) ':' ) (lv_rule= ruleAbstractRuleCall ) ) ';'
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:210:1: ( ( ( ( (lv_name= RULE_ID ) 'rule' ) ':' ) (lv_rule= ruleAbstractRuleCall ) ) ';' )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:210:2: ( ( ( (lv_name= RULE_ID ) 'rule' ) ':' ) (lv_rule= ruleAbstractRuleCall ) ) ';'
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:210:2: ( ( ( (lv_name= RULE_ID ) 'rule' ) ':' ) (lv_rule= ruleAbstractRuleCall ) )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:210:3: ( ( (lv_name= RULE_ID ) 'rule' ) ':' ) (lv_rule= ruleAbstractRuleCall )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:210:2: ( ( ( (lv_name= RULE_ID ) 'rule' ) ':' ) (lv_rule= ruleAbstractRuleCall ) )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:210:3: ( ( (lv_name= RULE_ID ) 'rule' ) ':' ) (lv_rule= ruleAbstractRuleCall )
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:210:3: ( ( (lv_name= RULE_ID ) 'rule' ) ':' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:210:4: ( (lv_name= RULE_ID ) 'rule' ) ':'
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:210:3: ( ( (lv_name= RULE_ID ) 'rule' ) ':' )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:210:4: ( (lv_name= RULE_ID ) 'rule' ) ':'
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:210:4: ( (lv_name= RULE_ID ) 'rule' )
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:210:5: (lv_name= RULE_ID ) 'rule'
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:210:4: ( (lv_name= RULE_ID ) 'rule' )
+ // ./src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:210:5: (lv_name= RULE_ID ) 'rule'
{
- // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/internal/InternalContentAssistTestLanguage.g:210:5: (lv_name= RULE_ID )