summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorszarnekow2009-01-13 12:59:45 (EST)
committer sefftinge2009-01-13 12:59:45 (EST)
commitb72ade4cac2e8565a65f1cec8749d5c2da386662 (patch)
treee59c33b2e4676e1b7762b6361c86ce27913b74bd
parent5cd94f53aeb55c3b3eda76591d43066aa00bb03c (diff)
downloadorg.eclipse.xtext-b72ade4cac2e8565a65f1cec8749d5c2da386662.zip
org.eclipse.xtext-b72ade4cac2e8565a65f1cec8749d5c2da386662.tar.gz
org.eclipse.xtext-b72ade4cac2e8565a65f1cec8749d5c2da386662.tar.bz2
PackratParserGen - restructured generated code
* started with: dont consume keywords as ids and vice versa * minor fixes and improvements
-rw-r--r--devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/antlr/internal/InternalReferenceGrammarLexer.java2
-rw-r--r--devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/antlr/internal/InternalReferenceGrammarParser.java2
-rw-r--r--devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/ReferenceGrammarDelimiters.java21
-rw-r--r--devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/ReferenceGrammarParserConfiguration.java15
-rw-r--r--devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarCustomTypeParserRuleConsumer.java53
-rw-r--r--devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarErwachsenerConsumer.java134
-rw-r--r--devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarFamilieConsumer.java270
-rw-r--r--devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarFarbeConsumer.java30
-rw-r--r--devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarKindConsumer.java134
-rw-r--r--devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarPersonConsumer.java36
-rw-r--r--devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarSpielplatzConsumer.java268
-rw-r--r--devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarSpielzeugConsumer.java134
-rw-r--r--examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/antlr/internal/InternalFowlerDslLexer.java2
-rw-r--r--examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/antlr/internal/InternalFowlerDslParser.java2
-rw-r--r--examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/FowlerDslDelimiters.java21
-rw-r--r--examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/FowlerDslParserConfiguration.java12
-rw-r--r--examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslCommandConsumer.java59
-rw-r--r--examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslEventConsumer.java92
-rw-r--r--examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslStateConsumer.java234
-rw-r--r--examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslStatemachineConsumer.java196
-rw-r--r--examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslTransitionConsumer.java84
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/XtextTest.ecore2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalImportUriTestLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalImportUriTestLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalLangATestLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalLangATestLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/ImportUriTestLanguageDelimiters.java21
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/ImportUriTestLanguageParserConfiguration.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/LangATestLanguageDelimiters.java21
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/LangATestLanguageParserConfiguration.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/ImportUriTestLanguageImportConsumer.java53
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/ImportUriTestLanguageMainConsumer.java62
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/ImportUriTestLanguageTypeConsumer.java109
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/LangATestLanguageImportConsumer.java53
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/LangATestLanguageMainConsumer.java62
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/LangATestLanguageTypeConsumer.java109
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/antlr/internal/InternalDummyTestLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/antlr/internal/InternalDummyTestLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/packrat/DummyTestLanguageDelimiters.java21
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/packrat/DummyTestLanguageParserConfiguration.java9
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/packrat/consumers/DummyTestLanguageElementConsumer.java144
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/packrat/consumers/DummyTestLanguageModelConsumer.java25
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/antlr/internal/InternalConcreteTestLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/antlr/internal/InternalConcreteTestLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/AbstractTestLanguageDelimiters.java21
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/AbstractTestLanguageParserConfiguration.java9
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/ConcreteTestLanguageDelimiters.java21
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/ConcreteTestLanguageParserConfiguration.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/consumers/AbstractTestLanguageInheritedParserRuleConsumer.java53
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/consumers/ConcreteTestLanguageConcreteParserRuleConsumer.java111
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMetamodelRefTestLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMetamodelRefTestLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMultiGenMMTestLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMultiGenMMTestLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/MetamodelRefTestLanguageDelimiters.java21
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/MetamodelRefTestLanguageParserConfiguration.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/MultiGenMMTestLanguageDelimiters.java21
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/MultiGenMMTestLanguageParserConfiguration.java9
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MetamodelRefTestLanguageFooConsumer.java61
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MetamodelRefTestLanguageMyRuleConsumer.java18
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MetamodelRefTestLanguageNameRefConsumer.java18
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MultiGenMMTestLanguageFooConsumer.java61
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MultiGenMMTestLanguageNameRefConsumer.java18
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguageLexer.java256
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguageParser.java664
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage__.g14
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/antlr/internal/InternalDatatypeRulesTestLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/antlr/internal/InternalDatatypeRulesTestLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/DatatypeRulesTestLanguageDelimiters.java21
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/DatatypeRulesTestLanguageParserConfiguration.java16
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageCompositeModelConsumer.java24
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageDotsConsumer.java70
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageFractionConsumer.java86
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageModelConsumer.java267
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageModelIdConsumer.java74
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageNestedModelIdConsumer.java74
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageVectorConsumer.java99
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/XtextGrammarTestLanguageDelimiters.java21
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/XtextGrammarTestLanguageParserConfiguration.java43
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAbstractMetamodelDeclarationConsumer.java48
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAbstractRuleConsumer.java36
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAbstractTerminalConsumer.java82
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAbstractTokenConsumer.java116
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageActionConsumer.java268
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAlternativesConsumer.java112
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAssignmentConsumer.java110
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageCrossReferenceConsumer.java156
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageGeneratedMetamodelConsumer.java150
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageGrammarConsumer.java367
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageGroupConsumer.java87
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageKeywordConsumer.java18
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageLexerRuleConsumer.java236
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageParenthesizedElementConsumer.java74
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageParserRuleConsumer.java187
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageReferencedMetamodelConsumer.java119
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageRuleCallConsumer.java18
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageTypeRefConsumer.java96
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/antlr/internal/InternalFormatterTestLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/antlr/internal/InternalFormatterTestLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/FormatterTestLanguageDelimiters.java21
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/FormatterTestLanguageParserConfiguration.java15
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/consumers/FormatterTestLanguageLineConsumer.java84
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/consumers/FormatterTestLanguageRootConsumer.java83
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/consumers/FormatterTestLanguageTestIndentationConsumer.java145
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/consumers/FormatterTestLanguageTestLinewrapConsumer.java55
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalComplexReconstrTestLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalComplexReconstrTestLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalSimpleReconstrTestLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalSimpleReconstrTestLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/ComplexReconstrTestLanguageDelimiters.java21
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/ComplexReconstrTestLanguageParserConfiguration.java30
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/SimpleReconstrTestLanguageDelimiters.java21
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/SimpleReconstrTestLanguageParserConfiguration.java24
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageAtomConsumer.java18
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageOpConsumer.java195
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageParensConsumer.java105
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageRootConsumer.java48
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTermConsumer.java36
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyA1Consumer.java18
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyAConsumer.java234
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyBConsumer.java129
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyCConsumer.java230
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyDConsumer.java244
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyEConsumer.java236
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyFConsumer.java155
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyG1Consumer.java156
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyG2Consumer.java41
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyGConsumer.java53
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageAtomConsumer.java18
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageManyStringsConsumer.java86
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageOpConsumer.java87
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageParensConsumer.java105
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageRef2Consumer.java61
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageSpareConsumer.java119
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageTermConsumer.java165
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageTwoNumbersConsumer.java125
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageTypeConsumer.java109
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/antlr/internal/InternalTransientValuesTestLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/antlr/internal/InternalTransientValuesTestParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/TransientValuesTestDelimiters.java21
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/TransientValuesTestParserConfiguration.java13
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/consumers/TransientValuesTestRootConsumer.java100
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/consumers/TransientValuesTestTestListConsumer.java55
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/consumers/TransientValuesTestTestOptionalConsumer.java121
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/consumers/TransientValuesTestTestRequiredConsumer.java84
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/parser/antlr/internal/InternalMultiValueFeatureTestLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/parser/antlr/internal/InternalMultiValueFeatureTestLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/parser/packrat/MultiValueFeatureTestLanguageDelimiters.java21
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/parser/packrat/MultiValueFeatureTestLanguageParserConfiguration.java8
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/parser/packrat/consumers/MultiValueFeatureTestLanguageStartConsumer.java24
-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/antlr/internal/InternalActionTestLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalActionTestLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalContentAssistTestLanguageLexer.java136
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalContentAssistTestLanguageParser.java138
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalContentAssistTestLanguage__.g14
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalFowlerDslTestLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalFowlerDslTestLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalLexerTestLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalLexerTestLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalLookaheadTestLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalLookaheadTestLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalOptionalEmptyTestLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalOptionalEmptyTestLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalPartialParserTestLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalPartialParserTestLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalReferenceGrammarTestLanguageLexer.java184
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalReferenceGrammarTestLanguageParser.java308
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalReferenceGrammarTestLanguage__.g14
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalSimpleExpressionsTestLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalSimpleExpressionsTestLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTestLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTestLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTreeTestLanguageLexer.java118
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTreeTestLanguageParser.java68
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTreeTestLanguage__.g14
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/ActionTestLanguageDelimiters.java21
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/ActionTestLanguageParserConfiguration.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/ContentAssistTestLanguageDelimiters.java21
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/ContentAssistTestLanguageParserConfiguration.java18
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/FowlerDslTestLanguageDelimiters.java21
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/FowlerDslTestLanguageParserConfiguration.java14
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/LexerTestLanguageDelimiters.java21
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/LexerTestLanguageParserConfiguration.java11
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/LookaheadTestLanguageDelimiters.java21
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/LookaheadTestLanguageParserConfiguration.java18
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/OptionalEmptyTestLanguageDelimiters.java21
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/OptionalEmptyTestLanguageParserConfiguration.java9
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/PartialParserTestLanguageDelimiters.java21
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/PartialParserTestLanguageParserConfiguration.java21
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/ReferenceGrammarTestLanguageDelimiters.java21
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/ReferenceGrammarTestLanguageParserConfiguration.java30
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/SimpleExpressionsTestLanguageDelimiters.java21
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/SimpleExpressionsTestLanguageParserConfiguration.java15
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/TestLanguageDelimiters.java21
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/TestLanguageParserConfiguration.java12
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/TreeTestLanguageDelimiters.java21
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/TreeTestLanguageParserConfiguration.java11
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ActionTestLanguageElementConsumer.java75
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ActionTestLanguageItemConsumer.java50
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ActionTestLanguageModelConsumer.java25
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ContentAssistTestLanguageAbstractRuleCallConsumer.java18
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ContentAssistTestLanguageAbstractRuleConsumer.java48
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ContentAssistTestLanguageFirstAbstractRuleChildConsumer.java151
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ContentAssistTestLanguageSecondAbstractRuleChildConsumer.java146
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ContentAssistTestLanguageStartConsumer.java83
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/FowlerDslTestLanguageCommandConsumer.java59
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/FowlerDslTestLanguageEventConsumer.java92
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/FowlerDslTestLanguageStateConsumer.java234
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/FowlerDslTestLanguageStatemachineConsumer.java208
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/FowlerDslTestLanguageTransitionConsumer.java84
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/LexerTestLanguageElementConsumer.java71
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/LexerTestLanguageModelConsumer.java25
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/LookaheadTestLanguageAltsConsumer.java69
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/LookaheadTestLanguageEntryConsumer.java25
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/LookaheadTestLanguageLookAhead0Consumer.java53
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/LookaheadTestLanguageLookAhead1Consumer.java115
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/LookaheadTestLanguageLookAhead2Consumer.java81
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/LookaheadTestLanguageLookAhead3Consumer.java109
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/LookaheadTestLanguageLookAhead4Consumer.java46
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/OptionalEmptyTestLanguageGreetingConsumer.java53
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/OptionalEmptyTestLanguageModelConsumer.java25
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/PartialParserTestLanguageAbstractChildConsumer.java36
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/PartialParserTestLanguageAbstractChildrenConsumer.java108
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/PartialParserTestLanguageChildConsumer.java128
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/PartialParserTestLanguageChildrenConsumer.java169
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/PartialParserTestLanguageContainerConsumer.java176
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/PartialParserTestLanguageContentConsumer.java48
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/PartialParserTestLanguageFirstConcreteConsumer.java161
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/PartialParserTestLanguageNamedConsumer.java18
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/PartialParserTestLanguageNestedConsumer.java108
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/PartialParserTestLanguageSecondConcreteConsumer.java186
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ReferenceGrammarTestLanguageErwachsenerConsumer.java146
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ReferenceGrammarTestLanguageFamilieConsumer.java282
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ReferenceGrammarTestLanguageFarbeConsumer.java70
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ReferenceGrammarTestLanguageKindConsumer.java146
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ReferenceGrammarTestLanguagePersonConsumer.java48
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ReferenceGrammarTestLanguageSpielplatzConsumer.java278
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ReferenceGrammarTestLanguageSpielzeugConsumer.java146
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/SimpleExpressionsTestLanguageAdditionConsumer.java122
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/SimpleExpressionsTestLanguageAtomConsumer.java18
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/SimpleExpressionsTestLanguageMultiplicationConsumer.java122
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/SimpleExpressionsTestLanguageParensConsumer.java74
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/SimpleExpressionsTestLanguageSequenceConsumer.java87
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/SimpleExpressionsTestLanguageTermConsumer.java48
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/TestLanguageAbstractRuleConsumer.java36
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/TestLanguageChoiceRuleConsumer.java86
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/TestLanguageEntryRuleConsumer.java25
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/TestLanguageReducibleRuleConsumer.java112
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/TestLanguageTerminalRuleConsumer.java18
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/TreeTestLanguageModelConsumer.java25
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/TreeTestLanguageNodeConsumer.java204
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/valueconverter/parser/antlr/internal/InternalBug250313Lexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/valueconverter/parser/antlr/internal/InternalBug250313Parser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/valueconverter/parser/packrat/Bug250313Delimiters.java21
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/valueconverter/parser/packrat/Bug250313ParserConfiguration.java8
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/valueconverter/parser/packrat/consumers/Bug250313Ref2Consumer.java61
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/grammarinheritance/parser/packrat/consumers/AbstractTestLanguageIDConsumer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/grammarinheritance/parser/packrat/consumers/AbstractTestLanguageREALConsumer.java4
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/parser/packrat/PerformanceTest.java91
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/xtext/parser/handwritten/HandwrittenDelimiters.java31
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/xtext/parser/handwritten/HandwrittenParserWithMethodCalls.java29
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/xtext/parser/handwritten/HandwrittenParserWithMethodCallsConfiguration.java192
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/xtext/parser/handwritten/consumers/GeneratedMetamodelConsumer.java11
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/xtext/parser/handwritten/consumers/GrammarConsumer.java19
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/xtext/parser/handwritten/consumers/LexerRuleConsumer.java15
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/xtext/parser/handwritten/consumers/ReferencedMetamodelConsumer.java9
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/xtext/parser/handwritten/consumers/TypeRefConsumer.java7
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/xtext/parser/handwritten/consumers/methodCalls/AbstractMetamodelDeclarationConsumer.java69
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/xtext/parser/handwritten/consumers/methodCalls/AbstractRuleConsumer.java61
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/xtext/parser/handwritten/consumers/methodCalls/GeneratedMetamodelConsumer.java84
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/xtext/parser/handwritten/consumers/methodCalls/GrammarConsumer.java204
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/xtext/parser/handwritten/consumers/methodCalls/LexerRuleConsumer.java113
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/xtext/parser/handwritten/consumers/methodCalls/ParserRuleConsumer.java47
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/xtext/parser/handwritten/consumers/methodCalls/ReferencedMetamodelConsumer.java97
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/xtext/parser/handwritten/consumers/methodCalls/TypeRefConsumer.java92
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/xtext/parser/packrat/XtextPackratParserTest.java110
-rw-r--r--tests/org.eclipse.xtext.ui.core.tests/src-gen/org/eclipse/xtext/ui/core/parser/antlr/internal/InternalTestLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.ui.core.tests/src-gen/org/eclipse/xtext/ui/core/parser/antlr/internal/InternalTestLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.ui.core.tests/src-gen/org/eclipse/xtext/ui/core/parser/packrat/TestLanguageDelimiters.java21
-rw-r--r--tests/org.eclipse.xtext.ui.core.tests/src-gen/org/eclipse/xtext/ui/core/parser/packrat/TestLanguageParserConfiguration.java9
-rw-r--r--tests/org.eclipse.xtext.ui.core.tests/src-gen/org/eclipse/xtext/ui/core/parser/packrat/consumers/TestLanguageFileConsumer.java25
-rw-r--r--tests/org.eclipse.xtext.ui.core.tests/src-gen/org/eclipse/xtext/ui/core/parser/packrat/consumers/TestLanguageStuffConsumer.java53
283 files changed, 9526 insertions, 9325 deletions
diff --git a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/antlr/internal/InternalReferenceGrammarLexer.java b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/antlr/internal/InternalReferenceGrammarLexer.java
index 1692650..89d51a6 100644
--- a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/antlr/internal/InternalReferenceGrammarLexer.java
+++ b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/antlr/internal/InternalReferenceGrammarLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/reference/parser/antlr/internal/InternalReferenceGrammar.g 2009-01-13 09:50:00
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/reference/parser/antlr/internal/InternalReferenceGrammar.g 2009-01-13 18:45:38
package org.eclipse.xtext.reference.parser.antlr.internal;
diff --git a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/antlr/internal/InternalReferenceGrammarParser.java b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/antlr/internal/InternalReferenceGrammarParser.java
index dfa4474..4151aee 100644
--- a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/antlr/internal/InternalReferenceGrammarParser.java
+++ b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/antlr/internal/InternalReferenceGrammarParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/reference/parser/antlr/internal/InternalReferenceGrammar.g 2009-01-13 09:50:00
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/reference/parser/antlr/internal/InternalReferenceGrammar.g 2009-01-13 18:45:38
package org.eclipse.xtext.reference.parser.antlr.internal;
diff --git a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/ReferenceGrammarDelimiters.java b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/ReferenceGrammarDelimiters.java
new file mode 100644
index 0000000..e02d4aa
--- /dev/null
+++ b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/ReferenceGrammarDelimiters.java
@@ -0,0 +1,21 @@
+/*
+Generated with Xtext
+*/
+package org.eclipse.xtext.reference.parser.packrat;
+
+import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+import org.eclipse.xtext.parser.packrat.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
+import org.eclipse.xtext.parser.packrat.matching.SetBasedKeywordMatcher;
+
+import org.eclipse.xtext.reference.services.ReferenceGrammarGrammarAccess;
+
+public class ReferenceGrammarDelimiters {
+
+ public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+
+ public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+
+ public static ISequenceMatcher ALL_KEYWORDS = new SetBasedKeywordMatcher(ReferenceGrammarGrammarAccess.INSTANCE.getGrammar());
+
+}
diff --git a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/ReferenceGrammarParserConfiguration.java b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/ReferenceGrammarParserConfiguration.java
index 3f9ff24..bfdee2b 100644
--- a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/ReferenceGrammarParserConfiguration.java
+++ b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/ReferenceGrammarParserConfiguration.java
@@ -131,76 +131,61 @@ public class ReferenceGrammarParserConfiguration extends AbstractParserConfigura
return spielplatzConsumer;
}
-
public ReferenceGrammarPersonConsumer getPersonConsumer() {
return personConsumer;
}
-
public ReferenceGrammarKindConsumer getKindConsumer() {
return kindConsumer;
}
-
public ReferenceGrammarErwachsenerConsumer getErwachsenerConsumer() {
return erwachsenerConsumer;
}
-
public ReferenceGrammarSpielzeugConsumer getSpielzeugConsumer() {
return spielzeugConsumer;
}
-
public ReferenceGrammarFamilieConsumer getFamilieConsumer() {
return familieConsumer;
}
-
public ReferenceGrammarFarbeConsumer getFarbeConsumer() {
return farbeConsumer;
}
-
public ReferenceGrammarCustomTypeParserRuleConsumer getCustomTypeParserRuleConsumer() {
return customTypeParserRuleConsumer;
}
-
public XtextBuiltinIDConsumer getIdConsumer() {
return getXtextBuiltinConfiguration().getIdConsumer();
}
-
public XtextBuiltinINTConsumer getIntConsumer() {
return getXtextBuiltinConfiguration().getIntConsumer();
}
-
public XtextBuiltinSTRINGConsumer getStringConsumer() {
return getXtextBuiltinConfiguration().getStringConsumer();
}
-
public XtextBuiltinML_COMMENTConsumer getMlCommentConsumer() {
return getXtextBuiltinConfiguration().getMlCommentConsumer();
}
-
public XtextBuiltinSL_COMMENTConsumer getSlCommentConsumer() {
return getXtextBuiltinConfiguration().getSlCommentConsumer();
}
-
public XtextBuiltinWSConsumer getWsConsumer() {
return getXtextBuiltinConfiguration().getWsConsumer();
}
-
public XtextBuiltinANY_OTHERConsumer getAnyOtherConsumer() {
return getXtextBuiltinConfiguration().getAnyOtherConsumer();
}
-
}
diff --git a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarCustomTypeParserRuleConsumer.java b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarCustomTypeParserRuleConsumer.java
index b074cc1..241d92d 100644
--- a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarCustomTypeParserRuleConsumer.java
+++ b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarCustomTypeParserRuleConsumer.java
@@ -12,11 +12,15 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.reference.services.ReferenceGrammarGrammarAccess;
import org.eclipse.xtext.reference.services.ReferenceGrammarGrammarAccess.CustomTypeParserRuleElements;
+import org.eclipse.xtext.reference.parser.packrat.ReferenceGrammarDelimiters;
+
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+@SuppressWarnings("unused")
public final class ReferenceGrammarCustomTypeParserRuleConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
@@ -27,34 +31,30 @@ public final class ReferenceGrammarCustomTypeParserRuleConsumer extends NonTermi
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- KEYWORD$2SUCCESS: {
- if (!consumeKeyword(getRule().ele0KeywordType(), null, false, false))
- break KEYWORD$2SUCCESS;
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- ASSIGNMENT$3SUCCESS: {
- ASSIGNMENT$3FAILURE: {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele10LexerRuleCallID()))
- break ASSIGNMENT$3FAILURE;
- mGROUP$1.rollback();
- break ASSIGNMENT$3SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$2()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$3()) {
+ marker.rollback();
+ return false;
}
+ return true;
+ }
+
+ protected boolean consumeKeyword$2() throws Exception {
+ return consumeKeyword(getRule().ele0KeywordType(), null, false, false, ReferenceGrammarDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$3() throws Exception {
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele10LexerRuleCallID(), ReferenceGrammarDelimiters.ALL_KEYWORDS))
+ return true;
return false;
}
@@ -75,5 +75,4 @@ public final class ReferenceGrammarCustomTypeParserRuleConsumer extends NonTermi
this.idConsumer = idConsumer;
}
-
}
diff --git a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarErwachsenerConsumer.java b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarErwachsenerConsumer.java
index 58be746..d4fdcaf 100644
--- a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarErwachsenerConsumer.java
+++ b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarErwachsenerConsumer.java
@@ -12,12 +12,16 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.reference.services.ReferenceGrammarGrammarAccess;
import org.eclipse.xtext.reference.services.ReferenceGrammarGrammarAccess.ErwachsenerElements;
+import org.eclipse.xtext.reference.parser.packrat.ReferenceGrammarDelimiters;
+
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinINTConsumer;
+@SuppressWarnings("unused")
public final class ReferenceGrammarErwachsenerConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
@@ -29,92 +33,59 @@ public final class ReferenceGrammarErwachsenerConsumer extends NonTerminalConsum
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- GROUP$3SUCCESS: {
- IMarker mGROUP$3 = mark();
- GROUP$3FAILURE: {
- GROUP$4SUCCESS: {
- IMarker mGROUP$4 = mark();
- GROUP$4FAILURE: {
- KEYWORD$5SUCCESS: {
- if (!consumeKeyword(getRule().ele0000KeywordErwachsener(), null, false, false))
- break KEYWORD$5SUCCESS;
- break GROUP$4FAILURE;
- }
- mGROUP$4.rollback();
- break GROUP$4SUCCESS;
- }
- GROUP$4FAILURE: {
- KEYWORD$6SUCCESS: {
- if (!consumeKeyword(getRule().ele0001KeywordLeftParenthesis(), null, false, false))
- break KEYWORD$6SUCCESS;
- break GROUP$4FAILURE;
- }
- mGROUP$4.rollback();
- break GROUP$4SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- GROUP$3FAILURE: {
- ASSIGNMENT$7SUCCESS: {
- ASSIGNMENT$7FAILURE: {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID()))
- break ASSIGNMENT$7FAILURE;
- mGROUP$3.rollback();
- break ASSIGNMENT$7SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- ASSIGNMENT$9SUCCESS: {
- ASSIGNMENT$9FAILURE: {
- if (consumeTerminal(intConsumer, "age", false, false, getRule().ele010LexerRuleCallINT()))
- break ASSIGNMENT$9FAILURE;
- mGROUP$2.rollback();
- break ASSIGNMENT$9SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- KEYWORD$11SUCCESS: {
- if (!consumeKeyword(getRule().ele1KeywordRightParenthesis(), null, false, false))
- break KEYWORD$11SUCCESS;
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$5()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$6()) {
+ marker.rollback();
+ return false;
}
+ if (!consumeAssignment$7()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$9()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$11()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$5() throws Exception {
+ return consumeKeyword(getRule().ele0000KeywordErwachsener(), null, false, false, ReferenceGrammarDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeKeyword$6() throws Exception {
+ return consumeKeyword(getRule().ele0001KeywordLeftParenthesis(), null, false, false, ReferenceGrammarDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$7() throws Exception {
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID(), ReferenceGrammarDelimiters.ALL_KEYWORDS))
+ return true;
return false;
}
+ protected boolean consumeAssignment$9() throws Exception {
+ if (consumeTerminal(intConsumer, "age", false, false, getRule().ele010LexerRuleCallINT(), ReferenceGrammarDelimiters.ALL_KEYWORDS))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeKeyword$11() throws Exception {
+ return consumeKeyword(getRule().ele1KeywordRightParenthesis(), null, false, false, ReferenceGrammarDelimiters.ANY_OTHER_DELIMITER);
+ }
+
public ErwachsenerElements getRule() {
return ReferenceGrammarGrammarAccess.INSTANCE.prErwachsener();
}
@@ -136,5 +107,4 @@ public final class ReferenceGrammarErwachsenerConsumer extends NonTerminalConsum
this.intConsumer = intConsumer;
}
-
}
diff --git a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarFamilieConsumer.java b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarFamilieConsumer.java
index a1c3222..4173882 100644
--- a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarFamilieConsumer.java
+++ b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarFamilieConsumer.java
@@ -12,12 +12,16 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.reference.services.ReferenceGrammarGrammarAccess;
import org.eclipse.xtext.reference.services.ReferenceGrammarGrammarAccess.FamilieElements;
+import org.eclipse.xtext.reference.parser.packrat.ReferenceGrammarDelimiters;
+
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinSTRINGConsumer;
+@SuppressWarnings("unused")
public final class ReferenceGrammarFamilieConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
@@ -29,174 +33,115 @@ public final class ReferenceGrammarFamilieConsumer extends NonTerminalConsumer {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- GROUP$3SUCCESS: {
- IMarker mGROUP$3 = mark();
- GROUP$3FAILURE: {
- GROUP$4SUCCESS: {
- IMarker mGROUP$4 = mark();
- GROUP$4FAILURE: {
- GROUP$5SUCCESS: {
- IMarker mGROUP$5 = mark();
- GROUP$5FAILURE: {
- GROUP$6SUCCESS: {
- IMarker mGROUP$6 = mark();
- GROUP$6FAILURE: {
- GROUP$7SUCCESS: {
- IMarker mGROUP$7 = mark();
- GROUP$7FAILURE: {
- KEYWORD$8SUCCESS: {
- if (!consumeKeyword(getRule().ele0000000KeywordFamilie(), null, false, false))
- break KEYWORD$8SUCCESS;
- break GROUP$7FAILURE;
- }
- mGROUP$7.rollback();
- break GROUP$7SUCCESS;
- }
- GROUP$7FAILURE: {
- KEYWORD$9SUCCESS: {
- if (!consumeKeyword(getRule().ele0000001KeywordLeftParenthesis(), null, false, false))
- break KEYWORD$9SUCCESS;
- break GROUP$7FAILURE;
- }
- mGROUP$7.rollback();
- break GROUP$7SUCCESS;
- }
- break GROUP$6FAILURE;
- }
- mGROUP$6.rollback();
- break GROUP$6SUCCESS;
- }
- GROUP$6FAILURE: {
- ASSIGNMENT$10SUCCESS: {
- ASSIGNMENT$10FAILURE: {
- if (consumeKeyword(getRule().ele000001000KeywordKeyword(), "name", false, false))
- break ASSIGNMENT$10FAILURE;
- if (consumeTerminal(stringConsumer, "name", false, false, getRule().ele000001001LexerRuleCallSTRING()))
- break ASSIGNMENT$10FAILURE;
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele00000101LexerRuleCallID()))
- break ASSIGNMENT$10FAILURE;
- mGROUP$6.rollback();
- break ASSIGNMENT$10SUCCESS;
- }
- break GROUP$6FAILURE;
- }
- mGROUP$6.rollback();
- break GROUP$6SUCCESS;
- }
- break GROUP$5FAILURE;
- }
- mGROUP$5.rollback();
- break GROUP$5SUCCESS;
- }
- GROUP$5FAILURE: {
- ASSIGNMENT$16SUCCESS: {
- ASSIGNMENT$16FAILURE: {
- if (consumeTerminal(idConsumer, null, false, false, getRule().ele000010CrossReferenceEStringErwachsener()))
- break ASSIGNMENT$16FAILURE;
- mGROUP$5.rollback();
- break ASSIGNMENT$16SUCCESS;
- }
- break GROUP$5FAILURE;
- }
- mGROUP$5.rollback();
- break GROUP$5SUCCESS;
- }
- break GROUP$4FAILURE;
- }
- mGROUP$4.rollback();
- break GROUP$4SUCCESS;
- }
- GROUP$4FAILURE: {
- ASSIGNMENT$19SUCCESS: {
- ASSIGNMENT$19FAILURE: {
- if (consumeTerminal(idConsumer, null, false, false, getRule().ele00010CrossReferenceEStringErwachsener()))
- break ASSIGNMENT$19FAILURE;
- mGROUP$4.rollback();
- break ASSIGNMENT$19SUCCESS;
- }
- break GROUP$4FAILURE;
- }
- mGROUP$4.rollback();
- break GROUP$4SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- GROUP$3FAILURE: {
- ASSIGNMENT$22SUCCESS: {
- ASSIGNMENT$22FAILURE: {
- if (consumeTerminal(idConsumer, null, true, false, getRule().ele0010CrossReferenceEStringKind()))
- break ASSIGNMENT$22FAILURE;
- mGROUP$3.rollback();
- break ASSIGNMENT$22SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- GROUP$25SUCCESS: while(true) {
- IMarker mGROUP$25 = mark();
- GROUP$25FAILURE: {
- KEYWORD$26SUCCESS: {
- if (!consumeKeyword(getRule().ele010KeywordComma(), null, false, false))
- break KEYWORD$26SUCCESS;
- break GROUP$25FAILURE;
- }
- mGROUP$25.rollback();
- break GROUP$25SUCCESS;
- }
- GROUP$25FAILURE: {
- ASSIGNMENT$27SUCCESS: {
- ASSIGNMENT$27FAILURE: {
- if (consumeTerminal(idConsumer, null, true, false, getRule().ele0110CrossReferenceEStringKind()))
- break ASSIGNMENT$27FAILURE;
- mGROUP$25.rollback();
- break ASSIGNMENT$27SUCCESS;
- }
- break GROUP$25FAILURE;
- }
- mGROUP$25.rollback();
- break GROUP$25SUCCESS;
- }
- continue GROUP$25SUCCESS;
- }
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- KEYWORD$30SUCCESS: {
- if (!consumeKeyword(getRule().ele1KeywordRightParenthesis(), null, false, false))
- break KEYWORD$30SUCCESS;
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$8()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$9()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$10()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$16()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$19()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$22()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeGroup$25()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$30()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$8() throws Exception {
+ return consumeKeyword(getRule().ele0000000KeywordFamilie(), null, false, false, ReferenceGrammarDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeKeyword$9() throws Exception {
+ return consumeKeyword(getRule().ele0000001KeywordLeftParenthesis(), null, false, false, ReferenceGrammarDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$10() throws Exception {
+ if (consumeKeyword(getRule().ele000001000KeywordKeyword(), "name", false, false, ReferenceGrammarDelimiters.ID_DELIMITER))
+ return true;
+ if (consumeTerminal(stringConsumer, "name", false, false, getRule().ele000001001LexerRuleCallSTRING(), ReferenceGrammarDelimiters.ALL_KEYWORDS))
+ return true;
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele00000101LexerRuleCallID(), ReferenceGrammarDelimiters.ALL_KEYWORDS))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$16() throws Exception {
+ if (consumeTerminal(idConsumer, null, false, false, getRule().ele000010CrossReferenceEStringErwachsener(), ReferenceGrammarDelimiters.ALL_KEYWORDS))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$19() throws Exception {
+ if (consumeTerminal(idConsumer, null, false, false, getRule().ele00010CrossReferenceEStringErwachsener(), ReferenceGrammarDelimiters.ALL_KEYWORDS))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$22() throws Exception {
+ if (consumeTerminal(idConsumer, null, true, false, getRule().ele0010CrossReferenceEStringKind(), ReferenceGrammarDelimiters.ALL_KEYWORDS))
return true;
+ return false;
+ }
+
+ protected boolean consumeGroup$25() throws Exception {
+ while(doConsumeGroup$25()) {}
+ return true;
+ }
+
+ protected boolean doConsumeGroup$25() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$26()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$27()) {
+ marker.rollback();
+ return false;
}
+ return true;
+ }
+
+ protected boolean consumeKeyword$26() throws Exception {
+ return consumeKeyword(getRule().ele010KeywordComma(), null, false, false, ReferenceGrammarDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$27() throws Exception {
+ if (consumeTerminal(idConsumer, null, true, false, getRule().ele0110CrossReferenceEStringKind(), ReferenceGrammarDelimiters.ALL_KEYWORDS))
+ return true;
return false;
}
+ protected boolean consumeKeyword$30() throws Exception {
+ return consumeKeyword(getRule().ele1KeywordRightParenthesis(), null, false, false, ReferenceGrammarDelimiters.ANY_OTHER_DELIMITER);
+ }
+
public FamilieElements getRule() {
return ReferenceGrammarGrammarAccess.INSTANCE.prFamilie();
}
@@ -218,5 +163,4 @@ public final class ReferenceGrammarFamilieConsumer extends NonTerminalConsumer {
this.stringConsumer = stringConsumer;
}
-
}
diff --git a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarFarbeConsumer.java b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarFarbeConsumer.java
index 7603e99..97962cb 100644
--- a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarFarbeConsumer.java
+++ b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarFarbeConsumer.java
@@ -12,10 +12,14 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.reference.services.ReferenceGrammarGrammarAccess;
import org.eclipse.xtext.reference.services.ReferenceGrammarGrammarAccess.FarbeElements;
+import org.eclipse.xtext.reference.parser.packrat.ReferenceGrammarDelimiters;
+
+@SuppressWarnings("unused")
public final class ReferenceGrammarFarbeConsumer extends NonTerminalConsumer {
@@ -25,22 +29,19 @@ public final class ReferenceGrammarFarbeConsumer extends NonTerminalConsumer {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- ASSIGNMENT$1SUCCESS: {
- ASSIGNMENT$1FAILURE: {
- if (consumeKeyword(getRule().ele0000KeywordROT(), "wert", false, false))
- break ASSIGNMENT$1FAILURE;
- if (consumeKeyword(getRule().ele0001KeywordBLAU(), "wert", false, false))
- break ASSIGNMENT$1FAILURE;
- if (consumeKeyword(getRule().ele001KeywordGELB(), "wert", false, false))
- break ASSIGNMENT$1FAILURE;
- if (consumeKeyword(getRule().ele01KeywordGRÜN(), "wert", false, false))
- break ASSIGNMENT$1FAILURE;
- break ASSIGNMENT$1SUCCESS;
- }
+ return consumeAssignment$1();
+ }
+
+ protected boolean consumeAssignment$1() throws Exception {
+ if (consumeKeyword(getRule().ele0000KeywordROT(), "wert", false, false, ReferenceGrammarDelimiters.ID_DELIMITER))
+ return true;
+ if (consumeKeyword(getRule().ele0001KeywordBLAU(), "wert", false, false, ReferenceGrammarDelimiters.ID_DELIMITER))
+ return true;
+ if (consumeKeyword(getRule().ele001KeywordGELB(), "wert", false, false, ReferenceGrammarDelimiters.ID_DELIMITER))
+ return true;
+ if (consumeKeyword(getRule().ele01KeywordGRÜN(), "wert", false, false, ReferenceGrammarDelimiters.ID_DELIMITER))
return true;
- }
return false;
}
@@ -57,5 +58,4 @@ public final class ReferenceGrammarFarbeConsumer extends NonTerminalConsumer {
return "Farbe";
}
-
}
diff --git a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarKindConsumer.java b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarKindConsumer.java
index ed15305..642221b 100644
--- a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarKindConsumer.java
+++ b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarKindConsumer.java
@@ -12,12 +12,16 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.reference.services.ReferenceGrammarGrammarAccess;
import org.eclipse.xtext.reference.services.ReferenceGrammarGrammarAccess.KindElements;
+import org.eclipse.xtext.reference.parser.packrat.ReferenceGrammarDelimiters;
+
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinINTConsumer;
+@SuppressWarnings("unused")
public final class ReferenceGrammarKindConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
@@ -29,92 +33,59 @@ public final class ReferenceGrammarKindConsumer extends NonTerminalConsumer {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- GROUP$3SUCCESS: {
- IMarker mGROUP$3 = mark();
- GROUP$3FAILURE: {
- GROUP$4SUCCESS: {
- IMarker mGROUP$4 = mark();
- GROUP$4FAILURE: {
- KEYWORD$5SUCCESS: {
- if (!consumeKeyword(getRule().ele0000KeywordKind(), null, false, false))
- break KEYWORD$5SUCCESS;
- break GROUP$4FAILURE;
- }
- mGROUP$4.rollback();
- break GROUP$4SUCCESS;
- }
- GROUP$4FAILURE: {
- KEYWORD$6SUCCESS: {
- if (!consumeKeyword(getRule().ele0001KeywordLeftParenthesis(), null, false, false))
- break KEYWORD$6SUCCESS;
- break GROUP$4FAILURE;
- }
- mGROUP$4.rollback();
- break GROUP$4SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- GROUP$3FAILURE: {
- ASSIGNMENT$7SUCCESS: {
- ASSIGNMENT$7FAILURE: {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID()))
- break ASSIGNMENT$7FAILURE;
- mGROUP$3.rollback();
- break ASSIGNMENT$7SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- ASSIGNMENT$9SUCCESS: {
- ASSIGNMENT$9FAILURE: {
- if (consumeTerminal(intConsumer, "age", false, false, getRule().ele010LexerRuleCallINT()))
- break ASSIGNMENT$9FAILURE;
- mGROUP$2.rollback();
- break ASSIGNMENT$9SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- KEYWORD$11SUCCESS: {
- if (!consumeKeyword(getRule().ele1KeywordRightParenthesis(), null, false, false))
- break KEYWORD$11SUCCESS;
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$5()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$6()) {
+ marker.rollback();
+ return false;
}
+ if (!consumeAssignment$7()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$9()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$11()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$5() throws Exception {
+ return consumeKeyword(getRule().ele0000KeywordKind(), null, false, false, ReferenceGrammarDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeKeyword$6() throws Exception {
+ return consumeKeyword(getRule().ele0001KeywordLeftParenthesis(), null, false, false, ReferenceGrammarDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$7() throws Exception {
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID(), ReferenceGrammarDelimiters.ALL_KEYWORDS))
+ return true;
return false;
}
+ protected boolean consumeAssignment$9() throws Exception {
+ if (consumeTerminal(intConsumer, "age", false, false, getRule().ele010LexerRuleCallINT(), ReferenceGrammarDelimiters.ALL_KEYWORDS))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeKeyword$11() throws Exception {
+ return consumeKeyword(getRule().ele1KeywordRightParenthesis(), null, false, false, ReferenceGrammarDelimiters.ANY_OTHER_DELIMITER);
+ }
+
public KindElements getRule() {
return ReferenceGrammarGrammarAccess.INSTANCE.prKind();
}
@@ -136,5 +107,4 @@ public final class ReferenceGrammarKindConsumer extends NonTerminalConsumer {
this.intConsumer = intConsumer;
}
-
}
diff --git a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarPersonConsumer.java b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarPersonConsumer.java
index b514b73..52adcf5 100644
--- a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarPersonConsumer.java
+++ b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarPersonConsumer.java
@@ -12,12 +12,16 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.reference.services.ReferenceGrammarGrammarAccess;
import org.eclipse.xtext.reference.services.ReferenceGrammarGrammarAccess.PersonElements;
+import org.eclipse.xtext.reference.parser.packrat.ReferenceGrammarDelimiters;
+
import org.eclipse.xtext.reference.parser.packrat.consumers.ReferenceGrammarErwachsenerConsumer;
import org.eclipse.xtext.reference.parser.packrat.consumers.ReferenceGrammarKindConsumer;
+@SuppressWarnings("unused")
public final class ReferenceGrammarPersonConsumer extends NonTerminalConsumer {
private ReferenceGrammarErwachsenerConsumer erwachsenerConsumer;
@@ -29,27 +33,26 @@ public final class ReferenceGrammarPersonConsumer extends NonTerminalConsumer {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- ALTERNATIVES$1SUCCESS: {
- ALTERNATIVES$1FAILURE: {
- RULECALL$2SUCCESS: {
- if (!consumeNonTerminal(kindConsumer, null, false, false, getRule().ele0ParserRuleCallKind()))
- break RULECALL$2SUCCESS;
- break ALTERNATIVES$1FAILURE;
- }
- RULECALL$3SUCCESS: {
- if (!consumeNonTerminal(erwachsenerConsumer, null, false, false, getRule().ele1ParserRuleCallErwachsener()))
- break RULECALL$3SUCCESS;
- break ALTERNATIVES$1FAILURE;
- }
- break ALTERNATIVES$1SUCCESS;
- }
+ return consumeAlternatives$1();
+ }
+
+ protected boolean consumeAlternatives$1() throws Exception {
+ if (consumeRuleCall$2())
+ return true;
+ if (consumeRuleCall$3())
return true;
- }
return false;
}
+ protected boolean consumeRuleCall$2() throws Exception {
+ return consumeNonTerminal(kindConsumer, null, false, false, getRule().ele0ParserRuleCallKind());
+ }
+
+ protected boolean consumeRuleCall$3() throws Exception {
+ return consumeNonTerminal(erwachsenerConsumer, null, false, false, getRule().ele1ParserRuleCallErwachsener());
+ }
+
public PersonElements getRule() {
return ReferenceGrammarGrammarAccess.INSTANCE.prPerson();
}
@@ -71,5 +74,4 @@ public final class ReferenceGrammarPersonConsumer extends NonTerminalConsumer {
this.kindConsumer = kindConsumer;
}
-
}
diff --git a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarSpielplatzConsumer.java b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarSpielplatzConsumer.java
index 6dcdc7e..10973d9 100644
--- a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarSpielplatzConsumer.java
+++ b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarSpielplatzConsumer.java
@@ -12,9 +12,12 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.reference.services.ReferenceGrammarGrammarAccess;
import org.eclipse.xtext.reference.services.ReferenceGrammarGrammarAccess.SpielplatzElements;
+import org.eclipse.xtext.reference.parser.packrat.ReferenceGrammarDelimiters;
+
import org.eclipse.xtext.reference.parser.packrat.consumers.ReferenceGrammarErwachsenerConsumer;
import org.eclipse.xtext.reference.parser.packrat.consumers.ReferenceGrammarSpielzeugConsumer;
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinINTConsumer;
@@ -23,6 +26,7 @@ import org.eclipse.xtext.reference.parser.packrat.consumers.ReferenceGrammarFami
import org.eclipse.xtext.reference.parser.packrat.consumers.ReferenceGrammarKindConsumer;
import org.eclipse.xtext.reference.parser.packrat.consumers.ReferenceGrammarCustomTypeParserRuleConsumer;
+@SuppressWarnings("unused")
public final class ReferenceGrammarSpielplatzConsumer extends NonTerminalConsumer {
private ReferenceGrammarErwachsenerConsumer erwachsenerConsumer;
@@ -39,163 +43,122 @@ public final class ReferenceGrammarSpielplatzConsumer extends NonTerminalConsume
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- GROUP$3SUCCESS: {
- IMarker mGROUP$3 = mark();
- GROUP$3FAILURE: {
- GROUP$4SUCCESS: {
- IMarker mGROUP$4 = mark();
- GROUP$4FAILURE: {
- GROUP$5SUCCESS: {
- IMarker mGROUP$5 = mark();
- GROUP$5FAILURE: {
- KEYWORD$6SUCCESS: {
- if (!consumeKeyword(getRule().ele00000KeywordSpielplatz(), null, false, false))
- break KEYWORD$6SUCCESS;
- break GROUP$5FAILURE;
- }
- mGROUP$5.rollback();
- break GROUP$5SUCCESS;
- }
- GROUP$5FAILURE: {
- ASSIGNMENT$7SUCCESS: {
- ASSIGNMENT$7FAILURE: {
- if (consumeTerminal(intConsumer, "groesse", false, false, getRule().ele000010LexerRuleCallINT()))
- break ASSIGNMENT$7FAILURE;
- mGROUP$5.rollback();
- break ASSIGNMENT$7SUCCESS;
- }
- break GROUP$5FAILURE;
- }
- mGROUP$5.rollback();
- break GROUP$5SUCCESS;
- }
- break GROUP$4FAILURE;
- }
- mGROUP$4.rollback();
- break GROUP$4SUCCESS;
- }
- GROUP$4FAILURE: {
- ASSIGNMENT$9SUCCESS: {
- ASSIGNMENT$9FAILURE: {
- if (consumeTerminal(stringConsumer, "beschreibung", false, false, getRule().ele00010LexerRuleCallSTRING()))
- break ASSIGNMENT$9FAILURE;
- break ASSIGNMENT$9SUCCESS;
- }
- break GROUP$4FAILURE;
- }
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- GROUP$3FAILURE: {
- KEYWORD$11SUCCESS: {
- if (!consumeKeyword(getRule().ele001KeywordLeftCurlyBracket(), null, false, false))
- break KEYWORD$11SUCCESS;
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- ALTERNATIVES$12SUCCESS: while(true) {
- ALTERNATIVES$12FAILURE: {
- ALTERNATIVES$13SUCCESS: {
- ALTERNATIVES$13FAILURE: {
- ALTERNATIVES$14SUCCESS: {
- ALTERNATIVES$14FAILURE: {
- ALTERNATIVES$15SUCCESS: {
- ALTERNATIVES$15FAILURE: {
- ASSIGNMENT$16SUCCESS: {
- ASSIGNMENT$16FAILURE: {
- if (consumeNonTerminal(kindConsumer, "kinder", true, false , getRule().ele0100000ParserRuleCallKind()))
- break ASSIGNMENT$16FAILURE;
- break ASSIGNMENT$16SUCCESS;
- }
- break ALTERNATIVES$15FAILURE;
- }
- ASSIGNMENT$18SUCCESS: {
- ASSIGNMENT$18FAILURE: {
- if (consumeNonTerminal(erwachsenerConsumer, "erzieher", true, false , getRule().ele0100010ParserRuleCallErwachsener()))
- break ASSIGNMENT$18FAILURE;
- break ASSIGNMENT$18SUCCESS;
- }
- break ALTERNATIVES$15FAILURE;
- }
- break ALTERNATIVES$15SUCCESS;
- }
- break ALTERNATIVES$14FAILURE;
- }
- ASSIGNMENT$20SUCCESS: {
- ASSIGNMENT$20FAILURE: {
- if (consumeNonTerminal(spielzeugConsumer, "spielzeuge", true, false , getRule().ele010010ParserRuleCallSpielzeug()))
- break ASSIGNMENT$20FAILURE;
- break ASSIGNMENT$20SUCCESS;
- }
- break ALTERNATIVES$14FAILURE;
- }
- break ALTERNATIVES$14SUCCESS;
- }
- break ALTERNATIVES$13FAILURE;
- }
- ASSIGNMENT$22SUCCESS: {
- ASSIGNMENT$22FAILURE: {
- if (consumeNonTerminal(familieConsumer, "familie", true, false , getRule().ele01010ParserRuleCallFamilie()))
- break ASSIGNMENT$22FAILURE;
- break ASSIGNMENT$22SUCCESS;
- }
- break ALTERNATIVES$13FAILURE;
- }
- break ALTERNATIVES$13SUCCESS;
- }
- break ALTERNATIVES$12FAILURE;
- }
- ASSIGNMENT$24SUCCESS: {
- ASSIGNMENT$24FAILURE: {
- if (consumeNonTerminal(customTypeParserRuleConsumer, "types", true, false , getRule().ele0110ParserRuleCallCustomTypeParserRule()))
- break ASSIGNMENT$24FAILURE;
- break ASSIGNMENT$24SUCCESS;
- }
- break ALTERNATIVES$12FAILURE;
- }
- break ALTERNATIVES$12SUCCESS;
- }
- continue ALTERNATIVES$12SUCCESS;
- }
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- KEYWORD$26SUCCESS: {
- if (!consumeKeyword(getRule().ele1KeywordRightCurlyBracket(), null, false, false))
- break KEYWORD$26SUCCESS;
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ doConsumeGroup$1();
+ return true;
+ }
+
+ protected boolean doConsumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$6()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$7()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$9()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$11()) {
+ marker.rollback();
+ return false;
}
+ if (!consumeAlternatives$12()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$26()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$6() throws Exception {
+ return consumeKeyword(getRule().ele00000KeywordSpielplatz(), null, false, false, ReferenceGrammarDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$7() throws Exception {
+ if (consumeTerminal(intConsumer, "groesse", false, false, getRule().ele000010LexerRuleCallINT(), ReferenceGrammarDelimiters.ALL_KEYWORDS))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$9() throws Exception {
+ doConsumeAssignment$9();
+ return true;
+ }
+
+ protected boolean doConsumeAssignment$9() throws Exception {
+ if (consumeTerminal(stringConsumer, "beschreibung", false, false, getRule().ele00010LexerRuleCallSTRING(), ReferenceGrammarDelimiters.ALL_KEYWORDS))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeKeyword$11() throws Exception {
+ return consumeKeyword(getRule().ele001KeywordLeftCurlyBracket(), null, false, false, ReferenceGrammarDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeAlternatives$12() throws Exception {
+ while(doConsumeAlternatives$12()) {}
return true;
}
+ protected boolean doConsumeAlternatives$12() throws Exception {
+ if (consumeAssignment$16())
+ return true;
+ if (consumeAssignment$18())
+ return true;
+ if (consumeAssignment$20())
+ return true;
+ if (consumeAssignment$22())
+ return true;
+ if (consumeAssignment$24())
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$16() throws Exception {
+ if (consumeNonTerminal(kindConsumer, "kinder", true, false, getRule().ele0100000ParserRuleCallKind()))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$18() throws Exception {
+ if (consumeNonTerminal(erwachsenerConsumer, "erzieher", true, false, getRule().ele0100010ParserRuleCallErwachsener()))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$20() throws Exception {
+ if (consumeNonTerminal(spielzeugConsumer, "spielzeuge", true, false, getRule().ele010010ParserRuleCallSpielzeug()))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$22() throws Exception {
+ if (consumeNonTerminal(familieConsumer, "familie", true, false, getRule().ele01010ParserRuleCallFamilie()))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$24() throws Exception {
+ if (consumeNonTerminal(customTypeParserRuleConsumer, "types", true, false, getRule().ele0110ParserRuleCallCustomTypeParserRule()))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeKeyword$26() throws Exception {
+ return consumeKeyword(getRule().ele1KeywordRightCurlyBracket(), null, false, false, ReferenceGrammarDelimiters.ANY_OTHER_DELIMITER);
+ }
+
public SpielplatzElements getRule() {
return ReferenceGrammarGrammarAccess.INSTANCE.prSpielplatz();
}
@@ -237,5 +200,4 @@ public final class ReferenceGrammarSpielplatzConsumer extends NonTerminalConsume
this.customTypeParserRuleConsumer = customTypeParserRuleConsumer;
}
-
}
diff --git a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarSpielzeugConsumer.java b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarSpielzeugConsumer.java
index 46370a7..b0af47d 100644
--- a/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarSpielzeugConsumer.java
+++ b/devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarSpielzeugConsumer.java
@@ -12,12 +12,16 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.reference.services.ReferenceGrammarGrammarAccess;
import org.eclipse.xtext.reference.services.ReferenceGrammarGrammarAccess.SpielzeugElements;
+import org.eclipse.xtext.reference.parser.packrat.ReferenceGrammarDelimiters;
+
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
import org.eclipse.xtext.reference.parser.packrat.consumers.ReferenceGrammarFarbeConsumer;
+@SuppressWarnings("unused")
public final class ReferenceGrammarSpielzeugConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
@@ -29,92 +33,59 @@ public final class ReferenceGrammarSpielzeugConsumer extends NonTerminalConsumer
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- GROUP$3SUCCESS: {
- IMarker mGROUP$3 = mark();
- GROUP$3FAILURE: {
- GROUP$4SUCCESS: {
- IMarker mGROUP$4 = mark();
- GROUP$4FAILURE: {
- KEYWORD$5SUCCESS: {
- if (!consumeKeyword(getRule().ele0000KeywordSpielzeug(), null, false, false))
- break KEYWORD$5SUCCESS;
- break GROUP$4FAILURE;
- }
- mGROUP$4.rollback();
- break GROUP$4SUCCESS;
- }
- GROUP$4FAILURE: {
- KEYWORD$6SUCCESS: {
- if (!consumeKeyword(getRule().ele0001KeywordLeftParenthesis(), null, false, false))
- break KEYWORD$6SUCCESS;
- break GROUP$4FAILURE;
- }
- mGROUP$4.rollback();
- break GROUP$4SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- GROUP$3FAILURE: {
- ASSIGNMENT$7SUCCESS: {
- ASSIGNMENT$7FAILURE: {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID()))
- break ASSIGNMENT$7FAILURE;
- mGROUP$3.rollback();
- break ASSIGNMENT$7SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- ASSIGNMENT$9SUCCESS: {
- ASSIGNMENT$9FAILURE: {
- if (consumeNonTerminal(farbeConsumer, "farbe", false, false , getRule().ele010ParserRuleCallFarbe()))
- break ASSIGNMENT$9FAILURE;
- mGROUP$2.rollback();
- break ASSIGNMENT$9SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- KEYWORD$11SUCCESS: {
- if (!consumeKeyword(getRule().ele1KeywordRightParenthesis(), null, false, false))
- break KEYWORD$11SUCCESS;
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$5()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$6()) {
+ marker.rollback();
+ return false;
}
+ if (!consumeAssignment$7()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$9()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$11()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$5() throws Exception {
+ return consumeKeyword(getRule().ele0000KeywordSpielzeug(), null, false, false, ReferenceGrammarDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeKeyword$6() throws Exception {
+ return consumeKeyword(getRule().ele0001KeywordLeftParenthesis(), null, false, false, ReferenceGrammarDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$7() throws Exception {
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID(), ReferenceGrammarDelimiters.ALL_KEYWORDS))
+ return true;
return false;
}
+ protected boolean consumeAssignment$9() throws Exception {
+ if (consumeNonTerminal(farbeConsumer, "farbe", false, false, getRule().ele010ParserRuleCallFarbe()))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeKeyword$11() throws Exception {
+ return consumeKeyword(getRule().ele1KeywordRightParenthesis(), null, false, false, ReferenceGrammarDelimiters.ANY_OTHER_DELIMITER);
+ }
+
public SpielzeugElements getRule() {
return ReferenceGrammarGrammarAccess.INSTANCE.prSpielzeug();
}
@@ -136,5 +107,4 @@ public final class ReferenceGrammarSpielzeugConsumer extends NonTerminalConsumer
this.farbeConsumer = farbeConsumer;
}
-
}
diff --git a/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/antlr/internal/InternalFowlerDslLexer.java b/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/antlr/internal/InternalFowlerDslLexer.java
index d85ef14..4c5a16a 100644
--- a/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/antlr/internal/InternalFowlerDslLexer.java
+++ b/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/antlr/internal/InternalFowlerDslLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/example/parser/antlr/internal/InternalFowlerDsl.g 2009-01-13 09:49:41
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/example/parser/antlr/internal/InternalFowlerDsl.g 2009-01-13 18:45:31
package org.eclipse.xtext.example.parser.antlr.internal;
diff --git a/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/antlr/internal/InternalFowlerDslParser.java b/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/antlr/internal/InternalFowlerDslParser.java
index 39e13d4..8f67a41 100644
--- a/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/antlr/internal/InternalFowlerDslParser.java
+++ b/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/antlr/internal/InternalFowlerDslParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/example/parser/antlr/internal/InternalFowlerDsl.g 2009-01-13 09:49:41
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/example/parser/antlr/internal/InternalFowlerDsl.g 2009-01-13 18:45:31
package org.eclipse.xtext.example.parser.antlr.internal;
diff --git a/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/FowlerDslDelimiters.java b/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/FowlerDslDelimiters.java
new file mode 100644
index 0000000..d9fdcf4
--- /dev/null
+++ b/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/FowlerDslDelimiters.java
@@ -0,0 +1,21 @@
+/*
+Generated with Xtext
+*/
+package org.eclipse.xtext.example.parser.packrat;
+
+import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+import org.eclipse.xtext.parser.packrat.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
+import org.eclipse.xtext.parser.packrat.matching.SetBasedKeywordMatcher;
+
+import org.eclipse.xtext.example.services.FowlerDslGrammarAccess;
+
+public class FowlerDslDelimiters {
+
+ public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+
+ public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+
+ public static ISequenceMatcher ALL_KEYWORDS = new SetBasedKeywordMatcher(FowlerDslGrammarAccess.INSTANCE.getGrammar());
+
+}
diff --git a/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/FowlerDslParserConfiguration.java b/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/FowlerDslParserConfiguration.java
index 01284d4..5753b46 100644
--- a/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/FowlerDslParserConfiguration.java
+++ b/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/FowlerDslParserConfiguration.java
@@ -104,61 +104,49 @@ public class FowlerDslParserConfiguration extends AbstractParserConfiguration {
return statemachineConsumer;
}
-
public FowlerDslEventConsumer getEventConsumer() {
return eventConsumer;
}
-
public FowlerDslCommandConsumer getCommandConsumer() {
return commandConsumer;
}
-
public FowlerDslStateConsumer getStateConsumer() {
return stateConsumer;
}
-
public FowlerDslTransitionConsumer getTransitionConsumer() {
return transitionConsumer;
}
-
public XtextBuiltinIDConsumer getIdConsumer() {
return getXtextBuiltinConfiguration().getIdConsumer();
}
-
public XtextBuiltinINTConsumer getIntConsumer() {
return getXtextBuiltinConfiguration().getIntConsumer();
}
-
public XtextBuiltinSTRINGConsumer getStringConsumer() {
return getXtextBuiltinConfiguration().getStringConsumer();
}
-
public XtextBuiltinML_COMMENTConsumer getMlCommentConsumer() {
return getXtextBuiltinConfiguration().getMlCommentConsumer();
}
-
public XtextBuiltinSL_COMMENTConsumer getSlCommentConsumer() {
return getXtextBuiltinConfiguration().getSlCommentConsumer();
}
-
public XtextBuiltinWSConsumer getWsConsumer() {
return getXtextBuiltinConfiguration().getWsConsumer();
}
-
public XtextBuiltinANY_OTHERConsumer getAnyOtherConsumer() {
return getXtextBuiltinConfiguration().getAnyOtherConsumer();
}
-
}
diff --git a/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslCommandConsumer.java b/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslCommandConsumer.java
index 5265625..826904a 100644
--- a/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslCommandConsumer.java
+++ b/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslCommandConsumer.java
@@ -12,11 +12,15 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.example.services.FowlerDslGrammarAccess;
import org.eclipse.xtext.example.services.FowlerDslGrammarAccess.CommandElements;
+import org.eclipse.xtext.example.parser.packrat.FowlerDslDelimiters;
+
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+@SuppressWarnings("unused")
public final class FowlerDslCommandConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
@@ -27,38 +31,32 @@ public final class FowlerDslCommandConsumer extends NonTerminalConsumer {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- ASSIGNMENT$2SUCCESS: {
- ASSIGNMENT$2FAILURE: {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele00LexerRuleCallID()))
- break ASSIGNMENT$2FAILURE;
- mGROUP$1.rollback();
- break ASSIGNMENT$2SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- ASSIGNMENT$4SUCCESS: {
- ASSIGNMENT$4FAILURE: {
- if (consumeTerminal(idConsumer, "code", false, false, getRule().ele10LexerRuleCallID()))
- break ASSIGNMENT$4FAILURE;
- mGROUP$1.rollback();
- break ASSIGNMENT$4SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeAssignment$2()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$4()) {
+ marker.rollback();
+ return false;
}
+ return true;
+ }
+
+ protected boolean consumeAssignment$2() throws Exception {
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele00LexerRuleCallID(), FowlerDslDelimiters.ALL_KEYWORDS))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$4() throws Exception {
+ if (consumeTerminal(idConsumer, "code", false, false, getRule().ele10LexerRuleCallID(), FowlerDslDelimiters.ALL_KEYWORDS))
+ return true;
return false;
}
@@ -79,5 +77,4 @@ public final class FowlerDslCommandConsumer extends NonTerminalConsumer {
this.idConsumer = idConsumer;
}
-
}
diff --git a/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslEventConsumer.java b/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslEventConsumer.java
index 6eb4084..23fb232 100644
--- a/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslEventConsumer.java
+++ b/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslEventConsumer.java
@@ -12,11 +12,15 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.example.services.FowlerDslGrammarAccess;
import org.eclipse.xtext.example.services.FowlerDslGrammarAccess.EventElements;
+import org.eclipse.xtext.example.parser.packrat.FowlerDslDelimiters;
+
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+@SuppressWarnings("unused")
public final class FowlerDslEventConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
@@ -27,56 +31,47 @@ public final class FowlerDslEventConsumer extends NonTerminalConsumer {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- ASSIGNMENT$3SUCCESS: {
- ASSIGNMENT$3FAILURE: {
- if (consumeKeyword(getRule().ele000KeywordResetting(), "resetting", false, true))
- break ASSIGNMENT$3FAILURE;
- break ASSIGNMENT$3SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- }
- GROUP$2FAILURE: {
- ASSIGNMENT$5SUCCESS: {
- ASSIGNMENT$5FAILURE: {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele010LexerRuleCallID()))
- break ASSIGNMENT$5FAILURE;
- mGROUP$2.rollback();
- break ASSIGNMENT$5SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- ASSIGNMENT$7SUCCESS: {
- ASSIGNMENT$7FAILURE: {
- if (consumeTerminal(idConsumer, "code", false, false, getRule().ele10LexerRuleCallID()))
- break ASSIGNMENT$7FAILURE;
- mGROUP$1.rollback();
- break ASSIGNMENT$7SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeAssignment$3()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$5()) {
+ marker.rollback();
+ return false;
}
+ if (!consumeAssignment$7()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeAssignment$3() throws Exception {
+ doConsumeAssignment$3();
+ return true;
+ }
+
+ protected boolean doConsumeAssignment$3() throws Exception {
+ if (consumeKeyword(getRule().ele000KeywordResetting(), "resetting", false, true, FowlerDslDelimiters.ID_DELIMITER))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$5() throws Exception {
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele010LexerRuleCallID(), FowlerDslDelimiters.ALL_KEYWORDS))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$7() throws Exception {
+ if (consumeTerminal(idConsumer, "code", false, false, getRule().ele10LexerRuleCallID(), FowlerDslDelimiters.ALL_KEYWORDS))
+ return true;
return false;
}
@@ -97,5 +92,4 @@ public final class FowlerDslEventConsumer extends NonTerminalConsumer {
this.idConsumer = idConsumer;
}
-
}
diff --git a/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslStateConsumer.java b/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslStateConsumer.java
index 435ec0a..54b6c91 100644
--- a/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslStateConsumer.java
+++ b/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslStateConsumer.java
@@ -12,12 +12,16 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.example.services.FowlerDslGrammarAccess;
import org.eclipse.xtext.example.services.FowlerDslGrammarAccess.StateElements;
+import org.eclipse.xtext.example.parser.packrat.FowlerDslDelimiters;
+
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
import org.eclipse.xtext.example.parser.packrat.consumers.FowlerDslTransitionConsumer;
+@SuppressWarnings("unused")
public final class FowlerDslStateConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
@@ -29,141 +33,112 @@ public final class FowlerDslStateConsumer extends NonTerminalConsumer {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- GROUP$3SUCCESS: {
- IMarker mGROUP$3 = mark();
- GROUP$3FAILURE: {
- GROUP$4SUCCESS: {
- IMarker mGROUP$4 = mark();
- GROUP$4FAILURE: {
- KEYWORD$5SUCCESS: {
- if (!consumeKeyword(getRule().ele0000KeywordState(), null, false, false))
- break KEYWORD$5SUCCESS;
- break GROUP$4FAILURE;
- }
- mGROUP$4.rollback();
- break GROUP$4SUCCESS;
- }
- GROUP$4FAILURE: {
- ASSIGNMENT$6SUCCESS: {
- ASSIGNMENT$6FAILURE: {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele00010LexerRuleCallID()))
- break ASSIGNMENT$6FAILURE;
- mGROUP$4.rollback();
- break ASSIGNMENT$6SUCCESS;
- }
- break GROUP$4FAILURE;
- }
- mGROUP$4.rollback();
- break GROUP$4SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- GROUP$3FAILURE: {
- GROUP$8SUCCESS: {
- IMarker mGROUP$8 = mark();
- GROUP$8FAILURE: {
- GROUP$9SUCCESS: {
- IMarker mGROUP$9 = mark();
- GROUP$9FAILURE: {
- GROUP$10SUCCESS: {
- IMarker mGROUP$10 = mark();
- GROUP$10FAILURE: {
- KEYWORD$11SUCCESS: {
- if (!consumeKeyword(getRule().ele001000KeywordActions(), null, false, false))
- break KEYWORD$11SUCCESS;
- break GROUP$10FAILURE;
- }
- mGROUP$10.rollback();
- break GROUP$10SUCCESS;
- }
- GROUP$10FAILURE: {
- KEYWORD$12SUCCESS: {
- if (!consumeKeyword(getRule().ele001001KeywordLeftCurlyBracket(), null, false, false))
- break KEYWORD$12SUCCESS;
- break GROUP$10FAILURE;
- }
- mGROUP$10.rollback();
- break GROUP$10SUCCESS;
- }
- break GROUP$9FAILURE;
- }
- mGROUP$9.rollback();
- break GROUP$9SUCCESS;
- }
- GROUP$9FAILURE: {
- ASSIGNMENT$13SUCCESS: {
- ASSIGNMENT$13FAILURE: {
- if (!consumeTerminal(idConsumer, null, true, false, getRule().ele001010CrossReferenceEStringCommand()))
- break ASSIGNMENT$13SUCCESS;
- while(consumeTerminal(idConsumer, null, true, false, getRule().ele001010CrossReferenceEStringCommand()));
- }
- break GROUP$9FAILURE;
- }
- mGROUP$9.rollback();
- break GROUP$9SUCCESS;
- }
- break GROUP$8FAILURE;
- }
- mGROUP$8.rollback();
- break GROUP$8SUCCESS;
- }
- GROUP$8FAILURE: {
- KEYWORD$16SUCCESS: {
- if (!consumeKeyword(getRule().ele0011KeywordRightCurlyBracket(), null, false, false))
- break KEYWORD$16SUCCESS;
- break GROUP$8FAILURE;
- }
- mGROUP$8.rollback();
- break GROUP$8SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- ASSIGNMENT$17SUCCESS: while(true) {
- ASSIGNMENT$17FAILURE: {
- if (consumeNonTerminal(transitionConsumer, "transitions", true, false , getRule().ele010ParserRuleCallTransition()))
- break ASSIGNMENT$17FAILURE;
- break ASSIGNMENT$17SUCCESS;
- }
- continue ASSIGNMENT$17SUCCESS;
- }
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- KEYWORD$19SUCCESS: {
- if (!consumeKeyword(getRule().ele1KeywordEnd(), null, false, false))
- break KEYWORD$19SUCCESS;
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$5()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$6()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeGroup$8()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$17()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$19()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$5() throws Exception {
+ return consumeKeyword(getRule().ele0000KeywordState(), null, false, false, FowlerDslDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$6() throws Exception {
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele00010LexerRuleCallID(), FowlerDslDelimiters.ALL_KEYWORDS))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeGroup$8() throws Exception {
+ doConsumeGroup$8();
+ return true;
+ }
+
+ protected boolean doConsumeGroup$8() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$11()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$12()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$13()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$16()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$11() throws Exception {
+ return consumeKeyword(getRule().ele001000KeywordActions(), null, false, false, FowlerDslDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeKeyword$12() throws Exception {
+ return consumeKeyword(getRule().ele001001KeywordLeftCurlyBracket(), null, false, false, FowlerDslDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$13() throws Exception {
+ if (doConsumeAssignment$13()) {
+ while(doConsumeAssignment$13()) {}
return true;
}
return false;
}
+ protected boolean doConsumeAssignment$13() throws Exception {
+ if (consumeTerminal(idConsumer, null, true, false, getRule().ele001010CrossReferenceEStringCommand(), FowlerDslDelimiters.ALL_KEYWORDS))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeKeyword$16() throws Exception {
+ return consumeKeyword(getRule().ele0011KeywordRightCurlyBracket(), null, false, false, FowlerDslDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$17() throws Exception {
+ while(doConsumeAssignment$17()) {}
+ return true;
+ }
+
+ protected boolean doConsumeAssignment$17() throws Exception {
+ if (consumeNonTerminal(transitionConsumer, "transitions", true, false, getRule().ele010ParserRuleCallTransition()))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeKeyword$19() throws Exception {
+ return consumeKeyword(getRule().ele1KeywordEnd(), null, false, false, FowlerDslDelimiters.ID_DELIMITER);
+ }
+
public StateElements getRule() {
return FowlerDslGrammarAccess.INSTANCE.prState();
}
@@ -185,5 +160,4 @@ public final class FowlerDslStateConsumer extends NonTerminalConsumer {
this.transitionConsumer = transitionConsumer;
}
-
}
diff --git a/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslStatemachineConsumer.java b/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslStatemachineConsumer.java
index c705957..5a75ca9 100644
--- a/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslStatemachineConsumer.java
+++ b/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslStatemachineConsumer.java
@@ -12,13 +12,17 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.example.services.FowlerDslGrammarAccess;
import org.eclipse.xtext.example.services.FowlerDslGrammarAccess.StatemachineElements;
+import org.eclipse.xtext.example.parser.packrat.FowlerDslDelimiters;
+
import org.eclipse.xtext.example.parser.packrat.consumers.FowlerDslStateConsumer;
import org.eclipse.xtext.example.parser.packrat.consumers.FowlerDslEventConsumer;
import org.eclipse.xtext.example.parser.packrat.consumers.FowlerDslCommandConsumer;
+@SuppressWarnings("unused")
public final class FowlerDslStatemachineConsumer extends NonTerminalConsumer {
private FowlerDslStateConsumer stateConsumer;
@@ -31,118 +35,89 @@ public final class FowlerDslStatemachineConsumer extends NonTerminalConsumer {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- GROUP$3SUCCESS: {
- IMarker mGROUP$3 = mark();
- GROUP$3FAILURE: {
- GROUP$4SUCCESS: {
- IMarker mGROUP$4 = mark();
- GROUP$4FAILURE: {
- GROUP$5SUCCESS: {
- IMarker mGROUP$5 = mark();
- GROUP$5FAILURE: {
- GROUP$6SUCCESS: {
- IMarker mGROUP$6 = mark();
- GROUP$6FAILURE: {
- KEYWORD$7SUCCESS: {
- if (!consumeKeyword(getRule().ele000000KeywordEvents(), null, false, false))
- break KEYWORD$7SUCCESS;
- break GROUP$6FAILURE;
- }
- mGROUP$6.rollback();
- break GROUP$6SUCCESS;
- }
- GROUP$6FAILURE: {
- ASSIGNMENT$8SUCCESS: while(true) {
- ASSIGNMENT$8FAILURE: {
- if (consumeNonTerminal(eventConsumer, "events", true, false , getRule().ele0000010ParserRuleCallEvent()))
- break ASSIGNMENT$8FAILURE;
- break ASSIGNMENT$8SUCCESS;
- }
- continue ASSIGNMENT$8SUCCESS;
- }
- }
- break GROUP$5FAILURE;
- }
- mGROUP$5.rollback();
- break GROUP$5SUCCESS;
- }
- GROUP$5FAILURE: {
- KEYWORD$10SUCCESS: {
- if (!consumeKeyword(getRule().ele00001KeywordEnd(), null, false, false))
- break KEYWORD$10SUCCESS;
- break GROUP$5FAILURE;
- }
- mGROUP$5.rollback();
- break GROUP$5SUCCESS;
- }
- break GROUP$4FAILURE;
- }
- mGROUP$4.rollback();
- break GROUP$4SUCCESS;
- }
- GROUP$4FAILURE: {
- KEYWORD$11SUCCESS: {
- if (!consumeKeyword(getRule().ele0001KeywordCommands(), null, false, false))
- break KEYWORD$11SUCCESS;
- break GROUP$4FAILURE;
- }
- mGROUP$4.rollback();
- break GROUP$4SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- GROUP$3FAILURE: {
- ASSIGNMENT$12SUCCESS: while(true) {
- ASSIGNMENT$12FAILURE: {
- if (consumeNonTerminal(commandConsumer, "commands", true, false , getRule().ele0010ParserRuleCallCommand()))
- break ASSIGNMENT$12FAILURE;
- break ASSIGNMENT$12SUCCESS;
- }
- continue ASSIGNMENT$12SUCCESS;
- }
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- KEYWORD$14SUCCESS: {
- if (!consumeKeyword(getRule().ele01KeywordEnd(), null, false, false))
- break KEYWORD$14SUCCESS;
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- ASSIGNMENT$15SUCCESS: while(true) {
- ASSIGNMENT$15FAILURE: {
- if (consumeNonTerminal(stateConsumer, "states", true, false , getRule().ele10ParserRuleCallState()))
- break ASSIGNMENT$15FAILURE;
- break ASSIGNMENT$15SUCCESS;
- }
- continue ASSIGNMENT$15SUCCESS;
- }
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$7()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$8()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$10()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$11()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$12()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$14()) {
+ marker.rollback();
+ return false;
}
+ if (!consumeAssignment$15()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$7() throws Exception {
+ return consumeKeyword(getRule().ele000000KeywordEvents(), null, false, false, FowlerDslDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$8() throws Exception {
+ while(doConsumeAssignment$8()) {}
+ return true;
+ }
+
+ protected boolean doConsumeAssignment$8() throws Exception {
+ if (consumeNonTerminal(eventConsumer, "events", true, false, getRule().ele0000010ParserRuleCallEvent()))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeKeyword$10() throws Exception {
+ return consumeKeyword(getRule().ele00001KeywordEnd(), null, false, false, FowlerDslDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeKeyword$11() throws Exception {
+ return consumeKeyword(getRule().ele0001KeywordCommands(), null, false, false, FowlerDslDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$12() throws Exception {
+ while(doConsumeAssignment$12()) {}
+ return true;
+ }
+
+ protected boolean doConsumeAssignment$12() throws Exception {
+ if (consumeNonTerminal(commandConsumer, "commands", true, false, getRule().ele0010ParserRuleCallCommand()))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeKeyword$14() throws Exception {
+ return consumeKeyword(getRule().ele01KeywordEnd(), null, false, false, FowlerDslDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$15() throws Exception {
+ while(doConsumeAssignment$15()) {}
+ return true;
+ }
+
+ protected boolean doConsumeAssignment$15() throws Exception {
+ if (consumeNonTerminal(stateConsumer, "states", true, false, getRule().ele10ParserRuleCallState()))
+ return true;
return false;
}
@@ -171,5 +146,4 @@ public final class FowlerDslStatemachineConsumer extends NonTerminalConsumer {
this.commandConsumer = commandConsumer;
}
-
}
diff --git a/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslTransitionConsumer.java b/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslTransitionConsumer.java
index 294dc11..233f335 100644
--- a/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslTransitionConsumer.java
+++ b/examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslTransitionConsumer.java
@@ -12,11 +12,15 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.example.services.FowlerDslGrammarAccess;
import org.eclipse.xtext.example.services.FowlerDslGrammarAccess.TransitionElements;
+import org.eclipse.xtext.example.parser.packrat.FowlerDslDelimiters;
+
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+@SuppressWarnings("unused")
public final class FowlerDslTransitionConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
@@ -27,55 +31,40 @@ public final class FowlerDslTransitionConsumer extends NonTerminalConsumer {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- ASSIGNMENT$3SUCCESS: {
- ASSIGNMENT$3FAILURE: {
- if (consumeTerminal(idConsumer, null, false, false, getRule().ele000CrossReferenceEStringEvent()))
- break ASSIGNMENT$3FAILURE;
- mGROUP$2.rollback();
- break ASSIGNMENT$3SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- KEYWORD$6SUCCESS: {
- if (!consumeKeyword(getRule().ele01KeywordEqualsSignGreaterThanSign(), null, false, false))
- break KEYWORD$6SUCCESS;
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- ASSIGNMENT$7SUCCESS: {
- ASSIGNMENT$7FAILURE: {
- if (consumeTerminal(idConsumer, null, false, false, getRule().ele10CrossReferenceEStringState()))
- break ASSIGNMENT$7FAILURE;
- mGROUP$1.rollback();
- break ASSIGNMENT$7SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeAssignment$3()) {
+ marker.rollback();
+ return false;
}
+ if (!consumeKeyword$6()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$7()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeAssignment$3() throws Exception {
+ if (consumeTerminal(idConsumer, null, false, false, getRule().ele000CrossReferenceEStringEvent(), FowlerDslDelimiters.ALL_KEYWORDS))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeKeyword$6() throws Exception {
+ return consumeKeyword(getRule().ele01KeywordEqualsSignGreaterThanSign(), null, false, false, FowlerDslDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$7() throws Exception {
+ if (consumeTerminal(idConsumer, null, false, false, getRule().ele10CrossReferenceEStringState(), FowlerDslDelimiters.ALL_KEYWORDS))
+ return true;
return false;
}
@@ -96,5 +85,4 @@ public final class FowlerDslTransitionConsumer extends NonTerminalConsumer {
this.idConsumer = idConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/XtextTest.ecore b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/XtextTest.ecore
index e657032..8e01494 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/XtextTest.ecore
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/XtextTest.ecore
@@ -14,10 +14,10 @@
<eStructuralFeatures xsi:type="ecore:EReference" name="rules" unique="false" upperBound="-1" eType="//AbstractRule" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="AbstractRule">
+ <eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="//TypeRef" containment="true"/>
<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:EReference" name="type" eType="//TypeRef" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="AbstractMetamodelDeclaration">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="alias">
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalImportUriTestLanguageLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalImportUriTestLanguageLexer.java
index 8d4c9e3..1c71fb0 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalImportUriTestLanguageLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalImportUriTestLanguageLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalImportUriTestLanguage.g 2009-01-13 09:48:35
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalImportUriTestLanguage.g 2009-01-13 18:38:42
package org.eclipse.xtext.crossrefs.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalImportUriTestLanguageParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalImportUriTestLanguageParser.java
index 9f07ddb..14f995f 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalImportUriTestLanguageParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalImportUriTestLanguageParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalImportUriTestLanguage.g 2009-01-13 09:48:35
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalImportUriTestLanguage.g 2009-01-13 18:38:42
package org.eclipse.xtext.crossrefs.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalLangATestLanguageLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalLangATestLanguageLexer.java
index a985aed..c258818 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalLangATestLanguageLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalLangATestLanguageLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalLangATestLanguage.g 2009-01-13 09:48:20
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalLangATestLanguage.g 2009-01-13 18:38:27
package org.eclipse.xtext.crossrefs.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalLangATestLanguageParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalLangATestLanguageParser.java
index 5a7ab75..690ba42 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalLangATestLanguageParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalLangATestLanguageParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalLangATestLanguage.g 2009-01-13 09:48:20
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalLangATestLanguage.g 2009-01-13 18:38:27
package org.eclipse.xtext.crossrefs.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/ImportUriTestLanguageDelimiters.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/ImportUriTestLanguageDelimiters.java
new file mode 100644
index 0000000..03d178f
--- /dev/null
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/ImportUriTestLanguageDelimiters.java
@@ -0,0 +1,21 @@
+/*
+Generated with Xtext
+*/
+package org.eclipse.xtext.crossrefs.parser.packrat;
+
+import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+import org.eclipse.xtext.parser.packrat.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
+import org.eclipse.xtext.parser.packrat.matching.SetBasedKeywordMatcher;
+
+import org.eclipse.xtext.crossrefs.services.ImportUriTestLanguageGrammarAccess;
+
+public class ImportUriTestLanguageDelimiters {
+
+ public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+
+ public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+
+ public static ISequenceMatcher ALL_KEYWORDS = new SetBasedKeywordMatcher(ImportUriTestLanguageGrammarAccess.INSTANCE.getGrammar());
+
+}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/ImportUriTestLanguageParserConfiguration.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/ImportUriTestLanguageParserConfiguration.java
index 2dc7b9d..06520b3 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/ImportUriTestLanguageParserConfiguration.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/ImportUriTestLanguageParserConfiguration.java
@@ -88,51 +88,41 @@ public class ImportUriTestLanguageParserConfiguration extends AbstractParserConf
return mainConsumer;
}
-
public ImportUriTestLanguageImportConsumer getImportConsumer() {
return importConsumer;
}
-
public ImportUriTestLanguageTypeConsumer getTypeConsumer() {
return typeConsumer;
}
-
public XtextBuiltinIDConsumer getIdConsumer() {
return getXtextBuiltinConfiguration().getIdConsumer();
}
-
public XtextBuiltinINTConsumer getIntConsumer() {
return getXtextBuiltinConfiguration().getIntConsumer();
}
-
public XtextBuiltinSTRINGConsumer getStringConsumer() {
return getXtextBuiltinConfiguration().getStringConsumer();
}
-
public XtextBuiltinML_COMMENTConsumer getMlCommentConsumer() {
return getXtextBuiltinConfiguration().getMlCommentConsumer();
}
-
public XtextBuiltinSL_COMMENTConsumer getSlCommentConsumer() {
return getXtextBuiltinConfiguration().getSlCommentConsumer();
}
-
public XtextBuiltinWSConsumer getWsConsumer() {
return getXtextBuiltinConfiguration().getWsConsumer();
}
-
public XtextBuiltinANY_OTHERConsumer getAnyOtherConsumer() {
return getXtextBuiltinConfiguration().getAnyOtherConsumer();
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/LangATestLanguageDelimiters.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/LangATestLanguageDelimiters.java
new file mode 100644
index 0000000..0bf808a
--- /dev/null
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/LangATestLanguageDelimiters.java
@@ -0,0 +1,21 @@
+/*
+Generated with Xtext
+*/
+package org.eclipse.xtext.crossrefs.parser.packrat;
+
+import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+import org.eclipse.xtext.parser.packrat.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
+import org.eclipse.xtext.parser.packrat.matching.SetBasedKeywordMatcher;
+
+import org.eclipse.xtext.crossrefs.services.LangATestLanguageGrammarAccess;
+
+public class LangATestLanguageDelimiters {
+
+ public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+
+ public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+
+ public static ISequenceMatcher ALL_KEYWORDS = new SetBasedKeywordMatcher(LangATestLanguageGrammarAccess.INSTANCE.getGrammar());
+
+}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/LangATestLanguageParserConfiguration.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/LangATestLanguageParserConfiguration.java
index beb9dd2..275c00c 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/LangATestLanguageParserConfiguration.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/LangATestLanguageParserConfiguration.java
@@ -88,51 +88,41 @@ public class LangATestLanguageParserConfiguration extends AbstractParserConfigur
return mainConsumer;
}
-
public LangATestLanguageImportConsumer getImportConsumer() {
return importConsumer;
}
-
public LangATestLanguageTypeConsumer getTypeConsumer() {
return typeConsumer;
}
-
public XtextBuiltinIDConsumer getIdConsumer() {
return getXtextBuiltinConfiguration().getIdConsumer();
}
-
public XtextBuiltinINTConsumer getIntConsumer() {
return getXtextBuiltinConfiguration().getIntConsumer();
}
-
public XtextBuiltinSTRINGConsumer getStringConsumer() {
return getXtextBuiltinConfiguration().getStringConsumer();
}
-
public XtextBuiltinML_COMMENTConsumer getMlCommentConsumer() {
return getXtextBuiltinConfiguration().getMlCommentConsumer();
}
-
public XtextBuiltinSL_COMMENTConsumer getSlCommentConsumer() {
return getXtextBuiltinConfiguration().getSlCommentConsumer();
}
-
public XtextBuiltinWSConsumer getWsConsumer() {
return getXtextBuiltinConfiguration().getWsConsumer();
}
-
public XtextBuiltinANY_OTHERConsumer getAnyOtherConsumer() {
return getXtextBuiltinConfiguration().getAnyOtherConsumer();
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/ImportUriTestLanguageImportConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/ImportUriTestLanguageImportConsumer.java
index 64374fc..b4673cf 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/ImportUriTestLanguageImportConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/ImportUriTestLanguageImportConsumer.java
@@ -12,11 +12,15 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.crossrefs.services.ImportUriTestLanguageGrammarAccess;
import org.eclipse.xtext.crossrefs.services.ImportUriTestLanguageGrammarAccess.ImportElements;
+import org.eclipse.xtext.crossrefs.parser.packrat.ImportUriTestLanguageDelimiters;
+
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinSTRINGConsumer;
+@SuppressWarnings("unused")
public final class ImportUriTestLanguageImportConsumer extends NonTerminalConsumer {
private XtextBuiltinSTRINGConsumer stringConsumer;
@@ -27,34 +31,30 @@ public final class ImportUriTestLanguageImportConsumer extends NonTerminalConsum
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- KEYWORD$2SUCCESS: {
- if (!consumeKeyword(getRule().ele0KeywordImport(), null, false, false))
- break KEYWORD$2SUCCESS;
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- ASSIGNMENT$3SUCCESS: {
- ASSIGNMENT$3FAILURE: {
- if (consumeTerminal(stringConsumer, "importURI", false, false, getRule().ele10LexerRuleCallSTRING()))
- break ASSIGNMENT$3FAILURE;
- mGROUP$1.rollback();
- break ASSIGNMENT$3SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$2()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$3()) {
+ marker.rollback();
+ return false;
}
+ return true;
+ }
+
+ protected boolean consumeKeyword$2() throws Exception {
+ return consumeKeyword(getRule().ele0KeywordImport(), null, false, false, ImportUriTestLanguageDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$3() throws Exception {
+ if (consumeTerminal(stringConsumer, "importURI", false, false, getRule().ele10LexerRuleCallSTRING(), ImportUriTestLanguageDelimiters.ALL_KEYWORDS))
+ return true;
return false;
}
@@ -75,5 +75,4 @@ public final class ImportUriTestLanguageImportConsumer extends NonTerminalConsum
this.stringConsumer = stringConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/ImportUriTestLanguageMainConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/ImportUriTestLanguageMainConsumer.java
index fee31b1..119ff55 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/ImportUriTestLanguageMainConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/ImportUriTestLanguageMainConsumer.java
@@ -12,12 +12,16 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.crossrefs.services.ImportUriTestLanguageGrammarAccess;
import org.eclipse.xtext.crossrefs.services.ImportUriTestLanguageGrammarAccess.MainElements;
+import org.eclipse.xtext.crossrefs.parser.packrat.ImportUriTestLanguageDelimiters;
+
import org.eclipse.xtext.crossrefs.parser.packrat.consumers.ImportUriTestLanguageTypeConsumer;
import org.eclipse.xtext.crossrefs.parser.packrat.consumers.ImportUriTestLanguageImportConsumer;
+@SuppressWarnings("unused")
public final class ImportUriTestLanguageMainConsumer extends NonTerminalConsumer {
private ImportUriTestLanguageTypeConsumer typeConsumer;
@@ -29,34 +33,45 @@ public final class ImportUriTestLanguageMainConsumer extends NonTerminalConsumer
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- ASSIGNMENT$2SUCCESS: while(true) {
- ASSIGNMENT$2FAILURE: {
- if (consumeNonTerminal(importConsumer, "imports", true, false , getRule().ele00ParserRuleCallImport()))
- break ASSIGNMENT$2FAILURE;
- break ASSIGNMENT$2SUCCESS;
- }
- continue ASSIGNMENT$2SUCCESS;
- }
- }
- GROUP$1FAILURE: {
- ASSIGNMENT$4SUCCESS: while(true) {
- ASSIGNMENT$4FAILURE: {
- if (consumeNonTerminal(typeConsumer, "types", true, false , getRule().ele10ParserRuleCallType()))
- break ASSIGNMENT$4FAILURE;
- break ASSIGNMENT$4SUCCESS;
- }
- continue ASSIGNMENT$4SUCCESS;
- }
- }
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeAssignment$2()) {
+ marker.rollback();
+ return false;
}
+ if (!consumeAssignment$4()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeAssignment$2() throws Exception {
+ while(doConsumeAssignment$2()) {}
return true;
}
+ protected boolean doConsumeAssignment$2() throws Exception {
+ if (consumeNonTerminal(importConsumer, "imports", true, false, getRule().ele00ParserRuleCallImport()))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$4() throws Exception {
+ while(doConsumeAssignment$4()) {}
+ return true;
+ }
+
+ protected boolean doConsumeAssignment$4() throws Exception {
+ if (consumeNonTerminal(typeConsumer, "types", true, false, getRule().ele10ParserRuleCallType()))
+ return true;
+ return false;
+ }
+
public MainElements getRule() {
return ImportUriTestLanguageGrammarAccess.INSTANCE.prMain();
}
@@ -78,5 +93,4 @@ public final class ImportUriTestLanguageMainConsumer extends NonTerminalConsumer
this.importConsumer = importConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/ImportUriTestLanguageTypeConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/ImportUriTestLanguageTypeConsumer.java
index 955491e..a580ca0 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/ImportUriTestLanguageTypeConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/ImportUriTestLanguageTypeConsumer.java
@@ -12,11 +12,15 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.crossrefs.services.ImportUriTestLanguageGrammarAccess;
import org.eclipse.xtext.crossrefs.services.ImportUriTestLanguageGrammarAccess.TypeElements;
+import org.eclipse.xtext.crossrefs.parser.packrat.ImportUriTestLanguageDelimiters;
+
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+@SuppressWarnings("unused")
public final class ImportUriTestLanguageTypeConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
@@ -27,72 +31,48 @@ public final class ImportUriTestLanguageTypeConsumer extends NonTerminalConsumer
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- GROUP$3SUCCESS: {
- IMarker mGROUP$3 = mark();
- GROUP$3FAILURE: {
- KEYWORD$4SUCCESS: {
- if (!consumeKeyword(getRule().ele000KeywordType(), null, false, false))
- break KEYWORD$4SUCCESS;
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- GROUP$3FAILURE: {
- ASSIGNMENT$5SUCCESS: {
- ASSIGNMENT$5FAILURE: {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID()))
- break ASSIGNMENT$5FAILURE;
- mGROUP$3.rollback();
- break ASSIGNMENT$5SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- KEYWORD$7SUCCESS: {
- if (!consumeKeyword(getRule().ele01KeywordExtends(), null, false, false))
- break KEYWORD$7SUCCESS;
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- ASSIGNMENT$8SUCCESS: {
- ASSIGNMENT$8FAILURE: {
- if (consumeTerminal(idConsumer, null, false, false, getRule().ele10CrossReferenceEStringType()))
- break ASSIGNMENT$8FAILURE;
- mGROUP$1.rollback();
- break ASSIGNMENT$8SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$4()) {
+ marker.rollback();
+ return false;
}
+ if (!consumeAssignment$5()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$7()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$8()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$4() throws Exception {
+ return consumeKeyword(getRule().ele000KeywordType(), null, false, false, ImportUriTestLanguageDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$5() throws Exception {
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID(), ImportUriTestLanguageDelimiters.ALL_KEYWORDS))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeKeyword$7() throws Exception {
+ return consumeKeyword(getRule().ele01KeywordExtends(), null, false, false, ImportUriTestLanguageDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$8() throws Exception {
+ if (consumeTerminal(idConsumer, null, false, false, getRule().ele10CrossReferenceEStringType(), ImportUriTestLanguageDelimiters.ALL_KEYWORDS))
+ return true;
return false;
}
@@ -113,5 +93,4 @@ public final class ImportUriTestLanguageTypeConsumer extends NonTerminalConsumer
this.idConsumer = idConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/LangATestLanguageImportConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/LangATestLanguageImportConsumer.java
index d297783..e8b7965 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/LangATestLanguageImportConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/LangATestLanguageImportConsumer.java
@@ -12,11 +12,15 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.crossrefs.services.LangATestLanguageGrammarAccess;
import org.eclipse.xtext.crossrefs.services.LangATestLanguageGrammarAccess.ImportElements;
+import org.eclipse.xtext.crossrefs.parser.packrat.LangATestLanguageDelimiters;
+
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinSTRINGConsumer;
+@SuppressWarnings("unused")
public final class LangATestLanguageImportConsumer extends NonTerminalConsumer {
private XtextBuiltinSTRINGConsumer stringConsumer;
@@ -27,34 +31,30 @@ public final class LangATestLanguageImportConsumer extends NonTerminalConsumer {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- KEYWORD$2SUCCESS: {
- if (!consumeKeyword(getRule().ele0KeywordImport(), null, false, false))
- break KEYWORD$2SUCCESS;
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- ASSIGNMENT$3SUCCESS: {
- ASSIGNMENT$3FAILURE: {
- if (consumeTerminal(stringConsumer, "uri", false, false, getRule().ele10LexerRuleCallSTRING()))
- break ASSIGNMENT$3FAILURE;
- mGROUP$1.rollback();
- break ASSIGNMENT$3SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$2()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$3()) {
+ marker.rollback();
+ return false;
}
+ return true;
+ }
+
+ protected boolean consumeKeyword$2() throws Exception {
+ return consumeKeyword(getRule().ele0KeywordImport(), null, false, false, LangATestLanguageDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$3() throws Exception {
+ if (consumeTerminal(stringConsumer, "uri", false, false, getRule().ele10LexerRuleCallSTRING(), LangATestLanguageDelimiters.ALL_KEYWORDS))
+ return true;
return false;
}
@@ -75,5 +75,4 @@ public final class LangATestLanguageImportConsumer extends NonTerminalConsumer {
this.stringConsumer = stringConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/LangATestLanguageMainConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/LangATestLanguageMainConsumer.java
index 82bc466..65c72fb 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/LangATestLanguageMainConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/LangATestLanguageMainConsumer.java
@@ -12,12 +12,16 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.crossrefs.services.LangATestLanguageGrammarAccess;
import org.eclipse.xtext.crossrefs.services.LangATestLanguageGrammarAccess.MainElements;
+import org.eclipse.xtext.crossrefs.parser.packrat.LangATestLanguageDelimiters;
+
import org.eclipse.xtext.crossrefs.parser.packrat.consumers.LangATestLanguageTypeConsumer;
import org.eclipse.xtext.crossrefs.parser.packrat.consumers.LangATestLanguageImportConsumer;
+@SuppressWarnings("unused")
public final class LangATestLanguageMainConsumer extends NonTerminalConsumer {
private LangATestLanguageTypeConsumer typeConsumer;
@@ -29,34 +33,45 @@ public final class LangATestLanguageMainConsumer extends NonTerminalConsumer {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- ASSIGNMENT$2SUCCESS: while(true) {
- ASSIGNMENT$2FAILURE: {
- if (consumeNonTerminal(importConsumer, "imports", true, false , getRule().ele00ParserRuleCallImport()))
- break ASSIGNMENT$2FAILURE;
- break ASSIGNMENT$2SUCCESS;
- }
- continue ASSIGNMENT$2SUCCESS;
- }
- }
- GROUP$1FAILURE: {
- ASSIGNMENT$4SUCCESS: while(true) {
- ASSIGNMENT$4FAILURE: {
- if (consumeNonTerminal(typeConsumer, "types", true, false , getRule().ele10ParserRuleCallType()))
- break ASSIGNMENT$4FAILURE;
- break ASSIGNMENT$4SUCCESS;
- }
- continue ASSIGNMENT$4SUCCESS;
- }
- }
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeAssignment$2()) {
+ marker.rollback();
+ return false;
}
+ if (!consumeAssignment$4()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeAssignment$2() throws Exception {
+ while(doConsumeAssignment$2()) {}
return true;
}
+ protected boolean doConsumeAssignment$2() throws Exception {
+ if (consumeNonTerminal(importConsumer, "imports", true, false, getRule().ele00ParserRuleCallImport()))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$4() throws Exception {
+ while(doConsumeAssignment$4()) {}
+ return true;
+ }
+
+ protected boolean doConsumeAssignment$4() throws Exception {
+ if (consumeNonTerminal(typeConsumer, "types", true, false, getRule().ele10ParserRuleCallType()))
+ return true;
+ return false;
+ }
+
public MainElements getRule() {
return LangATestLanguageGrammarAccess.INSTANCE.prMain();
}
@@ -78,5 +93,4 @@ public final class LangATestLanguageMainConsumer extends NonTerminalConsumer {
this.importConsumer = importConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/LangATestLanguageTypeConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/LangATestLanguageTypeConsumer.java
index c9b2dca..165237a 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/LangATestLanguageTypeConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/LangATestLanguageTypeConsumer.java
@@ -12,11 +12,15 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.crossrefs.services.LangATestLanguageGrammarAccess;
import org.eclipse.xtext.crossrefs.services.LangATestLanguageGrammarAccess.TypeElements;
+import org.eclipse.xtext.crossrefs.parser.packrat.LangATestLanguageDelimiters;
+
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+@SuppressWarnings("unused")
public final class LangATestLanguageTypeConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
@@ -27,72 +31,48 @@ public final class LangATestLanguageTypeConsumer extends NonTerminalConsumer {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- GROUP$3SUCCESS: {
- IMarker mGROUP$3 = mark();
- GROUP$3FAILURE: {
- KEYWORD$4SUCCESS: {
- if (!consumeKeyword(getRule().ele000KeywordType(), null, false, false))
- break KEYWORD$4SUCCESS;
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- GROUP$3FAILURE: {
- ASSIGNMENT$5SUCCESS: {
- ASSIGNMENT$5FAILURE: {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID()))
- break ASSIGNMENT$5FAILURE;
- mGROUP$3.rollback();
- break ASSIGNMENT$5SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- KEYWORD$7SUCCESS: {
- if (!consumeKeyword(getRule().ele01KeywordExtends(), null, false, false))
- break KEYWORD$7SUCCESS;
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- ASSIGNMENT$8SUCCESS: {
- ASSIGNMENT$8FAILURE: {
- if (consumeTerminal(idConsumer, null, false, false, getRule().ele10CrossReferenceEStringType()))
- break ASSIGNMENT$8FAILURE;
- mGROUP$1.rollback();
- break ASSIGNMENT$8SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$4()) {
+ marker.rollback();
+ return false;
}
+ if (!consumeAssignment$5()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$7()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$8()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$4() throws Exception {
+ return consumeKeyword(getRule().ele000KeywordType(), null, false, false, LangATestLanguageDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$5() throws Exception {
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID(), LangATestLanguageDelimiters.ALL_KEYWORDS))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeKeyword$7() throws Exception {
+ return consumeKeyword(getRule().ele01KeywordExtends(), null, false, false, LangATestLanguageDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$8() throws Exception {
+ if (consumeTerminal(idConsumer, null, false, false, getRule().ele10CrossReferenceEStringType(), LangATestLanguageDelimiters.ALL_KEYWORDS))
+ return true;
return false;
}
@@ -113,5 +93,4 @@ public final class LangATestLanguageTypeConsumer extends NonTerminalConsumer {
this.idConsumer = idConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/antlr/internal/InternalDummyTestLanguageLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/antlr/internal/InternalDummyTestLanguageLexer.java
index 1941dbe..a6708ba 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/antlr/internal/InternalDummyTestLanguageLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/antlr/internal/InternalDummyTestLanguageLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/dummy/parser/antlr/internal/InternalDummyTestLanguage.g 2009-01-13 09:48:25
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/dummy/parser/antlr/internal/InternalDummyTestLanguage.g 2009-01-13 18:38:32
package org.eclipse.xtext.dummy.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/antlr/internal/InternalDummyTestLanguageParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/antlr/internal/InternalDummyTestLanguageParser.java
index bf58588..db370c3 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/antlr/internal/InternalDummyTestLanguageParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/antlr/internal/InternalDummyTestLanguageParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/dummy/parser/antlr/internal/InternalDummyTestLanguage.g 2009-01-13 09:48:25
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/dummy/parser/antlr/internal/InternalDummyTestLanguage.g 2009-01-13 18:38:32
package org.eclipse.xtext.dummy.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/packrat/DummyTestLanguageDelimiters.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/packrat/DummyTestLanguageDelimiters.java
new file mode 100644
index 0000000..90d5ec0
--- /dev/null
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/packrat/DummyTestLanguageDelimiters.java
@@ -0,0 +1,21 @@
+/*
+Generated with Xtext
+*/
+package org.eclipse.xtext.dummy.parser.packrat;
+
+import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+import org.eclipse.xtext.parser.packrat.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
+import org.eclipse.xtext.parser.packrat.matching.SetBasedKeywordMatcher;
+
+import org.eclipse.xtext.dummy.services.DummyTestLanguageGrammarAccess;
+
+public class DummyTestLanguageDelimiters {
+
+ public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+
+ public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+
+ public static ISequenceMatcher ALL_KEYWORDS = new SetBasedKeywordMatcher(DummyTestLanguageGrammarAccess.INSTANCE.getGrammar());
+
+}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/packrat/DummyTestLanguageParserConfiguration.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/packrat/DummyTestLanguageParserConfiguration.java
index b740b56..f23d738 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/packrat/DummyTestLanguageParserConfiguration.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/packrat/DummyTestLanguageParserConfiguration.java
@@ -81,46 +81,37 @@ public class DummyTestLanguageParserConfiguration extends AbstractParserConfigur
return modelConsumer;
}
-
public DummyTestLanguageElementConsumer getElementConsumer() {
return elementConsumer;
}
-
public XtextBuiltinIDConsumer getIdConsumer() {
return getXtextBuiltinConfiguration().getIdConsumer();
}
-
public XtextBuiltinINTConsumer getIntConsumer() {
return getXtextBuiltinConfiguration().getIntConsumer();
}
-
public XtextBuiltinSTRINGConsumer getStringConsumer() {
return getXtextBuiltinConfiguration().getStringConsumer();
}
-
public XtextBuiltinML_COMMENTConsumer getMlCommentConsumer() {
return getXtextBuiltinConfiguration().getMlCommentConsumer();
}
-
public XtextBuiltinSL_COMMENTConsumer getSlCommentConsumer() {
return getXtextBuiltinConfiguration().getSlCommentConsumer();
}
-
public XtextBuiltinWSConsumer getWsConsumer() {
return getXtextBuiltinConfiguration().getWsConsumer();
}
-
public XtextBuiltinANY_OTHERConsumer getAnyOtherConsumer() {
return getXtextBuiltinConfiguration().getAnyOtherConsumer();
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/packrat/consumers/DummyTestLanguageElementConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/packrat/consumers/DummyTestLanguageElementConsumer.java
index fe254a3..ed39e25 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/packrat/consumers/DummyTestLanguageElementConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/packrat/consumers/DummyTestLanguageElementConsumer.java
@@ -12,12 +12,16 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.dummy.services.DummyTestLanguageGrammarAccess;
import org.eclipse.xtext.dummy.services.DummyTestLanguageGrammarAccess.ElementElements;
+import org.eclipse.xtext.dummy.parser.packrat.DummyTestLanguageDelimiters;
+
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinSTRINGConsumer;
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+@SuppressWarnings("unused")
public final class DummyTestLanguageElementConsumer extends NonTerminalConsumer {
private XtextBuiltinSTRINGConsumer stringConsumer;
@@ -29,90 +33,71 @@ public final class DummyTestLanguageElementConsumer extends NonTerminalConsumer
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- GROUP$3SUCCESS: {
- IMarker mGROUP$3 = mark();
- GROUP$3FAILURE: {
- GROUP$4SUCCESS: {
- IMarker mGROUP$4 = mark();
- GROUP$4FAILURE: {
- ASSIGNMENT$5SUCCESS: {
- ASSIGNMENT$5FAILURE: {
- if (consumeKeyword(getRule().ele00000KeywordOptional(), "optional", false, true))
- break ASSIGNMENT$5FAILURE;
- break ASSIGNMENT$5SUCCESS;
- }
- break GROUP$4FAILURE;
- }
- }
- GROUP$4FAILURE: {
- KEYWORD$7SUCCESS: {
- if (!consumeKeyword(getRule().ele0001KeywordElement(), null, false, false))
- break KEYWORD$7SUCCESS;
- break GROUP$4FAILURE;
- }
- mGROUP$4.rollback();
- break GROUP$4SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- GROUP$3FAILURE: {
- ASSIGNMENT$8SUCCESS: {
- ASSIGNMENT$8FAILURE: {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID()))
- break ASSIGNMENT$8FAILURE;
- mGROUP$3.rollback();
- break ASSIGNMENT$8SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- ASSIGNMENT$10SUCCESS: while(true) {
- ASSIGNMENT$10FAILURE: {
- if (consumeTerminal(stringConsumer, "descriptions", true, false, getRule().ele010LexerRuleCallSTRING()))
- break ASSIGNMENT$10FAILURE;
- break ASSIGNMENT$10SUCCESS;
- }
- continue ASSIGNMENT$10SUCCESS;
- }
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- KEYWORD$12SUCCESS: {
- if (!consumeKeyword(getRule().ele1KeywordSemicolon(), null, false, false))
- break KEYWORD$12SUCCESS;
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeAssignment$5()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$7()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$8()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$10()) {
+ marker.rollback();
+ return false;
}
+ if (!consumeKeyword$12()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeAssignment$5() throws Exception {
+ doConsumeAssignment$5();
+ return true;
+ }
+
+ protected boolean doConsumeAssignment$5() throws Exception {
+ if (consumeKeyword(getRule().ele00000KeywordOptional(), "optional", false, true, DummyTestLanguageDelimiters.ID_DELIMITER))
+ return true;
return false;
}
+ protected boolean consumeKeyword$7() throws Exception {
+ return consumeKeyword(getRule().ele0001KeywordElement(), null, false, false, DummyTestLanguageDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$8() throws Exception {
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID(), DummyTestLanguageDelimiters.ALL_KEYWORDS))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$10() throws Exception {
+ while(doConsumeAssignment$10()) {}
+ return true;
+ }
+
+ protected boolean doConsumeAssignment$10() throws Exception {
+ if (consumeTerminal(stringConsumer, "descriptions", true, false, getRule().ele010LexerRuleCallSTRING(), DummyTestLanguageDelimiters.ALL_KEYWORDS))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeKeyword$12() throws Exception {
+ return consumeKeyword(getRule().ele1KeywordSemicolon(), null, false, false, DummyTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ }
+
public ElementElements getRule() {
return DummyTestLanguageGrammarAccess.INSTANCE.prElement();
}
@@ -134,5 +119,4 @@ public final class DummyTestLanguageElementConsumer extends NonTerminalConsumer
this.idConsumer = idConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/packrat/consumers/DummyTestLanguageModelConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/packrat/consumers/DummyTestLanguageModelConsumer.java
index 1480fc4..3a881e5 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/packrat/consumers/DummyTestLanguageModelConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/packrat/consumers/DummyTestLanguageModelConsumer.java
@@ -12,11 +12,15 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.dummy.services.DummyTestLanguageGrammarAccess;
import org.eclipse.xtext.dummy.services.DummyTestLanguageGrammarAccess.ModelElements;
+import org.eclipse.xtext.dummy.parser.packrat.DummyTestLanguageDelimiters;
+
import org.eclipse.xtext.dummy.parser.packrat.consumers.DummyTestLanguageElementConsumer;
+@SuppressWarnings("unused")
public final class DummyTestLanguageModelConsumer extends NonTerminalConsumer {
private DummyTestLanguageElementConsumer elementConsumer;
@@ -27,19 +31,21 @@ public final class DummyTestLanguageModelConsumer extends NonTerminalConsumer {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- ASSIGNMENT$1SUCCESS: while(true) {
- ASSIGNMENT$1FAILURE: {
- if (consumeNonTerminal(elementConsumer, "elements", true, false , getRule().ele0ParserRuleCallElement()))
- break ASSIGNMENT$1FAILURE;
- break ASSIGNMENT$1SUCCESS;
- }
- continue ASSIGNMENT$1SUCCESS;
- }
+ return consumeAssignment$1();
+ }
+
+ protected boolean consumeAssignment$1() throws Exception {
+ while(doConsumeAssignment$1()) {}
return true;
}
+ protected boolean doConsumeAssignment$1() throws Exception {
+ if (consumeNonTerminal(elementConsumer, "elements", true, false, getRule().ele0ParserRuleCallElement()))
+ return true;
+ return false;
+ }
+
public ModelElements getRule() {
return DummyTestLanguageGrammarAccess.INSTANCE.prModel();
}
@@ -57,5 +63,4 @@ public final class DummyTestLanguageModelConsumer extends NonTerminalConsumer {
this.elementConsumer = elementConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/antlr/internal/InternalConcreteTestLanguageLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/antlr/internal/InternalConcreteTestLanguageLexer.java
index 462bb82..5771aa3 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/antlr/internal/InternalConcreteTestLanguageLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/antlr/internal/InternalConcreteTestLanguageLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/grammarinheritance/parser/antlr/internal/InternalConcreteTestLanguage.g 2009-01-13 09:48:21
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/grammarinheritance/parser/antlr/internal/InternalConcreteTestLanguage.g 2009-01-13 18:38:28
package org.eclipse.xtext.grammarinheritance.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/antlr/internal/InternalConcreteTestLanguageParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/antlr/internal/InternalConcreteTestLanguageParser.java
index 51d420e..9d0c1b0 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/antlr/internal/InternalConcreteTestLanguageParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/antlr/internal/InternalConcreteTestLanguageParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/grammarinheritance/parser/antlr/internal/InternalConcreteTestLanguage.g 2009-01-13 09:48:21
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/grammarinheritance/parser/antlr/internal/InternalConcreteTestLanguage.g 2009-01-13 18:38:28
package org.eclipse.xtext.grammarinheritance.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/AbstractTestLanguageDelimiters.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/AbstractTestLanguageDelimiters.java
new file mode 100644
index 0000000..6dd35cb
--- /dev/null
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/AbstractTestLanguageDelimiters.java
@@ -0,0 +1,21 @@
+/*
+Generated with Xtext
+*/
+package org.eclipse.xtext.grammarinheritance.parser.packrat;
+
+import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+import org.eclipse.xtext.parser.packrat.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
+import org.eclipse.xtext.parser.packrat.matching.SetBasedKeywordMatcher;
+
+import org.eclipse.xtext.grammarinheritance.services.AbstractTestLanguageGrammarAccess;
+
+public class AbstractTestLanguageDelimiters {
+
+ public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+
+ public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+
+ public static ISequenceMatcher ALL_KEYWORDS = new SetBasedKeywordMatcher(AbstractTestLanguageGrammarAccess.INSTANCE.getGrammar());
+
+}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/AbstractTestLanguageParserConfiguration.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/AbstractTestLanguageParserConfiguration.java
index 5d264df..ca9af0b 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/AbstractTestLanguageParserConfiguration.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/AbstractTestLanguageParserConfiguration.java
@@ -79,46 +79,37 @@ public class AbstractTestLanguageParserConfiguration extends AbstractParserConfi
return inheritedParserRuleConsumer;
}
-
public AbstractTestLanguageREALConsumer getRealConsumer() {
return realConsumer;
}
-
public AbstractTestLanguageIDConsumer getIdConsumer() {
return idConsumer;
}
-
public XtextBuiltinINTConsumer getIntConsumer() {
return getXtextBuiltinConfiguration().getIntConsumer();
}
-
public XtextBuiltinSTRINGConsumer getStringConsumer() {
return getXtextBuiltinConfiguration().getStringConsumer();
}
-
public XtextBuiltinML_COMMENTConsumer getMlCommentConsumer() {
return getXtextBuiltinConfiguration().getMlCommentConsumer();
}
-
public XtextBuiltinSL_COMMENTConsumer getSlCommentConsumer() {
return getXtextBuiltinConfiguration().getSlCommentConsumer();
}
-
public XtextBuiltinWSConsumer getWsConsumer() {
return getXtextBuiltinConfiguration().getWsConsumer();
}
-
public XtextBuiltinANY_OTHERConsumer getAnyOtherConsumer() {
return getXtextBuiltinConfiguration().getAnyOtherConsumer();
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/ConcreteTestLanguageDelimiters.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/ConcreteTestLanguageDelimiters.java
new file mode 100644
index 0000000..900125a
--- /dev/null
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/ConcreteTestLanguageDelimiters.java
@@ -0,0 +1,21 @@
+/*
+Generated with Xtext
+*/
+package org.eclipse.xtext.grammarinheritance.parser.packrat;
+
+import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+import org.eclipse.xtext.parser.packrat.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
+import org.eclipse.xtext.parser.packrat.matching.SetBasedKeywordMatcher;
+
+import org.eclipse.xtext.grammarinheritance.services.ConcreteTestLanguageGrammarAccess;
+
+public class ConcreteTestLanguageDelimiters {
+
+ public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+
+ public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+
+ public static ISequenceMatcher ALL_KEYWORDS = new SetBasedKeywordMatcher(ConcreteTestLanguageGrammarAccess.INSTANCE.getGrammar());
+
+}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/ConcreteTestLanguageParserConfiguration.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/ConcreteTestLanguageParserConfiguration.java
index 2c11e6f..2d0bd08 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/ConcreteTestLanguageParserConfiguration.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/ConcreteTestLanguageParserConfiguration.java
@@ -79,51 +79,41 @@ public class ConcreteTestLanguageParserConfiguration extends AbstractParserConfi
return concreteParserRuleConsumer;
}
-
public AbstractTestLanguageInheritedParserRuleConsumer getInheritedParserRuleConsumer() {
return getAbstractTestLanguageConfiguration().getInheritedParserRuleConsumer();
}
-
public AbstractTestLanguageREALConsumer getRealConsumer() {
return getAbstractTestLanguageConfiguration().getRealConsumer();
}
-
public AbstractTestLanguageIDConsumer getIdConsumer() {
return getAbstractTestLanguageConfiguration().getIdConsumer();
}
-
public XtextBuiltinINTConsumer getIntConsumer() {
return getAbstractTestLanguageConfiguration().getIntConsumer();
}
-
public XtextBuiltinSTRINGConsumer getStringConsumer() {
return getAbstractTestLanguageConfiguration().getStringConsumer();
}
-
public XtextBuiltinML_COMMENTConsumer getMlCommentConsumer() {
return getAbstractTestLanguageConfiguration().getMlCommentConsumer();
}
-
public XtextBuiltinSL_COMMENTConsumer getSlCommentConsumer() {
return getAbstractTestLanguageConfiguration().getSlCommentConsumer();
}
-
public XtextBuiltinWSConsumer getWsConsumer() {
return getAbstractTestLanguageConfiguration().getWsConsumer();
}
-
public XtextBuiltinANY_OTHERConsumer getAnyOtherConsumer() {
return getAbstractTestLanguageConfiguration().getAnyOtherConsumer();
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/consumers/AbstractTestLanguageInheritedParserRuleConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/consumers/AbstractTestLanguageInheritedParserRuleConsumer.java
index 9d1b3f9..c7d1924 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/consumers/AbstractTestLanguageInheritedParserRuleConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/consumers/AbstractTestLanguageInheritedParserRuleConsumer.java
@@ -12,11 +12,15 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.grammarinheritance.services.AbstractTestLanguageGrammarAccess;
import org.eclipse.xtext.grammarinheritance.services.AbstractTestLanguageGrammarAccess.InheritedParserRuleElements;
+import org.eclipse.xtext.grammarinheritance.parser.packrat.AbstractTestLanguageDelimiters;
+
import org.eclipse.xtext.grammarinheritance.parser.packrat.consumers.AbstractTestLanguageIDConsumer;
+@SuppressWarnings("unused")
public final class AbstractTestLanguageInheritedParserRuleConsumer extends NonTerminalConsumer {
private AbstractTestLanguageIDConsumer idConsumer;
@@ -27,34 +31,30 @@ public final class AbstractTestLanguageInheritedParserRuleConsumer extends NonTe
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- KEYWORD$2SUCCESS: {
- if (!consumeKeyword(getRule().ele0KeywordElement(), null, false, false))
- break KEYWORD$2SUCCESS;
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- ASSIGNMENT$3SUCCESS: {
- ASSIGNMENT$3FAILURE: {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele10LexerRuleCallID()))
- break ASSIGNMENT$3FAILURE;
- mGROUP$1.rollback();
- break ASSIGNMENT$3SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$2()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$3()) {
+ marker.rollback();
+ return false;
}
+ return true;
+ }
+
+ protected boolean consumeKeyword$2() throws Exception {
+ return consumeKeyword(getRule().ele0KeywordElement(), null, false, false, AbstractTestLanguageDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$3() throws Exception {
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele10LexerRuleCallID(), AbstractTestLanguageDelimiters.ALL_KEYWORDS))
+ return true;
return false;
}
@@ -75,5 +75,4 @@ public final class AbstractTestLanguageInheritedParserRuleConsumer extends NonTe
this.idConsumer = idConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/consumers/ConcreteTestLanguageConcreteParserRuleConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/consumers/ConcreteTestLanguageConcreteParserRuleConsumer.java
index 3bd7082..411a74d 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/consumers/ConcreteTestLanguageConcreteParserRuleConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/consumers/ConcreteTestLanguageConcreteParserRuleConsumer.java
@@ -12,12 +12,16 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.grammarinheritance.services.ConcreteTestLanguageGrammarAccess;
import org.eclipse.xtext.grammarinheritance.services.ConcreteTestLanguageGrammarAccess.ConcreteParserRuleElements;
+import org.eclipse.xtext.grammarinheritance.parser.packrat.ConcreteTestLanguageDelimiters;
+
import org.eclipse.xtext.grammarinheritance.parser.packrat.consumers.AbstractTestLanguageInheritedParserRuleConsumer;
import org.eclipse.xtext.grammarinheritance.parser.packrat.consumers.AbstractTestLanguageREALConsumer;
+@SuppressWarnings("unused")
public final class ConcreteTestLanguageConcreteParserRuleConsumer extends NonTerminalConsumer {
private AbstractTestLanguageInheritedParserRuleConsumer inheritedParserRuleConsumer;
@@ -29,69 +33,53 @@ public final class ConcreteTestLanguageConcreteParserRuleConsumer extends NonTer
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- GROUP$3SUCCESS: {
- IMarker mGROUP$3 = mark();
- GROUP$3FAILURE: {
- KEYWORD$4SUCCESS: {
- if (!consumeKeyword(getRule().ele000KeywordModel(), null, false, false))
- break KEYWORD$4SUCCESS;
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- GROUP$3FAILURE: {
- ASSIGNMENT$5SUCCESS: {
- ASSIGNMENT$5FAILURE: {
- if (consumeTerminal(realConsumer, "magicNumber", false, false, getRule().ele0010LexerRuleCallREAL()))
- break ASSIGNMENT$5FAILURE;
- mGROUP$3.rollback();
- break ASSIGNMENT$5SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- KEYWORD$7SUCCESS: {
- if (!consumeKeyword(getRule().ele01KeywordColon(), null, false, false))
- break KEYWORD$7SUCCESS;
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- ASSIGNMENT$8SUCCESS: while(true) {
- ASSIGNMENT$8FAILURE: {
- if (consumeNonTerminal(inheritedParserRuleConsumer, "elements", true, false , getRule().ele10ParserRuleCallInheritedParserRule()))
- break ASSIGNMENT$8FAILURE;
- break ASSIGNMENT$8SUCCESS;
- }
- continue ASSIGNMENT$8SUCCESS;
- }
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$4()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$5()) {
+ marker.rollback();
+ return false;
}
+ if (!consumeKeyword$7()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$8()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$4() throws Exception {
+ return consumeKeyword(getRule().ele000KeywordModel(), null, false, false, ConcreteTestLanguageDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$5() throws Exception {
+ if (consumeTerminal(realConsumer, "magicNumber", false, false, getRule().ele0010LexerRuleCallREAL(), ConcreteTestLanguageDelimiters.ALL_KEYWORDS))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeKeyword$7() throws Exception {
+ return consumeKeyword(getRule().ele01KeywordColon(), null, false, false, ConcreteTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$8() throws Exception {
+ while(doConsumeAssignment$8()) {}
+ return true;
+ }
+
+ protected boolean doConsumeAssignment$8() throws Exception {
+ if (consumeNonTerminal(inheritedParserRuleConsumer, "elements", true, false, getRule().ele10ParserRuleCallInheritedParserRule()))
+ return true;
return false;
}
@@ -116,5 +104,4 @@ public final class ConcreteTestLanguageConcreteParserRuleConsumer extends NonTer
this.realConsumer = realConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMetamodelRefTestLanguageLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMetamodelRefTestLanguageLexer.java
index ef1c78b..7a9a5b5 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMetamodelRefTestLanguageLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMetamodelRefTestLanguageLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMetamodelRefTestLanguage.g 2009-01-13 09:48:24
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMetamodelRefTestLanguage.g 2009-01-13 18:38:31
package org.eclipse.xtext.metamodelreferencing.tests.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMetamodelRefTestLanguageParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMetamodelRefTestLanguageParser.java
index fb0bfff..def3162 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMetamodelRefTestLanguageParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMetamodelRefTestLanguageParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMetamodelRefTestLanguage.g 2009-01-13 09:48:24
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMetamodelRefTestLanguage.g 2009-01-13 18:38:31
package org.eclipse.xtext.metamodelreferencing.tests.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMultiGenMMTestLanguageLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMultiGenMMTestLanguageLexer.java
index 9dd048e..4d784fb 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMultiGenMMTestLanguageLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMultiGenMMTestLanguageLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMultiGenMMTestLanguage.g 2009-01-13 09:48:25
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMultiGenMMTestLanguage.g 2009-01-13 18:38:32
package org.eclipse.xtext.metamodelreferencing.tests.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMultiGenMMTestLanguageParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMultiGenMMTestLanguageParser.java
index 350bf38..7c06999 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMultiGenMMTestLanguageParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMultiGenMMTestLanguageParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMultiGenMMTestLanguage.g 2009-01-13 09:48:24
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMultiGenMMTestLanguage.g 2009-01-13 18:38:32
package org.eclipse.xtext.metamodelreferencing.tests.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/MetamodelRefTestLanguageDelimiters.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/MetamodelRefTestLanguageDelimiters.java
new file mode 100644
index 0000000..fa12011
--- /dev/null
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/MetamodelRefTestLanguageDelimiters.java
@@ -0,0 +1,21 @@
+/*
+Generated with Xtext
+*/
+package org.eclipse.xtext.metamodelreferencing.tests.parser.packrat;
+
+import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+import org.eclipse.xtext.parser.packrat.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
+import org.eclipse.xtext.parser.packrat.matching.SetBasedKeywordMatcher;
+
+import org.eclipse.xtext.metamodelreferencing.tests.services.MetamodelRefTestLanguageGrammarAccess;
+
+public class MetamodelRefTestLanguageDelimiters {
+
+ public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+
+ public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+
+ public static ISequenceMatcher ALL_KEYWORDS = new SetBasedKeywordMatcher(MetamodelRefTestLanguageGrammarAccess.INSTANCE.getGrammar());
+
+}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/MetamodelRefTestLanguageParserConfiguration.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/MetamodelRefTestLanguageParserConfiguration.java
index 499277a..52f8337 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/MetamodelRefTestLanguageParserConfiguration.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/MetamodelRefTestLanguageParserConfiguration.java
@@ -88,51 +88,41 @@ public class MetamodelRefTestLanguageParserConfiguration extends AbstractParserC
return fooConsumer;
}
-
public MetamodelRefTestLanguageNameRefConsumer getNameRefConsumer() {
return nameRefConsumer;
}
-
public MetamodelRefTestLanguageMyRuleConsumer getMyRuleConsumer() {
return myRuleConsumer;
}
-
public XtextBuiltinIDConsumer getIdConsumer() {
return getXtextBuiltinConfiguration().getIdConsumer();
}
-
public XtextBuiltinINTConsumer getIntConsumer() {
return getXtextBuiltinConfiguration().getIntConsumer();
}
-
public XtextBuiltinSTRINGConsumer getStringConsumer() {
return getXtextBuiltinConfiguration().getStringConsumer();
}
-
public XtextBuiltinML_COMMENTConsumer getMlCommentConsumer() {
return getXtextBuiltinConfiguration().getMlCommentConsumer();
}
-
public XtextBuiltinSL_COMMENTConsumer getSlCommentConsumer() {
return getXtextBuiltinConfiguration().getSlCommentConsumer();
}
-
public XtextBuiltinWSConsumer getWsConsumer() {
return getXtextBuiltinConfiguration().getWsConsumer();
}
-
public XtextBuiltinANY_OTHERConsumer getAnyOtherConsumer() {
return getXtextBuiltinConfiguration().getAnyOtherConsumer();
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/MultiGenMMTestLanguageDelimiters.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/MultiGenMMTestLanguageDelimiters.java
new file mode 100644
index 0000000..9b306e1
--- /dev/null
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/MultiGenMMTestLanguageDelimiters.java
@@ -0,0 +1,21 @@
+/*
+Generated with Xtext
+*/
+package org.eclipse.xtext.metamodelreferencing.tests.parser.packrat;
+
+import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+import org.eclipse.xtext.parser.packrat.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
+import org.eclipse.xtext.parser.packrat.matching.SetBasedKeywordMatcher;
+
+import org.eclipse.xtext.metamodelreferencing.tests.services.MultiGenMMTestLanguageGrammarAccess;
+
+public class MultiGenMMTestLanguageDelimiters {
+
+ public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+
+ public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+
+ public static ISequenceMatcher ALL_KEYWORDS = new SetBasedKeywordMatcher(MultiGenMMTestLanguageGrammarAccess.INSTANCE.getGrammar());
+
+}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/MultiGenMMTestLanguageParserConfiguration.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/MultiGenMMTestLanguageParserConfiguration.java
index bc55206..3f54593 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/MultiGenMMTestLanguageParserConfiguration.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/MultiGenMMTestLanguageParserConfiguration.java
@@ -81,46 +81,37 @@ public class MultiGenMMTestLanguageParserConfiguration extends AbstractParserCon
return fooConsumer;
}
-
public MultiGenMMTestLanguageNameRefConsumer getNameRefConsumer() {
return nameRefConsumer;
}
-
public XtextBuiltinIDConsumer getIdConsumer() {
return getXtextBuiltinConfiguration().getIdConsumer();
}
-
public XtextBuiltinINTConsumer getIntConsumer() {
return getXtextBuiltinConfiguration().getIntConsumer();
}
-
public XtextBuiltinSTRINGConsumer getStringConsumer() {
return getXtextBuiltinConfiguration().getStringConsumer();
}
-
public XtextBuiltinML_COMMENTConsumer getMlCommentConsumer() {
return getXtextBuiltinConfiguration().getMlCommentConsumer();
}
-
public XtextBuiltinSL_COMMENTConsumer getSlCommentConsumer() {
return getXtextBuiltinConfiguration().getSlCommentConsumer();
}
-
public XtextBuiltinWSConsumer getWsConsumer() {
return getXtextBuiltinConfiguration().getWsConsumer();
}
-
public XtextBuiltinANY_OTHERConsumer getAnyOtherConsumer() {
return getXtextBuiltinConfiguration().getAnyOtherConsumer();
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MetamodelRefTestLanguageFooConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MetamodelRefTestLanguageFooConsumer.java
index 0dcb126..ee0f56d 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MetamodelRefTestLanguageFooConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MetamodelRefTestLanguageFooConsumer.java
@@ -12,12 +12,16 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.metamodelreferencing.tests.services.MetamodelRefTestLanguageGrammarAccess;
import org.eclipse.xtext.metamodelreferencing.tests.services.MetamodelRefTestLanguageGrammarAccess.FooElements;
+import org.eclipse.xtext.metamodelreferencing.tests.parser.packrat.MetamodelRefTestLanguageDelimiters;
+
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
import org.eclipse.xtext.metamodelreferencing.tests.parser.packrat.consumers.MetamodelRefTestLanguageNameRefConsumer;
+@SuppressWarnings("unused")
public final class MetamodelRefTestLanguageFooConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
@@ -29,35 +33,37 @@ public final class MetamodelRefTestLanguageFooConsumer extends NonTerminalConsum
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- ASSIGNMENT$2SUCCESS: {
- ASSIGNMENT$2FAILURE: {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele00LexerRuleCallID()))
- break ASSIGNMENT$2FAILURE;
- mGROUP$1.rollback();
- break ASSIGNMENT$2SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- ASSIGNMENT$4SUCCESS: while(true) {
- ASSIGNMENT$4FAILURE: {
- if (consumeNonTerminal(nameRefConsumer, "nameRefs", true, false , getRule().ele10ParserRuleCallNameRef()))
- break ASSIGNMENT$4FAILURE;
- break ASSIGNMENT$4SUCCESS;
- }
- continue ASSIGNMENT$4SUCCESS;
- }
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeAssignment$2()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$4()) {
+ marker.rollback();
+ return false;
}
+ return true;
+ }
+
+ protected boolean consumeAssignment$2() throws Exception {
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele00LexerRuleCallID(), MetamodelRefTestLanguageDelimiters.ALL_KEYWORDS))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$4() throws Exception {
+ while(doConsumeAssignment$4()) {}
+ return true;
+ }
+
+ protected boolean doConsumeAssignment$4() throws Exception {
+ if (consumeNonTerminal(nameRefConsumer, "nameRefs", true, false, getRule().ele10ParserRuleCallNameRef()))
+ return true;
return false;
}
@@ -82,5 +88,4 @@ public final class MetamodelRefTestLanguageFooConsumer extends NonTerminalConsum
this.nameRefConsumer = nameRefConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MetamodelRefTestLanguageMyRuleConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MetamodelRefTestLanguageMyRuleConsumer.java
index 2fcfaa6f..c8c8ea5 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MetamodelRefTestLanguageMyRuleConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MetamodelRefTestLanguageMyRuleConsumer.java
@@ -12,11 +12,15 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.metamodelreferencing.tests.services.MetamodelRefTestLanguageGrammarAccess;
import org.eclipse.xtext.metamodelreferencing.tests.services.MetamodelRefTestLanguageGrammarAccess.MyRuleElements;
+import org.eclipse.xtext.metamodelreferencing.tests.parser.packrat.MetamodelRefTestLanguageDelimiters;
+
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+@SuppressWarnings("unused")
public final class MetamodelRefTestLanguageMyRuleConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
@@ -27,16 +31,13 @@ public final class MetamodelRefTestLanguageMyRuleConsumer extends NonTerminalCon
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- ASSIGNMENT$1SUCCESS: {
- ASSIGNMENT$1FAILURE: {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0LexerRuleCallID()))
- break ASSIGNMENT$1FAILURE;
- break ASSIGNMENT$1SUCCESS;
- }
+ return consumeAssignment$1();
+ }
+
+ protected boolean consumeAssignment$1() throws Exception {
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0LexerRuleCallID(), MetamodelRefTestLanguageDelimiters.ALL_KEYWORDS))
return true;
- }
return false;
}
@@ -57,5 +58,4 @@ public final class MetamodelRefTestLanguageMyRuleConsumer extends NonTerminalCon
this.idConsumer = idConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MetamodelRefTestLanguageNameRefConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MetamodelRefTestLanguageNameRefConsumer.java
index 7451bc9..e1f998a 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MetamodelRefTestLanguageNameRefConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MetamodelRefTestLanguageNameRefConsumer.java
@@ -12,11 +12,15 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.metamodelreferencing.tests.services.MetamodelRefTestLanguageGrammarAccess;
import org.eclipse.xtext.metamodelreferencing.tests.services.MetamodelRefTestLanguageGrammarAccess.NameRefElements;
+import org.eclipse.xtext.metamodelreferencing.tests.parser.packrat.MetamodelRefTestLanguageDelimiters;
+
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+@SuppressWarnings("unused")
public final class MetamodelRefTestLanguageNameRefConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
@@ -27,16 +31,13 @@ public final class MetamodelRefTestLanguageNameRefConsumer extends NonTerminalCo
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- ASSIGNMENT$1SUCCESS: {
- ASSIGNMENT$1FAILURE: {
- if (consumeTerminal(idConsumer, null, false, false, getRule().ele0CrossReferenceEStringParserRule()))
- break ASSIGNMENT$1FAILURE;
- break ASSIGNMENT$1SUCCESS;
- }
+ return consumeAssignment$1();
+ }
+
+ protected boolean consumeAssignment$1() throws Exception {
+ if (consumeTerminal(idConsumer, null, false, false, getRule().ele0CrossReferenceEStringParserRule(), MetamodelRefTestLanguageDelimiters.ALL_KEYWORDS))
return true;
- }
return false;
}
@@ -57,5 +58,4 @@ public final class MetamodelRefTestLanguageNameRefConsumer extends NonTerminalCo
this.idConsumer = idConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MultiGenMMTestLanguageFooConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MultiGenMMTestLanguageFooConsumer.java
index 0bbfc64..4e25524 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MultiGenMMTestLanguageFooConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MultiGenMMTestLanguageFooConsumer.java
@@ -12,12 +12,16 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.metamodelreferencing.tests.services.MultiGenMMTestLanguageGrammarAccess;
import org.eclipse.xtext.metamodelreferencing.tests.services.MultiGenMMTestLanguageGrammarAccess.FooElements;
+import org.eclipse.xtext.metamodelreferencing.tests.parser.packrat.MultiGenMMTestLanguageDelimiters;
+
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
import org.eclipse.xtext.metamodelreferencing.tests.parser.packrat.consumers.MultiGenMMTestLanguageNameRefConsumer;
+@SuppressWarnings("unused")
public final class MultiGenMMTestLanguageFooConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
@@ -29,35 +33,37 @@ public final class MultiGenMMTestLanguageFooConsumer extends NonTerminalConsumer
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- ASSIGNMENT$2SUCCESS: {
- ASSIGNMENT$2FAILURE: {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele00LexerRuleCallID()))
- break ASSIGNMENT$2FAILURE;
- mGROUP$1.rollback();
- break ASSIGNMENT$2SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- ASSIGNMENT$4SUCCESS: while(true) {
- ASSIGNMENT$4FAILURE: {
- if (consumeNonTerminal(nameRefConsumer, "nameRefs", true, false , getRule().ele10ParserRuleCallNameRef()))
- break ASSIGNMENT$4FAILURE;
- break ASSIGNMENT$4SUCCESS;
- }
- continue ASSIGNMENT$4SUCCESS;
- }
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeAssignment$2()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$4()) {
+ marker.rollback();
+ return false;
}
+ return true;
+ }
+
+ protected boolean consumeAssignment$2() throws Exception {
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele00LexerRuleCallID(), MultiGenMMTestLanguageDelimiters.ALL_KEYWORDS))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$4() throws Exception {
+ while(doConsumeAssignment$4()) {}
+ return true;
+ }
+
+ protected boolean doConsumeAssignment$4() throws Exception {
+ if (consumeNonTerminal(nameRefConsumer, "nameRefs", true, false, getRule().ele10ParserRuleCallNameRef()))
+ return true;
return false;
}
@@ -82,5 +88,4 @@ public final class MultiGenMMTestLanguageFooConsumer extends NonTerminalConsumer
this.nameRefConsumer = nameRefConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MultiGenMMTestLanguageNameRefConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MultiGenMMTestLanguageNameRefConsumer.java
index 55ec978..09feefc 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MultiGenMMTestLanguageNameRefConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MultiGenMMTestLanguageNameRefConsumer.java
@@ -12,11 +12,15 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.metamodelreferencing.tests.services.MultiGenMMTestLanguageGrammarAccess;
import org.eclipse.xtext.metamodelreferencing.tests.services.MultiGenMMTestLanguageGrammarAccess.NameRefElements;
+import org.eclipse.xtext.metamodelreferencing.tests.parser.packrat.MultiGenMMTestLanguageDelimiters;
+
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinSTRINGConsumer;
+@SuppressWarnings("unused")
public final class MultiGenMMTestLanguageNameRefConsumer extends NonTerminalConsumer {
private XtextBuiltinSTRINGConsumer stringConsumer;
@@ -27,16 +31,13 @@ public final class MultiGenMMTestLanguageNameRefConsumer extends NonTerminalCons
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- ASSIGNMENT$1SUCCESS: {
- ASSIGNMENT$1FAILURE: {
- if (consumeTerminal(stringConsumer, "name", false, false, getRule().ele0LexerRuleCallSTRING()))
- break ASSIGNMENT$1FAILURE;
- break ASSIGNMENT$1SUCCESS;
- }
+ return consumeAssignment$1();
+ }
+
+ protected boolean consumeAssignment$1() throws Exception {
+ if (consumeTerminal(stringConsumer, "name", false, false, getRule().ele0LexerRuleCallSTRING(), MultiGenMMTestLanguageDelimiters.ALL_KEYWORDS))
return true;
- }
return false;
}
@@ -57,5 +58,4 @@ public final class MultiGenMMTestLanguageNameRefConsumer extends NonTerminalCons
this.stringConsumer = stringConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguageLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguageLexer.java
index dc174ae..d2b107e 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguageLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguageLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g 2009-01-13 09:48:23
+// $ANTLR 3.0.1 ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g 2009-01-13 18:45:51
package org.eclipse.xtext.parser.antlr.internal;
@@ -53,14 +53,14 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public InternalXtextGrammarTestLanguageLexer(CharStream input) {
super(input);
}
- public String getGrammarFileName() { return "./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g"; }
+ public String getGrammarFileName() { return "../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g"; }
// $ANTLR start T11
public final void mT11() throws RecognitionException {
try {
int _type = T11;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:10:5: ( 'abstract language' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:10:7: 'abstract language'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:10:5: ( 'abstract language' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:10:7: 'abstract language'
{
match("abstract language");
@@ -78,8 +78,8 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mT12() throws RecognitionException {
try {
int _type = T12;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:11:5: ( 'language' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:11:7: 'language'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:11:5: ( 'language' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:11:7: 'language'
{
match("language");
@@ -97,8 +97,8 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mT13() throws RecognitionException {
try {
int _type = T13;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:12:5: ( '.' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:12:7: '.'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:12:5: ( '.' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:12:7: '.'
{
match('.');
@@ -115,8 +115,8 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mT14() throws RecognitionException {
try {
int _type = T14;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:13:5: ( 'extends' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:13:7: 'extends'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:13:5: ( 'extends' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:13:7: 'extends'
{
match("extends");
@@ -134,8 +134,8 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mT15() throws RecognitionException {
try {
int _type = T15;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:14:5: ( 'generate' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:14:7: 'generate'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:14:5: ( 'generate' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:14:7: 'generate'
{
match("generate");
@@ -153,8 +153,8 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mT16() throws RecognitionException {
try {
int _type = T16;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:15:5: ( 'as' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:15:7: 'as'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:15:5: ( 'as' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:15:7: 'as'
{
match("as");
@@ -172,8 +172,8 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mT17() throws RecognitionException {
try {
int _type = T17;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:16:5: ( 'import' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:16:7: 'import'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:16:5: ( 'import' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:16:7: 'import'
{
match("import");
@@ -191,8 +191,8 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mT18() throws RecognitionException {
try {
int _type = T18;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:17:5: ( 'native' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:17:7: 'native'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:17:5: ( 'native' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:17:7: 'native'
{
match("native");
@@ -210,8 +210,8 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mT19() throws RecognitionException {
try {
int _type = T19;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:18:5: ( 'lexer' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:18:7: 'lexer'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:18:5: ( 'lexer' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:18:7: 'lexer'
{
match("lexer");
@@ -229,8 +229,8 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mT20() throws RecognitionException {
try {
int _type = T20;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:19:5: ( 'returns' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:19:7: 'returns'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:19:5: ( 'returns' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:19:7: 'returns'
{
match("returns");
@@ -248,8 +248,8 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mT21() throws RecognitionException {
try {
int _type = T21;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:20:5: ( ':' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:20:7: ':'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:20:5: ( ':' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:20:7: ':'
{
match(':');
@@ -266,8 +266,8 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mT22() throws RecognitionException {
try {
int _type = T22;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:21:5: ( ';' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:21:7: ';'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:21:5: ( ';' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:21:7: ';'
{
match(';');
@@ -284,8 +284,8 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mT23() throws RecognitionException {
try {
int _type = T23;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:22:5: ( '::' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:22:7: '::'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:22:5: ( '::' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:22:7: '::'
{
match("::");
@@ -303,8 +303,8 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mT24() throws RecognitionException {
try {
int _type = T24;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:23:5: ( '|' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:23:7: '|'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:23:5: ( '|' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:23:7: '|'
{
match('|');
@@ -321,8 +321,8 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mT25() throws RecognitionException {
try {
int _type = T25;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:24:5: ( '?' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:24:7: '?'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:24:5: ( '?' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:24:7: '?'
{
match('?');
@@ -339,8 +339,8 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mT26() throws RecognitionException {
try {
int _type = T26;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:25:5: ( '*' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:25:7: '*'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:25:5: ( '*' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:25:7: '*'
{
match('*');
@@ -357,8 +357,8 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mT27() throws RecognitionException {
try {
int _type = T27;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:26:5: ( '+' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:26:7: '+'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:26:5: ( '+' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:26:7: '+'
{
match('+');
@@ -375,8 +375,8 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mT28() throws RecognitionException {
try {
int _type = T28;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:27:5: ( '+=' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:27:7: '+='
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:27:5: ( '+=' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:27:7: '+='
{
match("+=");
@@ -394,8 +394,8 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mT29() throws RecognitionException {
try {
int _type = T29;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:28:5: ( '=' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:28:7: '='
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:28:5: ( '=' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:28:7: '='
{
match('=');
@@ -412,8 +412,8 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mT30() throws RecognitionException {
try {
int _type = T30;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:29:5: ( '?=' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:29:7: '?='
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:29:5: ( '?=' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:29:7: '?='
{
match("?=");
@@ -431,8 +431,8 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mT31() throws RecognitionException {
try {
int _type = T31;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:30:5: ( '{' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:30:7: '{'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:30:5: ( '{' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:30:7: '{'
{
match('{');
@@ -449,8 +449,8 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mT32() throws RecognitionException {
try {
int _type = T32;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:31:5: ( 'current' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:31:7: 'current'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:31:5: ( 'current' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:31:7: 'current'
{
match("current");
@@ -468,8 +468,8 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mT33() throws RecognitionException {
try {
int _type = T33;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:32:5: ( '}' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:32:7: '}'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:32:5: ( '}' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:32:7: '}'
{
match('}');
@@ -486,8 +486,8 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mT34() throws RecognitionException {
try {
int _type = T34;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:33:5: ( '[' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:33:7: '['
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:33:5: ( '[' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:33:7: '['
{
match('[');
@@ -504,8 +504,8 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mT35() throws RecognitionException {
try {
int _type = T35;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:34:5: ( ']' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:34:7: ']'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:34:5: ( ']' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:34:7: ']'
{
match(']');
@@ -522,8 +522,8 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mT36() throws RecognitionException {
try {
int _type = T36;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:35:5: ( '(' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:35:7: '('
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:35:5: ( '(' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:35:7: '('
{
match('(');
@@ -540,8 +540,8 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mT37() throws RecognitionException {
try {
int _type = T37;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:36:5: ( ')' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:36:7: ')'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:36:5: ( ')' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:36:7: ')'
{
match(')');
@@ -558,10 +558,10 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mRULE_ID() throws RecognitionException {
try {
int _type = RULE_ID;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1347:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1347:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1347:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1347:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1347:11: ( '^' )?
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1347:11: ( '^' )?
int alt1=2;
int LA1_0 = input.LA(1);
@@ -570,7 +570,7 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
}
switch (alt1) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1347:12: '^'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1347:12: '^'
{
match('^');
@@ -589,7 +589,7 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
recover(mse); throw mse;
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1347:41: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1347:41: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
loop2:
do {
int alt2=2;
@@ -602,7 +602,7 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
switch (alt2) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.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 InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mRULE_INT() throws RecognitionException {
try {
int _type = RULE_INT;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1349:10: ( ( '0' .. '9' )+ )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1349:12: ( '0' .. '9' )+
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1349:10: ( ( '0' .. '9' )+ )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1349:12: ( '0' .. '9' )+
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1349:12: ( '0' .. '9' )+
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1349:12: ( '0' .. '9' )+
int cnt3=0;
loop3:
do {
@@ -654,7 +654,7 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
switch (alt3) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1349:13: '0' .. '9'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1349:13: '0' .. '9'
{
matchRange('0','9');
@@ -684,7 +684,7 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mRULE_STRING() throws RecognitionException {
try {
int _type = RULE_STRING;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1351:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\"' ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\\'' ) )* '\\'' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1351: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 InternalXtextGrammarTestLanguageLexer extends Lexer {
}
switch (alt6) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1351:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\"' ) )* '\"'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1351:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\"' ) )* '\"'
{
match('\"');
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1351:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\"' ) )*
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1351:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\"' ) )*
loop4:
do {
int alt4=3;
@@ -721,7 +721,7 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
switch (alt4) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1351:21: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1351: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 InternalXtextGrammarTestLanguageLexer extends Lexer {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1351:65: ~ ( '\\\\' | '\"' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1351: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 InternalXtextGrammarTestLanguageLexer extends Lexer {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1351:101: '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\\'' ) )* '\\''
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1351:101: '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\\'' ) )* '\\''
{
match('\'');
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1351:106: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\\'' ) )*
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1351:106: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' ) | ~ ( '\\\\' | '\\'' ) )*
loop5:
do {
int alt5=3;
@@ -783,7 +783,7 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
switch (alt5) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1351:108: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\\\"' | '\\'' | '\\\\' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1351: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 InternalXtextGrammarTestLanguageLexer extends Lexer {
}
break;
case 2 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1351:152: ~ ( '\\\\' | '\\'' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1351: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 InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mRULE_ML_COMMENT() throws RecognitionException {
try {
int _type = RULE_ML_COMMENT;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1353:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1353:19: '/*' ( options {greedy=false; } : . )* '*/'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1353:17: ( '/*' ( options {greedy=false; } : . )* '*/' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1353:19: '/*' ( options {greedy=false; } : . )* '*/'
{
match("/*");
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1353:24: ( options {greedy=false; } : . )*
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1353:24: ( options {greedy=false; } : . )*
loop7:
do {
int alt7=2;
@@ -868,7 +868,7 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
switch (alt7) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1353:52: .
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1353:52: .
{
matchAny();
@@ -897,12 +897,12 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mRULE_SL_COMMENT() throws RecognitionException {
try {
int _type = RULE_SL_COMMENT;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1355:17: ( '//' (~ ( '\\n' | '\\r' ) )* ( ( '\\r' )? '\\n' )? )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1355:19: '//' (~ ( '\\n' | '\\r' ) )* ( ( '\\r' )? '\\n' )?
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1355:17: ( '//' (~ ( '\\n' | '\\r' ) )* ( ( '\\r' )? '\\n' )? )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1355:19: '//' (~ ( '\\n' | '\\r' ) )* ( ( '\\r' )? '\\n' )?
{
match("//");
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1355:24: (~ ( '\\n' | '\\r' ) )*
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1355:24: (~ ( '\\n' | '\\r' ) )*
loop8:
do {
int alt8=2;
@@ -915,7 +915,7 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
switch (alt8) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1355:24: ~ ( '\\n' | '\\r' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1355: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 InternalXtextGrammarTestLanguageLexer extends Lexer {
}
} while (true);
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1355:38: ( ( '\\r' )? '\\n' )?
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1355:38: ( ( '\\r' )? '\\n' )?
int alt10=2;
int LA10_0 = input.LA(1);
@@ -945,9 +945,9 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
}
switch (alt10) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1355:39: ( '\\r' )? '\\n'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1355:39: ( '\\r' )? '\\n'
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1355:39: ( '\\r' )?
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1355:39: ( '\\r' )?
int alt9=2;
int LA9_0 = input.LA(1);
@@ -956,7 +956,7 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
}
switch (alt9) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1355:39: '\\r'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1355:39: '\\r'
{
match('\r');
@@ -987,10 +987,10 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mRULE_WS() throws RecognitionException {
try {
int _type = RULE_WS;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1357:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1357:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1357:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1357:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1357:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1357:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
int cnt11=0;
loop11:
do {
@@ -1004,7 +1004,7 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
switch (alt11) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.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 InternalXtextGrammarTestLanguageLexer extends Lexer {
public final void mRULE_ANY_OTHER() throws RecognitionException {
try {
int _type = RULE_ANY_OTHER;
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1359:16: ( . )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1359:18: .
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1359:16: ( . )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1359:18: .
{
matchAny();
@@ -1059,7 +1059,7 @@ public class InternalXtextGrammarTestLanguageLexer extends Lexer {
// $ANTLR end RULE_ANY_OTHER
public void mTokens() throws RecognitionException {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.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 )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.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 InternalXtextGrammarTestLanguageLexer extends Lexer {
}
switch (alt12) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:10: T11
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:10: T11
{
mT11();
}
break;
case 2 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:14: T12
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:14: T12
{
mT12();
}
break;
case 3 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:18: T13
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:18: T13
{
mT13();
}
break;
case 4 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:22: T14
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:22: T14
{
mT14();
}
break;
case 5 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:26: T15
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:26: T15
{
mT15();
}
break;
case 6 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:30: T16
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:30: T16
{
mT16();
}
break;
case 7 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:34: T17
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:34: T17
{
mT17();
}
break;
case 8 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:38: T18
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:38: T18
{
mT18();
}
break;
case 9 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:42: T19
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:42: T19
{
mT19();
}
break;
case 10 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:46: T20
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:46: T20
{
mT20();
}
break;
case 11 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:50: T21
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:50: T21
{
mT21();
}
break;
case 12 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:54: T22
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:54: T22
{
mT22();
}
break;
case 13 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:58: T23
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:58: T23
{
mT23();
}
break;
case 14 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:62: T24
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:62: T24
{
mT24();
}
break;
case 15 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:66: T25
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:66: T25
{
mT25();
}
break;
case 16 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:70: T26
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:70: T26
{
mT26();
}
break;
case 17 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:74: T27
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:74: T27
{
mT27();
}
break;
case 18 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:78: T28
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:78: T28
{
mT28();
}
break;
case 19 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:82: T29
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:82: T29
{
mT29();
}
break;
case 20 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:86: T30
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:86: T30
{
mT30();
}
break;
case 21 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:90: T31
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:90: T31
{
mT31();
}
break;
case 22 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:94: T32
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:94: T32
{
mT32();
}
break;
case 23 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:98: T33
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:98: T33
{
mT33();
}
break;
case 24 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:102: T34
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:102: T34
{
mT34();
}
break;
case 25 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:106: T35
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:106: T35
{
mT35();
}
break;
case 26 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:110: T36
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:110: T36
{
mT36();
}
break;
case 27 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:114: T37
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:114: T37
{
mT37();
}
break;
case 28 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:118: RULE_ID
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:118: RULE_ID
{
mRULE_ID();
}
break;
case 29 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:126: RULE_INT
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:126: RULE_INT
{
mRULE_INT();
}
break;
case 30 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:135: RULE_STRING
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:135: RULE_STRING
{
mRULE_STRING();
}
break;
case 31 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:147: RULE_ML_COMMENT
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:147: RULE_ML_COMMENT
{
mRULE_ML_COMMENT();
}
break;
case 32 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:163: RULE_SL_COMMENT
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:163: RULE_SL_COMMENT
{
mRULE_SL_COMMENT();
}
break;
case 33 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:179: RULE_WS
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:179: RULE_WS
{
mRULE_WS();
}
break;
case 34 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:187: RULE_ANY_OTHER
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1:187: RULE_ANY_OTHER
{
mRULE_ANY_OTHER();
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguageParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguageParser.java
index 3189485..1f0d481 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguageParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguageParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g 2009-01-13 09:48:23
+// $ANTLR 3.0.1 ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g 2009-01-13 18:45:51
package org.eclipse.xtext.parser.antlr.internal;
@@ -40,7 +40,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
public String[] getTokenNames() { return tokenNames; }
- public String getGrammarFileName() { return "./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g"; }
+ public String getGrammarFileName() { return "../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g"; }
@@ -64,7 +64,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start entryRuleGrammar
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:66:1: entryRuleGrammar returns [EObject current=null] : iv_ruleGrammar= ruleGrammar EOF ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:66:1: entryRuleGrammar returns [EObject current=null] : iv_ruleGrammar= ruleGrammar EOF ;
public final EObject entryRuleGrammar() throws RecognitionException {
EObject current = null;
@@ -72,8 +72,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:66:49: (iv_ruleGrammar= ruleGrammar EOF )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:67:2: iv_ruleGrammar= ruleGrammar EOF
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:66:49: (iv_ruleGrammar= ruleGrammar EOF )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:67:2: iv_ruleGrammar= ruleGrammar EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.0" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleGrammar_in_entryRuleGrammar71);
@@ -99,7 +99,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start ruleGrammar
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:74: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 )+ ) ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:74: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;
@@ -113,25 +113,25 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:76: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/antlr/internal/InternalXtextGrammarTestLanguage.g:77: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/antlr/internal/InternalXtextGrammarTestLanguage.g:76: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/antlr/internal/InternalXtextGrammarTestLanguage.g:77: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/antlr/internal/InternalXtextGrammarTestLanguage.g:77: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/antlr/internal/InternalXtextGrammarTestLanguage.g:77: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/antlr/internal/InternalXtextGrammarTestLanguage.g:77: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/antlr/internal/InternalXtextGrammarTestLanguage.g:77: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/antlr/internal/InternalXtextGrammarTestLanguage.g:77: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/antlr/internal/InternalXtextGrammarTestLanguage.g:77: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/antlr/internal/InternalXtextGrammarTestLanguage.g:77: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/antlr/internal/InternalXtextGrammarTestLanguage.g:77: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/antlr/internal/InternalXtextGrammarTestLanguage.g:77: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/antlr/internal/InternalXtextGrammarTestLanguage.g:77: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/antlr/internal/InternalXtextGrammarTestLanguage.g:77: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/antlr/internal/InternalXtextGrammarTestLanguage.g:77: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/antlr/internal/InternalXtextGrammarTestLanguage.g:77:4: ( ( ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID ) ) ( '.' (lv_idElements= RULE_ID ) )* )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:77: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/antlr/internal/InternalXtextGrammarTestLanguage.g:77: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/antlr/internal/InternalXtextGrammarTestLanguage.g:77:5: ( ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID ) ) ( '.' (lv_idElements= RULE_ID ) )*
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:77:5: ( ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:77:6: ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:77:5: ( ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:77:6: ( (lv_abstract= 'abstract language' ) | 'language' ) (lv_idElements= RULE_ID )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:77:6: ( (lv_abstract= 'abstract language' ) | 'language' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:77:6: ( (lv_abstract= 'abstract language' ) | 'language' )
int alt1=2;
int LA1_0 = input.LA(1);
@@ -149,10 +149,10 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
switch (alt1) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:77:7: (lv_abstract= 'abstract language' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:77:7: (lv_abstract= 'abstract language' )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:77:7: (lv_abstract= 'abstract language' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:79:6: lv_abstract= 'abstract language'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:77:7: (lv_abstract= 'abstract language' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:79:6: lv_abstract= 'abstract language'
{
lv_abstract=(Token)input.LT(1);
match(input,11,FOLLOW_11_in_ruleGrammar132);
@@ -178,7 +178,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
break;
case 2 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:98:6: 'language'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:98:6: 'language'
{
match(input,12,FOLLOW_12_in_ruleGrammar159);
@@ -190,8 +190,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:102:2: (lv_idElements= RULE_ID )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:104:6: lv_idElements= RULE_ID
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:102:2: (lv_idElements= RULE_ID )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:104:6: lv_idElements= RULE_ID
{
lv_idElements=(Token)input.LT(1);
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleGrammar181);
@@ -216,7 +216,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:122:3: ( '.' (lv_idElements= RULE_ID ) )*
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:122:3: ( '.' (lv_idElements= RULE_ID ) )*
loop2:
do {
int alt2=2;
@@ -229,14 +229,14 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
switch (alt2) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:122:4: '.' (lv_idElements= RULE_ID )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:122:4: '.' (lv_idElements= RULE_ID )
{
match(input,13,FOLLOW_13_in_ruleGrammar203);
createLeafNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0" /* xtext::Keyword */, null);
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:126:1: (lv_idElements= RULE_ID )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:128:6: lv_idElements= RULE_ID
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:126:1: (lv_idElements= RULE_ID )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:128:6: lv_idElements= RULE_ID
{
lv_idElements=(Token)input.LT(1);
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleGrammar224);
@@ -270,7 +270,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:146:5: ( ( 'extends' (lv_superGrammarIdElements= RULE_ID ) ) ( '.' (lv_superGrammarIdElements= RULE_ID ) )* )?
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:146:5: ( ( 'extends' (lv_superGrammarIdElements= RULE_ID ) ) ( '.' (lv_superGrammarIdElements= RULE_ID ) )* )?
int alt4=2;
int LA4_0 = input.LA(1);
@@ -279,17 +279,17 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
switch (alt4) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:146:6: ( 'extends' (lv_superGrammarIdElements= RULE_ID ) ) ( '.' (lv_superGrammarIdElements= RULE_ID ) )*
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:146:6: ( 'extends' (lv_superGrammarIdElements= RULE_ID ) ) ( '.' (lv_superGrammarIdElements= RULE_ID ) )*
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:146:6: ( 'extends' (lv_superGrammarIdElements= RULE_ID ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:146:7: 'extends' (lv_superGrammarIdElements= RULE_ID )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:146:6: ( 'extends' (lv_superGrammarIdElements= RULE_ID ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:146:7: 'extends' (lv_superGrammarIdElements= RULE_ID )
{
match(input,14,FOLLOW_14_in_ruleGrammar249);
createLeafNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0/@abstractTokens.0" /* xtext::Keyword */, null);
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:150:1: (lv_superGrammarIdElements= RULE_ID )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:152:6: lv_superGrammarIdElements= RULE_ID
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:150:1: (lv_superGrammarIdElements= RULE_ID )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:152:6: lv_superGrammarIdElements= RULE_ID
{
lv_superGrammarIdElements=(Token)input.LT(1);
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleGrammar270);
@@ -314,7 +314,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:170:3: ( '.' (lv_superGrammarIdElements= RULE_ID ) )*
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:170:3: ( '.' (lv_superGrammarIdElements= RULE_ID ) )*
loop3:
do {
int alt3=2;
@@ -327,14 +327,14 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
switch (alt3) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:170:4: '.' (lv_superGrammarIdElements= RULE_ID )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:170:4: '.' (lv_superGrammarIdElements= RULE_ID )
{
match(input,13,FOLLOW_13_in_ruleGrammar292);
createLeafNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1/@abstractTokens.0" /* xtext::Keyword */, null);
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:174:1: (lv_superGrammarIdElements= RULE_ID )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:176:6: lv_superGrammarIdElements= RULE_ID
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:174:1: (lv_superGrammarIdElements= RULE_ID )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:176:6: lv_superGrammarIdElements= RULE_ID
{
lv_superGrammarIdElements=(Token)input.LT(1);
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleGrammar313);
@@ -374,7 +374,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:194:7: (lv_metamodelDeclarations= ruleAbstractMetamodelDeclaration )*
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:194:7: (lv_metamodelDeclarations= ruleAbstractMetamodelDeclaration )*
loop5:
do {
int alt5=2;
@@ -387,7 +387,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
switch (alt5) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:197:6: lv_metamodelDeclarations= ruleAbstractMetamodelDeclaration
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:197:6: lv_metamodelDeclarations= ruleAbstractMetamodelDeclaration
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.0/@alternatives/@abstractTokens.0/@abstractTokens.1/@terminal" /* xtext::RuleCall */, currentNode);
@@ -421,7 +421,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:215:4: (lv_rules= ruleAbstractRule )+
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:215:4: (lv_rules= ruleAbstractRule )+
int cnt6=0;
loop6:
do {
@@ -435,7 +435,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
switch (alt6) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:218:6: lv_rules= ruleAbstractRule
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:218:6: lv_rules= ruleAbstractRule
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.0/@alternatives/@abstractTokens.1/@terminal" /* xtext::RuleCall */, currentNode);
@@ -491,7 +491,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start entryRuleAbstractRule
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:243:1: entryRuleAbstractRule returns [EObject current=null] : iv_ruleAbstractRule= ruleAbstractRule EOF ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:243:1: entryRuleAbstractRule returns [EObject current=null] : iv_ruleAbstractRule= ruleAbstractRule EOF ;
public final EObject entryRuleAbstractRule() throws RecognitionException {
EObject current = null;
@@ -499,8 +499,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:243:54: (iv_ruleAbstractRule= ruleAbstractRule EOF )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:244:2: iv_ruleAbstractRule= ruleAbstractRule EOF
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:243:54: (iv_ruleAbstractRule= ruleAbstractRule EOF )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:244:2: iv_ruleAbstractRule= ruleAbstractRule EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.1" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleAbstractRule_in_entryRuleAbstractRule441);
@@ -526,7 +526,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start ruleAbstractRule
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:251:1: ruleAbstractRule returns [EObject current=null] : (this_LexerRule= ruleLexerRule | this_ParserRule= ruleParserRule ) ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:251:1: ruleAbstractRule returns [EObject current=null] : (this_LexerRule= ruleLexerRule | this_ParserRule= ruleParserRule ) ;
public final EObject ruleAbstractRule() throws RecognitionException {
EObject current = null;
@@ -537,10 +537,10 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:253:33: ( (this_LexerRule= ruleLexerRule | this_ParserRule= ruleParserRule ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:254:1: (this_LexerRule= ruleLexerRule | this_ParserRule= ruleParserRule )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:253:33: ( (this_LexerRule= ruleLexerRule | this_ParserRule= ruleParserRule ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:254:1: (this_LexerRule= ruleLexerRule | this_ParserRule= ruleParserRule )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:254:1: (this_LexerRule= ruleLexerRule | this_ParserRule= ruleParserRule )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:254:1: (this_LexerRule= ruleLexerRule | this_ParserRule= ruleParserRule )
int alt7=2;
int LA7_0 = input.LA(1);
@@ -558,7 +558,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
switch (alt7) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:255:5: this_LexerRule= ruleLexerRule
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:255:5: this_LexerRule= ruleLexerRule
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.1/@alternatives/@groups.0" /* xtext::RuleCall */, currentNode);
@@ -575,7 +575,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
break;
case 2 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:265:5: this_ParserRule= ruleParserRule
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:265:5: this_ParserRule= ruleParserRule
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.1/@alternatives/@groups.1" /* xtext::RuleCall */, currentNode);
@@ -612,7 +612,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start entryRuleAbstractMetamodelDeclaration
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:280:1: entryRuleAbstractMetamodelDeclaration returns [EObject current=null] : iv_ruleAbstractMetamodelDeclaration= ruleAbstractMetamodelDeclaration EOF ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:280:1: entryRuleAbstractMetamodelDeclaration returns [EObject current=null] : iv_ruleAbstractMetamodelDeclaration= ruleAbstractMetamodelDeclaration EOF ;
public final EObject entryRuleAbstractMetamodelDeclaration() throws RecognitionException {
EObject current = null;
@@ -620,8 +620,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:280:70: (iv_ruleAbstractMetamodelDeclaration= ruleAbstractMetamodelDeclaration EOF )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:281:2: iv_ruleAbstractMetamodelDeclaration= ruleAbstractMetamodelDeclaration EOF
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:280:70: (iv_ruleAbstractMetamodelDeclaration= ruleAbstractMetamodelDeclaration EOF )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:281:2: iv_ruleAbstractMetamodelDeclaration= ruleAbstractMetamodelDeclaration EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.2" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleAbstractMetamodelDeclaration_in_entryRuleAbstractMetamodelDeclaration557);
@@ -647,7 +647,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start ruleAbstractMetamodelDeclaration
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:288:1: ruleAbstractMetamodelDeclaration returns [EObject current=null] : (this_GeneratedMetamodel= ruleGeneratedMetamodel | this_ReferencedMetamodel= ruleReferencedMetamodel ) ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:288:1: ruleAbstractMetamodelDeclaration returns [EObject current=null] : (this_GeneratedMetamodel= ruleGeneratedMetamodel | this_ReferencedMetamodel= ruleReferencedMetamodel ) ;
public final EObject ruleAbstractMetamodelDeclaration() throws RecognitionException {
EObject current = null;
@@ -658,10 +658,10 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:290:33: ( (this_GeneratedMetamodel= ruleGeneratedMetamodel | this_ReferencedMetamodel= ruleReferencedMetamodel ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:291:1: (this_GeneratedMetamodel= ruleGeneratedMetamodel | this_ReferencedMetamodel= ruleReferencedMetamodel )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:290:33: ( (this_GeneratedMetamodel= ruleGeneratedMetamodel | this_ReferencedMetamodel= ruleReferencedMetamodel ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:291:1: (this_GeneratedMetamodel= ruleGeneratedMetamodel | this_ReferencedMetamodel= ruleReferencedMetamodel )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:291:1: (this_GeneratedMetamodel= ruleGeneratedMetamodel | this_ReferencedMetamodel= ruleReferencedMetamodel )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:291:1: (this_GeneratedMetamodel= ruleGeneratedMetamodel | this_ReferencedMetamodel= ruleReferencedMetamodel )
int alt8=2;
int LA8_0 = input.LA(1);
@@ -679,7 +679,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
switch (alt8) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:292:5: this_GeneratedMetamodel= ruleGeneratedMetamodel
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:292:5: this_GeneratedMetamodel= ruleGeneratedMetamodel
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.2/@alternatives/@groups.0" /* xtext::RuleCall */, currentNode);
@@ -696,7 +696,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
break;
case 2 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:302:5: this_ReferencedMetamodel= ruleReferencedMetamodel
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:302:5: this_ReferencedMetamodel= ruleReferencedMetamodel
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.2/@alternatives/@groups.1" /* xtext::RuleCall */, currentNode);
@@ -733,7 +733,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start entryRuleGeneratedMetamodel
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:317:1: entryRuleGeneratedMetamodel returns [EObject current=null] : iv_ruleGeneratedMetamodel= ruleGeneratedMetamodel EOF ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:317:1: entryRuleGeneratedMetamodel returns [EObject current=null] : iv_ruleGeneratedMetamodel= ruleGeneratedMetamodel EOF ;
public final EObject entryRuleGeneratedMetamodel() throws RecognitionException {
EObject current = null;
@@ -741,8 +741,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:317:60: (iv_ruleGeneratedMetamodel= ruleGeneratedMetamodel EOF )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:318:2: iv_ruleGeneratedMetamodel= ruleGeneratedMetamodel EOF
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:317:60: (iv_ruleGeneratedMetamodel= ruleGeneratedMetamodel EOF )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:318:2: iv_ruleGeneratedMetamodel= ruleGeneratedMetamodel EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.3" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleGeneratedMetamodel_in_entryRuleGeneratedMetamodel673);
@@ -768,7 +768,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start ruleGeneratedMetamodel
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:325:1: ruleGeneratedMetamodel returns [EObject current=null] : ( ( ( '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/antlr/internal/InternalXtextGrammarTestLanguage.g:325: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;
@@ -778,24 +778,24 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:327:33: ( ( ( ( 'generate' (lv_name= RULE_ID ) ) (lv_nsURI= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )? ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:328: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/antlr/internal/InternalXtextGrammarTestLanguage.g:327: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/antlr/internal/InternalXtextGrammarTestLanguage.g:328:1: ( ( ( 'generate' (lv_name= RULE_ID ) ) (lv_nsURI= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )? )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:328:1: ( ( ( 'generate' (lv_name= RULE_ID ) ) (lv_nsURI= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )? )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:328: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/antlr/internal/InternalXtextGrammarTestLanguage.g:328: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/antlr/internal/InternalXtextGrammarTestLanguage.g:328:2: ( ( 'generate' (lv_name= RULE_ID ) ) (lv_nsURI= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )?
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:328:2: ( ( 'generate' (lv_name= RULE_ID ) ) (lv_nsURI= RULE_STRING ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:328:3: ( 'generate' (lv_name= RULE_ID ) ) (lv_nsURI= RULE_STRING )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:328:2: ( ( 'generate' (lv_name= RULE_ID ) ) (lv_nsURI= RULE_STRING ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:328:3: ( 'generate' (lv_name= RULE_ID ) ) (lv_nsURI= RULE_STRING )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:328:3: ( 'generate' (lv_name= RULE_ID ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:328:4: 'generate' (lv_name= RULE_ID )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:328:3: ( 'generate' (lv_name= RULE_ID ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:328:4: 'generate' (lv_name= RULE_ID )
{
match(input,15,FOLLOW_15_in_ruleGeneratedMetamodel719);
createLeafNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.3/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0" /* xtext::Keyword */, null);
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:332:1: (lv_name= RULE_ID )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:334:6: lv_name= RULE_ID
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:332:1: (lv_name= RULE_ID )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:334:6: lv_name= RULE_ID
{
lv_name=(Token)input.LT(1);
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleGeneratedMetamodel740);
@@ -820,8 +820,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:352:3: (lv_nsURI= RULE_STRING )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:354:6: lv_nsURI= RULE_STRING
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:352:3: (lv_nsURI= RULE_STRING )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:354:6: lv_nsURI= RULE_STRING
{
lv_nsURI=(Token)input.LT(1);
match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleGeneratedMetamodel773);
@@ -846,7 +846,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:372:3: ( 'as' (lv_alias= RULE_ID ) )?
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:372:3: ( 'as' (lv_alias= RULE_ID ) )?
int alt9=2;
int LA9_0 = input.LA(1);
@@ -855,14 +855,14 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
switch (alt9) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:372:4: 'as' (lv_alias= RULE_ID )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:372:4: 'as' (lv_alias= RULE_ID )
{
match(input,16,FOLLOW_16_in_ruleGeneratedMetamodel795);
createLeafNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.3/@alternatives/@abstractTokens.1/@abstractTokens.0" /* xtext::Keyword */, null);
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:376:1: (lv_alias= RULE_ID )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:378:6: lv_alias= RULE_ID
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:376:1: (lv_alias= RULE_ID )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:378:6: lv_alias= RULE_ID
{
lv_alias=(Token)input.LT(1);
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleGeneratedMetamodel816);
@@ -911,7 +911,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start entryRuleReferencedMetamodel
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:403:1: entryRuleReferencedMetamodel returns [EObject current=null] : iv_ruleReferencedMetamodel= ruleReferencedMetamodel EOF ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:403:1: entryRuleReferencedMetamodel returns [EObject current=null] : iv_ruleReferencedMetamodel= ruleReferencedMetamodel EOF ;
public final EObject entryRuleReferencedMetamodel() throws RecognitionException {
EObject current = null;
@@ -919,8 +919,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:403:61: (iv_ruleReferencedMetamodel= ruleReferencedMetamodel EOF )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:404:2: iv_ruleReferencedMetamodel= ruleReferencedMetamodel EOF
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:403:61: (iv_ruleReferencedMetamodel= ruleReferencedMetamodel EOF )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:404:2: iv_ruleReferencedMetamodel= ruleReferencedMetamodel EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.4" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleReferencedMetamodel_in_entryRuleReferencedMetamodel862);
@@ -946,7 +946,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start ruleReferencedMetamodel
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:411:1: ruleReferencedMetamodel returns [EObject current=null] : ( ( 'import' (lv_uri= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )? ) ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:411: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;
@@ -955,21 +955,21 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:413:33: ( ( ( 'import' (lv_uri= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )? ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:414:1: ( ( 'import' (lv_uri= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )? )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:413:33: ( ( ( 'import' (lv_uri= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )? ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:414:1: ( ( 'import' (lv_uri= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )? )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:414:1: ( ( 'import' (lv_uri= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )? )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:414:2: ( 'import' (lv_uri= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )?
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:414:1: ( ( 'import' (lv_uri= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )? )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:414:2: ( 'import' (lv_uri= RULE_STRING ) ) ( 'as' (lv_alias= RULE_ID ) )?
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:414:2: ( 'import' (lv_uri= RULE_STRING ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:414:3: 'import' (lv_uri= RULE_STRING )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:414:2: ( 'import' (lv_uri= RULE_STRING ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:414:3: 'import' (lv_uri= RULE_STRING )
{
match(input,17,FOLLOW_17_in_ruleReferencedMetamodel907);
createLeafNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.4/@alternatives/@abstractTokens.0/@abstractTokens.0" /* xtext::Keyword */, null);
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:418:1: (lv_uri= RULE_STRING )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:420:6: lv_uri= RULE_STRING
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:418:1: (lv_uri= RULE_STRING )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:420:6: lv_uri= RULE_STRING
{
lv_uri=(Token)input.LT(1);
match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleReferencedMetamodel928);
@@ -994,7 +994,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:438:3: ( 'as' (lv_alias= RULE_ID ) )?
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:438:3: ( 'as' (lv_alias= RULE_ID ) )?
int alt10=2;
int LA10_0 = input.LA(1);
@@ -1003,14 +1003,14 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
switch (alt10) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:438:4: 'as' (lv_alias= RULE_ID )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:438:4: 'as' (lv_alias= RULE_ID )
{
match(input,16,FOLLOW_16_in_ruleReferencedMetamodel950);
createLeafNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.4/@alternatives/@abstractTokens.1/@abstractTokens.0" /* xtext::Keyword */, null);
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:442:1: (lv_alias= RULE_ID )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:444:6: lv_alias= RULE_ID
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:442:1: (lv_alias= RULE_ID )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:444:6: lv_alias= RULE_ID
{
lv_alias=(Token)input.LT(1);
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleReferencedMetamodel971);
@@ -1059,7 +1059,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start entryRuleLexerRule
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:469:1: entryRuleLexerRule returns [EObject current=null] : iv_ruleLexerRule= ruleLexerRule EOF ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:469:1: entryRuleLexerRule returns [EObject current=null] : iv_ruleLexerRule= ruleLexerRule EOF ;
public final EObject entryRuleLexerRule() throws RecognitionException {
EObject current = null;
@@ -1067,8 +1067,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:469:51: (iv_ruleLexerRule= ruleLexerRule EOF )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:470:2: iv_ruleLexerRule= ruleLexerRule EOF
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:469:51: (iv_ruleLexerRule= ruleLexerRule EOF )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:470:2: iv_ruleLexerRule= ruleLexerRule EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.5" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleLexerRule_in_entryRuleLexerRule1017);
@@ -1094,7 +1094,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start ruleLexerRule
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:477:1: ruleLexerRule returns [EObject current=null] : ( ( ( ( ( ( '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/antlr/internal/InternalXtextGrammarTestLanguage.g:477: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;
@@ -1105,25 +1105,25 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:479:33: ( ( ( ( ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_body= RULE_STRING ) ) ';' ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:480: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/antlr/internal/InternalXtextGrammarTestLanguage.g:479: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/antlr/internal/InternalXtextGrammarTestLanguage.g:480:1: ( ( ( ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_body= RULE_STRING ) ) ';' )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:480:1: ( ( ( ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_body= RULE_STRING ) ) ';' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:480: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/antlr/internal/InternalXtextGrammarTestLanguage.g:480: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/antlr/internal/InternalXtextGrammarTestLanguage.g:480:2: ( ( ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_body= RULE_STRING ) ) ';'
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:480:2: ( ( ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_body= RULE_STRING ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:480: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/antlr/internal/InternalXtextGrammarTestLanguage.g:480: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/antlr/internal/InternalXtextGrammarTestLanguage.g:480:3: ( ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_body= RULE_STRING )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:480:3: ( ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:480:4: ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:480:3: ( ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:480:4: ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':'
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:480:4: ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:480:5: ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )?
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:480:4: ( ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )? )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:480:5: ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) ) ( 'returns' (lv_type= ruleTypeRef ) )?
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:480:5: ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:480:6: ( 'native' | 'lexer' ) (lv_name= RULE_ID )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:480:5: ( ( 'native' | 'lexer' ) (lv_name= RULE_ID ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:480:6: ( 'native' | 'lexer' ) (lv_name= RULE_ID )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:480:6: ( 'native' | 'lexer' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:480:6: ( 'native' | 'lexer' )
int alt11=2;
int LA11_0 = input.LA(1);
@@ -1141,7 +1141,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
switch (alt11) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:480:7: 'native'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:480:7: 'native'
{
match(input,18,FOLLOW_18_in_ruleLexerRule1066);
@@ -1151,7 +1151,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
break;
case 2 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:485:6: 'lexer'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:485:6: 'lexer'
{
match(input,19,FOLLOW_19_in_ruleLexerRule1081);
@@ -1163,8 +1163,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:489:2: (lv_name= RULE_ID )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:491:6: lv_name= RULE_ID
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:489:2: (lv_name= RULE_ID )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:491:6: lv_name= RULE_ID
{
lv_name=(Token)input.LT(1);
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleLexerRule1103);
@@ -1189,7 +1189,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:509:3: ( 'returns' (lv_type= ruleTypeRef ) )?
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:509:3: ( 'returns' (lv_type= ruleTypeRef ) )?
int alt12=2;
int LA12_0 = input.LA(1);
@@ -1198,14 +1198,14 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
switch (alt12) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:509:4: 'returns' (lv_type= ruleTypeRef )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:509:4: 'returns' (lv_type= ruleTypeRef )
{
match(input,20,FOLLOW_20_in_ruleLexerRule1125);
createLeafNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0" /* xtext::Keyword */, null);
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:513:1: (lv_type= ruleTypeRef )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:516:6: lv_type= ruleTypeRef
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:513:1: (lv_type= ruleTypeRef )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:516:6: lv_type= ruleTypeRef
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.5/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1/@terminal" /* xtext::RuleCall */, currentNode);
@@ -1246,8 +1246,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:538:2: (lv_body= RULE_STRING )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:540:6: lv_body= RULE_STRING
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:538:2: (lv_body= RULE_STRING )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:540:6: lv_body= RULE_STRING
{
lv_body=(Token)input.LT(1);
match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleLexerRule1197);
@@ -1297,7 +1297,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start entryRuleParserRule
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:569:1: entryRuleParserRule returns [EObject current=null] : iv_ruleParserRule= ruleParserRule EOF ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:569:1: entryRuleParserRule returns [EObject current=null] : iv_ruleParserRule= ruleParserRule EOF ;
public final EObject entryRuleParserRule() throws RecognitionException {
EObject current = null;
@@ -1305,8 +1305,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:569:52: (iv_ruleParserRule= ruleParserRule EOF )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:570:2: iv_ruleParserRule= ruleParserRule EOF
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:569:52: (iv_ruleParserRule= ruleParserRule EOF )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:570:2: iv_ruleParserRule= ruleParserRule EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.6" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleParserRule_in_entryRuleParserRule1251);
@@ -1332,7 +1332,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start ruleParserRule
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:577:1: ruleParserRule returns [EObject current=null] : ( ( ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_alternatives= ruleAlternatives ) ) ';' ) ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:577: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;
@@ -1344,23 +1344,23 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:579:33: ( ( ( ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_alternatives= ruleAlternatives ) ) ';' ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:580:1: ( ( ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_alternatives= ruleAlternatives ) ) ';' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:579:33: ( ( ( ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_alternatives= ruleAlternatives ) ) ';' ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:580:1: ( ( ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_alternatives= ruleAlternatives ) ) ';' )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:580:1: ( ( ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_alternatives= ruleAlternatives ) ) ';' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:580:2: ( ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_alternatives= ruleAlternatives ) ) ';'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:580:1: ( ( ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_alternatives= ruleAlternatives ) ) ';' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:580:2: ( ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_alternatives= ruleAlternatives ) ) ';'
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:580:2: ( ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_alternatives= ruleAlternatives ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:580:3: ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_alternatives= ruleAlternatives )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:580:2: ( ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_alternatives= ruleAlternatives ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:580:3: ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' ) (lv_alternatives= ruleAlternatives )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:580:3: ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:580:4: ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:580:3: ( ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:580:4: ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? ) ':'
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:580:4: ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:580:5: (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )?
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:580:4: ( (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )? )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:580:5: (lv_name= RULE_ID ) ( 'returns' (lv_type= ruleTypeRef ) )?
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:580:5: (lv_name= RULE_ID )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:582:6: lv_name= RULE_ID
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:580:5: (lv_name= RULE_ID )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:582:6: lv_name= RULE_ID
{
lv_name=(Token)input.LT(1);
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleParserRule1310);
@@ -1382,7 +1382,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:600:2: ( 'returns' (lv_type= ruleTypeRef ) )?
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:600:2: ( 'returns' (lv_type= ruleTypeRef ) )?
int alt13=2;
int LA13_0 = input.LA(1);
@@ -1391,14 +1391,14 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
switch (alt13) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:600:3: 'returns' (lv_type= ruleTypeRef )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:600:3: 'returns' (lv_type= ruleTypeRef )
{
match(input,20,FOLLOW_20_in_ruleParserRule1331);
createLeafNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.6/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0" /* xtext::Keyword */, null);
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:604:1: (lv_type= ruleTypeRef )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:607:6: lv_type= ruleTypeRef
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:604:1: (lv_type= ruleTypeRef )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:607:6: lv_type= ruleTypeRef
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.6/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@abstractTokens.1/@terminal" /* xtext::RuleCall */, currentNode);
@@ -1439,8 +1439,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:629:2: (lv_alternatives= ruleAlternatives )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:632:6: lv_alternatives= ruleAlternatives
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:629:2: (lv_alternatives= ruleAlternatives )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:632:6: lv_alternatives= ruleAlternatives
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.6/@alternatives/@abstractTokens.0/@abstractTokens.1/@terminal" /* xtext::RuleCall */, currentNode);
@@ -1493,7 +1493,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start entryRuleTypeRef
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:661:1: entryRuleTypeRef returns [EObject current=null] : iv_ruleTypeRef= ruleTypeRef EOF ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:661:1: entryRuleTypeRef returns [EObject current=null] : iv_ruleTypeRef= ruleTypeRef EOF ;
public final EObject entryRuleTypeRef() throws RecognitionException {
EObject current = null;
@@ -1501,8 +1501,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:661:49: (iv_ruleTypeRef= ruleTypeRef EOF )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:662:2: iv_ruleTypeRef= ruleTypeRef EOF
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:661:49: (iv_ruleTypeRef= ruleTypeRef EOF )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:662:2: iv_ruleTypeRef= ruleTypeRef EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.7" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleTypeRef_in_entryRuleTypeRef1463);
@@ -1528,19 +1528,19 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start ruleTypeRef
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:669:1: ruleTypeRef returns [EObject current=null] : ( ( ( ( RULE_ID ) ) '::' )? ( ( RULE_ID ) ) ) ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:669:1: ruleTypeRef returns [EObject current=null] : ( ( ( ( RULE_ID ) ) '::' )? ( ( RULE_ID ) ) ) ;
public final EObject ruleTypeRef() throws RecognitionException {
EObject current = null;
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:671:33: ( ( ( ( ( RULE_ID ) ) '::' )? ( ( RULE_ID ) ) ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:672:1: ( ( ( ( RULE_ID ) ) '::' )? ( ( RULE_ID ) ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:671:33: ( ( ( ( ( RULE_ID ) ) '::' )? ( ( RULE_ID ) ) ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:672:1: ( ( ( ( RULE_ID ) ) '::' )? ( ( RULE_ID ) ) )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:672:1: ( ( ( ( RULE_ID ) ) '::' )? ( ( RULE_ID ) ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:672:2: ( ( ( RULE_ID ) ) '::' )? ( ( RULE_ID ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:672:1: ( ( ( ( RULE_ID ) ) '::' )? ( ( RULE_ID ) ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:672:2: ( ( ( RULE_ID ) ) '::' )? ( ( RULE_ID ) )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:672:2: ( ( ( RULE_ID ) ) '::' )?
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:672:2: ( ( ( RULE_ID ) ) '::' )?
int alt14=2;
int LA14_0 = input.LA(1);
@@ -1553,10 +1553,10 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
switch (alt14) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:672:3: ( ( RULE_ID ) ) '::'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:672:3: ( ( RULE_ID ) ) '::'
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:672:3: ( ( RULE_ID ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:675:3: ( RULE_ID )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:672:3: ( ( RULE_ID ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:675:3: ( RULE_ID )
{
if (current==null) {
@@ -1564,8 +1564,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
associateNodeWithAstElement(currentNode, current);
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:681:1: ( RULE_ID )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:682:2: RULE_ID
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:681:1: ( RULE_ID )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:682:2: RULE_ID
{
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleTypeRef1523);
@@ -1587,8 +1587,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:691:3: ( ( RULE_ID ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:694:3: ( RULE_ID )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:691:3: ( ( RULE_ID ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:694:3: ( RULE_ID )
{
if (current==null) {
@@ -1596,8 +1596,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
associateNodeWithAstElement(currentNode, current);
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:700:1: ( RULE_ID )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:701:2: RULE_ID
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:700:1: ( RULE_ID )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:701:2: RULE_ID
{
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleTypeRef1562);
@@ -1630,7 +1630,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start entryRuleAlternatives
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:713:1: entryRuleAlternatives returns [EObject current=null] : iv_ruleAlternatives= ruleAlternatives EOF ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:713:1: entryRuleAlternatives returns [EObject current=null] : iv_ruleAlternatives= ruleAlternatives EOF ;
public final EObject entryRuleAlternatives() throws RecognitionException {
EObject current = null;
@@ -1638,8 +1638,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:713:54: (iv_ruleAlternatives= ruleAlternatives EOF )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:714:2: iv_ruleAlternatives= ruleAlternatives EOF
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:713:54: (iv_ruleAlternatives= ruleAlternatives EOF )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:714:2: iv_ruleAlternatives= ruleAlternatives EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.8" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleAlternatives_in_entryRuleAlternatives1599);
@@ -1665,7 +1665,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start ruleAlternatives
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:721:1: ruleAlternatives returns [EObject current=null] : (this_Group= ruleGroup ( ( () '|' ) (lv_groups= ruleGroup ) )* ) ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:721:1: ruleAlternatives returns [EObject current=null] : (this_Group= ruleGroup ( ( () '|' ) (lv_groups= ruleGroup ) )* ) ;
public final EObject ruleAlternatives() throws RecognitionException {
EObject current = null;
@@ -1676,11 +1676,11 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:723:33: ( (this_Group= ruleGroup ( ( () '|' ) (lv_groups= ruleGroup ) )* ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:724:1: (this_Group= ruleGroup ( ( () '|' ) (lv_groups= ruleGroup ) )* )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:723:33: ( (this_Group= ruleGroup ( ( () '|' ) (lv_groups= ruleGroup ) )* ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:724:1: (this_Group= ruleGroup ( ( () '|' ) (lv_groups= ruleGroup ) )* )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:724:1: (this_Group= ruleGroup ( ( () '|' ) (lv_groups= ruleGroup ) )* )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:725:5: this_Group= ruleGroup ( ( () '|' ) (lv_groups= ruleGroup ) )*
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:724:1: (this_Group= ruleGroup ( ( () '|' ) (lv_groups= ruleGroup ) )* )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:725:5: this_Group= ruleGroup ( ( () '|' ) (lv_groups= ruleGroup ) )*
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.8/@alternatives/@abstractTokens.0" /* xtext::RuleCall */, currentNode);
@@ -1693,7 +1693,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
current = this_Group;
currentNode = currentNode.getParent();
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:733:1: ( ( () '|' ) (lv_groups= ruleGroup ) )*
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:733:1: ( ( () '|' ) (lv_groups= ruleGroup ) )*
loop15:
do {
int alt15=2;
@@ -1706,13 +1706,13 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
switch (alt15) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:733:2: ( () '|' ) (lv_groups= ruleGroup )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:733:2: ( () '|' ) (lv_groups= ruleGroup )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:733:2: ( () '|' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:733:3: () '|'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:733:2: ( () '|' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:733:3: () '|'
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:733:3: ()
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:734:5:
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:733:3: ()
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:734:5:
{
temp=factory.create("Alternatives");
@@ -1739,8 +1739,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:753:2: (lv_groups= ruleGroup )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:756:6: lv_groups= ruleGroup
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:753:2: (lv_groups= ruleGroup )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:756:6: lv_groups= ruleGroup
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.8/@alternatives/@abstractTokens.1/@abstractTokens.1/@terminal" /* xtext::RuleCall */, currentNode);
@@ -1795,7 +1795,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start entryRuleGroup
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:781:1: entryRuleGroup returns [EObject current=null] : iv_ruleGroup= ruleGroup EOF ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:781:1: entryRuleGroup returns [EObject current=null] : iv_ruleGroup= ruleGroup EOF ;
public final EObject entryRuleGroup() throws RecognitionException {
EObject current = null;
@@ -1803,8 +1803,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:781:47: (iv_ruleGroup= ruleGroup EOF )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:782:2: iv_ruleGroup= ruleGroup EOF
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:781:47: (iv_ruleGroup= ruleGroup EOF )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:782:2: iv_ruleGroup= ruleGroup EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.9" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleGroup_in_entryRuleGroup1749);
@@ -1830,7 +1830,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start ruleGroup
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:789:1: ruleGroup returns [EObject current=null] : (this_AbstractToken= ruleAbstractToken ( () (lv_abstractTokens= ruleAbstractToken ) )* ) ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:789:1: ruleGroup returns [EObject current=null] : (this_AbstractToken= ruleAbstractToken ( () (lv_abstractTokens= ruleAbstractToken ) )* ) ;
public final EObject ruleGroup() throws RecognitionException {
EObject current = null;
@@ -1841,11 +1841,11 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:791:33: ( (this_AbstractToken= ruleAbstractToken ( () (lv_abstractTokens= ruleAbstractToken ) )* ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:792:1: (this_AbstractToken= ruleAbstractToken ( () (lv_abstractTokens= ruleAbstractToken ) )* )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:791:33: ( (this_AbstractToken= ruleAbstractToken ( () (lv_abstractTokens= ruleAbstractToken ) )* ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:792:1: (this_AbstractToken= ruleAbstractToken ( () (lv_abstractTokens= ruleAbstractToken ) )* )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:792:1: (this_AbstractToken= ruleAbstractToken ( () (lv_abstractTokens= ruleAbstractToken ) )* )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:793:5: this_AbstractToken= ruleAbstractToken ( () (lv_abstractTokens= ruleAbstractToken ) )*
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:792:1: (this_AbstractToken= ruleAbstractToken ( () (lv_abstractTokens= ruleAbstractToken ) )* )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:793:5: this_AbstractToken= ruleAbstractToken ( () (lv_abstractTokens= ruleAbstractToken ) )*
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.9/@alternatives/@abstractTokens.0" /* xtext::RuleCall */, currentNode);
@@ -1858,7 +1858,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
current = this_AbstractToken;
currentNode = currentNode.getParent();
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:801:1: ( () (lv_abstractTokens= ruleAbstractToken ) )*
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:801:1: ( () (lv_abstractTokens= ruleAbstractToken ) )*
loop16:
do {
int alt16=2;
@@ -1871,10 +1871,10 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
switch (alt16) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:801:2: () (lv_abstractTokens= ruleAbstractToken )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:801:2: () (lv_abstractTokens= ruleAbstractToken )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:801:2: ()
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:802:5:
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:801:2: ()
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:802:5:
{
temp=factory.create("Group");
@@ -1894,8 +1894,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:817:2: (lv_abstractTokens= ruleAbstractToken )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:820:6: lv_abstractTokens= ruleAbstractToken
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:817:2: (lv_abstractTokens= ruleAbstractToken )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:820:6: lv_abstractTokens= ruleAbstractToken
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.9/@alternatives/@abstractTokens.1/@abstractTokens.1/@terminal" /* xtext::RuleCall */, currentNode);
@@ -1950,7 +1950,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start entryRuleAbstractToken
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:845:1: entryRuleAbstractToken returns [EObject current=null] : iv_ruleAbstractToken= ruleAbstractToken EOF ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:845:1: entryRuleAbstractToken returns [EObject current=null] : iv_ruleAbstractToken= ruleAbstractToken EOF ;
public final EObject entryRuleAbstractToken() throws RecognitionException {
EObject current = null;
@@ -1958,8 +1958,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:845:55: (iv_ruleAbstractToken= ruleAbstractToken EOF )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:846:2: iv_ruleAbstractToken= ruleAbstractToken EOF
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:845:55: (iv_ruleAbstractToken= ruleAbstractToken EOF )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:846:2: iv_ruleAbstractToken= ruleAbstractToken EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.10" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleAbstractToken_in_entryRuleAbstractToken1888);
@@ -1985,7 +1985,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start ruleAbstractToken
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:853:1: ruleAbstractToken returns [EObject current=null] : ( ( (this_Assignment= ruleAssignment | this_Action= ruleAction ) | this_AbstractTerminal= ruleAbstractTerminal ) (lv_cardinality= ( ( '?' | '*' ) | '+' ) )? ) ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:853: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;
@@ -1999,13 +1999,13 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:855:33: ( ( ( (this_Assignment= ruleAssignment | this_Action= ruleAction ) | this_AbstractTerminal= ruleAbstractTerminal ) (lv_cardinality= ( ( '?' | '*' ) | '+' ) )? ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:856:1: ( ( (this_Assignment= ruleAssignment | this_Action= ruleAction ) | this_AbstractTerminal= ruleAbstractTerminal ) (lv_cardinality= ( ( '?' | '*' ) | '+' ) )? )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:855:33: ( ( ( (this_Assignment= ruleAssignment | this_Action= ruleAction ) | this_AbstractTerminal= ruleAbstractTerminal ) (lv_cardinality= ( ( '?' | '*' ) | '+' ) )? ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:856:1: ( ( (this_Assignment= ruleAssignment | this_Action= ruleAction ) | this_AbstractTerminal= ruleAbstractTerminal ) (lv_cardinality= ( ( '?' | '*' ) | '+' ) )? )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:856:1: ( ( (this_Assignment= ruleAssignment | this_Action= ruleAction ) | this_AbstractTerminal= ruleAbstractTerminal ) (lv_cardinality= ( ( '?' | '*' ) | '+' ) )? )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:856:2: ( (this_Assignment= ruleAssignment | this_Action= ruleAction ) | this_AbstractTerminal= ruleAbstractTerminal ) (lv_cardinality= ( ( '?' | '*' ) | '+' ) )?
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:856:1: ( ( (this_Assignment= ruleAssignment | this_Action= ruleAction ) | this_AbstractTerminal= ruleAbstractTerminal ) (lv_cardinality= ( ( '?' | '*' ) | '+' ) )? )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:856:2: ( (this_Assignment= ruleAssignment | this_Action= ruleAction ) | this_AbstractTerminal= ruleAbstractTerminal ) (lv_cardinality= ( ( '?' | '*' ) | '+' ) )?
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:856:2: ( (this_Assignment= ruleAssignment | this_Action= ruleAction ) | this_AbstractTerminal= ruleAbstractTerminal )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:856:2: ( (this_Assignment= ruleAssignment | this_Action= ruleAction ) | this_AbstractTerminal= ruleAbstractTerminal )
int alt18=2;
switch ( input.LA(1) ) {
case RULE_ID:
@@ -2047,9 +2047,9 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
switch (alt18) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:856:3: (this_Assignment= ruleAssignment | this_Action= ruleAction )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:856:3: (this_Assignment= ruleAssignment | this_Action= ruleAction )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:856:3: (this_Assignment= ruleAssignment | this_Action= ruleAction )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:856:3: (this_Assignment= ruleAssignment | this_Action= ruleAction )
int alt17=2;
int LA17_0 = input.LA(1);
@@ -2067,7 +2067,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
switch (alt17) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:857:5: this_Assignment= ruleAssignment
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:857:5: this_Assignment= ruleAssignment
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.10/@alternatives/@abstractTokens.0/@groups.0/@groups.0" /* xtext::RuleCall */, currentNode);
@@ -2084,7 +2084,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
break;
case 2 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:867:5: this_Action= ruleAction
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:867:5: this_Action= ruleAction
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.10/@alternatives/@abstractTokens.0/@groups.0/@groups.1" /* xtext::RuleCall */, currentNode);
@@ -2107,7 +2107,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
break;
case 2 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:877:5: this_AbstractTerminal= ruleAbstractTerminal
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:877:5: this_AbstractTerminal= ruleAbstractTerminal
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.10/@alternatives/@abstractTokens.0/@groups.1" /* xtext::RuleCall */, currentNode);
@@ -2126,7 +2126,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:885:2: (lv_cardinality= ( ( '?' | '*' ) | '+' ) )?
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:885:2: (lv_cardinality= ( ( '?' | '*' ) | '+' ) )?
int alt21=2;
int LA21_0 = input.LA(1);
@@ -2135,9 +2135,9 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
switch (alt21) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:887:6: lv_cardinality= ( ( '?' | '*' ) | '+' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:887:6: lv_cardinality= ( ( '?' | '*' ) | '+' )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:887:21: ( ( '?' | '*' ) | '+' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:887:21: ( ( '?' | '*' ) | '+' )
int alt20=2;
int LA20_0 = input.LA(1);
@@ -2155,9 +2155,9 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
switch (alt20) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:887:22: ( '?' | '*' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:887:22: ( '?' | '*' )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:887:22: ( '?' | '*' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:887:22: ( '?' | '*' )
int alt19=2;
int LA19_0 = input.LA(1);
@@ -2175,7 +2175,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
switch (alt19) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:887:23: '?'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:887:23: '?'
{
match(input,25,FOLLOW_25_in_ruleAbstractToken2025);
@@ -2185,7 +2185,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
break;
case 2 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:892:6: '*'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:892:6: '*'
{
match(input,26,FOLLOW_26_in_ruleAbstractToken2040);
@@ -2201,7 +2201,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
break;
case 2 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:897:6: '+'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:897:6: '+'
{
match(input,27,FOLLOW_27_in_ruleAbstractToken2056);
@@ -2252,7 +2252,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start entryRuleAssignment
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:922:1: entryRuleAssignment returns [EObject current=null] : iv_ruleAssignment= ruleAssignment EOF ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:922:1: entryRuleAssignment returns [EObject current=null] : iv_ruleAssignment= ruleAssignment EOF ;
public final EObject entryRuleAssignment() throws RecognitionException {
EObject current = null;
@@ -2260,8 +2260,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:922:52: (iv_ruleAssignment= ruleAssignment EOF )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:923:2: iv_ruleAssignment= ruleAssignment EOF
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:922:52: (iv_ruleAssignment= ruleAssignment EOF )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:923:2: iv_ruleAssignment= ruleAssignment EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.11" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleAssignment_in_entryRuleAssignment2103);
@@ -2287,7 +2287,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start ruleAssignment
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:930:1: ruleAssignment returns [EObject current=null] : ( ( (lv_feature= RULE_ID ) (lv_operator= ( ( '+=' | '=' ) | '?=' ) ) ) (lv_terminal= ruleAbstractTerminal ) ) ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:930:1: ruleAssignment returns [EObject current=null] : ( ( (lv_feature= RULE_ID ) (lv_operator= ( ( '+=' | '=' ) | '?=' ) ) ) (lv_terminal= ruleAbstractTerminal ) ) ;
public final EObject ruleAssignment() throws RecognitionException {
EObject current = null;
@@ -2298,17 +2298,17 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:932:33: ( ( ( (lv_feature= RULE_ID ) (lv_operator= ( ( '+=' | '=' ) | '?=' ) ) ) (lv_terminal= ruleAbstractTerminal ) ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:933:1: ( ( (lv_feature= RULE_ID ) (lv_operator= ( ( '+=' | '=' ) | '?=' ) ) ) (lv_terminal= ruleAbstractTerminal ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:932:33: ( ( ( (lv_feature= RULE_ID ) (lv_operator= ( ( '+=' | '=' ) | '?=' ) ) ) (lv_terminal= ruleAbstractTerminal ) ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:933:1: ( ( (lv_feature= RULE_ID ) (lv_operator= ( ( '+=' | '=' ) | '?=' ) ) ) (lv_terminal= ruleAbstractTerminal ) )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:933:1: ( ( (lv_feature= RULE_ID ) (lv_operator= ( ( '+=' | '=' ) | '?=' ) ) ) (lv_terminal= ruleAbstractTerminal ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:933:2: ( (lv_feature= RULE_ID ) (lv_operator= ( ( '+=' | '=' ) | '?=' ) ) ) (lv_terminal= ruleAbstractTerminal )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:933:1: ( ( (lv_feature= RULE_ID ) (lv_operator= ( ( '+=' | '=' ) | '?=' ) ) ) (lv_terminal= ruleAbstractTerminal ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:933:2: ( (lv_feature= RULE_ID ) (lv_operator= ( ( '+=' | '=' ) | '?=' ) ) ) (lv_terminal= ruleAbstractTerminal )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:933:2: ( (lv_feature= RULE_ID ) (lv_operator= ( ( '+=' | '=' ) | '?=' ) ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:933:3: (lv_feature= RULE_ID ) (lv_operator= ( ( '+=' | '=' ) | '?=' ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:933:2: ( (lv_feature= RULE_ID ) (lv_operator= ( ( '+=' | '=' ) | '?=' ) ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:933:3: (lv_feature= RULE_ID ) (lv_operator= ( ( '+=' | '=' ) | '?=' ) )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:933:3: (lv_feature= RULE_ID )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:935:6: lv_feature= RULE_ID
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:933:3: (lv_feature= RULE_ID )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:935:6: lv_feature= RULE_ID
{
lv_feature=(Token)input.LT(1);
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleAssignment2160);
@@ -2330,10 +2330,10 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:953:2: (lv_operator= ( ( '+=' | '=' ) | '?=' ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:955:6: lv_operator= ( ( '+=' | '=' ) | '?=' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:953:2: (lv_operator= ( ( '+=' | '=' ) | '?=' ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:955:6: lv_operator= ( ( '+=' | '=' ) | '?=' )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:955:18: ( ( '+=' | '=' ) | '?=' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:955:18: ( ( '+=' | '=' ) | '?=' )
int alt23=2;
int LA23_0 = input.LA(1);
@@ -2351,9 +2351,9 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
switch (alt23) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:955:19: ( '+=' | '=' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:955:19: ( '+=' | '=' )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:955:19: ( '+=' | '=' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:955:19: ( '+=' | '=' )
int alt22=2;
int LA22_0 = input.LA(1);
@@ -2371,7 +2371,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
switch (alt22) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:955:20: '+='
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:955:20: '+='
{
match(input,28,FOLLOW_28_in_ruleAssignment2194);
@@ -2381,7 +2381,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
break;
case 2 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:960:6: '='
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:960:6: '='
{
match(input,29,FOLLOW_29_in_ruleAssignment2209);
@@ -2397,7 +2397,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
break;
case 2 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:965:6: '?='
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:965:6: '?='
{
match(input,30,FOLLOW_30_in_ruleAssignment2225);
@@ -2427,8 +2427,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:983:3: (lv_terminal= ruleAbstractTerminal )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:986:6: lv_terminal= ruleAbstractTerminal
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:983:3: (lv_terminal= ruleAbstractTerminal )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:986:6: lv_terminal= ruleAbstractTerminal
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.11/@alternatives/@abstractTokens.1/@terminal" /* xtext::RuleCall */, currentNode);
@@ -2474,7 +2474,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start entryRuleAction
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1011:1: entryRuleAction returns [EObject current=null] : iv_ruleAction= ruleAction EOF ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1011:1: entryRuleAction returns [EObject current=null] : iv_ruleAction= ruleAction EOF ;
public final EObject entryRuleAction() throws RecognitionException {
EObject current = null;
@@ -2482,8 +2482,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1011:48: (iv_ruleAction= ruleAction EOF )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1012:2: iv_ruleAction= ruleAction EOF
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1011:48: (iv_ruleAction= ruleAction EOF )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1012:2: iv_ruleAction= ruleAction EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.12" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleAction_in_entryRuleAction2310);
@@ -2509,7 +2509,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start ruleAction
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1019:1: ruleAction returns [EObject current=null] : ( ( ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) ) 'current' ) '}' ) ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1019: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;
@@ -2520,35 +2520,35 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1021:33: ( ( ( ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) ) 'current' ) '}' ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:1: ( ( ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) ) 'current' ) '}' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1021:33: ( ( ( ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) ) 'current' ) '}' ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:1: ( ( ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) ) 'current' ) '}' )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:1: ( ( ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) ) 'current' ) '}' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:2: ( ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) ) 'current' ) '}'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:1: ( ( ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) ) 'current' ) '}' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:2: ( ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) ) 'current' ) '}'
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:2: ( ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) ) 'current' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:3: ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) ) 'current'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:2: ( ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) ) 'current' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:3: ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) ) 'current'
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:3: ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:4: ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:3: ( ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:4: ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) ) (lv_operator= ( '=' | '+=' ) )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:4: ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:5: ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:4: ( ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:5: ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' ) (lv_feature= RULE_ID )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:5: ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:6: ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:5: ( ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:6: ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) ) '.'
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:6: ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:7: ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:6: ( ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:7: ( '{' ( 'current' '=' )? ) (lv_typeName= ruleTypeRef )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:7: ( '{' ( 'current' '=' )? )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:8: '{' ( 'current' '=' )?
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:7: ( '{' ( 'current' '=' )? )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1022:8: '{' ( 'current' '=' )?
{
match(input,31,FOLLOW_31_in_ruleAction2360);
createLeafNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.12/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0" /* xtext::Keyword */, null);
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1026:1: ( 'current' '=' )?
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1026:1: ( 'current' '=' )?
int alt24=2;
int LA24_0 = input.LA(1);
@@ -2557,7 +2557,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
switch (alt24) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1026:2: 'current' '='
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1026:2: 'current' '='
{
match(input,32,FOLLOW_32_in_ruleAction2370);
@@ -2576,8 +2576,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1034:4: (lv_typeName= ruleTypeRef )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1037:6: lv_typeName= ruleTypeRef
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1034:4: (lv_typeName= ruleTypeRef )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1037:6: lv_typeName= ruleTypeRef
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.12/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal" /* xtext::RuleCall */, currentNode);
@@ -2612,8 +2612,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1059:2: (lv_feature= RULE_ID )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1061:6: lv_feature= RULE_ID
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1059:2: (lv_feature= RULE_ID )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1061:6: lv_feature= RULE_ID
{
lv_feature=(Token)input.LT(1);
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleAction2452);
@@ -2638,10 +2638,10 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1079:3: (lv_operator= ( '=' | '+=' ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1081:6: lv_operator= ( '=' | '+=' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1079:3: (lv_operator= ( '=' | '+=' ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1081:6: lv_operator= ( '=' | '+=' )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1081:18: ( '=' | '+=' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1081:18: ( '=' | '+=' )
int alt25=2;
int LA25_0 = input.LA(1);
@@ -2659,7 +2659,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
switch (alt25) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1081:19: '='
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1081:19: '='
{
match(input,29,FOLLOW_29_in_ruleAction2486);
@@ -2669,7 +2669,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
break;
case 2 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1086:6: '+='
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1086:6: '+='
{
match(input,28,FOLLOW_28_in_ruleAction2501);
@@ -2731,7 +2731,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start entryRuleAbstractTerminal
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1119:1: entryRuleAbstractTerminal returns [EObject current=null] : iv_ruleAbstractTerminal= ruleAbstractTerminal EOF ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1119:1: entryRuleAbstractTerminal returns [EObject current=null] : iv_ruleAbstractTerminal= ruleAbstractTerminal EOF ;
public final EObject entryRuleAbstractTerminal() throws RecognitionException {
EObject current = null;
@@ -2739,8 +2739,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1119:58: (iv_ruleAbstractTerminal= ruleAbstractTerminal EOF )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1120:2: iv_ruleAbstractTerminal= ruleAbstractTerminal EOF
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1119:58: (iv_ruleAbstractTerminal= ruleAbstractTerminal EOF )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1120:2: iv_ruleAbstractTerminal= ruleAbstractTerminal EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.13" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleAbstractTerminal_in_entryRuleAbstractTerminal2567);
@@ -2766,7 +2766,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start ruleAbstractTerminal
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1127:1: ruleAbstractTerminal returns [EObject current=null] : ( ( (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall ) | this_ParenthesizedElement= ruleParenthesizedElement ) | this_CrossReference= ruleCrossReference ) ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1127: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;
@@ -2781,10 +2781,10 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1129:33: ( ( ( (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall ) | this_ParenthesizedElement= ruleParenthesizedElement ) | this_CrossReference= ruleCrossReference ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1130:1: ( ( (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall ) | this_ParenthesizedElement= ruleParenthesizedElement ) | this_CrossReference= ruleCrossReference )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1129:33: ( ( ( (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall ) | this_ParenthesizedElement= ruleParenthesizedElement ) | this_CrossReference= ruleCrossReference ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1130:1: ( ( (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall ) | this_ParenthesizedElement= ruleParenthesizedElement ) | this_CrossReference= ruleCrossReference )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1130:1: ( ( (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall ) | this_ParenthesizedElement= ruleParenthesizedElement ) | this_CrossReference= ruleCrossReference )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1130:1: ( ( (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall ) | this_ParenthesizedElement= ruleParenthesizedElement ) | this_CrossReference= ruleCrossReference )
int alt28=2;
int LA28_0 = input.LA(1);
@@ -2802,9 +2802,9 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
switch (alt28) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1130:2: ( (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall ) | this_ParenthesizedElement= ruleParenthesizedElement )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1130:2: ( (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall ) | this_ParenthesizedElement= ruleParenthesizedElement )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1130:2: ( (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall ) | this_ParenthesizedElement= ruleParenthesizedElement )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1130:2: ( (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall ) | this_ParenthesizedElement= ruleParenthesizedElement )
int alt27=2;
int LA27_0 = input.LA(1);
@@ -2822,9 +2822,9 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
switch (alt27) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1130:3: (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1130:3: (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1130:3: (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1130:3: (this_Keyword= ruleKeyword | this_RuleCall= ruleRuleCall )
int alt26=2;
int LA26_0 = input.LA(1);
@@ -2842,7 +2842,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
switch (alt26) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1131:5: this_Keyword= ruleKeyword
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1131:5: this_Keyword= ruleKeyword
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.13/@alternatives/@groups.0/@groups.0/@groups.0" /* xtext::RuleCall */, currentNode);
@@ -2859,7 +2859,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
break;
case 2 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1141:5: this_RuleCall= ruleRuleCall
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1141:5: this_RuleCall= ruleRuleCall
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.13/@alternatives/@groups.0/@groups.0/@groups.1" /* xtext::RuleCall */, currentNode);
@@ -2882,7 +2882,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
break;
case 2 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1151:5: this_ParenthesizedElement= ruleParenthesizedElement
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1151:5: this_ParenthesizedElement= ruleParenthesizedElement
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.13/@alternatives/@groups.0/@groups.1" /* xtext::RuleCall */, currentNode);
@@ -2905,7 +2905,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
break;
case 2 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1161:5: this_CrossReference= ruleCrossReference
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1161:5: this_CrossReference= ruleCrossReference
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.13/@alternatives/@groups.1" /* xtext::RuleCall */, currentNode);
@@ -2942,7 +2942,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start entryRuleCrossReference
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1176:1: entryRuleCrossReference returns [EObject current=null] : iv_ruleCrossReference= ruleCrossReference EOF ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1176:1: entryRuleCrossReference returns [EObject current=null] : iv_ruleCrossReference= ruleCrossReference EOF ;
public final EObject entryRuleCrossReference() throws RecognitionException {
EObject current = null;
@@ -2950,8 +2950,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1176:56: (iv_ruleCrossReference= ruleCrossReference EOF )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1177:2: iv_ruleCrossReference= ruleCrossReference EOF
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1176:56: (iv_ruleCrossReference= ruleCrossReference EOF )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1177:2: iv_ruleCrossReference= ruleCrossReference EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.14" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleCrossReference_in_entryRuleCrossReference2741);
@@ -2977,7 +2977,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start ruleCrossReference
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1184:1: ruleCrossReference returns [EObject current=null] : ( ( ( '[' (lv_type= ruleTypeRef ) ) ( '|' ( ( RULE_ID ) ) )? ) ']' ) ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1184:1: ruleCrossReference returns [EObject current=null] : ( ( ( '[' (lv_type= ruleTypeRef ) ) ( '|' ( ( RULE_ID ) ) )? ) ']' ) ;
public final EObject ruleCrossReference() throws RecognitionException {
EObject current = null;
@@ -2986,24 +2986,24 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1186:33: ( ( ( ( '[' (lv_type= ruleTypeRef ) ) ( '|' ( ( RULE_ID ) ) )? ) ']' ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1187:1: ( ( ( '[' (lv_type= ruleTypeRef ) ) ( '|' ( ( RULE_ID ) ) )? ) ']' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1186:33: ( ( ( ( '[' (lv_type= ruleTypeRef ) ) ( '|' ( ( RULE_ID ) ) )? ) ']' ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1187:1: ( ( ( '[' (lv_type= ruleTypeRef ) ) ( '|' ( ( RULE_ID ) ) )? ) ']' )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1187:1: ( ( ( '[' (lv_type= ruleTypeRef ) ) ( '|' ( ( RULE_ID ) ) )? ) ']' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1187:2: ( ( '[' (lv_type= ruleTypeRef ) ) ( '|' ( ( RULE_ID ) ) )? ) ']'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1187:1: ( ( ( '[' (lv_type= ruleTypeRef ) ) ( '|' ( ( RULE_ID ) ) )? ) ']' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1187:2: ( ( '[' (lv_type= ruleTypeRef ) ) ( '|' ( ( RULE_ID ) ) )? ) ']'
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1187:2: ( ( '[' (lv_type= ruleTypeRef ) ) ( '|' ( ( RULE_ID ) ) )? )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1187:3: ( '[' (lv_type= ruleTypeRef ) ) ( '|' ( ( RULE_ID ) ) )?
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1187:2: ( ( '[' (lv_type= ruleTypeRef ) ) ( '|' ( ( RULE_ID ) ) )? )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1187:3: ( '[' (lv_type= ruleTypeRef ) ) ( '|' ( ( RULE_ID ) ) )?
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1187:3: ( '[' (lv_type= ruleTypeRef ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1187:4: '[' (lv_type= ruleTypeRef )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1187:3: ( '[' (lv_type= ruleTypeRef ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1187:4: '[' (lv_type= ruleTypeRef )
{
match(input,34,FOLLOW_34_in_ruleCrossReference2787);
createLeafNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.14/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.0" /* xtext::Keyword */, null);
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1191:1: (lv_type= ruleTypeRef )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1194:6: lv_type= ruleTypeRef
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1191:1: (lv_type= ruleTypeRef )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1194:6: lv_type= ruleTypeRef
{
currentNode=createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.14/@alternatives/@abstractTokens.0/@abstractTokens.0/@abstractTokens.1/@terminal" /* xtext::RuleCall */, currentNode);
@@ -3031,7 +3031,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1212:3: ( '|' ( ( RULE_ID ) ) )?
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1212:3: ( '|' ( ( RULE_ID ) ) )?
int alt29=2;
int LA29_0 = input.LA(1);
@@ -3040,14 +3040,14 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
}
switch (alt29) {
case 1 :
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1212:4: '|' ( ( RULE_ID ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1212:4: '|' ( ( RULE_ID ) )
{
match(input,24,FOLLOW_24_in_ruleCrossReference2836);
createLeafNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.14/@alternatives/@abstractTokens.0/@abstractTokens.1/@abstractTokens.0" /* xtext::Keyword */, null);
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1216:1: ( ( RULE_ID ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1219:3: ( RULE_ID )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1216:1: ( ( RULE_ID ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1219:3: ( RULE_ID )
{
if (current==null) {
@@ -3055,8 +3055,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
associateNodeWithAstElement(currentNode, current);
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1225:1: ( RULE_ID )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1226:2: RULE_ID
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1225:1: ( RULE_ID )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1226:2: RULE_ID
{
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleCrossReference2860);
@@ -3102,7 +3102,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start entryRuleParenthesizedElement
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1242:1: entryRuleParenthesizedElement returns [EObject current=null] : iv_ruleParenthesizedElement= ruleParenthesizedElement EOF ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1242:1: entryRuleParenthesizedElement returns [EObject current=null] : iv_ruleParenthesizedElement= ruleParenthesizedElement EOF ;
public final EObject entryRuleParenthesizedElement() throws RecognitionException {
EObject current = null;
@@ -3110,8 +3110,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1242:62: (iv_ruleParenthesizedElement= ruleParenthesizedElement EOF )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1243:2: iv_ruleParenthesizedElement= ruleParenthesizedElement EOF
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1242:62: (iv_ruleParenthesizedElement= ruleParenthesizedElement EOF )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1243:2: iv_ruleParenthesizedElement= ruleParenthesizedElement EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.15" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleParenthesizedElement_in_entryRuleParenthesizedElement2909);
@@ -3137,7 +3137,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start ruleParenthesizedElement
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1250:1: ruleParenthesizedElement returns [EObject current=null] : ( ( '(' this_Alternatives= ruleAlternatives ) ')' ) ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1250:1: ruleParenthesizedElement returns [EObject current=null] : ( ( '(' this_Alternatives= ruleAlternatives ) ')' ) ;
public final EObject ruleParenthesizedElement() throws RecognitionException {
EObject current = null;
@@ -3146,14 +3146,14 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1252:33: ( ( ( '(' this_Alternatives= ruleAlternatives ) ')' ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1253:1: ( ( '(' this_Alternatives= ruleAlternatives ) ')' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1252:33: ( ( ( '(' this_Alternatives= ruleAlternatives ) ')' ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1253:1: ( ( '(' this_Alternatives= ruleAlternatives ) ')' )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1253:1: ( ( '(' this_Alternatives= ruleAlternatives ) ')' )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1253:2: ( '(' this_Alternatives= ruleAlternatives ) ')'
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1253:1: ( ( '(' this_Alternatives= ruleAlternatives ) ')' )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1253:2: ( '(' this_Alternatives= ruleAlternatives ) ')'
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1253:2: ( '(' this_Alternatives= ruleAlternatives )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1253:3: '(' this_Alternatives= ruleAlternatives
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1253:2: ( '(' this_Alternatives= ruleAlternatives )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1253:3: '(' this_Alternatives= ruleAlternatives
{
match(input,36,FOLLOW_36_in_ruleParenthesizedElement2954);
@@ -3198,7 +3198,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start entryRuleKeyword
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1277:1: entryRuleKeyword returns [EObject current=null] : iv_ruleKeyword= ruleKeyword EOF ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1277:1: entryRuleKeyword returns [EObject current=null] : iv_ruleKeyword= ruleKeyword EOF ;
public final EObject entryRuleKeyword() throws RecognitionException {
EObject current = null;
@@ -3206,8 +3206,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1277:49: (iv_ruleKeyword= ruleKeyword EOF )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1278:2: iv_ruleKeyword= ruleKeyword EOF
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1277:49: (iv_ruleKeyword= ruleKeyword EOF )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1278:2: iv_ruleKeyword= ruleKeyword EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.16" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleKeyword_in_entryRuleKeyword3018);
@@ -3233,7 +3233,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start ruleKeyword
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1285:1: ruleKeyword returns [EObject current=null] : (lv_value= RULE_STRING ) ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1285:1: ruleKeyword returns [EObject current=null] : (lv_value= RULE_STRING ) ;
public final EObject ruleKeyword() throws RecognitionException {
EObject current = null;
@@ -3241,11 +3241,11 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1287:33: ( (lv_value= RULE_STRING ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1288:1: (lv_value= RULE_STRING )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1287:33: ( (lv_value= RULE_STRING ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1288:1: (lv_value= RULE_STRING )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1288:1: (lv_value= RULE_STRING )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1290:6: lv_value= RULE_STRING
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1288:1: (lv_value= RULE_STRING )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1290:6: lv_value= RULE_STRING
{
lv_value=(Token)input.LT(1);
match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleKeyword3073);
@@ -3285,7 +3285,7 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start entryRuleRuleCall
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1315:1: entryRuleRuleCall returns [EObject current=null] : iv_ruleRuleCall= ruleRuleCall EOF ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1315:1: entryRuleRuleCall returns [EObject current=null] : iv_ruleRuleCall= ruleRuleCall EOF ;
public final EObject entryRuleRuleCall() throws RecognitionException {
EObject current = null;
@@ -3293,8 +3293,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1315:50: (iv_ruleRuleCall= ruleRuleCall EOF )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1316:2: iv_ruleRuleCall= ruleRuleCall EOF
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1315:50: (iv_ruleRuleCall= ruleRuleCall EOF )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1316:2: iv_ruleRuleCall= ruleRuleCall EOF
{
currentNode = createCompositeNode("classpath:/org/eclipse/xtext/XtextGrammarTestLanguage.xmi#//@rules.17" /* xtext::ParserRule */, currentNode);
pushFollow(FOLLOW_ruleRuleCall_in_entryRuleRuleCall3116);
@@ -3320,17 +3320,17 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
// $ANTLR start ruleRuleCall
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1323:1: ruleRuleCall returns [EObject current=null] : ( ( RULE_ID ) ) ;
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1323:1: ruleRuleCall returns [EObject current=null] : ( ( RULE_ID ) ) ;
public final EObject ruleRuleCall() throws RecognitionException {
EObject current = null;
EObject temp=null; setCurrentLookahead(); resetLookahead();
try {
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1325:33: ( ( ( RULE_ID ) ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1326:1: ( ( RULE_ID ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1325:33: ( ( ( RULE_ID ) ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1326:1: ( ( RULE_ID ) )
{
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1326:1: ( ( RULE_ID ) )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1329:3: ( RULE_ID )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1326:1: ( ( RULE_ID ) )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1329:3: ( RULE_ID )
{
if (current==null) {
@@ -3338,8 +3338,8 @@ public class InternalXtextGrammarTestLanguageParser extends AbstractInternalAntl
associateNodeWithAstElement(currentNode, current);
}
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1335:1: ( RULE_ID )
- // ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1336:2: RULE_ID
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1335:1: ( RULE_ID )
+ // ../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g:1336:2: RULE_ID
{
match(input,RULE_ID,FOLLOW_RULE_ID_in_ruleRuleCall3174);
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage__.g b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage__.g
index c8f9705..0f0fd10 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage__.g
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage__.g
@@ -35,25 +35,25 @@ T35 : ']' ;
T36 : '(' ;
T37 : ')' ;
-// $ANTLR src "./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g" 1347
+// $ANTLR src "../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g" 1347
RULE_ID : ('^')?('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*;
-// $ANTLR src "./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g" 1349
+// $ANTLR src "../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g" 1349
RULE_INT : ('0'..'9')+;
-// $ANTLR src "./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g" 1351
+// $ANTLR src "../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g" 1351
RULE_STRING : '"' ( '\\' ('b'|'t'|'n'|'f'|'r'|'\"'|'\''|'\\') | ~('\\'|'"') )* '"' | '\'' ( '\\' ('b'|'t'|'n'|'f'|'r'|'\"'|'\''|'\\') | ~('\\'|'\'') )* '\'';
-// $ANTLR src "./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g" 1353
+// $ANTLR src "../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g" 1353
RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )* '*/' {$channel=HIDDEN;};
-// $ANTLR src "./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g" 1355
+// $ANTLR src "../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g" 1355
RULE_SL_COMMENT : '//' ~('\n'|'\r')* ('\r'? '\n')? {$channel=HIDDEN;};
-// $ANTLR src "./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g" 1357
+// $ANTLR src "../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g" 1357
RULE_WS : (' '|'\t'|'\r'|'\n')+ {$channel=HIDDEN;};
-// $ANTLR src "./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g" 1359
+// $ANTLR src "../org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g" 1359
RULE_ANY_OTHER : .;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/antlr/internal/InternalDatatypeRulesTestLanguageLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/antlr/internal/InternalDatatypeRulesTestLanguageLexer.java
index 171d596..e2ac49c 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/antlr/internal/InternalDatatypeRulesTestLanguageLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/antlr/internal/InternalDatatypeRulesTestLanguageLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parser/datatyperules/parser/antlr/internal/InternalDatatypeRulesTestLanguage.g 2009-01-13 09:48:39
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parser/datatyperules/parser/antlr/internal/InternalDatatypeRulesTestLanguage.g 2009-01-13 18:38:45
package org.eclipse.xtext.parser.datatyperules.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/antlr/internal/InternalDatatypeRulesTestLanguageParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/antlr/internal/InternalDatatypeRulesTestLanguageParser.java
index b2eafa4..3579946 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/antlr/internal/InternalDatatypeRulesTestLanguageParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/antlr/internal/InternalDatatypeRulesTestLanguageParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parser/datatyperules/parser/antlr/internal/InternalDatatypeRulesTestLanguage.g 2009-01-13 09:48:39
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parser/datatyperules/parser/antlr/internal/InternalDatatypeRulesTestLanguage.g 2009-01-13 18:38:45
package org.eclipse.xtext.parser.datatyperules.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/DatatypeRulesTestLanguageDelimiters.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/DatatypeRulesTestLanguageDelimiters.java
new file mode 100644
index 0000000..5127459
--- /dev/null
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/DatatypeRulesTestLanguageDelimiters.java
@@ -0,0 +1,21 @@
+/*
+Generated with Xtext
+*/
+package org.eclipse.xtext.parser.datatyperules.parser.packrat;
+
+import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+import org.eclipse.xtext.parser.packrat.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
+import org.eclipse.xtext.parser.packrat.matching.SetBasedKeywordMatcher;
+
+import org.eclipse.xtext.parser.datatyperules.services.DatatypeRulesTestLanguageGrammarAccess;
+
+public class DatatypeRulesTestLanguageDelimiters {
+
+ public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+
+ public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+
+ public static ISequenceMatcher ALL_KEYWORDS = new SetBasedKeywordMatcher(DatatypeRulesTestLanguageGrammarAccess.INSTANCE.getGrammar());
+
+}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/DatatypeRulesTestLanguageParserConfiguration.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/DatatypeRulesTestLanguageParserConfiguration.java
index a231435..9182a01 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/DatatypeRulesTestLanguageParserConfiguration.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/DatatypeRulesTestLanguageParserConfiguration.java
@@ -85,9 +85,9 @@ public class DatatypeRulesTestLanguageParserConfiguration extends AbstractParser
public void configureConsumers() {
getCompositeModelConsumer().setModelConsumer(getModelConsumer());
- getModelConsumer().setDotsConsumer(getDotsConsumer());
getModelConsumer().setVectorConsumer(getVectorConsumer());
getModelConsumer().setFractionConsumer(getFractionConsumer());
+ getModelConsumer().setDotsConsumer(getDotsConsumer());
getModelConsumer().setNestedModelIdConsumer(getNestedModelIdConsumer());
getModelIdConsumer().setIdConsumer(getIdConsumer());
@@ -116,71 +116,57 @@ public class DatatypeRulesTestLanguageParserConfiguration extends AbstractParser
return compositeModelConsumer;
}
-
public DatatypeRulesTestLanguageModelConsumer getModelConsumer() {
return modelConsumer;
}
-
public DatatypeRulesTestLanguageModelIdConsumer getModelIdConsumer() {
return modelIdConsumer;
}
-
public DatatypeRulesTestLanguageNestedModelIdConsumer getNestedModelIdConsumer() {
return nestedModelIdConsumer;
}
-
public DatatypeRulesTestLanguageFractionConsumer getFractionConsumer() {
return fractionConsumer;
}
-
public DatatypeRulesTestLanguageVectorConsumer getVectorConsumer() {
return vectorConsumer;
}
-
public DatatypeRulesTestLanguageDotsConsumer getDotsConsumer() {
return dotsConsumer;
}
-
public XtextBuiltinIDConsumer getIdConsumer() {
return getXtextBuiltinConfiguration().getIdConsumer();
}
-
public XtextBuiltinINTConsumer getIntConsumer() {
return getXtextBuiltinConfiguration().getIntConsumer();
}
-
public XtextBuiltinSTRINGConsumer getStringConsumer() {
return getXtextBuiltinConfiguration().getStringConsumer();
}
-
public XtextBuiltinML_COMMENTConsumer getMlCommentConsumer() {
return getXtextBuiltinConfiguration().getMlCommentConsumer();
}
-
public XtextBuiltinSL_COMMENTConsumer getSlCommentConsumer() {
return getXtextBuiltinConfiguration().getSlCommentConsumer();
}
-
public XtextBuiltinWSConsumer getWsConsumer() {
return getXtextBuiltinConfiguration().getWsConsumer();
}
-
public XtextBuiltinANY_OTHERConsumer getAnyOtherConsumer() {
return getXtextBuiltinConfiguration().getAnyOtherConsumer();
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageCompositeModelConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageCompositeModelConsumer.java
index 85697cb..c118b23 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageCompositeModelConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageCompositeModelConsumer.java
@@ -12,11 +12,15 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.parser.datatyperules.services.DatatypeRulesTestLanguageGrammarAccess;
import org.eclipse.xtext.parser.datatyperules.services.DatatypeRulesTestLanguageGrammarAccess.CompositeModelElements;
+import org.eclipse.xtext.parser.datatyperules.parser.packrat.DatatypeRulesTestLanguageDelimiters;
+
import org.eclipse.xtext.parser.datatyperules.parser.packrat.consumers.DatatypeRulesTestLanguageModelConsumer;
+@SuppressWarnings("unused")
public final class DatatypeRulesTestLanguageCompositeModelConsumer extends NonTerminalConsumer {
private DatatypeRulesTestLanguageModelConsumer modelConsumer;
@@ -27,19 +31,24 @@ public final class DatatypeRulesTestLanguageCompositeModelConsumer extends NonTe
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- ASSIGNMENT$1SUCCESS: {
- ASSIGNMENT$1FAILURE: {
- if (!consumeNonTerminal(modelConsumer, "model", true, false , getRule().ele0ParserRuleCallModel()))
- break ASSIGNMENT$1SUCCESS;
- while(consumeNonTerminal(modelConsumer, "model", true, false , getRule().ele0ParserRuleCallModel()));
- }
+ return consumeAssignment$1();
+ }
+
+ protected boolean consumeAssignment$1() throws Exception {
+ if (doConsumeAssignment$1()) {
+ while(doConsumeAssignment$1()) {}
return true;
}
return false;
}
+ protected boolean doConsumeAssignment$1() throws Exception {
+ if (consumeNonTerminal(modelConsumer, "model", true, false, getRule().ele0ParserRuleCallModel()))
+ return true;
+ return false;
+ }
+
public CompositeModelElements getRule() {
return DatatypeRulesTestLanguageGrammarAccess.INSTANCE.prCompositeModel();
}
@@ -57,5 +66,4 @@ public final class DatatypeRulesTestLanguageCompositeModelConsumer extends NonTe
this.modelConsumer = modelConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageDotsConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageDotsConsumer.java
index c5caffd..2f22ae1 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageDotsConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageDotsConsumer.java
@@ -12,10 +12,14 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.parser.datatyperules.services.DatatypeRulesTestLanguageGrammarAccess;
import org.eclipse.xtext.parser.datatyperules.services.DatatypeRulesTestLanguageGrammarAccess.DotsElements;
+import org.eclipse.xtext.parser.datatyperules.parser.packrat.DatatypeRulesTestLanguageDelimiters;
+
+@SuppressWarnings("unused")
public final class DatatypeRulesTestLanguageDotsConsumer extends NonTerminalConsumer {
@@ -25,44 +29,43 @@ public final class DatatypeRulesTestLanguageDotsConsumer extends NonTerminalCons
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- ALTERNATIVES$1SUCCESS: {
- ALTERNATIVES$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- KEYWORD$3SUCCESS: {
- if (!consumeKeyword(getRule().ele00KeywordFullStop(), null, false, false))
- break KEYWORD$3SUCCESS;
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- KEYWORD$4SUCCESS: {
- if (!consumeKeyword(getRule().ele01KeywordFullStop(), null, false, false))
- break KEYWORD$4SUCCESS;
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- break ALTERNATIVES$1FAILURE;
- }
- KEYWORD$5SUCCESS: {
- if (!consumeKeyword(getRule().ele1KeywordFullStopFullStop(), null, false, false))
- break KEYWORD$5SUCCESS;
- break ALTERNATIVES$1FAILURE;
- }
- break ALTERNATIVES$1SUCCESS;
- }
+ return consumeAlternatives$1();
+ }
+
+ protected boolean consumeAlternatives$1() throws Exception {
+ if (consumeGroup$2())
+ return true;
+ if (consumeKeyword$5())
return true;
- }
return false;
}
+ protected boolean consumeGroup$2() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$3()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$4()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$3() throws Exception {
+ return consumeKeyword(getRule().ele00KeywordFullStop(), null, false, false, DatatypeRulesTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeKeyword$4() throws Exception {
+ return consumeKeyword(getRule().ele01KeywordFullStop(), null, false, false, DatatypeRulesTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeKeyword$5() throws Exception {
+ return consumeKeyword(getRule().ele1KeywordFullStopFullStop(), null, false, false, DatatypeRulesTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ }
+
public DotsElements getRule() {
return DatatypeRulesTestLanguageGrammarAccess.INSTANCE.prDots();
}
@@ -76,5 +79,4 @@ public final class DatatypeRulesTestLanguageDotsConsumer extends NonTerminalCons
return "EString";
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageFractionConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageFractionConsumer.java
index 6edde69..7024b6a 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageFractionConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageFractionConsumer.java
@@ -12,11 +12,15 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.parser.datatyperules.services.DatatypeRulesTestLanguageGrammarAccess;
import org.eclipse.xtext.parser.datatyperules.services.DatatypeRulesTestLanguageGrammarAccess.FractionElements;
+import org.eclipse.xtext.parser.datatyperules.parser.packrat.DatatypeRulesTestLanguageDelimiters;
+
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinINTConsumer;
+@SuppressWarnings("unused")
public final class DatatypeRulesTestLanguageFractionConsumer extends NonTerminalConsumer {
private XtextBuiltinINTConsumer intConsumer;
@@ -27,46 +31,51 @@ public final class DatatypeRulesTestLanguageFractionConsumer extends NonTerminal
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- RULECALL$2SUCCESS: {
- if (!consumeTerminal(intConsumer, null, false, false, getRule().ele0LexerRuleCallINT()))
- break RULECALL$2SUCCESS;
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- GROUP$3SUCCESS: {
- IMarker mGROUP$3 = mark();
- GROUP$3FAILURE: {
- KEYWORD$4SUCCESS: {
- if (!consumeKeyword(getRule().ele10KeywordSolidus(), null, false, false))
- break KEYWORD$4SUCCESS;
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- GROUP$3FAILURE: {
- RULECALL$5SUCCESS: {
- if (!consumeTerminal(intConsumer, null, false, false, getRule().ele11LexerRuleCallINT()))
- break RULECALL$5SUCCESS;
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeRuleCall$2()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeGroup$3()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeRuleCall$2() throws Exception {
+ return consumeTerminal(intConsumer, null, false, false, getRule().ele0LexerRuleCallINT(), DatatypeRulesTestLanguageDelimiters.ALL_KEYWORDS);
+ }
+
+ protected boolean consumeGroup$3() throws Exception {
+ doConsumeGroup$3();
+ return true;
+ }
+
+ protected boolean doConsumeGroup$3() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$4()) {
+ marker.rollback();
+ return false;
}
- return false;
+ if (!consumeRuleCall$5()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$4() throws Exception {
+ return consumeKeyword(getRule().ele10KeywordSolidus(), null, false, false, DatatypeRulesTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeRuleCall$5() throws Exception {
+ return consumeTerminal(intConsumer, null, false, false, getRule().ele11LexerRuleCallINT(), DatatypeRulesTestLanguageDelimiters.ALL_KEYWORDS);
}
public FractionElements getRule() {
@@ -86,5 +95,4 @@ public final class DatatypeRulesTestLanguageFractionConsumer extends NonTerminal
this.intConsumer = intConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageModelConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageModelConsumer.java
index 712052f..17ab9ce 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageModelConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageModelConsumer.java
@@ -12,19 +12,23 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.parser.datatyperules.services.DatatypeRulesTestLanguageGrammarAccess;
import org.eclipse.xtext.parser.datatyperules.services.DatatypeRulesTestLanguageGrammarAccess.ModelElements;
-import org.eclipse.xtext.parser.datatyperules.parser.packrat.consumers.DatatypeRulesTestLanguageDotsConsumer;
+import org.eclipse.xtext.parser.datatyperules.parser.packrat.DatatypeRulesTestLanguageDelimiters;
+
import org.eclipse.xtext.parser.datatyperules.parser.packrat.consumers.DatatypeRulesTestLanguageVectorConsumer;
import org.eclipse.xtext.parser.datatyperules.parser.packrat.consumers.DatatypeRulesTestLanguageFractionConsumer;
+import org.eclipse.xtext.parser.datatyperules.parser.packrat.consumers.DatatypeRulesTestLanguageDotsConsumer;
import org.eclipse.xtext.parser.datatyperules.parser.packrat.consumers.DatatypeRulesTestLanguageNestedModelIdConsumer;
+@SuppressWarnings("unused")
public final class DatatypeRulesTestLanguageModelConsumer extends NonTerminalConsumer {
- private DatatypeRulesTestLanguageDotsConsumer dotsConsumer;
private DatatypeRulesTestLanguageVectorConsumer vectorConsumer;
private DatatypeRulesTestLanguageFractionConsumer fractionConsumer;
+ private DatatypeRulesTestLanguageDotsConsumer dotsConsumer;
private DatatypeRulesTestLanguageNestedModelIdConsumer nestedModelIdConsumer;
public DatatypeRulesTestLanguageModelConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
@@ -33,145 +37,129 @@ public final class DatatypeRulesTestLanguageModelConsumer extends NonTerminalCon
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- GROUP$3SUCCESS: {
- IMarker mGROUP$3 = mark();
- GROUP$3FAILURE: {
- GROUP$4SUCCESS: {
- IMarker mGROUP$4 = mark();
- GROUP$4FAILURE: {
- ASSIGNMENT$5SUCCESS: {
- ASSIGNMENT$5FAILURE: {
- if (consumeNonTerminal(nestedModelIdConsumer, "id", false, true , getRule().ele00000ParserRuleCallNestedModelId()))
- break ASSIGNMENT$5FAILURE;
- mGROUP$4.rollback();
- break ASSIGNMENT$5SUCCESS;
- }
- break GROUP$4FAILURE;
- }
- mGROUP$4.rollback();
- break GROUP$4SUCCESS;
- }
- GROUP$4FAILURE: {
- GROUP$7SUCCESS: {
- IMarker mGROUP$7 = mark();
- GROUP$7FAILURE: {
- KEYWORD$8SUCCESS: {
- if (!consumeKeyword(getRule().ele00010KeywordColon(), null, false, false))
- break KEYWORD$8SUCCESS;
- break GROUP$7FAILURE;
- }
- mGROUP$7.rollback();
- break GROUP$7SUCCESS;
- }
- GROUP$7FAILURE: {
- ASSIGNMENT$9SUCCESS: {
- ASSIGNMENT$9FAILURE: {
- if (consumeNonTerminal(fractionConsumer, "value", false, true , getRule().ele000110ParserRuleCallFraction()))
- break ASSIGNMENT$9FAILURE;
- mGROUP$7.rollback();
- break ASSIGNMENT$9SUCCESS;
- }
- break GROUP$7FAILURE;
- }
- mGROUP$7.rollback();
- break GROUP$7SUCCESS;
- }
- break GROUP$4FAILURE;
- }
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- GROUP$3FAILURE: {
- GROUP$11SUCCESS: {
- IMarker mGROUP$11 = mark();
- GROUP$11FAILURE: {
- KEYWORD$12SUCCESS: {
- if (!consumeKeyword(getRule().ele0010KeywordNumberSign(), null, false, false))
- break KEYWORD$12SUCCESS;
- break GROUP$11FAILURE;
- }
- mGROUP$11.rollback();
- break GROUP$11SUCCESS;
- }
- GROUP$11FAILURE: {
- ASSIGNMENT$13SUCCESS: {
- ASSIGNMENT$13FAILURE: {
- if (consumeNonTerminal(vectorConsumer, "vector", false, true , getRule().ele00110ParserRuleCallVector()))
- break ASSIGNMENT$13FAILURE;
- mGROUP$11.rollback();
- break ASSIGNMENT$13SUCCESS;
- }
- break GROUP$11FAILURE;
- }
- mGROUP$11.rollback();
- break GROUP$11SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- GROUP$15SUCCESS: {
- IMarker mGROUP$15 = mark();
- GROUP$15FAILURE: {
- KEYWORD$16SUCCESS: {
- if (!consumeKeyword(getRule().ele010KeywordPlusSign(), null, false, false))
- break KEYWORD$16SUCCESS;
- break GROUP$15FAILURE;
- }
- mGROUP$15.rollback();
- break GROUP$15SUCCESS;
- }
- GROUP$15FAILURE: {
- ASSIGNMENT$17SUCCESS: {
- ASSIGNMENT$17FAILURE: {
- if (consumeNonTerminal(dotsConsumer, "dots", false, true , getRule().ele0110ParserRuleCallDots()))
- break ASSIGNMENT$17FAILURE;
- mGROUP$15.rollback();
- break ASSIGNMENT$17SUCCESS;
- }
- break GROUP$15FAILURE;
- }
- mGROUP$15.rollback();
- break GROUP$15SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- KEYWORD$19SUCCESS: {
- if (!consumeKeyword(getRule().ele1KeywordSemicolon(), null, false, false))
- break KEYWORD$19SUCCESS;
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeAssignment$5()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeGroup$7()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeGroup$11()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeGroup$15()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$19()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeAssignment$5() throws Exception {
+ if (consumeNonTerminal(nestedModelIdConsumer, "id", false, true, getRule().ele00000ParserRuleCallNestedModelId()))
return true;
+ return false;
+ }
+
+ protected boolean consumeGroup$7() throws Exception {
+ doConsumeGroup$7();
+ return true;
+ }
+
+ protected boolean doConsumeGroup$7() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$8()) {
+ marker.rollback();
+ return false;
}
+ if (!consumeAssignment$9()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$8() throws Exception {
+ return consumeKeyword(getRule().ele00010KeywordColon(), null, false, false, DatatypeRulesTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$9() throws Exception {
+ if (consumeNonTerminal(fractionConsumer, "value", false, true, getRule().ele000110ParserRuleCallFraction()))
+ return true;
return false;
}
+ protected boolean consumeGroup$11() throws Exception {
+ doConsumeGroup$11();
+ return true;
+ }
+
+ protected boolean doConsumeGroup$11() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$12()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$13()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$12() throws Exception {
+ return consumeKeyword(getRule().ele0010KeywordNumberSign(), null, false, false, DatatypeRulesTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$13() throws Exception {
+ if (consumeNonTerminal(vectorConsumer, "vector", false, true, getRule().ele00110ParserRuleCallVector()))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeGroup$15() throws Exception {
+ doConsumeGroup$15();
+ return true;
+ }
+
+ protected boolean doConsumeGroup$15() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$16()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$17()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$16() throws Exception {
+ return consumeKeyword(getRule().ele010KeywordPlusSign(), null, false, false, DatatypeRulesTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$17() throws Exception {
+ if (consumeNonTerminal(dotsConsumer, "dots", false, true, getRule().ele0110ParserRuleCallDots()))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeKeyword$19() throws Exception {
+ return consumeKeyword(getRule().ele1KeywordSemicolon(), null, false, false, DatatypeRulesTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ }
+
public ModelElements getRule() {
return DatatypeRulesTestLanguageGrammarAccess.INSTANCE.prModel();
}
@@ -185,10 +173,6 @@ public final class DatatypeRulesTestLanguageModelConsumer extends NonTerminalCon
return "Model";
}
- public void setDotsConsumer(DatatypeRulesTestLanguageDotsConsumer dotsConsumer) {
- this.dotsConsumer = dotsConsumer;
- }
-
public void setVectorConsumer(DatatypeRulesTestLanguageVectorConsumer vectorConsumer) {
this.vectorConsumer = vectorConsumer;
}
@@ -197,9 +181,12 @@ public final class DatatypeRulesTestLanguageModelConsumer extends NonTerminalCon
this.fractionConsumer = fractionConsumer;
}
+ public void setDotsConsumer(DatatypeRulesTestLanguageDotsConsumer dotsConsumer) {
+ this.dotsConsumer = dotsConsumer;
+ }
+
public void setNestedModelIdConsumer(DatatypeRulesTestLanguageNestedModelIdConsumer nestedModelIdConsumer) {
this.nestedModelIdConsumer = nestedModelIdConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageModelIdConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageModelIdConsumer.java
index 60b99fc..7f48dd1 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageModelIdConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageModelIdConsumer.java
@@ -12,11 +12,15 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.parser.datatyperules.services.DatatypeRulesTestLanguageGrammarAccess;
import org.eclipse.xtext.parser.datatyperules.services.DatatypeRulesTestLanguageGrammarAccess.ModelIdElements;
+import org.eclipse.xtext.parser.datatyperules.parser.packrat.DatatypeRulesTestLanguageDelimiters;
+
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+@SuppressWarnings("unused")
public final class DatatypeRulesTestLanguageModelIdConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
@@ -27,48 +31,37 @@ public final class DatatypeRulesTestLanguageModelIdConsumer extends NonTerminalC
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- RULECALL$3SUCCESS: {
- if (!consumeTerminal(idConsumer, null, false, false, getRule().ele00LexerRuleCallID()))
- break RULECALL$3SUCCESS;
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- KEYWORD$4SUCCESS: {
- if (!consumeKeyword(getRule().ele01KeywordFullStop(), null, false, false))
- break KEYWORD$4SUCCESS;
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- RULECALL$5SUCCESS: {
- if (!consumeTerminal(idConsumer, null, false, false, getRule().ele1LexerRuleCallID()))
- break RULECALL$5SUCCESS;
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeRuleCall$3()) {
+ marker.rollback();
+ return false;
}
- return false;
+ if (!consumeKeyword$4()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeRuleCall$5()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeRuleCall$3() throws Exception {
+ return consumeTerminal(idConsumer, null, false, false, getRule().ele00LexerRuleCallID(), DatatypeRulesTestLanguageDelimiters.ALL_KEYWORDS);
+ }
+
+ protected boolean consumeKeyword$4() throws Exception {
+ return consumeKeyword(getRule().ele01KeywordFullStop(), null, false, false, DatatypeRulesTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeRuleCall$5() throws Exception {
+ return consumeTerminal(idConsumer, null, false, false, getRule().ele1LexerRuleCallID(), DatatypeRulesTestLanguageDelimiters.ALL_KEYWORDS);
}
public ModelIdElements getRule() {
@@ -88,5 +81,4 @@ public final class DatatypeRulesTestLanguageModelIdConsumer extends NonTerminalC
this.idConsumer = idConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageNestedModelIdConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageNestedModelIdConsumer.java
index 633148c..884e128 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageNestedModelIdConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageNestedModelIdConsumer.java
@@ -12,11 +12,15 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.parser.datatyperules.services.DatatypeRulesTestLanguageGrammarAccess;
import org.eclipse.xtext.parser.datatyperules.services.DatatypeRulesTestLanguageGrammarAccess.NestedModelIdElements;
+import org.eclipse.xtext.parser.datatyperules.parser.packrat.DatatypeRulesTestLanguageDelimiters;
+
import org.eclipse.xtext.parser.datatyperules.parser.packrat.consumers.DatatypeRulesTestLanguageModelIdConsumer;
+@SuppressWarnings("unused")
public final class DatatypeRulesTestLanguageNestedModelIdConsumer extends NonTerminalConsumer {
private DatatypeRulesTestLanguageModelIdConsumer modelIdConsumer;
@@ -27,48 +31,37 @@ public final class DatatypeRulesTestLanguageNestedModelIdConsumer extends NonTer
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- RULECALL$3SUCCESS: {
- if (!consumeNonTerminal(modelIdConsumer, null, false, true, getRule().ele00ParserRuleCallModelId()))
- break RULECALL$3SUCCESS;
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- KEYWORD$4SUCCESS: {
- if (!consumeKeyword(getRule().ele01KeywordFullStop(), null, false, false))
- break KEYWORD$4SUCCESS;
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- RULECALL$5SUCCESS: {
- if (!consumeNonTerminal(modelIdConsumer, null, false, true, getRule().ele1ParserRuleCallModelId()))
- break RULECALL$5SUCCESS;
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeRuleCall$3()) {
+ marker.rollback();
+ return false;
}
- return false;
+ if (!consumeKeyword$4()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeRuleCall$5()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeRuleCall$3() throws Exception {
+ return consumeNonTerminal(modelIdConsumer, null, false, true, getRule().ele00ParserRuleCallModelId());
+ }
+
+ protected boolean consumeKeyword$4() throws Exception {
+ return consumeKeyword(getRule().ele01KeywordFullStop(), null, false, false, DatatypeRulesTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeRuleCall$5() throws Exception {
+ return consumeNonTerminal(modelIdConsumer, null, false, true, getRule().ele1ParserRuleCallModelId());
}
public NestedModelIdElements getRule() {
@@ -88,5 +81,4 @@ public final class DatatypeRulesTestLanguageNestedModelIdConsumer extends NonTer
this.modelIdConsumer = modelIdConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageVectorConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageVectorConsumer.java
index 1bbc5f7..751d895 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageVectorConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageVectorConsumer.java
@@ -12,11 +12,15 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.parser.datatyperules.services.DatatypeRulesTestLanguageGrammarAccess;
import org.eclipse.xtext.parser.datatyperules.services.DatatypeRulesTestLanguageGrammarAccess.VectorElements;
+import org.eclipse.xtext.parser.datatyperules.parser.packrat.DatatypeRulesTestLanguageDelimiters;
+
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinINTConsumer;
+@SuppressWarnings("unused")
public final class DatatypeRulesTestLanguageVectorConsumer extends NonTerminalConsumer {
private XtextBuiltinINTConsumer intConsumer;
@@ -27,65 +31,45 @@ public final class DatatypeRulesTestLanguageVectorConsumer extends NonTerminalCo
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- GROUP$3SUCCESS: {
- IMarker mGROUP$3 = mark();
- GROUP$3FAILURE: {
- KEYWORD$4SUCCESS: {
- if (!consumeKeyword(getRule().ele000KeywordLeftParenthesis(), null, false, false))
- break KEYWORD$4SUCCESS;
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- GROUP$3FAILURE: {
- RULECALL$5SUCCESS: {
- if (!consumeTerminal(intConsumer, null, false, false, getRule().ele001LexerRuleCallINT()))
- break RULECALL$5SUCCESS;
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- RULECALL$6SUCCESS: {
- if (!consumeTerminal(intConsumer, null, false, false, getRule().ele01LexerRuleCallINT()))
- break RULECALL$6SUCCESS;
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- KEYWORD$7SUCCESS: {
- if (!consumeKeyword(getRule().ele1KeywordRightParenthesis(), null, false, false))
- break KEYWORD$7SUCCESS;
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$4()) {
+ marker.rollback();
+ return false;
}
- return false;
+ if (!consumeRuleCall$5()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeRuleCall$6()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$7()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$4() throws Exception {
+ return consumeKeyword(getRule().ele000KeywordLeftParenthesis(), null, false, false, DatatypeRulesTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeRuleCall$5() throws Exception {
+ return consumeTerminal(intConsumer, null, false, false, getRule().ele001LexerRuleCallINT(), DatatypeRulesTestLanguageDelimiters.ALL_KEYWORDS);
+ }
+
+ protected boolean consumeRuleCall$6() throws Exception {
+ return consumeTerminal(intConsumer, null, false, false, getRule().ele01LexerRuleCallINT(), DatatypeRulesTestLanguageDelimiters.ALL_KEYWORDS);
+ }
+
+ protected boolean consumeKeyword$7() throws Exception {
+ return consumeKeyword(getRule().ele1KeywordRightParenthesis(), null, false, false, DatatypeRulesTestLanguageDelimiters.ANY_OTHER_DELIMITER);
}
public VectorElements getRule() {
@@ -105,5 +89,4 @@ public final class DatatypeRulesTestLanguageVectorConsumer extends NonTerminalCo
this.intConsumer = intConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/XtextGrammarTestLanguageDelimiters.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/XtextGrammarTestLanguageDelimiters.java
new file mode 100644
index 0000000..49b2df9
--- /dev/null
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/XtextGrammarTestLanguageDelimiters.java
@@ -0,0 +1,21 @@
+/*
+Generated with Xtext
+*/
+package org.eclipse.xtext.parser.packrat;
+
+import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+import org.eclipse.xtext.parser.packrat.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
+import org.eclipse.xtext.parser.packrat.matching.SetBasedKeywordMatcher;
+
+import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess;
+
+public class XtextGrammarTestLanguageDelimiters {
+
+ public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+
+ public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+
+ public static ISequenceMatcher ALL_KEYWORDS = new SetBasedKeywordMatcher(XtextGrammarTestLanguageGrammarAccess.INSTANCE.getGrammar());
+
+}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/XtextGrammarTestLanguageParserConfiguration.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/XtextGrammarTestLanguageParserConfiguration.java
index fc79726..20ea274 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/XtextGrammarTestLanguageParserConfiguration.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/XtextGrammarTestLanguageParserConfiguration.java
@@ -139,14 +139,14 @@ public class XtextGrammarTestLanguageParserConfiguration extends AbstractParserC
public void configureConsumers() {
getGrammarConsumer().setAbstractRuleConsumer(getAbstractRuleConsumer());
- getGrammarConsumer().setAbstractMetamodelDeclarationConsumer(getAbstractMetamodelDeclarationConsumer());
getGrammarConsumer().setIdConsumer(getIdConsumer());
+ getGrammarConsumer().setAbstractMetamodelDeclarationConsumer(getAbstractMetamodelDeclarationConsumer());
getAbstractRuleConsumer().setParserRuleConsumer(getParserRuleConsumer());
getAbstractRuleConsumer().setLexerRuleConsumer(getLexerRuleConsumer());
- getAbstractMetamodelDeclarationConsumer().setGeneratedMetamodelConsumer(getGeneratedMetamodelConsumer());
getAbstractMetamodelDeclarationConsumer().setReferencedMetamodelConsumer(getReferencedMetamodelConsumer());
+ getAbstractMetamodelDeclarationConsumer().setGeneratedMetamodelConsumer(getGeneratedMetamodelConsumer());
getGeneratedMetamodelConsumer().setStringConsumer(getStringConsumer());
getGeneratedMetamodelConsumer().setIdConsumer(getIdConsumer());
@@ -155,12 +155,12 @@ public class XtextGrammarTestLanguageParserConfiguration extends AbstractParserC
getReferencedMetamodelConsumer().setIdConsumer(getIdConsumer());
getLexerRuleConsumer().setStringConsumer(getStringConsumer());
- getLexerRuleConsumer().setTypeRefConsumer(getTypeRefConsumer());
getLexerRuleConsumer().setIdConsumer(getIdConsumer());
+ getLexerRuleConsumer().setTypeRefConsumer(getTypeRefConsumer());
+ getParserRuleConsumer().setIdConsumer(getIdConsumer());
getParserRuleConsumer().setAlternativesConsumer(getAlternativesConsumer());
getParserRuleConsumer().setTypeRefConsumer(getTypeRefConsumer());
- getParserRuleConsumer().setIdConsumer(getIdConsumer());
getTypeRefConsumer().setIdConsumer(getIdConsumer());
@@ -169,22 +169,22 @@ public class XtextGrammarTestLanguageParserConfiguration extends AbstractParserC
getGroupConsumer().setAbstractTokenConsumer(getAbstractTokenConsumer());
getAbstractTokenConsumer().setAssignmentConsumer(getAssignmentConsumer());
- getAbstractTokenConsumer().setActionConsumer(getActionConsumer());
getAbstractTokenConsumer().setAbstractTerminalConsumer(getAbstractTerminalConsumer());
+ getAbstractTokenConsumer().setActionConsumer(getActionConsumer());
- getAssignmentConsumer().setAbstractTerminalConsumer(getAbstractTerminalConsumer());
getAssignmentConsumer().setIdConsumer(getIdConsumer());
+ getAssignmentConsumer().setAbstractTerminalConsumer(getAbstractTerminalConsumer());
- getActionConsumer().setTypeRefConsumer(getTypeRefConsumer());
getActionConsumer().setIdConsumer(getIdConsumer());
+ getActionConsumer().setTypeRefConsumer(getTypeRefConsumer());
getAbstractTerminalConsumer().setParenthesizedElementConsumer(getParenthesizedElementConsumer());
- getAbstractTerminalConsumer().setKeywordConsumer(getKeywordConsumer());
getAbstractTerminalConsumer().setCrossReferenceConsumer(getCrossReferenceConsumer());
+ getAbstractTerminalConsumer().setKeywordConsumer(getKeywordConsumer());
getAbstractTerminalConsumer().setRuleCallConsumer(getRuleCallConsumer());
- getCrossReferenceConsumer().setTypeRefConsumer(getTypeRefConsumer());
getCrossReferenceConsumer().setIdConsumer(getIdConsumer());
+ getCrossReferenceConsumer().setTypeRefConsumer(getTypeRefConsumer());
getParenthesizedElementConsumer().setAlternativesConsumer(getAlternativesConsumer());
@@ -210,126 +210,101 @@ public class XtextGrammarTestLanguageParserConfiguration extends AbstractParserC
return grammarConsumer;
}
-
public XtextGrammarTestLanguageAbstractRuleConsumer getAbstractRuleConsumer() {
return abstractRuleConsumer;
}
-
public XtextGrammarTestLanguageAbstractMetamodelDeclarationConsumer getAbstractMetamodelDeclarationConsumer() {
return abstractMetamodelDeclarationConsumer;
}
-
public XtextGrammarTestLanguageGeneratedMetamodelConsumer getGeneratedMetamodelConsumer() {
return generatedMetamodelConsumer;
}
-
public XtextGrammarTestLanguageReferencedMetamodelConsumer getReferencedMetamodelConsumer() {
return referencedMetamodelConsumer;
}
-
public XtextGrammarTestLanguageLexerRuleConsumer getLexerRuleConsumer() {
return lexerRuleConsumer;
}
-
public XtextGrammarTestLanguageParserRuleConsumer getParserRuleConsumer() {
return parserRuleConsumer;
}
-
public XtextGrammarTestLanguageTypeRefConsumer getTypeRefConsumer() {
return typeRefConsumer;
}
-
public XtextGrammarTestLanguageAlternativesConsumer getAlternativesConsumer() {
return alternativesConsumer;
}
-
public XtextGrammarTestLanguageGroupConsumer getGroupConsumer() {
return groupConsumer;
}
-
public XtextGrammarTestLanguageAbstractTokenConsumer getAbstractTokenConsumer() {
return abstractTokenConsumer;
}
-
public XtextGrammarTestLanguageAssignmentConsumer getAssignmentConsumer() {
return assignmentConsumer;
}
-
public XtextGrammarTestLanguageActionConsumer getActionConsumer() {
return actionConsumer;
}
-
public XtextGrammarTestLanguageAbstractTerminalConsumer getAbstractTerminalConsumer() {
return abstractTerminalConsumer;
}
-
public XtextGrammarTestLanguageCrossReferenceConsumer getCrossReferenceConsumer() {
return crossReferenceConsumer;
}
-
public XtextGrammarTestLanguageParenthesizedElementConsumer getParenthesizedElementConsumer() {
return parenthesizedElementConsumer;
}
-
public XtextGrammarTestLanguageKeywordConsumer getKeywordConsumer() {
return keywordConsumer;
}
-
public XtextGrammarTestLanguageRuleCallConsumer getRuleCallConsumer() {
return ruleCallConsumer;
}
-
public XtextBuiltinIDConsumer getIdConsumer() {
return getXtextBuiltinConfiguration().getIdConsumer();
}
-
public XtextBuiltinINTConsumer getIntConsumer() {
return getXtextBuiltinConfiguration().getIntConsumer();
}
-
public XtextBuiltinSTRINGConsumer getStringConsumer() {
return getXtextBuiltinConfiguration().getStringConsumer();
}
-
public XtextBuiltinML_COMMENTConsumer getMlCommentConsumer() {
return getXtextBuiltinConfiguration().getMlCommentConsumer();
}
-
public XtextBuiltinSL_COMMENTConsumer getSlCommentConsumer() {
return getXtextBuiltinConfiguration().getSlCommentConsumer();
}
-
public XtextBuiltinWSConsumer getWsConsumer() {
return getXtextBuiltinConfiguration().getWsConsumer();
}
-
public XtextBuiltinANY_OTHERConsumer getAnyOtherConsumer() {
return getXtextBuiltinConfiguration().getAnyOtherConsumer();
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAbstractMetamodelDeclarationConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAbstractMetamodelDeclarationConsumer.java
index 20871f4..e87df74 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAbstractMetamodelDeclarationConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAbstractMetamodelDeclarationConsumer.java
@@ -12,16 +12,20 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess;
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess.AbstractMetamodelDeclarationElements;
-import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageGeneratedMetamodelConsumer;
+import org.eclipse.xtext.parser.packrat.XtextGrammarTestLanguageDelimiters;
+
import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageReferencedMetamodelConsumer;
+import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageGeneratedMetamodelConsumer;
+@SuppressWarnings("unused")
public final class XtextGrammarTestLanguageAbstractMetamodelDeclarationConsumer extends NonTerminalConsumer {
- private XtextGrammarTestLanguageGeneratedMetamodelConsumer generatedMetamodelConsumer;
private XtextGrammarTestLanguageReferencedMetamodelConsumer referencedMetamodelConsumer;
+ private XtextGrammarTestLanguageGeneratedMetamodelConsumer generatedMetamodelConsumer;
public XtextGrammarTestLanguageAbstractMetamodelDeclarationConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
@@ -29,27 +33,26 @@ public final class XtextGrammarTestLanguageAbstractMetamodelDeclarationConsumer
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- ALTERNATIVES$1SUCCESS: {
- ALTERNATIVES$1FAILURE: {
- RULECALL$2SUCCESS: {
- if (!consumeNonTerminal(generatedMetamodelConsumer, null, false, false, getRule().ele0ParserRuleCallGeneratedMetamodel()))
- break RULECALL$2SUCCESS;
- break ALTERNATIVES$1FAILURE;
- }
- RULECALL$3SUCCESS: {
- if (!consumeNonTerminal(referencedMetamodelConsumer, null, false, false, getRule().ele1ParserRuleCallReferencedMetamodel()))
- break RULECALL$3SUCCESS;
- break ALTERNATIVES$1FAILURE;
- }
- break ALTERNATIVES$1SUCCESS;
- }
+ return consumeAlternatives$1();
+ }
+
+ protected boolean consumeAlternatives$1() throws Exception {
+ if (consumeRuleCall$2())
+ return true;
+ if (consumeRuleCall$3())
return true;
- }
return false;
}
+ protected boolean consumeRuleCall$2() throws Exception {
+ return consumeNonTerminal(generatedMetamodelConsumer, null, false, false, getRule().ele0ParserRuleCallGeneratedMetamodel());
+ }
+
+ protected boolean consumeRuleCall$3() throws Exception {
+ return consumeNonTerminal(referencedMetamodelConsumer, null, false, false, getRule().ele1ParserRuleCallReferencedMetamodel());
+ }
+
public AbstractMetamodelDeclarationElements getRule() {
return XtextGrammarTestLanguageGrammarAccess.INSTANCE.prAbstractMetamodelDeclaration();
}
@@ -63,13 +66,12 @@ public final class XtextGrammarTestLanguageAbstractMetamodelDeclarationConsumer
return "AbstractMetamodelDeclaration";
}
- public void setGeneratedMetamodelConsumer(XtextGrammarTestLanguageGeneratedMetamodelConsumer generatedMetamodelConsumer) {
- this.generatedMetamodelConsumer = generatedMetamodelConsumer;
- }
-
public void setReferencedMetamodelConsumer(XtextGrammarTestLanguageReferencedMetamodelConsumer referencedMetamodelConsumer) {
this.referencedMetamodelConsumer = referencedMetamodelConsumer;
}
-
+ public void setGeneratedMetamodelConsumer(XtextGrammarTestLanguageGeneratedMetamodelConsumer generatedMetamodelConsumer) {
+ this.generatedMetamodelConsumer = generatedMetamodelConsumer;
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAbstractRuleConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAbstractRuleConsumer.java
index 7bab5c8..dbf53cd 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAbstractRuleConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAbstractRuleConsumer.java
@@ -12,12 +12,16 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess;
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess.AbstractRuleElements;
+import org.eclipse.xtext.parser.packrat.XtextGrammarTestLanguageDelimiters;
+
import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageParserRuleConsumer;
import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageLexerRuleConsumer;
+@SuppressWarnings("unused")
public final class XtextGrammarTestLanguageAbstractRuleConsumer extends NonTerminalConsumer {
private XtextGrammarTestLanguageParserRuleConsumer parserRuleConsumer;
@@ -29,27 +33,26 @@ public final class XtextGrammarTestLanguageAbstractRuleConsumer extends NonTermi
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- ALTERNATIVES$1SUCCESS: {
- ALTERNATIVES$1FAILURE: {
- RULECALL$2SUCCESS: {
- if (!consumeNonTerminal(lexerRuleConsumer, null, false, false, getRule().ele0ParserRuleCallLexerRule()))
- break RULECALL$2SUCCESS;
- break ALTERNATIVES$1FAILURE;
- }
- RULECALL$3SUCCESS: {
- if (!consumeNonTerminal(parserRuleConsumer, null, false, false, getRule().ele1ParserRuleCallParserRule()))
- break RULECALL$3SUCCESS;
- break ALTERNATIVES$1FAILURE;
- }
- break ALTERNATIVES$1SUCCESS;
- }
+ return consumeAlternatives$1();
+ }
+
+ protected boolean consumeAlternatives$1() throws Exception {
+ if (consumeRuleCall$2())
+ return true;
+ if (consumeRuleCall$3())
return true;
- }
return false;
}
+ protected boolean consumeRuleCall$2() throws Exception {
+ return consumeNonTerminal(lexerRuleConsumer, null, false, false, getRule().ele0ParserRuleCallLexerRule());
+ }
+
+ protected boolean consumeRuleCall$3() throws Exception {
+ return consumeNonTerminal(parserRuleConsumer, null, false, false, getRule().ele1ParserRuleCallParserRule());
+ }
+
public AbstractRuleElements getRule() {
return XtextGrammarTestLanguageGrammarAccess.INSTANCE.prAbstractRule();
}
@@ -71,5 +74,4 @@ public final class XtextGrammarTestLanguageAbstractRuleConsumer extends NonTermi
this.lexerRuleConsumer = lexerRuleConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAbstractTerminalConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAbstractTerminalConsumer.java
index 24c2859..b90ae4c 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAbstractTerminalConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAbstractTerminalConsumer.java
@@ -12,19 +12,23 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess;
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess.AbstractTerminalElements;
+import org.eclipse.xtext.parser.packrat.XtextGrammarTestLanguageDelimiters;
+
import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageParenthesizedElementConsumer;
-import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageKeywordConsumer;
import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageCrossReferenceConsumer;
+import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageKeywordConsumer;
import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageRuleCallConsumer;
+@SuppressWarnings("unused")
public final class XtextGrammarTestLanguageAbstractTerminalConsumer extends NonTerminalConsumer {
private XtextGrammarTestLanguageParenthesizedElementConsumer parenthesizedElementConsumer;
- private XtextGrammarTestLanguageKeywordConsumer keywordConsumer;
private XtextGrammarTestLanguageCrossReferenceConsumer crossReferenceConsumer;
+ private XtextGrammarTestLanguageKeywordConsumer keywordConsumer;
private XtextGrammarTestLanguageRuleCallConsumer ruleCallConsumer;
public XtextGrammarTestLanguageAbstractTerminalConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
@@ -33,49 +37,38 @@ public final class XtextGrammarTestLanguageAbstractTerminalConsumer extends NonT
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- ALTERNATIVES$1SUCCESS: {
- ALTERNATIVES$1FAILURE: {
- ALTERNATIVES$2SUCCESS: {
- ALTERNATIVES$2FAILURE: {
- ALTERNATIVES$3SUCCESS: {
- ALTERNATIVES$3FAILURE: {
- RULECALL$4SUCCESS: {
- if (!consumeNonTerminal(keywordConsumer, null, false, false, getRule().ele000ParserRuleCallKeyword()))
- break RULECALL$4SUCCESS;
- break ALTERNATIVES$3FAILURE;
- }
- RULECALL$5SUCCESS: {
- if (!consumeNonTerminal(ruleCallConsumer, null, false, false, getRule().ele001ParserRuleCallRuleCall()))
- break RULECALL$5SUCCESS;
- break ALTERNATIVES$3FAILURE;
- }
- break ALTERNATIVES$3SUCCESS;
- }
- break ALTERNATIVES$2FAILURE;
- }
- RULECALL$6SUCCESS: {
- if (!consumeNonTerminal(parenthesizedElementConsumer, null, false, false, getRule().ele01ParserRuleCallParenthesizedElement()))
- break RULECALL$6SUCCESS;
- break ALTERNATIVES$2FAILURE;
- }
- break ALTERNATIVES$2SUCCESS;
- }
- break ALTERNATIVES$1FAILURE;
- }
- RULECALL$7SUCCESS: {
- if (!consumeNonTerminal(crossReferenceConsumer, null, false, false, getRule().ele1ParserRuleCallCrossReference()))
- break RULECALL$7SUCCESS;
- break ALTERNATIVES$1FAILURE;
- }
- break ALTERNATIVES$1SUCCESS;
- }
+ return consumeAlternatives$1();
+ }
+
+ protected boolean consumeAlternatives$1() throws Exception {
+ if (consumeRuleCall$4())
+ return true;
+ if (consumeRuleCall$5())
+ return true;
+ if (consumeRuleCall$6())
+ return true;
+ if (consumeRuleCall$7())
return true;
- }
return false;
}
+ protected boolean consumeRuleCall$4() throws Exception {
+ return consumeNonTerminal(keywordConsumer, null, false, false, getRule().ele000ParserRuleCallKeyword());
+ }
+
+ protected boolean consumeRuleCall$5() throws Exception {
+ return consumeNonTerminal(ruleCallConsumer, null, false, false, getRule().ele001ParserRuleCallRuleCall());
+ }
+
+ protected boolean consumeRuleCall$6() throws Exception {
+ return consumeNonTerminal(parenthesizedElementConsumer, null, false, false, getRule().ele01ParserRuleCallParenthesizedElement());
+ }
+
+ protected boolean consumeRuleCall$7() throws Exception {
+ return consumeNonTerminal(crossReferenceConsumer, null, false, false, getRule().ele1ParserRuleCallCrossReference());
+ }
+
public AbstractTerminalElements getRule() {
return XtextGrammarTestLanguageGrammarAccess.INSTANCE.prAbstractTerminal();
}
@@ -93,17 +86,16 @@ public final class XtextGrammarTestLanguageAbstractTerminalConsumer extends NonT
this.parenthesizedElementConsumer = parenthesizedElementConsumer;
}
- public void setKeywordConsumer(XtextGrammarTestLanguageKeywordConsumer keywordConsumer) {
- this.keywordConsumer = keywordConsumer;
- }
-
public void setCrossReferenceConsumer(XtextGrammarTestLanguageCrossReferenceConsumer crossReferenceConsumer) {
this.crossReferenceConsumer = crossReferenceConsumer;
}
+ public void setKeywordConsumer(XtextGrammarTestLanguageKeywordConsumer keywordConsumer) {
+ this.keywordConsumer = keywordConsumer;
+ }
+
public void setRuleCallConsumer(XtextGrammarTestLanguageRuleCallConsumer ruleCallConsumer) {
this.ruleCallConsumer = ruleCallConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAbstractTokenConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAbstractTokenConsumer.java
index 79c993d..5b70574 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAbstractTokenConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAbstractTokenConsumer.java
@@ -12,18 +12,22 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess;
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess.AbstractTokenElements;
+import org.eclipse.xtext.parser.packrat.XtextGrammarTestLanguageDelimiters;
+
import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageAssignmentConsumer;
-import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageActionConsumer;
import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageAbstractTerminalConsumer;
+import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageActionConsumer;
+@SuppressWarnings("unused")
public final class XtextGrammarTestLanguageAbstractTokenConsumer extends NonTerminalConsumer {
private XtextGrammarTestLanguageAssignmentConsumer assignmentConsumer;
- private XtextGrammarTestLanguageActionConsumer actionConsumer;
private XtextGrammarTestLanguageAbstractTerminalConsumer abstractTerminalConsumer;
+ private XtextGrammarTestLanguageActionConsumer actionConsumer;
public XtextGrammarTestLanguageAbstractTokenConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
@@ -31,58 +35,57 @@ public final class XtextGrammarTestLanguageAbstractTokenConsumer extends NonTerm
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- ALTERNATIVES$2SUCCESS: {
- ALTERNATIVES$2FAILURE: {
- ALTERNATIVES$3SUCCESS: {
- ALTERNATIVES$3FAILURE: {
- RULECALL$4SUCCESS: {
- if (!consumeNonTerminal(assignmentConsumer, null, false, false, getRule().ele000ParserRuleCallAssignment()))
- break RULECALL$4SUCCESS;
- break ALTERNATIVES$3FAILURE;
- }
- RULECALL$5SUCCESS: {
- if (!consumeNonTerminal(actionConsumer, null, false, false, getRule().ele001ParserRuleCallAction()))
- break RULECALL$5SUCCESS;
- break ALTERNATIVES$3FAILURE;
- }
- break ALTERNATIVES$3SUCCESS;
- }
- break ALTERNATIVES$2FAILURE;
- }
- RULECALL$6SUCCESS: {
- if (!consumeNonTerminal(abstractTerminalConsumer, null, false, false, getRule().ele01ParserRuleCallAbstractTerminal()))
- break RULECALL$6SUCCESS;
- break ALTERNATIVES$2FAILURE;
- }
- mGROUP$1.rollback();
- break ALTERNATIVES$2SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- ASSIGNMENT$7SUCCESS: {
- ASSIGNMENT$7FAILURE: {
- if (consumeKeyword(getRule().ele1000KeywordQuestionMark(), "cardinality", false, false))
- break ASSIGNMENT$7FAILURE;
- if (consumeKeyword(getRule().ele1001KeywordAsterisk(), "cardinality", false, false))
- break ASSIGNMENT$7FAILURE;
- if (consumeKeyword(getRule().ele101KeywordPlusSign(), "cardinality", false, false))
- break ASSIGNMENT$7FAILURE;
- break ASSIGNMENT$7SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeAlternatives$2()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$7()) {
+ marker.rollback();
+ return false;
}
+ return true;
+ }
+
+ protected boolean consumeAlternatives$2() throws Exception {
+ if (consumeRuleCall$4())
+ return true;
+ if (consumeRuleCall$5())
+ return true;
+ if (consumeRuleCall$6())
+ return true;
+ return false;
+ }
+
+ protected boolean consumeRuleCall$4() throws Exception {
+ return consumeNonTerminal(assignmentConsumer, null, false, false, getRule().ele000ParserRuleCallAssignment());
+ }
+
+ protected boolean consumeRuleCall$5() throws Exception {
+ return consumeNonTerminal(actionConsumer, null, false, false, getRule().ele001ParserRuleCallAction());
+ }
+
+ protected boolean consumeRuleCall$6() throws Exception {
+ return consumeNonTerminal(abstractTerminalConsumer, null, false, false, getRule().ele01ParserRuleCallAbstractTerminal());
+ }
+
+ protected boolean consumeAssignment$7() throws Exception {
+ doConsumeAssignment$7();
+ return true;
+ }
+
+ protected boolean doConsumeAssignment$7() throws Exception {
+ if (consumeKeyword(getRule().ele1000KeywordQuestionMark(), "cardinality", false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER))
+ return true;
+ if (consumeKeyword(getRule().ele1001KeywordAsterisk(), "cardinality", false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER))
+ return true;
+ if (consumeKeyword(getRule().ele101KeywordPlusSign(), "cardinality", false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER))
+ return true;
return false;
}
@@ -103,13 +106,12 @@ public final class XtextGrammarTestLanguageAbstractTokenConsumer extends NonTerm
this.assignmentConsumer = assignmentConsumer;
}
- public void setActionConsumer(XtextGrammarTestLanguageActionConsumer actionConsumer) {
- this.actionConsumer = actionConsumer;
- }
-
public void setAbstractTerminalConsumer(XtextGrammarTestLanguageAbstractTerminalConsumer abstractTerminalConsumer) {
this.abstractTerminalConsumer = abstractTerminalConsumer;
}
-
+ public void setActionConsumer(XtextGrammarTestLanguageActionConsumer actionConsumer) {
+ this.actionConsumer = actionConsumer;
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageActionConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageActionConsumer.java
index 178461c..f7569d9 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageActionConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageActionConsumer.java
@@ -12,16 +12,20 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess;
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess.ActionElements;
-import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageTypeRefConsumer;
+import org.eclipse.xtext.parser.packrat.XtextGrammarTestLanguageDelimiters;
+
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageTypeRefConsumer;
+@SuppressWarnings("unused")
public final class XtextGrammarTestLanguageActionConsumer extends NonTerminalConsumer {
- private XtextGrammarTestLanguageTypeRefConsumer typeRefConsumer;
private XtextBuiltinIDConsumer idConsumer;
+ private XtextGrammarTestLanguageTypeRefConsumer typeRefConsumer;
public XtextGrammarTestLanguageActionConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
@@ -29,164 +33,109 @@ public final class XtextGrammarTestLanguageActionConsumer extends NonTerminalCon
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- GROUP$3SUCCESS: {
- IMarker mGROUP$3 = mark();
- GROUP$3FAILURE: {
- GROUP$4SUCCESS: {
- IMarker mGROUP$4 = mark();
- GROUP$4FAILURE: {
- GROUP$5SUCCESS: {
- IMarker mGROUP$5 = mark();
- GROUP$5FAILURE: {
- GROUP$6SUCCESS: {
- IMarker mGROUP$6 = mark();
- GROUP$6FAILURE: {
- GROUP$7SUCCESS: {
- IMarker mGROUP$7 = mark();
- GROUP$7FAILURE: {
- KEYWORD$8SUCCESS: {
- if (!consumeKeyword(getRule().ele0000000KeywordLeftCurlyBracket(), null, false, false))
- break KEYWORD$8SUCCESS;
- break GROUP$7FAILURE;
- }
- mGROUP$7.rollback();
- break GROUP$7SUCCESS;
- }
- GROUP$7FAILURE: {
- GROUP$9SUCCESS: {
- IMarker mGROUP$9 = mark();
- GROUP$9FAILURE: {
- KEYWORD$10SUCCESS: {
- if (!consumeKeyword(getRule().ele00000010KeywordCurrent(), null, false, false))
- break KEYWORD$10SUCCESS;
- break GROUP$9FAILURE;
- }
- mGROUP$9.rollback();
- break GROUP$9SUCCESS;
- }
- GROUP$9FAILURE: {
- KEYWORD$11SUCCESS: {
- if (!consumeKeyword(getRule().ele00000011KeywordEqualsSign(), null, false, false))
- break KEYWORD$11SUCCESS;
- break GROUP$9FAILURE;
- }
- mGROUP$9.rollback();
- break GROUP$9SUCCESS;
- }
- break GROUP$7FAILURE;
- }
- }
- break GROUP$6FAILURE;
- }
- mGROUP$6.rollback();
- break GROUP$6SUCCESS;
- }
- GROUP$6FAILURE: {
- ASSIGNMENT$12SUCCESS: {
- ASSIGNMENT$12FAILURE: {
- if (consumeNonTerminal(typeRefConsumer, "typeName", false, false , getRule().ele0000010ParserRuleCallTypeRef()))
- break ASSIGNMENT$12FAILURE;
- mGROUP$6.rollback();
- break ASSIGNMENT$12SUCCESS;
- }
- break GROUP$6FAILURE;
- }
- mGROUP$6.rollback();
- break GROUP$6SUCCESS;
- }
- break GROUP$5FAILURE;
- }
- mGROUP$5.rollback();
- break GROUP$5SUCCESS;
- }
- GROUP$5FAILURE: {
- KEYWORD$14SUCCESS: {
- if (!consumeKeyword(getRule().ele00001KeywordFullStop(), null, false, false))
- break KEYWORD$14SUCCESS;
- break GROUP$5FAILURE;
- }
- mGROUP$5.rollback();
- break GROUP$5SUCCESS;
- }
- break GROUP$4FAILURE;
- }
- mGROUP$4.rollback();
- break GROUP$4SUCCESS;
- }
- GROUP$4FAILURE: {
- ASSIGNMENT$15SUCCESS: {
- ASSIGNMENT$15FAILURE: {
- if (consumeTerminal(idConsumer, "feature", false, false, getRule().ele00010LexerRuleCallID()))
- break ASSIGNMENT$15FAILURE;
- mGROUP$4.rollback();
- break ASSIGNMENT$15SUCCESS;
- }
- break GROUP$4FAILURE;
- }
- mGROUP$4.rollback();
- break GROUP$4SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- GROUP$3FAILURE: {
- ASSIGNMENT$17SUCCESS: {
- ASSIGNMENT$17FAILURE: {
- if (consumeKeyword(getRule().ele00100KeywordEqualsSign(), "operator", false, false))
- break ASSIGNMENT$17FAILURE;
- if (consumeKeyword(getRule().ele00101KeywordPlusSignEqualsSign(), "operator", false, false))
- break ASSIGNMENT$17FAILURE;
- mGROUP$3.rollback();
- break ASSIGNMENT$17SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- KEYWORD$21SUCCESS: {
- if (!consumeKeyword(getRule().ele01KeywordCurrent(), null, false, false))
- break KEYWORD$21SUCCESS;
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- KEYWORD$22SUCCESS: {
- if (!consumeKeyword(getRule().ele1KeywordRightCurlyBracket(), null, false, false))
- break KEYWORD$22SUCCESS;
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$8()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeGroup$9()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$12()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$14()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$15()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$17()) {
+ marker.rollback();
+ return false;
}
+ if (!consumeKeyword$21()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$22()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$8() throws Exception {
+ return consumeKeyword(getRule().ele0000000KeywordLeftCurlyBracket(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeGroup$9() throws Exception {
+ doConsumeGroup$9();
+ return true;
+ }
+
+ protected boolean doConsumeGroup$9() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$10()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$11()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$10() throws Exception {
+ return consumeKeyword(getRule().ele00000010KeywordCurrent(), null, false, false, XtextGrammarTestLanguageDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeKeyword$11() throws Exception {
+ return consumeKeyword(getRule().ele00000011KeywordEqualsSign(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$12() throws Exception {
+ if (consumeNonTerminal(typeRefConsumer, "typeName", false, false, getRule().ele0000010ParserRuleCallTypeRef()))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeKeyword$14() throws Exception {
+ return consumeKeyword(getRule().ele00001KeywordFullStop(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$15() throws Exception {
+ if (consumeTerminal(idConsumer, "feature", false, false, getRule().ele00010LexerRuleCallID(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$17() throws Exception {
+ if (consumeKeyword(getRule().ele00100KeywordEqualsSign(), "operator", false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER))
+ return true;
+ if (consumeKeyword(getRule().ele00101KeywordPlusSignEqualsSign(), "operator", false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER))
+ return true;
return false;
}
+ protected boolean consumeKeyword$21() throws Exception {
+ return consumeKeyword(getRule().ele01KeywordCurrent(), null, false, false, XtextGrammarTestLanguageDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeKeyword$22() throws Exception {
+ return consumeKeyword(getRule().ele1KeywordRightCurlyBracket(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ }
+
public ActionElements getRule() {
return XtextGrammarTestLanguageGrammarAccess.INSTANCE.prAction();
}
@@ -200,13 +149,12 @@ public final class XtextGrammarTestLanguageActionConsumer extends NonTerminalCon
return "Action";
}
- public void setTypeRefConsumer(XtextGrammarTestLanguageTypeRefConsumer typeRefConsumer) {
- this.typeRefConsumer = typeRefConsumer;
- }
-
public void setIdConsumer(XtextBuiltinIDConsumer idConsumer) {
this.idConsumer = idConsumer;
}
-
+ public void setTypeRefConsumer(XtextGrammarTestLanguageTypeRefConsumer typeRefConsumer) {
+ this.typeRefConsumer = typeRefConsumer;
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAlternativesConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAlternativesConsumer.java
index 1a6bffb..e1ae517 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAlternativesConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAlternativesConsumer.java
@@ -12,11 +12,15 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess;
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess.AlternativesElements;
+import org.eclipse.xtext.parser.packrat.XtextGrammarTestLanguageDelimiters;
+
import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageGroupConsumer;
+@SuppressWarnings("unused")
public final class XtextGrammarTestLanguageAlternativesConsumer extends NonTerminalConsumer {
private XtextGrammarTestLanguageGroupConsumer groupConsumer;
@@ -27,63 +31,60 @@ public final class XtextGrammarTestLanguageAlternativesConsumer extends NonTermi
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- RULECALL$2SUCCESS: {
- if (!consumeNonTerminal(groupConsumer, null, false, false, getRule().ele0ParserRuleCallGroup()))
- break RULECALL$2SUCCESS;
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- GROUP$3SUCCESS: while(true) {
- IMarker mGROUP$3 = mark();
- GROUP$3FAILURE: {
- GROUP$4SUCCESS: {
- IMarker mGROUP$4 = mark();
- GROUP$4FAILURE: {
- ACTION$5SUCCESS: {
- consumeAction("Alternatives", "groups", true);
- break GROUP$4FAILURE;
- }
- }
- GROUP$4FAILURE: {
- KEYWORD$7SUCCESS: {
- if (!consumeKeyword(getRule().ele101KeywordVerticalLine(), null, false, false))
- break KEYWORD$7SUCCESS;
- break GROUP$4FAILURE;
- }
- mGROUP$4.rollback();
- break GROUP$4SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- GROUP$3FAILURE: {
- ASSIGNMENT$8SUCCESS: {
- ASSIGNMENT$8FAILURE: {
- if (consumeNonTerminal(groupConsumer, "groups", true, false , getRule().ele110ParserRuleCallGroup()))
- break ASSIGNMENT$8FAILURE;
- mGROUP$3.rollback();
- break ASSIGNMENT$8SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- continue GROUP$3SUCCESS;
- }
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeRuleCall$2()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeGroup$3()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeRuleCall$2() throws Exception {
+ return consumeNonTerminal(groupConsumer, null, false, false, getRule().ele0ParserRuleCallGroup());
+ }
+
+ protected boolean consumeGroup$3() throws Exception {
+ while(doConsumeGroup$3()) {}
+ return true;
+ }
+
+ protected boolean doConsumeGroup$3() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeAction$5()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$7()) {
+ marker.rollback();
+ return false;
}
+ if (!consumeAssignment$8()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+ protected boolean consumeAction$5() {
+ consumeAction("Alternatives", "groups", true);
+ return true;
+ }
+
+ protected boolean consumeKeyword$7() throws Exception {
+ return consumeKeyword(getRule().ele101KeywordVerticalLine(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$8() throws Exception {
+ if (consumeNonTerminal(groupConsumer, "groups", true, false, getRule().ele110ParserRuleCallGroup()))
+ return true;
return false;
}
@@ -104,5 +105,4 @@ public final class XtextGrammarTestLanguageAlternativesConsumer extends NonTermi
this.groupConsumer = groupConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAssignmentConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAssignmentConsumer.java
index 2ec32aa..0c46f91 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAssignmentConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAssignmentConsumer.java
@@ -12,16 +12,20 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess;
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess.AssignmentElements;
-import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageAbstractTerminalConsumer;
+import org.eclipse.xtext.parser.packrat.XtextGrammarTestLanguageDelimiters;
+
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageAbstractTerminalConsumer;
+@SuppressWarnings("unused")
public final class XtextGrammarTestLanguageAssignmentConsumer extends NonTerminalConsumer {
- private XtextGrammarTestLanguageAbstractTerminalConsumer abstractTerminalConsumer;
private XtextBuiltinIDConsumer idConsumer;
+ private XtextGrammarTestLanguageAbstractTerminalConsumer abstractTerminalConsumer;
public XtextGrammarTestLanguageAssignmentConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
@@ -29,63 +33,46 @@ public final class XtextGrammarTestLanguageAssignmentConsumer extends NonTermina
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- ASSIGNMENT$3SUCCESS: {
- ASSIGNMENT$3FAILURE: {
- if (consumeTerminal(idConsumer, "feature", false, false, getRule().ele000LexerRuleCallID()))
- break ASSIGNMENT$3FAILURE;
- mGROUP$2.rollback();
- break ASSIGNMENT$3SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- ASSIGNMENT$5SUCCESS: {
- ASSIGNMENT$5FAILURE: {
- if (consumeKeyword(getRule().ele01000KeywordPlusSignEqualsSign(), "operator", false, false))
- break ASSIGNMENT$5FAILURE;
- if (consumeKeyword(getRule().ele01001KeywordEqualsSign(), "operator", false, false))
- break ASSIGNMENT$5FAILURE;
- if (consumeKeyword(getRule().ele0101KeywordQuestionMarkEqualsSign(), "operator", false, false))
- break ASSIGNMENT$5FAILURE;
- mGROUP$2.rollback();
- break ASSIGNMENT$5SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- ASSIGNMENT$11SUCCESS: {
- ASSIGNMENT$11FAILURE: {
- if (consumeNonTerminal(abstractTerminalConsumer, "terminal", false, false , getRule().ele10ParserRuleCallAbstractTerminal()))
- break ASSIGNMENT$11FAILURE;
- mGROUP$1.rollback();
- break ASSIGNMENT$11SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeAssignment$3()) {
+ marker.rollback();
+ return false;
}
+ if (!consumeAssignment$5()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$11()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeAssignment$3() throws Exception {
+ if (consumeTerminal(idConsumer, "feature", false, false, getRule().ele000LexerRuleCallID(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$5() throws Exception {
+ if (consumeKeyword(getRule().ele01000KeywordPlusSignEqualsSign(), "operator", false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER))
+ return true;
+ if (consumeKeyword(getRule().ele01001KeywordEqualsSign(), "operator", false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER))
+ return true;
+ if (consumeKeyword(getRule().ele0101KeywordQuestionMarkEqualsSign(), "operator", false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$11() throws Exception {
+ if (consumeNonTerminal(abstractTerminalConsumer, "terminal", false, false, getRule().ele10ParserRuleCallAbstractTerminal()))
+ return true;
return false;
}
@@ -102,13 +89,12 @@ public final class XtextGrammarTestLanguageAssignmentConsumer extends NonTermina
return "Assignment";
}
- public void setAbstractTerminalConsumer(XtextGrammarTestLanguageAbstractTerminalConsumer abstractTerminalConsumer) {
- this.abstractTerminalConsumer = abstractTerminalConsumer;
- }
-
public void setIdConsumer(XtextBuiltinIDConsumer idConsumer) {
this.idConsumer = idConsumer;
}
-
+ public void setAbstractTerminalConsumer(XtextGrammarTestLanguageAbstractTerminalConsumer abstractTerminalConsumer) {
+ this.abstractTerminalConsumer = abstractTerminalConsumer;
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageCrossReferenceConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageCrossReferenceConsumer.java
index 251bdb5..2a1c45f 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageCrossReferenceConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageCrossReferenceConsumer.java
@@ -12,16 +12,20 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess;
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess.CrossReferenceElements;
-import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageTypeRefConsumer;
+import org.eclipse.xtext.parser.packrat.XtextGrammarTestLanguageDelimiters;
+
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageTypeRefConsumer;
+@SuppressWarnings("unused")
public final class XtextGrammarTestLanguageCrossReferenceConsumer extends NonTerminalConsumer {
- private XtextGrammarTestLanguageTypeRefConsumer typeRefConsumer;
private XtextBuiltinIDConsumer idConsumer;
+ private XtextGrammarTestLanguageTypeRefConsumer typeRefConsumer;
public XtextGrammarTestLanguageCrossReferenceConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
@@ -29,90 +33,73 @@ public final class XtextGrammarTestLanguageCrossReferenceConsumer extends NonTer
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- GROUP$3SUCCESS: {
- IMarker mGROUP$3 = mark();
- GROUP$3FAILURE: {
- KEYWORD$4SUCCESS: {
- if (!consumeKeyword(getRule().ele000KeywordLeftSquareBracket(), null, false, false))
- break KEYWORD$4SUCCESS;
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- GROUP$3FAILURE: {
- ASSIGNMENT$5SUCCESS: {
- ASSIGNMENT$5FAILURE: {
- if (consumeNonTerminal(typeRefConsumer, "type", false, false , getRule().ele0010ParserRuleCallTypeRef()))
- break ASSIGNMENT$5FAILURE;
- mGROUP$3.rollback();
- break ASSIGNMENT$5SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- GROUP$7SUCCESS: {
- IMarker mGROUP$7 = mark();
- GROUP$7FAILURE: {
- KEYWORD$8SUCCESS: {
- if (!consumeKeyword(getRule().ele010KeywordVerticalLine(), null, false, false))
- break KEYWORD$8SUCCESS;
- break GROUP$7FAILURE;
- }
- mGROUP$7.rollback();
- break GROUP$7SUCCESS;
- }
- GROUP$7FAILURE: {
- ASSIGNMENT$9SUCCESS: {
- ASSIGNMENT$9FAILURE: {
- if (consumeTerminal(idConsumer, null, false, false, getRule().ele0110CrossReferenceEStringAbstractRule()))
- break ASSIGNMENT$9FAILURE;
- mGROUP$7.rollback();
- break ASSIGNMENT$9SUCCESS;
- }
- break GROUP$7FAILURE;
- }
- mGROUP$7.rollback();
- break GROUP$7SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- KEYWORD$12SUCCESS: {
- if (!consumeKeyword(getRule().ele1KeywordRightSquareBracket(), null, false, false))
- break KEYWORD$12SUCCESS;
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$4()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$5()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeGroup$7()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$12()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$4() throws Exception {
+ return consumeKeyword(getRule().ele000KeywordLeftSquareBracket(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$5() throws Exception {
+ if (consumeNonTerminal(typeRefConsumer, "type", false, false, getRule().ele0010ParserRuleCallTypeRef()))
return true;
+ return false;
+ }
+
+ protected boolean consumeGroup$7() throws Exception {
+ doConsumeGroup$7();
+ return true;
+ }
+
+ protected boolean doConsumeGroup$7() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$8()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$9()) {
+ marker.rollback();
+ return false;
}
+ return true;
+ }
+
+ protected boolean consumeKeyword$8() throws Exception {
+ return consumeKeyword(getRule().ele010KeywordVerticalLine(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$9() throws Exception {
+ if (consumeTerminal(idConsumer, null, false, false, getRule().ele0110CrossReferenceEStringAbstractRule(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ return true;
return false;
}
+ protected boolean consumeKeyword$12() throws Exception {
+ return consumeKeyword(getRule().ele1KeywordRightSquareBracket(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ }
+
public CrossReferenceElements getRule() {
return XtextGrammarTestLanguageGrammarAccess.INSTANCE.prCrossReference();
}
@@ -126,13 +113,12 @@ public final class XtextGrammarTestLanguageCrossReferenceConsumer extends NonTer
return "CrossReference";
}
- public void setTypeRefConsumer(XtextGrammarTestLanguageTypeRefConsumer typeRefConsumer) {
- this.typeRefConsumer = typeRefConsumer;
- }
-
public void setIdConsumer(XtextBuiltinIDConsumer idConsumer) {
this.idConsumer = idConsumer;
}
-
+ public void setTypeRefConsumer(XtextGrammarTestLanguageTypeRefConsumer typeRefConsumer) {
+ this.typeRefConsumer = typeRefConsumer;
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageGeneratedMetamodelConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageGeneratedMetamodelConsumer.java
index 8b78b54..a8a589e 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageGeneratedMetamodelConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageGeneratedMetamodelConsumer.java
@@ -12,12 +12,16 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess;
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess.GeneratedMetamodelElements;
+import org.eclipse.xtext.parser.packrat.XtextGrammarTestLanguageDelimiters;
+
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinSTRINGConsumer;
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+@SuppressWarnings("unused")
public final class XtextGrammarTestLanguageGeneratedMetamodelConsumer extends NonTerminalConsumer {
private XtextBuiltinSTRINGConsumer stringConsumer;
@@ -29,91 +33,72 @@ public final class XtextGrammarTestLanguageGeneratedMetamodelConsumer extends No
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- GROUP$3SUCCESS: {
- IMarker mGROUP$3 = mark();
- GROUP$3FAILURE: {
- KEYWORD$4SUCCESS: {
- if (!consumeKeyword(getRule().ele000KeywordGenerate(), null, false, false))
- break KEYWORD$4SUCCESS;
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- GROUP$3FAILURE: {
- ASSIGNMENT$5SUCCESS: {
- ASSIGNMENT$5FAILURE: {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID()))
- break ASSIGNMENT$5FAILURE;
- mGROUP$3.rollback();
- break ASSIGNMENT$5SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- ASSIGNMENT$7SUCCESS: {
- ASSIGNMENT$7FAILURE: {
- if (consumeTerminal(stringConsumer, "nsURI", false, false, getRule().ele010LexerRuleCallSTRING()))
- break ASSIGNMENT$7FAILURE;
- mGROUP$2.rollback();
- break ASSIGNMENT$7SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- GROUP$9SUCCESS: {
- IMarker mGROUP$9 = mark();
- GROUP$9FAILURE: {
- KEYWORD$10SUCCESS: {
- if (!consumeKeyword(getRule().ele10KeywordAs(), null, false, false))
- break KEYWORD$10SUCCESS;
- break GROUP$9FAILURE;
- }
- mGROUP$9.rollback();
- break GROUP$9SUCCESS;
- }
- GROUP$9FAILURE: {
- ASSIGNMENT$11SUCCESS: {
- ASSIGNMENT$11FAILURE: {
- if (consumeTerminal(idConsumer, "alias", false, false, getRule().ele110LexerRuleCallID()))
- break ASSIGNMENT$11FAILURE;
- mGROUP$9.rollback();
- break ASSIGNMENT$11SUCCESS;
- }
- break GROUP$9FAILURE;
- }
- mGROUP$9.rollback();
- break GROUP$9SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- }
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$4()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$5()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$7()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeGroup$9()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$4() throws Exception {
+ return consumeKeyword(getRule().ele000KeywordGenerate(), null, false, false, XtextGrammarTestLanguageDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$5() throws Exception {
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$7() throws Exception {
+ if (consumeTerminal(stringConsumer, "nsURI", false, false, getRule().ele010LexerRuleCallSTRING(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
return true;
+ return false;
+ }
+
+ protected boolean consumeGroup$9() throws Exception {
+ doConsumeGroup$9();
+ return true;
+ }
+
+ protected boolean doConsumeGroup$9() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$10()) {
+ marker.rollback();
+ return false;
}
+ if (!consumeAssignment$11()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$10() throws Exception {
+ return consumeKeyword(getRule().ele10KeywordAs(), null, false, false, XtextGrammarTestLanguageDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$11() throws Exception {
+ if (consumeTerminal(idConsumer, "alias", false, false, getRule().ele110LexerRuleCallID(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ return true;
return false;
}
@@ -138,5 +123,4 @@ public final class XtextGrammarTestLanguageGeneratedMetamodelConsumer extends No
this.idConsumer = idConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageGrammarConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageGrammarConsumer.java
index 9099c73..63f525e 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageGrammarConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageGrammarConsumer.java
@@ -12,18 +12,22 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess;
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess.GrammarElements;
+import org.eclipse.xtext.parser.packrat.XtextGrammarTestLanguageDelimiters;
+
import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageAbstractRuleConsumer;
-import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageAbstractMetamodelDeclarationConsumer;
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageAbstractMetamodelDeclarationConsumer;
+@SuppressWarnings("unused")
public final class XtextGrammarTestLanguageGrammarConsumer extends NonTerminalConsumer {
private XtextGrammarTestLanguageAbstractRuleConsumer abstractRuleConsumer;
- private XtextGrammarTestLanguageAbstractMetamodelDeclarationConsumer abstractMetamodelDeclarationConsumer;
private XtextBuiltinIDConsumer idConsumer;
+ private XtextGrammarTestLanguageAbstractMetamodelDeclarationConsumer abstractMetamodelDeclarationConsumer;
public XtextGrammarTestLanguageGrammarConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
@@ -31,195 +35,173 @@ public final class XtextGrammarTestLanguageGrammarConsumer extends NonTerminalCo
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- GROUP$3SUCCESS: {
- IMarker mGROUP$3 = mark();
- GROUP$3FAILURE: {
- GROUP$4SUCCESS: {
- IMarker mGROUP$4 = mark();
- GROUP$4FAILURE: {
- GROUP$5SUCCESS: {
- IMarker mGROUP$5 = mark();
- GROUP$5FAILURE: {
- ALTERNATIVES$6SUCCESS: {
- ALTERNATIVES$6FAILURE: {
- ASSIGNMENT$7SUCCESS: {
- ASSIGNMENT$7FAILURE: {
- if (consumeKeyword(getRule().ele0000000KeywordAbstractLanguage(), "abstract", false, true))
- break ASSIGNMENT$7FAILURE;
- break ASSIGNMENT$7SUCCESS;
- }
- break ALTERNATIVES$6FAILURE;
- }
- KEYWORD$9SUCCESS: {
- if (!consumeKeyword(getRule().ele000001KeywordLanguage(), null, false, false))
- break KEYWORD$9SUCCESS;
- break ALTERNATIVES$6FAILURE;
- }
- mGROUP$5.rollback();
- break ALTERNATIVES$6SUCCESS;
- }
- break GROUP$5FAILURE;
- }
- mGROUP$5.rollback();
- break GROUP$5SUCCESS;
- }
- GROUP$5FAILURE: {
- ASSIGNMENT$10SUCCESS: {
- ASSIGNMENT$10FAILURE: {
- if (consumeTerminal(idConsumer, "idElements", true, false, getRule().ele000010LexerRuleCallID()))
- break ASSIGNMENT$10FAILURE;
- mGROUP$5.rollback();
- break ASSIGNMENT$10SUCCESS;
- }
- break GROUP$5FAILURE;
- }
- mGROUP$5.rollback();
- break GROUP$5SUCCESS;
- }
- break GROUP$4FAILURE;
- }
- mGROUP$4.rollback();
- break GROUP$4SUCCESS;
- }
- GROUP$4FAILURE: {
- GROUP$12SUCCESS: while(true) {
- IMarker mGROUP$12 = mark();
- GROUP$12FAILURE: {
- KEYWORD$13SUCCESS: {
- if (!consumeKeyword(getRule().ele00010KeywordFullStop(), null, false, false))
- break KEYWORD$13SUCCESS;
- break GROUP$12FAILURE;
- }
- mGROUP$12.rollback();
- break GROUP$12SUCCESS;
- }
- GROUP$12FAILURE: {
- ASSIGNMENT$14SUCCESS: {
- ASSIGNMENT$14FAILURE: {
- if (consumeTerminal(idConsumer, "idElements", true, false, getRule().ele000110LexerRuleCallID()))
- break ASSIGNMENT$14FAILURE;
- mGROUP$12.rollback();
- break ASSIGNMENT$14SUCCESS;
- }
- break GROUP$12FAILURE;
- }
- mGROUP$12.rollback();
- break GROUP$12SUCCESS;
- }
- continue GROUP$12SUCCESS;
- }
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- GROUP$3FAILURE: {
- GROUP$16SUCCESS: {
- IMarker mGROUP$16 = mark();
- GROUP$16FAILURE: {
- GROUP$17SUCCESS: {
- IMarker mGROUP$17 = mark();
- GROUP$17FAILURE: {
- KEYWORD$18SUCCESS: {
- if (!consumeKeyword(getRule().ele00100KeywordExtends(), null, false, false))
- break KEYWORD$18SUCCESS;
- break GROUP$17FAILURE;
- }
- mGROUP$17.rollback();
- break GROUP$17SUCCESS;
- }
- GROUP$17FAILURE: {
- ASSIGNMENT$19SUCCESS: {
- ASSIGNMENT$19FAILURE: {
- if (consumeTerminal(idConsumer, "superGrammarIdElements", true, false, getRule().ele001010LexerRuleCallID()))
- break ASSIGNMENT$19FAILURE;
- mGROUP$17.rollback();
- break ASSIGNMENT$19SUCCESS;
- }
- break GROUP$17FAILURE;
- }
- mGROUP$17.rollback();
- break GROUP$17SUCCESS;
- }
- break GROUP$16FAILURE;
- }
- mGROUP$16.rollback();
- break GROUP$16SUCCESS;
- }
- GROUP$16FAILURE: {
- GROUP$21SUCCESS: while(true) {
- IMarker mGROUP$21 = mark();
- GROUP$21FAILURE: {
- KEYWORD$22SUCCESS: {
- if (!consumeKeyword(getRule().ele00110KeywordFullStop(), null, false, false))
- break KEYWORD$22SUCCESS;
- break GROUP$21FAILURE;
- }
- mGROUP$21.rollback();
- break GROUP$21SUCCESS;
- }
- GROUP$21FAILURE: {
- ASSIGNMENT$23SUCCESS: {
- ASSIGNMENT$23FAILURE: {
- if (consumeTerminal(idConsumer, "superGrammarIdElements", true, false, getRule().ele001110LexerRuleCallID()))
- break ASSIGNMENT$23FAILURE;
- mGROUP$21.rollback();
- break ASSIGNMENT$23SUCCESS;
- }
- break GROUP$21FAILURE;
- }
- mGROUP$21.rollback();
- break GROUP$21SUCCESS;
- }
- continue GROUP$21SUCCESS;
- }
- }
- break GROUP$3FAILURE;
- }
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- ASSIGNMENT$25SUCCESS: while(true) {
- ASSIGNMENT$25FAILURE: {
- if (consumeNonTerminal(abstractMetamodelDeclarationConsumer, "metamodelDeclarations", true, false , getRule().ele010ParserRuleCallAbstractMetamodelDeclaration()))
- break ASSIGNMENT$25FAILURE;
- break ASSIGNMENT$25SUCCESS;
- }
- continue ASSIGNMENT$25SUCCESS;
- }
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- ASSIGNMENT$27SUCCESS: {
- ASSIGNMENT$27FAILURE: {
- if (!consumeNonTerminal(abstractRuleConsumer, "rules", true, false , getRule().ele10ParserRuleCallAbstractRule()))
- break ASSIGNMENT$27SUCCESS;
- while(consumeNonTerminal(abstractRuleConsumer, "rules", true, false , getRule().ele10ParserRuleCallAbstractRule()));
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeAlternatives$6()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$10()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeGroup$12()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeGroup$16()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$25()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$27()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeAlternatives$6() throws Exception {
+ if (consumeAssignment$7())
+ return true;
+ if (consumeKeyword$9())
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$7() throws Exception {
+ if (consumeKeyword(getRule().ele0000000KeywordAbstractLanguage(), "abstract", false, true, XtextGrammarTestLanguageDelimiters.ID_DELIMITER))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeKeyword$9() throws Exception {
+ return consumeKeyword(getRule().ele000001KeywordLanguage(), null, false, false, XtextGrammarTestLanguageDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$10() throws Exception {
+ if (consumeTerminal(idConsumer, "idElements", true, false, getRule().ele000010LexerRuleCallID(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
return true;
+ return false;
+ }
+
+ protected boolean consumeGroup$12() throws Exception {
+ while(doConsumeGroup$12()) {}
+ return true;
+ }
+
+ protected boolean doConsumeGroup$12() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$13()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$14()) {
+ marker.rollback();
+ return false;
}
+ return true;
+ }
+
+ protected boolean consumeKeyword$13() throws Exception {
+ return consumeKeyword(getRule().ele00010KeywordFullStop(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$14() throws Exception {
+ if (consumeTerminal(idConsumer, "idElements", true, false, getRule().ele000110LexerRuleCallID(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeGroup$16() throws Exception {
+ doConsumeGroup$16();
+ return true;
+ }
+
+ protected boolean doConsumeGroup$16() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$18()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$19()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeGroup$21()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$18() throws Exception {
+ return consumeKeyword(getRule().ele00100KeywordExtends(), null, false, false, XtextGrammarTestLanguageDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$19() throws Exception {
+ if (consumeTerminal(idConsumer, "superGrammarIdElements", true, false, getRule().ele001010LexerRuleCallID(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeGroup$21() throws Exception {
+ while(doConsumeGroup$21()) {}
+ return true;
+ }
+
+ protected boolean doConsumeGroup$21() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$22()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$23()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$22() throws Exception {
+ return consumeKeyword(getRule().ele00110KeywordFullStop(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$23() throws Exception {
+ if (consumeTerminal(idConsumer, "superGrammarIdElements", true, false, getRule().ele001110LexerRuleCallID(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$25() throws Exception {
+ while(doConsumeAssignment$25()) {}
+ return true;
+ }
+
+ protected boolean doConsumeAssignment$25() throws Exception {
+ if (consumeNonTerminal(abstractMetamodelDeclarationConsumer, "metamodelDeclarations", true, false, getRule().ele010ParserRuleCallAbstractMetamodelDeclaration()))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeAssignment$27() throws Exception {
+ if (doConsumeAssignment$27()) {
+ while(doConsumeAssignment$27()) {}
+ return true;
+ }
+ return false;
+ }
+
+ protected boolean doConsumeAssignment$27() throws Exception {
+ if (consumeNonTerminal(abstractRuleConsumer, "rules", true, false, getRule().ele10ParserRuleCallAbstractRule()))
+ return true;
return false;
}
@@ -240,13 +222,12 @@ public final class XtextGrammarTestLanguageGrammarConsumer extends NonTerminalCo
this.abstractRuleConsumer = abstractRuleConsumer;
}
- public void setAbstractMetamodelDeclarationConsumer(XtextGrammarTestLanguageAbstractMetamodelDeclarationConsumer abstractMetamodelDeclarationConsumer) {
- this.abstractMetamodelDeclarationConsumer = abstractMetamodelDeclarationConsumer;
- }
-
public void setIdConsumer(XtextBuiltinIDConsumer idConsumer) {
this.idConsumer = idConsumer;
}
-
+ public void setAbstractMetamodelDeclarationConsumer(XtextGrammarTestLanguageAbstractMetamodelDeclarationConsumer abstractMetamodelDeclarationConsumer) {
+ this.abstractMetamodelDeclarationConsumer = abstractMetamodelDeclarationConsumer;
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageGroupConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageGroupConsumer.java
index 4c62160..a0750cc 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageGroupConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageGroupConsumer.java
@@ -12,11 +12,15 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess;
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess.GroupElements;
+import org.eclipse.xtext.parser.packrat.XtextGrammarTestLanguageDelimiters;
+
import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageAbstractTokenConsumer;
+@SuppressWarnings("unused")
public final class XtextGrammarTestLanguageGroupConsumer extends NonTerminalConsumer {
private XtextGrammarTestLanguageAbstractTokenConsumer abstractTokenConsumer;
@@ -27,46 +31,52 @@ public final class XtextGrammarTestLanguageGroupConsumer extends NonTerminalCons
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- RULECALL$2SUCCESS: {
- if (!consumeNonTerminal(abstractTokenConsumer, null, false, false, getRule().ele0ParserRuleCallAbstractToken()))
- break RULECALL$2SUCCESS;
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- GROUP$3SUCCESS: while(true) {
- IMarker mGROUP$3 = mark();
- GROUP$3FAILURE: {
- ACTION$4SUCCESS: {
- consumeAction("Group", "abstractTokens", true);
- break GROUP$3FAILURE;
- }
- }
- GROUP$3FAILURE: {
- ASSIGNMENT$6SUCCESS: {
- ASSIGNMENT$6FAILURE: {
- if (consumeNonTerminal(abstractTokenConsumer, "abstractTokens", true, false , getRule().ele110ParserRuleCallAbstractToken()))
- break ASSIGNMENT$6FAILURE;
- mGROUP$3.rollback();
- break ASSIGNMENT$6SUCCESS;
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- continue GROUP$3SUCCESS;
- }
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeRuleCall$2()) {
+ marker.rollback();
+ return false;
}
+ if (!consumeGroup$3()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeRuleCall$2() throws Exception {
+ return consumeNonTerminal(abstractTokenConsumer, null, false, false, getRule().ele0ParserRuleCallAbstractToken());
+ }
+
+ protected boolean consumeGroup$3() throws Exception {
+ while(doConsumeGroup$3()) {}
+ return true;
+ }
+
+ protected boolean doConsumeGroup$3() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeAction$4()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$6()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+ protected boolean consumeAction$4() {
+ consumeAction("Group", "abstractTokens", true);
+ return true;
+ }
+
+ protected boolean consumeAssignment$6() throws Exception {
+ if (consumeNonTerminal(abstractTokenConsumer, "abstractTokens", true, false, getRule().ele110ParserRuleCallAbstractToken()))
+ return true;
return false;
}
@@ -87,5 +97,4 @@ public final class XtextGrammarTestLanguageGroupConsumer extends NonTerminalCons
this.abstractTokenConsumer = abstractTokenConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageKeywordConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageKeywordConsumer.java
index dab1c3c..824fbca 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageKeywordConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageKeywordConsumer.java
@@ -12,11 +12,15 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess;
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess.KeywordElements;
+import org.eclipse.xtext.parser.packrat.XtextGrammarTestLanguageDelimiters;
+
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinSTRINGConsumer;
+@SuppressWarnings("unused")
public final class XtextGrammarTestLanguageKeywordConsumer extends NonTerminalConsumer {
private XtextBuiltinSTRINGConsumer stringConsumer;
@@ -27,16 +31,13 @@ public final class XtextGrammarTestLanguageKeywordConsumer extends NonTerminalCo
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- ASSIGNMENT$1SUCCESS: {
- ASSIGNMENT$1FAILURE: {
- if (consumeTerminal(stringConsumer, "value", false, false, getRule().ele0LexerRuleCallSTRING()))
- break ASSIGNMENT$1FAILURE;
- break ASSIGNMENT$1SUCCESS;
- }
+ return consumeAssignment$1();
+ }
+
+ protected boolean consumeAssignment$1() throws Exception {
+ if (consumeTerminal(stringConsumer, "value", false, false, getRule().ele0LexerRuleCallSTRING(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
return true;
- }
return false;
}
@@ -57,5 +58,4 @@ public final class XtextGrammarTestLanguageKeywordConsumer extends NonTerminalCo
this.stringConsumer = stringConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageLexerRuleConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageLexerRuleConsumer.java
index 39251ff..a499d17 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageLexerRuleConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageLexerRuleConsumer.java
@@ -12,18 +12,22 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess;
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess.LexerRuleElements;
+import org.eclipse.xtext.parser.packrat.XtextGrammarTestLanguageDelimiters;
+
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinSTRINGConsumer;
-import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageTypeRefConsumer;
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageTypeRefConsumer;
+@SuppressWarnings("unused")
public final class XtextGrammarTestLanguageLexerRuleConsumer extends NonTerminalConsumer {
private XtextBuiltinSTRINGConsumer stringConsumer;
- private XtextGrammarTestLanguageTypeRefConsumer typeRefConsumer;
private XtextBuiltinIDConsumer idConsumer;
+ private XtextGrammarTestLanguageTypeRefConsumer typeRefConsumer;
public XtextGrammarTestLanguageLexerRuleConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
@@ -31,140 +35,103 @@ public final class XtextGrammarTestLanguageLexerRuleConsumer extends NonTerminal
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- GROUP$3SUCCESS: {
- IMarker mGROUP$3 = mark();
- GROUP$3FAILURE: {
- GROUP$4SUCCESS: {
- IMarker mGROUP$4 = mark();
- GROUP$4FAILURE: {
- GROUP$5SUCCESS: {
- IMarker mGROUP$5 = mark();
- GROUP$5FAILURE: {
- ALTERNATIVES$6SUCCESS: {
- ALTERNATIVES$6FAILURE: {
- KEYWORD$7SUCCESS: {
- if (!consumeKeyword(getRule().ele000000KeywordNative(), null, false, false))
- break KEYWORD$7SUCCESS;
- break ALTERNATIVES$6FAILURE;
- }
- KEYWORD$8SUCCESS: {
- if (!consumeKeyword(getRule().ele000001KeywordLexer(), null, false, false))
- break KEYWORD$8SUCCESS;
- break ALTERNATIVES$6FAILURE;
- }
- mGROUP$5.rollback();
- break ALTERNATIVES$6SUCCESS;
- }
- break GROUP$5FAILURE;
- }
- mGROUP$5.rollback();
- break GROUP$5SUCCESS;
- }
- GROUP$5FAILURE: {
- ASSIGNMENT$9SUCCESS: {
- ASSIGNMENT$9FAILURE: {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele000010LexerRuleCallID()))
- break ASSIGNMENT$9FAILURE;
- mGROUP$5.rollback();
- break ASSIGNMENT$9SUCCESS;
- }
- break GROUP$5FAILURE;
- }
- mGROUP$5.rollback();
- break GROUP$5SUCCESS;
- }
- break GROUP$4FAILURE;
- }
- mGROUP$4.rollback();
- break GROUP$4SUCCESS;
- }
- GROUP$4FAILURE: {
- GROUP$11SUCCESS: {
- IMarker mGROUP$11 = mark();
- GROUP$11FAILURE: {
- KEYWORD$12SUCCESS: {
- if (!consumeKeyword(getRule().ele00010KeywordReturns(), null, false, false))
- break KEYWORD$12SUCCESS;
- break GROUP$11FAILURE;
- }
- mGROUP$11.rollback();
- break GROUP$11SUCCESS;
- }
- GROUP$11FAILURE: {
- ASSIGNMENT$13SUCCESS: {
- ASSIGNMENT$13FAILURE: {
- if (consumeNonTerminal(typeRefConsumer, "type", false, false , getRule().ele000110ParserRuleCallTypeRef()))
- break ASSIGNMENT$13FAILURE;
- mGROUP$11.rollback();
- break ASSIGNMENT$13SUCCESS;
- }
- break GROUP$11FAILURE;
- }
- mGROUP$11.rollback();
- break GROUP$11SUCCESS;
- }
- break GROUP$4FAILURE;
- }
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- GROUP$3FAILURE: {
- KEYWORD$15SUCCESS: {
- if (!consumeKeyword(getRule().ele001KeywordColon(), null, false, false))
- break KEYWORD$15SUCCESS;
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- ASSIGNMENT$16SUCCESS: {
- ASSIGNMENT$16FAILURE: {
- if (consumeTerminal(stringConsumer, "body", false, false, getRule().ele010LexerRuleCallSTRING()))
- break ASSIGNMENT$16FAILURE;
- mGROUP$2.rollback();
- break ASSIGNMENT$16SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- KEYWORD$18SUCCESS: {
- if (!consumeKeyword(getRule().ele1KeywordSemicolon(), null, false, false))
- break KEYWORD$18SUCCESS;
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeAlternatives$6()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$9()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeGroup$11()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$15()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$16()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$18()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeAlternatives$6() throws Exception {
+ if (consumeKeyword$7())
return true;
+ if (consumeKeyword$8())
+ return true;
+ return false;
+ }
+
+ protected boolean consumeKeyword$7() throws Exception {
+ return consumeKeyword(getRule().ele000000KeywordNative(), null, false, false, XtextGrammarTestLanguageDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeKeyword$8() throws Exception {
+ return consumeKeyword(getRule().ele000001KeywordLexer(), null, false, false, XtextGrammarTestLanguageDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$9() throws Exception {
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele000010LexerRuleCallID(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeGroup$11() throws Exception {
+ doConsumeGroup$11();
+ return true;
+ }
+
+ protected boolean doConsumeGroup$11() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$12()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$13()) {
+ marker.rollback();
+ return false;
}
+ return true;
+ }
+
+ protected boolean consumeKeyword$12() throws Exception {
+ return consumeKeyword(getRule().ele00010KeywordReturns(), null, false, false, XtextGrammarTestLanguageDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$13() throws Exception {
+ if (consumeNonTerminal(typeRefConsumer, "type", false, false, getRule().ele000110ParserRuleCallTypeRef()))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeKeyword$15() throws Exception {
+ return consumeKeyword(getRule().ele001KeywordColon(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$16() throws Exception {
+ if (consumeTerminal(stringConsumer, "body", false, false, getRule().ele010LexerRuleCallSTRING(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ return true;
return false;
}
+ protected boolean consumeKeyword$18() throws Exception {
+ return consumeKeyword(getRule().ele1KeywordSemicolon(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ }
+
public LexerRuleElements getRule() {
return XtextGrammarTestLanguageGrammarAccess.INSTANCE.prLexerRule();
}
@@ -182,13 +149,12 @@ public final class XtextGrammarTestLanguageLexerRuleConsumer extends NonTerminal
this.stringConsumer = stringConsumer;
}
- public void setTypeRefConsumer(XtextGrammarTestLanguageTypeRefConsumer typeRefConsumer) {
- this.typeRefConsumer = typeRefConsumer;
- }
-
public void setIdConsumer(XtextBuiltinIDConsumer idConsumer) {
this.idConsumer = idConsumer;
}
-
+ public void setTypeRefConsumer(XtextGrammarTestLanguageTypeRefConsumer typeRefConsumer) {
+ this.typeRefConsumer = typeRefConsumer;
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageParenthesizedElementConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageParenthesizedElementConsumer.java
index 25bec30..1312eb0 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageParenthesizedElementConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageParenthesizedElementConsumer.java
@@ -12,11 +12,15 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess;
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess.ParenthesizedElementElements;
+import org.eclipse.xtext.parser.packrat.XtextGrammarTestLanguageDelimiters;
+
import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageAlternativesConsumer;
+@SuppressWarnings("unused")
public final class XtextGrammarTestLanguageParenthesizedElementConsumer extends NonTerminalConsumer {
private XtextGrammarTestLanguageAlternativesConsumer alternativesConsumer;
@@ -27,48 +31,37 @@ public final class XtextGrammarTestLanguageParenthesizedElementConsumer extends
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- KEYWORD$3SUCCESS: {
- if (!consumeKeyword(getRule().ele00KeywordLeftParenthesis(), null, false, false))
- break KEYWORD$3SUCCESS;
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- RULECALL$4SUCCESS: {
- if (!consumeNonTerminal(alternativesConsumer, null, false, false, getRule().ele01ParserRuleCallAlternatives()))
- break RULECALL$4SUCCESS;
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- KEYWORD$5SUCCESS: {
- if (!consumeKeyword(getRule().ele1KeywordRightParenthesis(), null, false, false))
- break KEYWORD$5SUCCESS;
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- return true;
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$3()) {
+ marker.rollback();
+ return false;
}
- return false;
+ if (!consumeRuleCall$4()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$5()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$3() throws Exception {
+ return consumeKeyword(getRule().ele00KeywordLeftParenthesis(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeRuleCall$4() throws Exception {
+ return consumeNonTerminal(alternativesConsumer, null, false, false, getRule().ele01ParserRuleCallAlternatives());
+ }
+
+ protected boolean consumeKeyword$5() throws Exception {
+ return consumeKeyword(getRule().ele1KeywordRightParenthesis(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
}
public ParenthesizedElementElements getRule() {
@@ -88,5 +81,4 @@ public final class XtextGrammarTestLanguageParenthesizedElementConsumer extends
this.alternativesConsumer = alternativesConsumer;
}
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageParserRuleConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageParserRuleConsumer.java
index 61dde22..d8b91ef 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageParserRuleConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageParserRuleConsumer.java
@@ -12,18 +12,22 @@ import org.eclipse.xtext.parser.packrat.consumers.IConsumerUtility;
import org.eclipse.xtext.parser.packrat.consumers.ITerminalConsumer;
import org.eclipse.xtext.parser.packrat.consumers.NonTerminalConsumer;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
+
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess;
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess.ParserRuleElements;
+import org.eclipse.xtext.parser.packrat.XtextGrammarTestLanguageDelimiters;
+
+import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageAlternativesConsumer;
import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageTypeRefConsumer;
-import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
+@SuppressWarnings("unused")
public final class XtextGrammarTestLanguageParserRuleConsumer extends NonTerminalConsumer {
+ private XtextBuiltinIDConsumer idConsumer;
private XtextGrammarTestLanguageAlternativesConsumer alternativesConsumer;
private XtextGrammarTestLanguageTypeRefConsumer typeRefConsumer;
- private XtextBuiltinIDConsumer idConsumer;
public XtextGrammarTestLanguageParserRuleConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
@@ -31,111 +35,83 @@ public final class XtextGrammarTestLanguageParserRuleConsumer extends NonTermina
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
}
- @SuppressWarnings("unused")
protected boolean doConsume() throws Exception {
- GROUP$1SUCCESS: {
- IMarker mGROUP$1 = mark();
- GROUP$1FAILURE: {
- GROUP$2SUCCESS: {
- IMarker mGROUP$2 = mark();
- GROUP$2FAILURE: {
- GROUP$3SUCCESS: {
- IMarker mGROUP$3 = mark();
- GROUP$3FAILURE: {
- GROUP$4SUCCESS: {
- IMarker mGROUP$4 = mark();
- GROUP$4FAILURE: {
- ASSIGNMENT$5SUCCESS: {
- ASSIGNMENT$5FAILURE: {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele00000LexerRuleCallID()))
- break ASSIGNMENT$5FAILURE;
- mGROUP$4.rollback();
- break ASSIGNMENT$5SUCCESS;
- }
- break GROUP$4FAILURE;
- }
- mGROUP$4.rollback();
- break GROUP$4SUCCESS;
- }
- GROUP$4FAILURE: {
- GROUP$7SUCCESS: {
- IMarker mGROUP$7 = mark();
- GROUP$7FAILURE: {
- KEYWORD$8SUCCESS: {
- if (!consumeKeyword(getRule().ele00010KeywordReturns(), null, false, false))
- break KEYWORD$8SUCCESS;
- break GROUP$7FAILURE;
- }
- mGROUP$7.rollback();
- break GROUP$7SUCCESS;
- }
- GROUP$7FAILURE: {
- ASSIGNMENT$9SUCCESS: {
- ASSIGNMENT$9FAILURE: {
- if (consumeNonTerminal(typeRefConsumer, "type", false, false , getRule().ele000110ParserRuleCallTypeRef()))
- break ASSIGNMENT$9FAILURE;
- mGROUP$7.rollback();
- break ASSIGNMENT$9SUCCESS;
- }
- break GROUP$7FAILURE;
- }
- mGROUP$7.rollback();
- break GROUP$7SUCCESS;
- }
- break GROUP$4FAILURE;
- }
- }
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- GROUP$3FAILURE: {
- KEYWORD$11SUCCESS: {
- if (!consumeKeyword(getRule().ele001KeywordColon(), null, false, false))
- break KEYWORD$11SUCCESS;
- break GROUP$3FAILURE;
- }
- mGROUP$3.rollback();
- break GROUP$3SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- GROUP$2FAILURE: {
- ASSIGNMENT$12SUCCESS: {
- ASSIGNMENT$12FAILURE: {
- if (consumeNonTerminal(alternativesConsumer, "alternatives", false, false , getRule().ele010ParserRuleCallAlternatives()))
- break ASSIGNMENT$12FAILURE;
- mGROUP$2.rollback();
- break ASSIGNMENT$12SUCCESS;
- }
- break GROUP$2FAILURE;
- }
- mGROUP$2.rollback();
- break GROUP$2SUCCESS;
- }
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
- GROUP$1FAILURE: {
- KEYWORD$14SUCCESS: {
- if (!consumeKeyword(getRule().ele1KeywordSemicolon(), null, false, false))
- break KEYWORD$14SUCCESS;
- break GROUP$1FAILURE;
- }
- mGROUP$1.rollback();
- break GROUP$1SUCCESS;
- }
+ return consumeGroup$1();
+ }
+
+ protected boolean consumeGroup$1() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeAssignment$5()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeGroup$7()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$11()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeAssignment$12()) {
+ marker.rollback();
+ return false;
+ }
+ if (!consumeKeyword$14()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeAssignment$5() throws Exception {
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele00000LexerRuleCallID(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
return true;
+ return false;
+ }
+
+ protected boolean consumeGroup$7() throws Exception {
+ doConsumeGroup$7();
+ return true;
+ }
+
+ protected boolean doConsumeGroup$7() throws Exception {
+ final IMarker marker = mark();
+ if (!consumeKeyword$8()) {
+ marker.rollback();
+ return false;
}
+ if (!consumeAssignment$9()) {
+ marker.rollback();
+ return false;
+ }
+ return true;
+ }
+
+ protected boolean consumeKeyword$8() throws Exception {
+ return consumeKeyword(getRule().ele00010KeywordReturns(), null, false, false, XtextGrammarTestLanguageDelimiters.ID_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$9() throws Exception {
+ if (consumeNonTerminal(typeRefConsumer, "type", false, false, getRule().ele000110ParserRuleCallTypeRef()))
+ return true;
return false;
}
+ protected boolean consumeKeyword$11() throws Exception {
+ return consumeKeyword(getRule().ele001KeywordColon(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ }
+
+ protected boolean consumeAssignment$12() throws Exception {
+ if (consumeNonTerminal(alternativesConsumer, "alternatives", false, false, getRule().ele010ParserRuleCallAlternatives()))
+ return true;
+ return false;
+ }
+
+ protected boolean consumeKeyword$14() throws Exception {
+ return consumeKeyword(getRule().ele1KeywordSemicolon(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ }
+
public ParserRuleElements getRule() {
return XtextGrammarTestLanguageGrammarAccess.INSTANCE.prParserRule();
}
@@ -149,6 +125,10 @@ public final class XtextGrammarTestLanguageParserRuleConsumer extends NonTermina
return "ParserRule";
}
+ public void setIdConsumer(XtextBuiltinIDConsumer idConsumer) {
+ this.idConsumer = idConsumer;
+ }
+
public void setAlternativesConsumer(XtextGrammarTestLanguageAlternativesConsumer alternativesConsumer) {
this.alternativesConsumer = alternativesConsumer;
}
@@ -157,9 +137,4 @@ public final class XtextGrammarTestLanguageParserRuleConsumer extends NonTermina
this.typeRefConsumer = typeRefConsumer;
}
- public void setIdConsumer(XtextBuiltinIDConsumer idConsumer) {
- this.idConsumer = idConsumer;
- }
-
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageReferencedMetamodelConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageReferencedMetamodelConsumer.java
index c16c280..1a228fb 100644
--- a/