summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorszarnekow2009-01-14 11:30:11 (EST)
committer sefftinge2009-01-14 11:30:11 (EST)
commit9ec2182f60691d1d874d7dd79c3aeced5a53d5d4 (patch)
tree99991ac9402cf5ac7a2891fd9ebd874fdf71f828
parentc97955942da41f8b4afbd521f9cee01052dfb1d9 (diff)
downloadorg.eclipse.xtext-9ec2182f60691d1d874d7dd79c3aeced5a53d5d4.zip
org.eclipse.xtext-9ec2182f60691d1d874d7dd79c3aeced5a53d5d4.tar.gz
org.eclipse.xtext-9ec2182f60691d1d874d7dd79c3aeced5a53d5d4.tar.bz2
PackratParserGen - modularized generated code
* continued: don't 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.java20
-rw-r--r--devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/ReferenceGrammarParserConfiguration.java43
-rw-r--r--devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarCustomTypeParserRuleConsumer.java30
-rw-r--r--devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarErwachsenerConsumer.java69
-rw-r--r--devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarFamilieConsumer.java147
-rw-r--r--devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarFarbeConsumer.java56
-rw-r--r--devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarKindConsumer.java69
-rw-r--r--devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarPersonConsumer.java4
-rw-r--r--devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarSpielplatzConsumer.java69
-rw-r--r--devtools/org.eclipse.xtext.reference/src-gen/org/eclipse/xtext/reference/parser/packrat/consumers/ReferenceGrammarSpielzeugConsumer.java56
-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.java18
-rw-r--r--examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/FowlerDslParserConfiguration.java26
-rw-r--r--examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslCommandConsumer.java30
-rw-r--r--examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslEventConsumer.java43
-rw-r--r--examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslStateConsumer.java95
-rw-r--r--examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslStatemachineConsumer.java56
-rw-r--r--examples/org.eclipse.xtext.example.fowlerdsl/src-gen/org/eclipse/xtext/example/parser/packrat/consumers/FowlerDslTransitionConsumer.java43
-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.java18
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/ImportUriTestLanguageParserConfiguration.java13
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/LangATestLanguageDelimiters.java18
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/LangATestLanguageParserConfiguration.java13
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/ImportUriTestLanguageImportConsumer.java30
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/ImportUriTestLanguageMainConsumer.java4
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/ImportUriTestLanguageTypeConsumer.java56
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/LangATestLanguageImportConsumer.java30
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/LangATestLanguageMainConsumer.java4
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/crossrefs/parser/packrat/consumers/LangATestLanguageTypeConsumer.java56
-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.java20
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/packrat/DummyTestLanguageParserConfiguration.java14
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/packrat/consumers/DummyTestLanguageElementConsumer.java77
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/dummy/parser/packrat/consumers/DummyTestLanguageModelConsumer.java4
-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.java16
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/AbstractTestLanguageParserConfiguration.java10
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/ConcreteTestLanguageDelimiters.java20
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/ConcreteTestLanguageParserConfiguration.java15
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/consumers/AbstractTestLanguageInheritedParserRuleConsumer.java30
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/grammarinheritance/parser/packrat/consumers/ConcreteTestLanguageConcreteParserRuleConsumer.java51
-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.java12
-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.java12
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/MultiGenMMTestLanguageParserConfiguration.java11
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MetamodelRefTestLanguageFooConsumer.java17
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MetamodelRefTestLanguageMyRuleConsumer.java17
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MetamodelRefTestLanguageNameRefConsumer.java17
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MultiGenMMTestLanguageFooConsumer.java25
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/packrat/consumers/MultiGenMMTestLanguageNameRefConsumer.java17
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguageLexer.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguageParser.java2
-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.java14
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/DatatypeRulesTestLanguageParserConfiguration.java25
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageCompositeModelConsumer.java4
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageDotsConsumer.java43
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageFractionConsumer.java43
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageModelConsumer.java56
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageModelIdConsumer.java43
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageNestedModelIdConsumer.java17
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/datatyperules/parser/packrat/consumers/DatatypeRulesTestLanguageVectorConsumer.java56
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/XtextGrammarTestLanguageDelimiters.java20
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/XtextGrammarTestLanguageParserConfiguration.java84
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAbstractMetamodelDeclarationConsumer.java4
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAbstractRuleConsumer.java16
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAbstractTerminalConsumer.java16
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAbstractTokenConsumer.java55
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageActionConsumer.java129
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAlternativesConsumer.java17
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageAssignmentConsumer.java56
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageCrossReferenceConsumer.java64
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageGeneratedMetamodelConsumer.java77
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageGrammarConsumer.java133
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageGroupConsumer.java4
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageKeywordConsumer.java17
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageLexerRuleConsumer.java103
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageParenthesizedElementConsumer.java30
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageParserRuleConsumer.java64
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageReferencedMetamodelConsumer.java64
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageRuleCallConsumer.java17
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageTypeRefConsumer.java43
-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.java18
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/FormatterTestLanguageParserConfiguration.java17
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/consumers/FormatterTestLanguageLineConsumer.java43
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/consumers/FormatterTestLanguageRootConsumer.java25
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/consumers/FormatterTestLanguageTestIndentationConsumer.java43
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/consumers/FormatterTestLanguageTestLinewrapConsumer.java17
-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.java20
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/ComplexReconstrTestLanguageParserConfiguration.java60
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/SimpleReconstrTestLanguageDelimiters.java20
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/SimpleReconstrTestLanguageParserConfiguration.java38
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageAtomConsumer.java17
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageOpConsumer.java30
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageParensConsumer.java43
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageRootConsumer.java16
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTermConsumer.java4
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyA1Consumer.java17
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyAConsumer.java69
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyBConsumer.java56
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyCConsumer.java69
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyDConsumer.java103
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyEConsumer.java103
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyFConsumer.java69
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyG1Consumer.java43
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyG2Consumer.java25
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyGConsumer.java17
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageAtomConsumer.java17
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageManyStringsConsumer.java43
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageOpConsumer.java4
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageParensConsumer.java43
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageRef2Consumer.java56
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageSpareConsumer.java56
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageTermConsumer.java40
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageTwoNumbersConsumer.java56
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageTypeConsumer.java56
-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.java17
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/TransientValuesTestParserConfiguration.java19
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/consumers/TransientValuesTestRootConsumer.java29
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/consumers/TransientValuesTestTestListConsumer.java30
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/consumers/TransientValuesTestTestOptionalConsumer.java56
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/consumers/TransientValuesTestTestRequiredConsumer.java43
-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.java12
-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.java17
-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.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalContentAssistTestLanguageParser.java2
-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.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalReferenceGrammarTestLanguageParser.java2
-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.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTreeTestLanguageParser.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/ActionTestLanguageDelimiters.java12
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/ActionTestLanguageParserConfiguration.java8
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/ContentAssistTestLanguageDelimiters.java18
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/ContentAssistTestLanguageParserConfiguration.java24
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/FowlerDslTestLanguageDelimiters.java18
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/FowlerDslTestLanguageParserConfiguration.java28
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/LexerTestLanguageDelimiters.java12
-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.java13
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/LookaheadTestLanguageParserConfiguration.java22
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/OptionalEmptyTestLanguageDelimiters.java16
-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.java18
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/PartialParserTestLanguageParserConfiguration.java41
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/ReferenceGrammarTestLanguageDelimiters.java20
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/ReferenceGrammarTestLanguageParserConfiguration.java55
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/SimpleExpressionsTestLanguageDelimiters.java14
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/SimpleExpressionsTestLanguageParserConfiguration.java16
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/TestLanguageDelimiters.java18
-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.java14
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/TreeTestLanguageParserConfiguration.java15
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ActionTestLanguageElementConsumer.java4
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ActionTestLanguageItemConsumer.java17
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ActionTestLanguageModelConsumer.java4
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ContentAssistTestLanguageAbstractRuleCallConsumer.java17
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ContentAssistTestLanguageAbstractRuleConsumer.java16
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ContentAssistTestLanguageFirstAbstractRuleChildConsumer.java64
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ContentAssistTestLanguageSecondAbstractRuleChildConsumer.java64
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ContentAssistTestLanguageStartConsumer.java30
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/FowlerDslTestLanguageCommandConsumer.java30
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/FowlerDslTestLanguageEventConsumer.java43
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/FowlerDslTestLanguageStateConsumer.java95
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/FowlerDslTestLanguageStatemachineConsumer.java64
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/FowlerDslTestLanguageTransitionConsumer.java43
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/LexerTestLanguageElementConsumer.java38
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/LexerTestLanguageModelConsumer.java4
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/LookaheadTestLanguageAltsConsumer.java16
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/LookaheadTestLanguageEntryConsumer.java4
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/LookaheadTestLanguageLookAhead0Consumer.java30
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/LookaheadTestLanguageLookAhead1Consumer.java43
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/LookaheadTestLanguageLookAhead2Consumer.java43
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/LookaheadTestLanguageLookAhead3Consumer.java43
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/LookaheadTestLanguageLookAhead4Consumer.java30
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/OptionalEmptyTestLanguageGreetingConsumer.java30
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/OptionalEmptyTestLanguageModelConsumer.java4
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/PartialParserTestLanguageAbstractChildConsumer.java4
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/PartialParserTestLanguageAbstractChildrenConsumer.java43
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/PartialParserTestLanguageChildConsumer.java56
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/PartialParserTestLanguageChildrenConsumer.java56
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/PartialParserTestLanguageContainerConsumer.java64
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/PartialParserTestLanguageContentConsumer.java16
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/PartialParserTestLanguageFirstConcreteConsumer.java69
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/PartialParserTestLanguageNamedConsumer.java17
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/PartialParserTestLanguageNestedConsumer.java43
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/PartialParserTestLanguageSecondConcreteConsumer.java82
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ReferenceGrammarTestLanguageErwachsenerConsumer.java77
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ReferenceGrammarTestLanguageFamilieConsumer.java147
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ReferenceGrammarTestLanguageFarbeConsumer.java56
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ReferenceGrammarTestLanguageKindConsumer.java77
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ReferenceGrammarTestLanguagePersonConsumer.java16
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ReferenceGrammarTestLanguageSpielplatzConsumer.java101
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/ReferenceGrammarTestLanguageSpielzeugConsumer.java56
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/SimpleExpressionsTestLanguageAdditionConsumer.java30
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/SimpleExpressionsTestLanguageAtomConsumer.java17
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/SimpleExpressionsTestLanguageMultiplicationConsumer.java30
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/SimpleExpressionsTestLanguageParensConsumer.java30
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/SimpleExpressionsTestLanguageSequenceConsumer.java4
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/SimpleExpressionsTestLanguageTermConsumer.java16
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/TestLanguageAbstractRuleConsumer.java4
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/TestLanguageChoiceRuleConsumer.java43
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/TestLanguageEntryRuleConsumer.java4
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/TestLanguageReducibleRuleConsumer.java17
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/TestLanguageTerminalRuleConsumer.java17
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/TreeTestLanguageModelConsumer.java4
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/consumers/TreeTestLanguageNodeConsumer.java90
-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.java20
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/valueconverter/parser/packrat/Bug250313ParserConfiguration.java13
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/valueconverter/parser/packrat/consumers/Bug250313Ref2Consumer.java64
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/parser/packrat/PerformanceTest.java2
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/xtext/parser/handwritten/HandwrittenDelimiters.java3
-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.java16
-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.java4
-rw-r--r--tests/org.eclipse.xtext.ui.core.tests/src-gen/org/eclipse/xtext/ui/core/parser/packrat/consumers/TestLanguageStuffConsumer.java30
259 files changed, 6002 insertions, 1156 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 89d51a6..5cb7604 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 18:45:38
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/reference/parser/antlr/internal/InternalReferenceGrammar.g 2009-01-14 16:50:27
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 4151aee..b25984c 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 18:45:38
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/reference/parser/antlr/internal/InternalReferenceGrammar.g 2009-01-14 16:50:26
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
index e02d4aa..f485da9 100644
--- 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
@@ -8,14 +8,20 @@ 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 final class ReferenceGrammarDelimiters {
-public class ReferenceGrammarDelimiters {
-
- public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+ private ReferenceGrammarDelimiters() {
+ throw new UnsupportedOperationException("Utility classes may not be initialized");
+ }
- public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+ public static ICharacterClass keyword$14$Delimiter = ICharacterClass.Factory.nullClass();
- public static ISequenceMatcher ALL_KEYWORDS = new SetBasedKeywordMatcher(ReferenceGrammarGrammarAccess.INSTANCE.getGrammar());
-
+ // TODO do not use IDConsumer internals
+ public static ICharacterClass keyword$9$Delimiter = XtextBuiltinIDConsumer.IDConsumer$$2;
+
+ public static ISequenceMatcher ruleCall$11$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+
+ public static ISequenceMatcher ruleCall$44$Delimiter = new SetBasedKeywordMatcher(
+ "spielplatz", "kind", "erwachsener", "spielzeug", "familie", "keyword", "ROT", "BLAU", "GELB", "GRÜN", "type");
+
}
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 bfdee2b..647fd75 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
@@ -113,12 +113,55 @@ public class ReferenceGrammarParserConfiguration extends AbstractParserConfigura
getCustomTypeParserRuleConsumer().setIdConsumer(getIdConsumer());
+ getSpielplatzConsumer().setKeyword$11$Delimiter(ReferenceGrammarDelimiters.keyword$14$Delimiter);
+ getSpielplatzConsumer().setRuleCall$10$Delimiter(ReferenceGrammarDelimiters.ruleCall$11$Delimiter);
+ getSpielplatzConsumer().setKeyword$26$Delimiter(ReferenceGrammarDelimiters.keyword$14$Delimiter);
+ getSpielplatzConsumer().setKeyword$6$Delimiter(ReferenceGrammarDelimiters.keyword$9$Delimiter);
+ getSpielplatzConsumer().setRuleCall$8$Delimiter(ReferenceGrammarDelimiters.ruleCall$11$Delimiter);
+ getKindConsumer().setRuleCall$8$Delimiter(ReferenceGrammarDelimiters.ruleCall$44$Delimiter);
+ getKindConsumer().setKeyword$5$Delimiter(ReferenceGrammarDelimiters.keyword$9$Delimiter);
+ getKindConsumer().setKeyword$11$Delimiter(ReferenceGrammarDelimiters.keyword$14$Delimiter);
+ getKindConsumer().setKeyword$6$Delimiter(ReferenceGrammarDelimiters.keyword$14$Delimiter);
+ getKindConsumer().setRuleCall$10$Delimiter(ReferenceGrammarDelimiters.ruleCall$11$Delimiter);
+ getErwachsenerConsumer().setKeyword$5$Delimiter(ReferenceGrammarDelimiters.keyword$9$Delimiter);
+ getErwachsenerConsumer().setRuleCall$10$Delimiter(ReferenceGrammarDelimiters.ruleCall$11$Delimiter);
+ getErwachsenerConsumer().setKeyword$11$Delimiter(ReferenceGrammarDelimiters.keyword$14$Delimiter);
+ getErwachsenerConsumer().setRuleCall$8$Delimiter(ReferenceGrammarDelimiters.ruleCall$44$Delimiter);
+ getErwachsenerConsumer().setKeyword$6$Delimiter(ReferenceGrammarDelimiters.keyword$14$Delimiter);
+ getSpielzeugConsumer().setKeyword$5$Delimiter(ReferenceGrammarDelimiters.keyword$9$Delimiter);
+ getSpielzeugConsumer().setRuleCall$8$Delimiter(ReferenceGrammarDelimiters.ruleCall$44$Delimiter);
+ getSpielzeugConsumer().setKeyword$6$Delimiter(ReferenceGrammarDelimiters.keyword$14$Delimiter);
+ getSpielzeugConsumer().setKeyword$11$Delimiter(ReferenceGrammarDelimiters.keyword$14$Delimiter);
+ getFamilieConsumer().setCrossReference$28$Delimiter(ReferenceGrammarDelimiters.ruleCall$44$Delimiter);
+ getFamilieConsumer().setKeyword$9$Delimiter(ReferenceGrammarDelimiters.keyword$14$Delimiter);
+ getFamilieConsumer().setCrossReference$23$Delimiter(ReferenceGrammarDelimiters.ruleCall$44$Delimiter);
+ getFamilieConsumer().setRuleCall$15$Delimiter(ReferenceGrammarDelimiters.ruleCall$44$Delimiter);
+ getFamilieConsumer().setKeyword$26$Delimiter(ReferenceGrammarDelimiters.keyword$14$Delimiter);
+ getFamilieConsumer().setCrossReference$20$Delimiter(ReferenceGrammarDelimiters.ruleCall$44$Delimiter);
+ getFamilieConsumer().setKeyword$30$Delimiter(ReferenceGrammarDelimiters.keyword$14$Delimiter);
+ getFamilieConsumer().setCrossReference$17$Delimiter(ReferenceGrammarDelimiters.ruleCall$44$Delimiter);
+ getFamilieConsumer().setRuleCall$14$Delimiter(ReferenceGrammarDelimiters.ruleCall$11$Delimiter);
+ getFamilieConsumer().setKeyword$8$Delimiter(ReferenceGrammarDelimiters.keyword$9$Delimiter);
+ getFamilieConsumer().setKeyword$13$Delimiter(ReferenceGrammarDelimiters.keyword$9$Delimiter);
+ getFarbeConsumer().setKeyword$5$Delimiter(ReferenceGrammarDelimiters.keyword$9$Delimiter);
+ getFarbeConsumer().setKeyword$6$Delimiter(ReferenceGrammarDelimiters.keyword$9$Delimiter);
+ getFarbeConsumer().setKeyword$7$Delimiter(ReferenceGrammarDelimiters.keyword$9$Delimiter);
+ getFarbeConsumer().setKeyword$8$Delimiter(ReferenceGrammarDelimiters.keyword$9$Delimiter);
+ getCustomTypeParserRuleConsumer().setRuleCall$4$Delimiter(ReferenceGrammarDelimiters.ruleCall$44$Delimiter);
+ getCustomTypeParserRuleConsumer().setKeyword$2$Delimiter(ReferenceGrammarDelimiters.keyword$9$Delimiter);
+ // TODO remove workaround
getIdConsumer().initFields(this);
+ // TODO remove workaround
getIntConsumer().initFields(this);
+ // TODO remove workaround
getStringConsumer().initFields(this);
+ // TODO remove workaround
getMlCommentConsumer().initFields(this);
+ // TODO remove workaround
getSlCommentConsumer().initFields(this);
+ // TODO remove workaround
getWsConsumer().initFields(this);
+ // TODO remove workaround
getAnyOtherConsumer().initFields(this);
}
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 241d92d..364a8b2 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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")
@@ -25,10 +25,16 @@ public final class ReferenceGrammarCustomTypeParserRuleConsumer extends NonTermi
private XtextBuiltinIDConsumer idConsumer;
+ private ISequenceMatcher ruleCall$4$Delimiter;
+
+ private ICharacterClass keyword$2$Delimiter;
+
public ReferenceGrammarCustomTypeParserRuleConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$4$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$2$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -49,11 +55,11 @@ public final class ReferenceGrammarCustomTypeParserRuleConsumer extends NonTermi
}
protected boolean consumeKeyword$2() throws Exception {
- return consumeKeyword(getRule().ele0KeywordType(), null, false, false, ReferenceGrammarDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele0KeywordType(), null, false, false, getKeyword$2$Delimiter());
}
protected boolean consumeAssignment$3() throws Exception {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele10LexerRuleCallID(), ReferenceGrammarDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele10LexerRuleCallID(), getRuleCall$4$Delimiter()))
return true;
return false;
}
@@ -75,4 +81,20 @@ public final class ReferenceGrammarCustomTypeParserRuleConsumer extends NonTermi
this.idConsumer = idConsumer;
}
+ public ISequenceMatcher getRuleCall$4$Delimiter() {
+ return ruleCall$4$Delimiter;
+ }
+
+ public void setRuleCall$4$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$4$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$2$Delimiter() {
+ return keyword$2$Delimiter;
+ }
+
+ public void setKeyword$2$Delimiter(ICharacterClass characterClass) {
+ keyword$2$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
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 d4fdcaf..a21fd0e 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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;
@@ -27,10 +27,25 @@ public final class ReferenceGrammarErwachsenerConsumer extends NonTerminalConsum
private XtextBuiltinIDConsumer idConsumer;
private XtextBuiltinINTConsumer intConsumer;
+ private ICharacterClass keyword$5$Delimiter;
+
+ private ISequenceMatcher ruleCall$10$Delimiter;
+
+ private ICharacterClass keyword$11$Delimiter;
+
+ private ISequenceMatcher ruleCall$8$Delimiter;
+
+ private ICharacterClass keyword$6$Delimiter;
+
public ReferenceGrammarErwachsenerConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$5$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$10$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$11$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$8$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$6$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -63,27 +78,27 @@ public final class ReferenceGrammarErwachsenerConsumer extends NonTerminalConsum
}
protected boolean consumeKeyword$5() throws Exception {
- return consumeKeyword(getRule().ele0000KeywordErwachsener(), null, false, false, ReferenceGrammarDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele0000KeywordErwachsener(), null, false, false, getKeyword$5$Delimiter());
}
protected boolean consumeKeyword$6() throws Exception {
- return consumeKeyword(getRule().ele0001KeywordLeftParenthesis(), null, false, false, ReferenceGrammarDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele0001KeywordLeftParenthesis(), null, false, false, getKeyword$6$Delimiter());
}
protected boolean consumeAssignment$7() throws Exception {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID(), ReferenceGrammarDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID(), getRuleCall$8$Delimiter()))
return true;
return false;
}
protected boolean consumeAssignment$9() throws Exception {
- if (consumeTerminal(intConsumer, "age", false, false, getRule().ele010LexerRuleCallINT(), ReferenceGrammarDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(intConsumer, "age", false, false, getRule().ele010LexerRuleCallINT(), getRuleCall$10$Delimiter()))
return true;
return false;
}
protected boolean consumeKeyword$11() throws Exception {
- return consumeKeyword(getRule().ele1KeywordRightParenthesis(), null, false, false, ReferenceGrammarDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele1KeywordRightParenthesis(), null, false, false, getKeyword$11$Delimiter());
}
public ErwachsenerElements getRule() {
@@ -107,4 +122,44 @@ public final class ReferenceGrammarErwachsenerConsumer extends NonTerminalConsum
this.intConsumer = intConsumer;
}
+ public ICharacterClass getKeyword$5$Delimiter() {
+ return keyword$5$Delimiter;
+ }
+
+ public void setKeyword$5$Delimiter(ICharacterClass characterClass) {
+ keyword$5$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$10$Delimiter() {
+ return ruleCall$10$Delimiter;
+ }
+
+ public void setRuleCall$10$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$10$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$11$Delimiter() {
+ return keyword$11$Delimiter;
+ }
+
+ public void setKeyword$11$Delimiter(ICharacterClass characterClass) {
+ keyword$11$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$8$Delimiter() {
+ return ruleCall$8$Delimiter;
+ }
+
+ public void setRuleCall$8$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$8$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$6$Delimiter() {
+ return keyword$6$Delimiter;
+ }
+
+ public void setKeyword$6$Delimiter(ICharacterClass characterClass) {
+ keyword$6$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
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 4173882..038b360 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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;
@@ -27,10 +27,43 @@ public final class ReferenceGrammarFamilieConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
private XtextBuiltinSTRINGConsumer stringConsumer;
+ private ISequenceMatcher crossReference$28$Delimiter;
+
+ private ICharacterClass keyword$9$Delimiter;
+
+ private ISequenceMatcher crossReference$23$Delimiter;
+
+ private ISequenceMatcher ruleCall$15$Delimiter;
+
+ private ICharacterClass keyword$26$Delimiter;
+
+ private ISequenceMatcher crossReference$20$Delimiter;
+
+ private ICharacterClass keyword$30$Delimiter;
+
+ private ISequenceMatcher crossReference$17$Delimiter;
+
+ private ISequenceMatcher ruleCall$14$Delimiter;
+
+ private ICharacterClass keyword$8$Delimiter;
+
+ private ICharacterClass keyword$13$Delimiter;
+
public ReferenceGrammarFamilieConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ crossReference$28$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$9$Delimiter = ICharacterClass.Factory.nullClass();
+ crossReference$23$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ ruleCall$15$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$26$Delimiter = ICharacterClass.Factory.nullClass();
+ crossReference$20$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$30$Delimiter = ICharacterClass.Factory.nullClass();
+ crossReference$17$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ ruleCall$14$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$8$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$13$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -75,37 +108,37 @@ public final class ReferenceGrammarFamilieConsumer extends NonTerminalConsumer {
}
protected boolean consumeKeyword$8() throws Exception {
- return consumeKeyword(getRule().ele0000000KeywordFamilie(), null, false, false, ReferenceGrammarDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele0000000KeywordFamilie(), null, false, false, getKeyword$8$Delimiter());
}
protected boolean consumeKeyword$9() throws Exception {
- return consumeKeyword(getRule().ele0000001KeywordLeftParenthesis(), null, false, false, ReferenceGrammarDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele0000001KeywordLeftParenthesis(), null, false, false, getKeyword$9$Delimiter());
}
protected boolean consumeAssignment$10() throws Exception {
- if (consumeKeyword(getRule().ele000001000KeywordKeyword(), "name", false, false, ReferenceGrammarDelimiters.ID_DELIMITER))
+ if (consumeKeyword(getRule().ele000001000KeywordKeyword(), "name", false, false, getKeyword$13$Delimiter()))
return true;
- if (consumeTerminal(stringConsumer, "name", false, false, getRule().ele000001001LexerRuleCallSTRING(), ReferenceGrammarDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(stringConsumer, "name", false, false, getRule().ele000001001LexerRuleCallSTRING(), getRuleCall$14$Delimiter()))
return true;
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele00000101LexerRuleCallID(), ReferenceGrammarDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele00000101LexerRuleCallID(), getRuleCall$15$Delimiter()))
return true;
return false;
}
protected boolean consumeAssignment$16() throws Exception {
- if (consumeTerminal(idConsumer, null, false, false, getRule().ele000010CrossReferenceEStringErwachsener(), ReferenceGrammarDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, null, false, false, getRule().ele000010CrossReferenceEStringErwachsener(), getCrossReference$17$Delimiter()))
return true;
return false;
}
protected boolean consumeAssignment$19() throws Exception {
- if (consumeTerminal(idConsumer, null, false, false, getRule().ele00010CrossReferenceEStringErwachsener(), ReferenceGrammarDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, null, false, false, getRule().ele00010CrossReferenceEStringErwachsener(), getCrossReference$20$Delimiter()))
return true;
return false;
}
protected boolean consumeAssignment$22() throws Exception {
- if (consumeTerminal(idConsumer, null, true, false, getRule().ele0010CrossReferenceEStringKind(), ReferenceGrammarDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, null, true, false, getRule().ele0010CrossReferenceEStringKind(), getCrossReference$23$Delimiter()))
return true;
return false;
}
@@ -129,17 +162,17 @@ public final class ReferenceGrammarFamilieConsumer extends NonTerminalConsumer {
}
protected boolean consumeKeyword$26() throws Exception {
- return consumeKeyword(getRule().ele010KeywordComma(), null, false, false, ReferenceGrammarDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele010KeywordComma(), null, false, false, getKeyword$26$Delimiter());
}
protected boolean consumeAssignment$27() throws Exception {
- if (consumeTerminal(idConsumer, null, true, false, getRule().ele0110CrossReferenceEStringKind(), ReferenceGrammarDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, null, true, false, getRule().ele0110CrossReferenceEStringKind(), getCrossReference$28$Delimiter()))
return true;
return false;
}
protected boolean consumeKeyword$30() throws Exception {
- return consumeKeyword(getRule().ele1KeywordRightParenthesis(), null, false, false, ReferenceGrammarDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele1KeywordRightParenthesis(), null, false, false, getKeyword$30$Delimiter());
}
public FamilieElements getRule() {
@@ -163,4 +196,92 @@ public final class ReferenceGrammarFamilieConsumer extends NonTerminalConsumer {
this.stringConsumer = stringConsumer;
}
+ public ISequenceMatcher getCrossReference$28$Delimiter() {
+ return crossReference$28$Delimiter;
+ }
+
+ public void setCrossReference$28$Delimiter(ISequenceMatcher matcher) {
+ crossReference$28$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$9$Delimiter() {
+ return keyword$9$Delimiter;
+ }
+
+ public void setKeyword$9$Delimiter(ICharacterClass characterClass) {
+ keyword$9$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getCrossReference$23$Delimiter() {
+ return crossReference$23$Delimiter;
+ }
+
+ public void setCrossReference$23$Delimiter(ISequenceMatcher matcher) {
+ crossReference$23$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ISequenceMatcher getRuleCall$15$Delimiter() {
+ return ruleCall$15$Delimiter;
+ }
+
+ public void setRuleCall$15$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$15$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$26$Delimiter() {
+ return keyword$26$Delimiter;
+ }
+
+ public void setKeyword$26$Delimiter(ICharacterClass characterClass) {
+ keyword$26$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getCrossReference$20$Delimiter() {
+ return crossReference$20$Delimiter;
+ }
+
+ public void setCrossReference$20$Delimiter(ISequenceMatcher matcher) {
+ crossReference$20$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$30$Delimiter() {
+ return keyword$30$Delimiter;
+ }
+
+ public void setKeyword$30$Delimiter(ICharacterClass characterClass) {
+ keyword$30$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getCrossReference$17$Delimiter() {
+ return crossReference$17$Delimiter;
+ }
+
+ public void setCrossReference$17$Delimiter(ISequenceMatcher matcher) {
+ crossReference$17$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ISequenceMatcher getRuleCall$14$Delimiter() {
+ return ruleCall$14$Delimiter;
+ }
+
+ public void setRuleCall$14$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$14$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$8$Delimiter() {
+ return keyword$8$Delimiter;
+ }
+
+ public void setKeyword$8$Delimiter(ICharacterClass characterClass) {
+ keyword$8$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$13$Delimiter() {
+ return keyword$13$Delimiter;
+ }
+
+ public void setKeyword$13$Delimiter(ICharacterClass characterClass) {
+ keyword$13$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
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 97962cb..f1062fa 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
@@ -11,22 +11,34 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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 {
+ private ICharacterClass keyword$5$Delimiter;
+
+ private ICharacterClass keyword$6$Delimiter;
+
+ private ICharacterClass keyword$7$Delimiter;
+
+ private ICharacterClass keyword$8$Delimiter;
+
public ReferenceGrammarFarbeConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$5$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$6$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$7$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$8$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -34,13 +46,13 @@ public final class ReferenceGrammarFarbeConsumer extends NonTerminalConsumer {
}
protected boolean consumeAssignment$1() throws Exception {
- if (consumeKeyword(getRule().ele0000KeywordROT(), "wert", false, false, ReferenceGrammarDelimiters.ID_DELIMITER))
+ if (consumeKeyword(getRule().ele0000KeywordROT(), "wert", false, false, getKeyword$5$Delimiter()))
return true;
- if (consumeKeyword(getRule().ele0001KeywordBLAU(), "wert", false, false, ReferenceGrammarDelimiters.ID_DELIMITER))
+ if (consumeKeyword(getRule().ele0001KeywordBLAU(), "wert", false, false, getKeyword$6$Delimiter()))
return true;
- if (consumeKeyword(getRule().ele001KeywordGELB(), "wert", false, false, ReferenceGrammarDelimiters.ID_DELIMITER))
+ if (consumeKeyword(getRule().ele001KeywordGELB(), "wert", false, false, getKeyword$7$Delimiter()))
return true;
- if (consumeKeyword(getRule().ele01KeywordGRÜN(), "wert", false, false, ReferenceGrammarDelimiters.ID_DELIMITER))
+ if (consumeKeyword(getRule().ele01KeywordGRÜN(), "wert", false, false, getKeyword$8$Delimiter()))
return true;
return false;
}
@@ -58,4 +70,36 @@ public final class ReferenceGrammarFarbeConsumer extends NonTerminalConsumer {
return "Farbe";
}
+ public ICharacterClass getKeyword$5$Delimiter() {
+ return keyword$5$Delimiter;
+ }
+
+ public void setKeyword$5$Delimiter(ICharacterClass characterClass) {
+ keyword$5$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$6$Delimiter() {
+ return keyword$6$Delimiter;
+ }
+
+ public void setKeyword$6$Delimiter(ICharacterClass characterClass) {
+ keyword$6$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$7$Delimiter() {
+ return keyword$7$Delimiter;
+ }
+
+ public void setKeyword$7$Delimiter(ICharacterClass characterClass) {
+ keyword$7$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$8$Delimiter() {
+ return keyword$8$Delimiter;
+ }
+
+ public void setKeyword$8$Delimiter(ICharacterClass characterClass) {
+ keyword$8$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
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 642221b..358a6d1 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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;
@@ -27,10 +27,25 @@ public final class ReferenceGrammarKindConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
private XtextBuiltinINTConsumer intConsumer;
+ private ISequenceMatcher ruleCall$8$Delimiter;
+
+ private ICharacterClass keyword$5$Delimiter;
+
+ private ICharacterClass keyword$11$Delimiter;
+
+ private ICharacterClass keyword$6$Delimiter;
+
+ private ISequenceMatcher ruleCall$10$Delimiter;
+
public ReferenceGrammarKindConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$8$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$5$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$11$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$6$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$10$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -63,27 +78,27 @@ public final class ReferenceGrammarKindConsumer extends NonTerminalConsumer {
}
protected boolean consumeKeyword$5() throws Exception {
- return consumeKeyword(getRule().ele0000KeywordKind(), null, false, false, ReferenceGrammarDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele0000KeywordKind(), null, false, false, getKeyword$5$Delimiter());
}
protected boolean consumeKeyword$6() throws Exception {
- return consumeKeyword(getRule().ele0001KeywordLeftParenthesis(), null, false, false, ReferenceGrammarDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele0001KeywordLeftParenthesis(), null, false, false, getKeyword$6$Delimiter());
}
protected boolean consumeAssignment$7() throws Exception {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID(), ReferenceGrammarDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID(), getRuleCall$8$Delimiter()))
return true;
return false;
}
protected boolean consumeAssignment$9() throws Exception {
- if (consumeTerminal(intConsumer, "age", false, false, getRule().ele010LexerRuleCallINT(), ReferenceGrammarDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(intConsumer, "age", false, false, getRule().ele010LexerRuleCallINT(), getRuleCall$10$Delimiter()))
return true;
return false;
}
protected boolean consumeKeyword$11() throws Exception {
- return consumeKeyword(getRule().ele1KeywordRightParenthesis(), null, false, false, ReferenceGrammarDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele1KeywordRightParenthesis(), null, false, false, getKeyword$11$Delimiter());
}
public KindElements getRule() {
@@ -107,4 +122,44 @@ public final class ReferenceGrammarKindConsumer extends NonTerminalConsumer {
this.intConsumer = intConsumer;
}
+ public ISequenceMatcher getRuleCall$8$Delimiter() {
+ return ruleCall$8$Delimiter;
+ }
+
+ public void setRuleCall$8$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$8$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$5$Delimiter() {
+ return keyword$5$Delimiter;
+ }
+
+ public void setKeyword$5$Delimiter(ICharacterClass characterClass) {
+ keyword$5$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$11$Delimiter() {
+ return keyword$11$Delimiter;
+ }
+
+ public void setKeyword$11$Delimiter(ICharacterClass characterClass) {
+ keyword$11$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$6$Delimiter() {
+ return keyword$6$Delimiter;
+ }
+
+ public void setKeyword$6$Delimiter(ICharacterClass characterClass) {
+ keyword$6$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$10$Delimiter() {
+ return ruleCall$10$Delimiter;
+ }
+
+ public void setRuleCall$10$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$10$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
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 52adcf5..c18dc01 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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;
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 10973d9..80d2679 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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;
@@ -37,10 +37,25 @@ public final class ReferenceGrammarSpielplatzConsumer extends NonTerminalConsume
private ReferenceGrammarKindConsumer kindConsumer;
private ReferenceGrammarCustomTypeParserRuleConsumer customTypeParserRuleConsumer;
+ private ICharacterClass keyword$11$Delimiter;
+
+ private ISequenceMatcher ruleCall$10$Delimiter;
+
+ private ICharacterClass keyword$26$Delimiter;
+
+ private ICharacterClass keyword$6$Delimiter;
+
+ private ISequenceMatcher ruleCall$8$Delimiter;
+
public ReferenceGrammarSpielplatzConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$11$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$10$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$26$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$6$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$8$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -82,11 +97,11 @@ public final class ReferenceGrammarSpielplatzConsumer extends NonTerminalConsume
}
protected boolean consumeKeyword$6() throws Exception {
- return consumeKeyword(getRule().ele00000KeywordSpielplatz(), null, false, false, ReferenceGrammarDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele00000KeywordSpielplatz(), null, false, false, getKeyword$6$Delimiter());
}
protected boolean consumeAssignment$7() throws Exception {
- if (consumeTerminal(intConsumer, "groesse", false, false, getRule().ele000010LexerRuleCallINT(), ReferenceGrammarDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(intConsumer, "groesse", false, false, getRule().ele000010LexerRuleCallINT(), getRuleCall$8$Delimiter()))
return true;
return false;
}
@@ -97,13 +112,13 @@ public final class ReferenceGrammarSpielplatzConsumer extends NonTerminalConsume
}
protected boolean doConsumeAssignment$9() throws Exception {
- if (consumeTerminal(stringConsumer, "beschreibung", false, false, getRule().ele00010LexerRuleCallSTRING(), ReferenceGrammarDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(stringConsumer, "beschreibung", false, false, getRule().ele00010LexerRuleCallSTRING(), getRuleCall$10$Delimiter()))
return true;
return false;
}
protected boolean consumeKeyword$11() throws Exception {
- return consumeKeyword(getRule().ele001KeywordLeftCurlyBracket(), null, false, false, ReferenceGrammarDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele001KeywordLeftCurlyBracket(), null, false, false, getKeyword$11$Delimiter());
}
protected boolean consumeAlternatives$12() throws Exception {
@@ -156,7 +171,7 @@ public final class ReferenceGrammarSpielplatzConsumer extends NonTerminalConsume
}
protected boolean consumeKeyword$26() throws Exception {
- return consumeKeyword(getRule().ele1KeywordRightCurlyBracket(), null, false, false, ReferenceGrammarDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele1KeywordRightCurlyBracket(), null, false, false, getKeyword$26$Delimiter());
}
public SpielplatzElements getRule() {
@@ -200,4 +215,44 @@ public final class ReferenceGrammarSpielplatzConsumer extends NonTerminalConsume
this.customTypeParserRuleConsumer = customTypeParserRuleConsumer;
}
+ public ICharacterClass getKeyword$11$Delimiter() {
+ return keyword$11$Delimiter;
+ }
+
+ public void setKeyword$11$Delimiter(ICharacterClass characterClass) {
+ keyword$11$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$10$Delimiter() {
+ return ruleCall$10$Delimiter;
+ }
+
+ public void setRuleCall$10$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$10$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$26$Delimiter() {
+ return keyword$26$Delimiter;
+ }
+
+ public void setKeyword$26$Delimiter(ICharacterClass characterClass) {
+ keyword$26$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$6$Delimiter() {
+ return keyword$6$Delimiter;
+ }
+
+ public void setKeyword$6$Delimiter(ICharacterClass characterClass) {
+ keyword$6$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$8$Delimiter() {
+ return ruleCall$8$Delimiter;
+ }
+
+ public void setRuleCall$8$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$8$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
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 b0af47d..7fdb5ad 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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;
@@ -27,10 +27,22 @@ public final class ReferenceGrammarSpielzeugConsumer extends NonTerminalConsumer
private XtextBuiltinIDConsumer idConsumer;
private ReferenceGrammarFarbeConsumer farbeConsumer;
+ private ICharacterClass keyword$5$Delimiter;
+
+ private ISequenceMatcher ruleCall$8$Delimiter;
+
+ private ICharacterClass keyword$6$Delimiter;
+
+ private ICharacterClass keyword$11$Delimiter;
+
public ReferenceGrammarSpielzeugConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$5$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$8$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$6$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$11$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -63,15 +75,15 @@ public final class ReferenceGrammarSpielzeugConsumer extends NonTerminalConsumer
}
protected boolean consumeKeyword$5() throws Exception {
- return consumeKeyword(getRule().ele0000KeywordSpielzeug(), null, false, false, ReferenceGrammarDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele0000KeywordSpielzeug(), null, false, false, getKeyword$5$Delimiter());
}
protected boolean consumeKeyword$6() throws Exception {
- return consumeKeyword(getRule().ele0001KeywordLeftParenthesis(), null, false, false, ReferenceGrammarDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele0001KeywordLeftParenthesis(), null, false, false, getKeyword$6$Delimiter());
}
protected boolean consumeAssignment$7() throws Exception {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID(), ReferenceGrammarDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID(), getRuleCall$8$Delimiter()))
return true;
return false;
}
@@ -83,7 +95,7 @@ public final class ReferenceGrammarSpielzeugConsumer extends NonTerminalConsumer
}
protected boolean consumeKeyword$11() throws Exception {
- return consumeKeyword(getRule().ele1KeywordRightParenthesis(), null, false, false, ReferenceGrammarDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele1KeywordRightParenthesis(), null, false, false, getKeyword$11$Delimiter());
}
public SpielzeugElements getRule() {
@@ -107,4 +119,36 @@ public final class ReferenceGrammarSpielzeugConsumer extends NonTerminalConsumer
this.farbeConsumer = farbeConsumer;
}
+ public ICharacterClass getKeyword$5$Delimiter() {
+ return keyword$5$Delimiter;
+ }
+
+ public void setKeyword$5$Delimiter(ICharacterClass characterClass) {
+ keyword$5$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$8$Delimiter() {
+ return ruleCall$8$Delimiter;
+ }
+
+ public void setRuleCall$8$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$8$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$6$Delimiter() {
+ return keyword$6$Delimiter;
+ }
+
+ public void setKeyword$6$Delimiter(ICharacterClass characterClass) {
+ keyword$6$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$11$Delimiter() {
+ return keyword$11$Delimiter;
+ }
+
+ public void setKeyword$11$Delimiter(ICharacterClass characterClass) {
+ keyword$11$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
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 4c5a16a..dbacd43 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 18:45:31
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/example/parser/antlr/internal/InternalFowlerDsl.g 2009-01-14 16:50:18
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 8f67a41..d1f34ef 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 18:45:31
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/example/parser/antlr/internal/InternalFowlerDsl.g 2009-01-14 16:50:18
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
index d9fdcf4..9665ff2 100644
--- 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
@@ -8,14 +8,18 @@ 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 final class FowlerDslDelimiters {
-public class FowlerDslDelimiters {
-
- public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+ private FowlerDslDelimiters() {
+ throw new UnsupportedOperationException("Utility classes may not be initialized");
+ }
- public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+ // TODO do not use IDConsumer internals
+ public static ICharacterClass keyword$9$Delimiter = XtextBuiltinIDConsumer.IDConsumer$$2;
+
+ public static ISequenceMatcher ruleCall$26$Delimiter = new SetBasedKeywordMatcher(
+ "events", "end", "commands", "resetting", "state", "actions");
+
+ public static ICharacterClass keyword$49$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 5753b46..8b530ca 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
@@ -86,12 +86,38 @@ public class FowlerDslParserConfiguration extends AbstractParserConfiguration {
getTransitionConsumer().setIdConsumer(getIdConsumer());
+ getStatemachineConsumer().setKeyword$14$Delimiter(FowlerDslDelimiters.keyword$9$Delimiter);
+ getStatemachineConsumer().setKeyword$7$Delimiter(FowlerDslDelimiters.keyword$9$Delimiter);
+ getStatemachineConsumer().setKeyword$11$Delimiter(FowlerDslDelimiters.keyword$9$Delimiter);
+ getStatemachineConsumer().setKeyword$10$Delimiter(FowlerDslDelimiters.keyword$9$Delimiter);
+ getEventConsumer().setKeyword$4$Delimiter(FowlerDslDelimiters.keyword$9$Delimiter);
+ getEventConsumer().setRuleCall$6$Delimiter(FowlerDslDelimiters.ruleCall$26$Delimiter);
+ getEventConsumer().setRuleCall$8$Delimiter(FowlerDslDelimiters.ruleCall$26$Delimiter);
+ getCommandConsumer().setRuleCall$3$Delimiter(FowlerDslDelimiters.ruleCall$26$Delimiter);
+ getCommandConsumer().setRuleCall$5$Delimiter(FowlerDslDelimiters.ruleCall$26$Delimiter);
+ getStateConsumer().setRuleCall$7$Delimiter(FowlerDslDelimiters.ruleCall$26$Delimiter);
+ getStateConsumer().setCrossReference$14$Delimiter(FowlerDslDelimiters.ruleCall$26$Delimiter);
+ getStateConsumer().setKeyword$11$Delimiter(FowlerDslDelimiters.keyword$9$Delimiter);
+ getStateConsumer().setKeyword$12$Delimiter(FowlerDslDelimiters.keyword$49$Delimiter);
+ getStateConsumer().setKeyword$5$Delimiter(FowlerDslDelimiters.keyword$9$Delimiter);
+ getStateConsumer().setKeyword$19$Delimiter(FowlerDslDelimiters.keyword$9$Delimiter);
+ getStateConsumer().setKeyword$16$Delimiter(FowlerDslDelimiters.keyword$49$Delimiter);
+ getTransitionConsumer().setCrossReference$8$Delimiter(FowlerDslDelimiters.ruleCall$26$Delimiter);
+ getTransitionConsumer().setKeyword$6$Delimiter(FowlerDslDelimiters.keyword$49$Delimiter);
+ getTransitionConsumer().setCrossReference$4$Delimiter(FowlerDslDelimiters.ruleCall$26$Delimiter);
+ // TODO remove workaround
getIdConsumer().initFields(this);
+ // TODO remove workaround
getIntConsumer().initFields(this);
+ // TODO remove workaround
getStringConsumer().initFields(this);
+ // TODO remove workaround
getMlCommentConsumer().initFields(this);
+ // TODO remove workaround
getSlCommentConsumer().initFields(this);
+ // TODO remove workaround
getWsConsumer().initFields(this);
+ // TODO remove workaround
getAnyOtherConsumer().initFields(this);
}
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 826904a..cdd37b0 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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")
@@ -25,10 +25,16 @@ public final class FowlerDslCommandConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
+ private ISequenceMatcher ruleCall$3$Delimiter;
+
+ private ISequenceMatcher ruleCall$5$Delimiter;
+
public FowlerDslCommandConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$3$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ ruleCall$5$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -49,13 +55,13 @@ public final class FowlerDslCommandConsumer extends NonTerminalConsumer {
}
protected boolean consumeAssignment$2() throws Exception {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele00LexerRuleCallID(), FowlerDslDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele00LexerRuleCallID(), getRuleCall$3$Delimiter()))
return true;
return false;
}
protected boolean consumeAssignment$4() throws Exception {
- if (consumeTerminal(idConsumer, "code", false, false, getRule().ele10LexerRuleCallID(), FowlerDslDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "code", false, false, getRule().ele10LexerRuleCallID(), getRuleCall$5$Delimiter()))
return true;
return false;
}
@@ -77,4 +83,20 @@ public final class FowlerDslCommandConsumer extends NonTerminalConsumer {
this.idConsumer = idConsumer;
}
+ public ISequenceMatcher getRuleCall$3$Delimiter() {
+ return ruleCall$3$Delimiter;
+ }
+
+ public void setRuleCall$3$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$3$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ISequenceMatcher getRuleCall$5$Delimiter() {
+ return ruleCall$5$Delimiter;
+ }
+
+ public void setRuleCall$5$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$5$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
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 23fb232..9f9e010 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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")
@@ -25,10 +25,19 @@ public final class FowlerDslEventConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
+ private ICharacterClass keyword$4$Delimiter;
+
+ private ISequenceMatcher ruleCall$6$Delimiter;
+
+ private ISequenceMatcher ruleCall$8$Delimiter;
+
public FowlerDslEventConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$4$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$6$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ ruleCall$8$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -58,19 +67,19 @@ public final class FowlerDslEventConsumer extends NonTerminalConsumer {
}
protected boolean doConsumeAssignment$3() throws Exception {
- if (consumeKeyword(getRule().ele000KeywordResetting(), "resetting", false, true, FowlerDslDelimiters.ID_DELIMITER))
+ if (consumeKeyword(getRule().ele000KeywordResetting(), "resetting", false, true, getKeyword$4$Delimiter()))
return true;
return false;
}
protected boolean consumeAssignment$5() throws Exception {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele010LexerRuleCallID(), FowlerDslDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele010LexerRuleCallID(), getRuleCall$6$Delimiter()))
return true;
return false;
}
protected boolean consumeAssignment$7() throws Exception {
- if (consumeTerminal(idConsumer, "code", false, false, getRule().ele10LexerRuleCallID(), FowlerDslDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "code", false, false, getRule().ele10LexerRuleCallID(), getRuleCall$8$Delimiter()))
return true;
return false;
}
@@ -92,4 +101,28 @@ public final class FowlerDslEventConsumer extends NonTerminalConsumer {
this.idConsumer = idConsumer;
}
+ public ICharacterClass getKeyword$4$Delimiter() {
+ return keyword$4$Delimiter;
+ }
+
+ public void setKeyword$4$Delimiter(ICharacterClass characterClass) {
+ keyword$4$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$6$Delimiter() {
+ return ruleCall$6$Delimiter;
+ }
+
+ public void setRuleCall$6$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$6$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ISequenceMatcher getRuleCall$8$Delimiter() {
+ return ruleCall$8$Delimiter;
+ }
+
+ public void setRuleCall$8$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$8$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
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 54b6c91..bd85556 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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;
@@ -27,10 +27,31 @@ public final class FowlerDslStateConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
private FowlerDslTransitionConsumer transitionConsumer;
+ private ISequenceMatcher ruleCall$7$Delimiter;
+
+ private ISequenceMatcher crossReference$14$Delimiter;
+
+ private ICharacterClass keyword$11$Delimiter;
+
+ private ICharacterClass keyword$12$Delimiter;
+
+ private ICharacterClass keyword$5$Delimiter;
+
+ private ICharacterClass keyword$19$Delimiter;
+
+ private ICharacterClass keyword$16$Delimiter;
+
public FowlerDslStateConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$7$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ crossReference$14$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$11$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$12$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$5$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$19$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$16$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -63,11 +84,11 @@ public final class FowlerDslStateConsumer extends NonTerminalConsumer {
}
protected boolean consumeKeyword$5() throws Exception {
- return consumeKeyword(getRule().ele0000KeywordState(), null, false, false, FowlerDslDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele0000KeywordState(), null, false, false, getKeyword$5$Delimiter());
}
protected boolean consumeAssignment$6() throws Exception {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele00010LexerRuleCallID(), FowlerDslDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele00010LexerRuleCallID(), getRuleCall$7$Delimiter()))
return true;
return false;
}
@@ -99,11 +120,11 @@ public final class FowlerDslStateConsumer extends NonTerminalConsumer {
}
protected boolean consumeKeyword$11() throws Exception {
- return consumeKeyword(getRule().ele001000KeywordActions(), null, false, false, FowlerDslDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele001000KeywordActions(), null, false, false, getKeyword$11$Delimiter());
}
protected boolean consumeKeyword$12() throws Exception {
- return consumeKeyword(getRule().ele001001KeywordLeftCurlyBracket(), null, false, false, FowlerDslDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele001001KeywordLeftCurlyBracket(), null, false, false, getKeyword$12$Delimiter());
}
protected boolean consumeAssignment$13() throws Exception {
@@ -115,13 +136,13 @@ public final class FowlerDslStateConsumer extends NonTerminalConsumer {
}
protected boolean doConsumeAssignment$13() throws Exception {
- if (consumeTerminal(idConsumer, null, true, false, getRule().ele001010CrossReferenceEStringCommand(), FowlerDslDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, null, true, false, getRule().ele001010CrossReferenceEStringCommand(), getCrossReference$14$Delimiter()))
return true;
return false;
}
protected boolean consumeKeyword$16() throws Exception {
- return consumeKeyword(getRule().ele0011KeywordRightCurlyBracket(), null, false, false, FowlerDslDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele0011KeywordRightCurlyBracket(), null, false, false, getKeyword$16$Delimiter());
}
protected boolean consumeAssignment$17() throws Exception {
@@ -136,7 +157,7 @@ public final class FowlerDslStateConsumer extends NonTerminalConsumer {
}
protected boolean consumeKeyword$19() throws Exception {
- return consumeKeyword(getRule().ele1KeywordEnd(), null, false, false, FowlerDslDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele1KeywordEnd(), null, false, false, getKeyword$19$Delimiter());
}
public StateElements getRule() {
@@ -160,4 +181,60 @@ public final class FowlerDslStateConsumer extends NonTerminalConsumer {
this.transitionConsumer = transitionConsumer;
}
+ public ISequenceMatcher getRuleCall$7$Delimiter() {
+ return ruleCall$7$Delimiter;
+ }
+
+ public void setRuleCall$7$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$7$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ISequenceMatcher getCrossReference$14$Delimiter() {
+ return crossReference$14$Delimiter;
+ }
+
+ public void setCrossReference$14$Delimiter(ISequenceMatcher matcher) {
+ crossReference$14$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$11$Delimiter() {
+ return keyword$11$Delimiter;
+ }
+
+ public void setKeyword$11$Delimiter(ICharacterClass characterClass) {
+ keyword$11$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$12$Delimiter() {
+ return keyword$12$Delimiter;
+ }
+
+ public void setKeyword$12$Delimiter(ICharacterClass characterClass) {
+ keyword$12$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$5$Delimiter() {
+ return keyword$5$Delimiter;
+ }
+
+ public void setKeyword$5$Delimiter(ICharacterClass characterClass) {
+ keyword$5$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$19$Delimiter() {
+ return keyword$19$Delimiter;
+ }
+
+ public void setKeyword$19$Delimiter(ICharacterClass characterClass) {
+ keyword$19$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$16$Delimiter() {
+ return keyword$16$Delimiter;
+ }
+
+ public void setKeyword$16$Delimiter(ICharacterClass characterClass) {
+ keyword$16$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
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 5a75ca9..fcf92cc 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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;
@@ -29,10 +29,22 @@ public final class FowlerDslStatemachineConsumer extends NonTerminalConsumer {
private FowlerDslEventConsumer eventConsumer;
private FowlerDslCommandConsumer commandConsumer;
+ private ICharacterClass keyword$14$Delimiter;
+
+ private ICharacterClass keyword$7$Delimiter;
+
+ private ICharacterClass keyword$11$Delimiter;
+
+ private ICharacterClass keyword$10$Delimiter;
+
public FowlerDslStatemachineConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$14$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$7$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$11$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$10$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -73,7 +85,7 @@ public final class FowlerDslStatemachineConsumer extends NonTerminalConsumer {
}
protected boolean consumeKeyword$7() throws Exception {
- return consumeKeyword(getRule().ele000000KeywordEvents(), null, false, false, FowlerDslDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele000000KeywordEvents(), null, false, false, getKeyword$7$Delimiter());
}
protected boolean consumeAssignment$8() throws Exception {
@@ -88,11 +100,11 @@ public final class FowlerDslStatemachineConsumer extends NonTerminalConsumer {
}
protected boolean consumeKeyword$10() throws Exception {
- return consumeKeyword(getRule().ele00001KeywordEnd(), null, false, false, FowlerDslDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele00001KeywordEnd(), null, false, false, getKeyword$10$Delimiter());
}
protected boolean consumeKeyword$11() throws Exception {
- return consumeKeyword(getRule().ele0001KeywordCommands(), null, false, false, FowlerDslDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele0001KeywordCommands(), null, false, false, getKeyword$11$Delimiter());
}
protected boolean consumeAssignment$12() throws Exception {
@@ -107,7 +119,7 @@ public final class FowlerDslStatemachineConsumer extends NonTerminalConsumer {
}
protected boolean consumeKeyword$14() throws Exception {
- return consumeKeyword(getRule().ele01KeywordEnd(), null, false, false, FowlerDslDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele01KeywordEnd(), null, false, false, getKeyword$14$Delimiter());
}
protected boolean consumeAssignment$15() throws Exception {
@@ -146,4 +158,36 @@ public final class FowlerDslStatemachineConsumer extends NonTerminalConsumer {
this.commandConsumer = commandConsumer;
}
+ public ICharacterClass getKeyword$14$Delimiter() {
+ return keyword$14$Delimiter;
+ }
+
+ public void setKeyword$14$Delimiter(ICharacterClass characterClass) {
+ keyword$14$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$7$Delimiter() {
+ return keyword$7$Delimiter;
+ }
+
+ public void setKeyword$7$Delimiter(ICharacterClass characterClass) {
+ keyword$7$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$11$Delimiter() {
+ return keyword$11$Delimiter;
+ }
+
+ public void setKeyword$11$Delimiter(ICharacterClass characterClass) {
+ keyword$11$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$10$Delimiter() {
+ return keyword$10$Delimiter;
+ }
+
+ public void setKeyword$10$Delimiter(ICharacterClass characterClass) {
+ keyword$10$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
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 233f335..982da6c 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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")
@@ -25,10 +25,19 @@ public final class FowlerDslTransitionConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
+ private ISequenceMatcher crossReference$8$Delimiter;
+
+ private ICharacterClass keyword$6$Delimiter;
+
+ private ISequenceMatcher crossReference$4$Delimiter;
+
public FowlerDslTransitionConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ crossReference$8$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$6$Delimiter = ICharacterClass.Factory.nullClass();
+ crossReference$4$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -53,17 +62,17 @@ public final class FowlerDslTransitionConsumer extends NonTerminalConsumer {
}
protected boolean consumeAssignment$3() throws Exception {
- if (consumeTerminal(idConsumer, null, false, false, getRule().ele000CrossReferenceEStringEvent(), FowlerDslDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, null, false, false, getRule().ele000CrossReferenceEStringEvent(), getCrossReference$4$Delimiter()))
return true;
return false;
}
protected boolean consumeKeyword$6() throws Exception {
- return consumeKeyword(getRule().ele01KeywordEqualsSignGreaterThanSign(), null, false, false, FowlerDslDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele01KeywordEqualsSignGreaterThanSign(), null, false, false, getKeyword$6$Delimiter());
}
protected boolean consumeAssignment$7() throws Exception {
- if (consumeTerminal(idConsumer, null, false, false, getRule().ele10CrossReferenceEStringState(), FowlerDslDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, null, false, false, getRule().ele10CrossReferenceEStringState(), getCrossReference$8$Delimiter()))
return true;
return false;
}
@@ -85,4 +94,28 @@ public final class FowlerDslTransitionConsumer extends NonTerminalConsumer {
this.idConsumer = idConsumer;
}
+ public ISequenceMatcher getCrossReference$8$Delimiter() {
+ return crossReference$8$Delimiter;
+ }
+
+ public void setCrossReference$8$Delimiter(ISequenceMatcher matcher) {
+ crossReference$8$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$6$Delimiter() {
+ return keyword$6$Delimiter;
+ }
+
+ public void setKeyword$6$Delimiter(ICharacterClass characterClass) {
+ keyword$6$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getCrossReference$4$Delimiter() {
+ return crossReference$4$Delimiter;
+ }
+
+ public void setCrossReference$4$Delimiter(ISequenceMatcher matcher) {
+ crossReference$4$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
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 1596887..e4b603e 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-14 11:49:04
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalImportUriTestLanguage.g 2009-01-14 17:06:14
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 2674de3..2793fb8 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-14 11:49:04
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalImportUriTestLanguage.g 2009-01-14 17:06:14
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 391d84a..d7e3454 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-14 11:48:46
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalLangATestLanguage.g 2009-01-14 17:05:58
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 622b860..1a7c657 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-14 11:48:45
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/crossrefs/parser/antlr/internal/InternalLangATestLanguage.g 2009-01-14 17:05:57
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
index 03d178f..c94c77a 100644
--- 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
@@ -8,14 +8,18 @@ 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 final class ImportUriTestLanguageDelimiters {
-public class ImportUriTestLanguageDelimiters {
-
- public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+ private ImportUriTestLanguageDelimiters() {
+ throw new UnsupportedOperationException("Utility classes may not be initialized");
+ }
- public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+ public static ISequenceMatcher ruleCall$13$Delimiter = ISequenceMatcher.Factory.nullMatcher();
- public static ISequenceMatcher ALL_KEYWORDS = new SetBasedKeywordMatcher(ImportUriTestLanguageGrammarAccess.INSTANCE.getGrammar());
-
+ // TODO do not use IDConsumer internals
+ public static ICharacterClass keyword$11$Delimiter = XtextBuiltinIDConsumer.IDConsumer$$2;
+
+ public static ISequenceMatcher ruleCall$21$Delimiter = new SetBasedKeywordMatcher(
+ "import", "type", "extends");
+
}
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 a1ba24e..e3457d2 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
@@ -70,12 +70,25 @@ public class ImportUriTestLanguageParserConfiguration extends AbstractParserConf
getTypeConsumer().setIdConsumer(getIdConsumer());
+ getImportConsumer().setRuleCall$4$Delimiter(ImportUriTestLanguageDelimiters.ruleCall$13$Delimiter);
+ getImportConsumer().setKeyword$2$Delimiter(ImportUriTestLanguageDelimiters.keyword$11$Delimiter);
+ getTypeConsumer().setKeyword$7$Delimiter(ImportUriTestLanguageDelimiters.keyword$11$Delimiter);
+ getTypeConsumer().setCrossReference$9$Delimiter(ImportUriTestLanguageDelimiters.ruleCall$21$Delimiter);
+ getTypeConsumer().setKeyword$4$Delimiter(ImportUriTestLanguageDelimiters.keyword$11$Delimiter);
+ getTypeConsumer().setRuleCall$6$Delimiter(ImportUriTestLanguageDelimiters.ruleCall$21$Delimiter);
+ // TODO remove workaround
getIdConsumer().initFields(this);
+ // TODO remove workaround
getIntConsumer().initFields(this);
+ // TODO remove workaround
getStringConsumer().initFields(this);
+ // TODO remove workaround
getMlCommentConsumer().initFields(this);
+ // TODO remove workaround
getSlCommentConsumer().initFields(this);
+ // TODO remove workaround
getWsConsumer().initFields(this);
+ // TODO remove workaround
getAnyOtherConsumer().initFields(this);
}
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
index 0bf808a..e148030 100644
--- 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
@@ -8,14 +8,18 @@ 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 final class LangATestLanguageDelimiters {
-public class LangATestLanguageDelimiters {
-
- public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+ private LangATestLanguageDelimiters() {
+ throw new UnsupportedOperationException("Utility classes may not be initialized");
+ }
- public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+ // TODO do not use IDConsumer internals
+ public static ICharacterClass keyword$11$Delimiter = XtextBuiltinIDConsumer.IDConsumer$$2;
- public static ISequenceMatcher ALL_KEYWORDS = new SetBasedKeywordMatcher(LangATestLanguageGrammarAccess.INSTANCE.getGrammar());
-
+ public static ISequenceMatcher ruleCall$13$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+
+ public static ISequenceMatcher ruleCall$21$Delimiter = new SetBasedKeywordMatcher(
+ "import", "type", "extends");
+
}
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 d1a8fbf..1790ab2 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
@@ -70,12 +70,25 @@ public class LangATestLanguageParserConfiguration extends AbstractParserConfigur
getTypeConsumer().setIdConsumer(getIdConsumer());
+ getImportConsumer().setKeyword$2$Delimiter(LangATestLanguageDelimiters.keyword$11$Delimiter);
+ getImportConsumer().setRuleCall$4$Delimiter(LangATestLanguageDelimiters.ruleCall$13$Delimiter);
+ getTypeConsumer().setKeyword$4$Delimiter(LangATestLanguageDelimiters.keyword$11$Delimiter);
+ getTypeConsumer().setKeyword$7$Delimiter(LangATestLanguageDelimiters.keyword$11$Delimiter);
+ getTypeConsumer().setRuleCall$6$Delimiter(LangATestLanguageDelimiters.ruleCall$21$Delimiter);
+ getTypeConsumer().setCrossReference$9$Delimiter(LangATestLanguageDelimiters.ruleCall$21$Delimiter);
+ // TODO remove workaround
getIdConsumer().initFields(this);
+ // TODO remove workaround
getIntConsumer().initFields(this);
+ // TODO remove workaround
getStringConsumer().initFields(this);
+ // TODO remove workaround
getMlCommentConsumer().initFields(this);
+ // TODO remove workaround
getSlCommentConsumer().initFields(this);
+ // TODO remove workaround
getWsConsumer().initFields(this);
+ // TODO remove workaround
getAnyOtherConsumer().initFields(this);
}
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 b4673cf..6efcd0e 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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")
@@ -25,10 +25,16 @@ public final class ImportUriTestLanguageImportConsumer extends NonTerminalConsum
private XtextBuiltinSTRINGConsumer stringConsumer;
+ private ISequenceMatcher ruleCall$4$Delimiter;
+
+ private ICharacterClass keyword$2$Delimiter;
+
public ImportUriTestLanguageImportConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$4$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$2$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -49,11 +55,11 @@ public final class ImportUriTestLanguageImportConsumer extends NonTerminalConsum
}
protected boolean consumeKeyword$2() throws Exception {
- return consumeKeyword(getRule().ele0KeywordImport(), null, false, false, ImportUriTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele0KeywordImport(), null, false, false, getKeyword$2$Delimiter());
}
protected boolean consumeAssignment$3() throws Exception {
- if (consumeTerminal(stringConsumer, "importURI", false, false, getRule().ele10LexerRuleCallSTRING(), ImportUriTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(stringConsumer, "importURI", false, false, getRule().ele10LexerRuleCallSTRING(), getRuleCall$4$Delimiter()))
return true;
return false;
}
@@ -75,4 +81,20 @@ public final class ImportUriTestLanguageImportConsumer extends NonTerminalConsum
this.stringConsumer = stringConsumer;
}
+ public ISequenceMatcher getRuleCall$4$Delimiter() {
+ return ruleCall$4$Delimiter;
+ }
+
+ public void setRuleCall$4$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$4$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$2$Delimiter() {
+ return keyword$2$Delimiter;
+ }
+
+ public void setKeyword$2$Delimiter(ICharacterClass characterClass) {
+ keyword$2$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
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 75b82d8..5fe60c9 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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.ImportUriTestLanguageImportConsumer;
import org.eclipse.xtext.crossrefs.parser.packrat.consumers.ImportUriTestLanguageTypeConsumer;
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 a580ca0..15801ab 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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")
@@ -25,10 +25,22 @@ public final class ImportUriTestLanguageTypeConsumer extends NonTerminalConsumer
private XtextBuiltinIDConsumer idConsumer;
+ private ICharacterClass keyword$7$Delimiter;
+
+ private ISequenceMatcher crossReference$9$Delimiter;
+
+ private ICharacterClass keyword$4$Delimiter;
+
+ private ISequenceMatcher ruleCall$6$Delimiter;
+
public ImportUriTestLanguageTypeConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$7$Delimiter = ICharacterClass.Factory.nullClass();
+ crossReference$9$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$4$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$6$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -57,21 +69,21 @@ public final class ImportUriTestLanguageTypeConsumer extends NonTerminalConsumer
}
protected boolean consumeKeyword$4() throws Exception {
- return consumeKeyword(getRule().ele000KeywordType(), null, false, false, ImportUriTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele000KeywordType(), null, false, false, getKeyword$4$Delimiter());
}
protected boolean consumeAssignment$5() throws Exception {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID(), ImportUriTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID(), getRuleCall$6$Delimiter()))
return true;
return false;
}
protected boolean consumeKeyword$7() throws Exception {
- return consumeKeyword(getRule().ele01KeywordExtends(), null, false, false, ImportUriTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele01KeywordExtends(), null, false, false, getKeyword$7$Delimiter());
}
protected boolean consumeAssignment$8() throws Exception {
- if (consumeTerminal(idConsumer, null, false, false, getRule().ele10CrossReferenceEStringType(), ImportUriTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, null, false, false, getRule().ele10CrossReferenceEStringType(), getCrossReference$9$Delimiter()))
return true;
return false;
}
@@ -93,4 +105,36 @@ public final class ImportUriTestLanguageTypeConsumer extends NonTerminalConsumer
this.idConsumer = idConsumer;
}
+ public ICharacterClass getKeyword$7$Delimiter() {
+ return keyword$7$Delimiter;
+ }
+
+ public void setKeyword$7$Delimiter(ICharacterClass characterClass) {
+ keyword$7$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getCrossReference$9$Delimiter() {
+ return crossReference$9$Delimiter;
+ }
+
+ public void setCrossReference$9$Delimiter(ISequenceMatcher matcher) {
+ crossReference$9$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$4$Delimiter() {
+ return keyword$4$Delimiter;
+ }
+
+ public void setKeyword$4$Delimiter(ICharacterClass characterClass) {
+ keyword$4$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$6$Delimiter() {
+ return ruleCall$6$Delimiter;
+ }
+
+ public void setRuleCall$6$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$6$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
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 e8b7965..86d5c1c 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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")
@@ -25,10 +25,16 @@ public final class LangATestLanguageImportConsumer extends NonTerminalConsumer {
private XtextBuiltinSTRINGConsumer stringConsumer;
+ private ICharacterClass keyword$2$Delimiter;
+
+ private ISequenceMatcher ruleCall$4$Delimiter;
+
public LangATestLanguageImportConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$2$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$4$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -49,11 +55,11 @@ public final class LangATestLanguageImportConsumer extends NonTerminalConsumer {
}
protected boolean consumeKeyword$2() throws Exception {
- return consumeKeyword(getRule().ele0KeywordImport(), null, false, false, LangATestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele0KeywordImport(), null, false, false, getKeyword$2$Delimiter());
}
protected boolean consumeAssignment$3() throws Exception {
- if (consumeTerminal(stringConsumer, "uri", false, false, getRule().ele10LexerRuleCallSTRING(), LangATestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(stringConsumer, "uri", false, false, getRule().ele10LexerRuleCallSTRING(), getRuleCall$4$Delimiter()))
return true;
return false;
}
@@ -75,4 +81,20 @@ public final class LangATestLanguageImportConsumer extends NonTerminalConsumer {
this.stringConsumer = stringConsumer;
}
+ public ICharacterClass getKeyword$2$Delimiter() {
+ return keyword$2$Delimiter;
+ }
+
+ public void setKeyword$2$Delimiter(ICharacterClass characterClass) {
+ keyword$2$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$4$Delimiter() {
+ return ruleCall$4$Delimiter;
+ }
+
+ public void setRuleCall$4$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$4$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
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 1d9d730..4e3a7f7 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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.LangATestLanguageImportConsumer;
import org.eclipse.xtext.crossrefs.parser.packrat.consumers.LangATestLanguageTypeConsumer;
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 165237a..46895c7 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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")
@@ -25,10 +25,22 @@ public final class LangATestLanguageTypeConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
+ private ICharacterClass keyword$4$Delimiter;
+
+ private ICharacterClass keyword$7$Delimiter;
+
+ private ISequenceMatcher ruleCall$6$Delimiter;
+
+ private ISequenceMatcher crossReference$9$Delimiter;
+
public LangATestLanguageTypeConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$4$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$7$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$6$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ crossReference$9$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -57,21 +69,21 @@ public final class LangATestLanguageTypeConsumer extends NonTerminalConsumer {
}
protected boolean consumeKeyword$4() throws Exception {
- return consumeKeyword(getRule().ele000KeywordType(), null, false, false, LangATestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele000KeywordType(), null, false, false, getKeyword$4$Delimiter());
}
protected boolean consumeAssignment$5() throws Exception {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID(), LangATestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID(), getRuleCall$6$Delimiter()))
return true;
return false;
}
protected boolean consumeKeyword$7() throws Exception {
- return consumeKeyword(getRule().ele01KeywordExtends(), null, false, false, LangATestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele01KeywordExtends(), null, false, false, getKeyword$7$Delimiter());
}
protected boolean consumeAssignment$8() throws Exception {
- if (consumeTerminal(idConsumer, null, false, false, getRule().ele10CrossReferenceEStringType(), LangATestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, null, false, false, getRule().ele10CrossReferenceEStringType(), getCrossReference$9$Delimiter()))
return true;
return false;
}
@@ -93,4 +105,36 @@ public final class LangATestLanguageTypeConsumer extends NonTerminalConsumer {
this.idConsumer = idConsumer;
}
+ public ICharacterClass getKeyword$4$Delimiter() {
+ return keyword$4$Delimiter;
+ }
+
+ public void setKeyword$4$Delimiter(ICharacterClass characterClass) {
+ keyword$4$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$7$Delimiter() {
+ return keyword$7$Delimiter;
+ }
+
+ public void setKeyword$7$Delimiter(ICharacterClass characterClass) {
+ keyword$7$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$6$Delimiter() {
+ return ruleCall$6$Delimiter;
+ }
+
+ public void setRuleCall$6$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$6$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ISequenceMatcher getCrossReference$9$Delimiter() {
+ return crossReference$9$Delimiter;
+ }
+
+ public void setCrossReference$9$Delimiter(ISequenceMatcher matcher) {
+ crossReference$9$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
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 afdbb89..e462f7a 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-14 11:48:53
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/dummy/parser/antlr/internal/InternalDummyTestLanguage.g 2009-01-14 17:06:04
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 be77980..e06d0a6 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-14 11:48:53
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/dummy/parser/antlr/internal/InternalDummyTestLanguage.g 2009-01-14 17:06:04
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
index 90d5ec0..fed1df5 100644
--- 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
@@ -8,14 +8,20 @@ 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 final class DummyTestLanguageDelimiters {
-public class DummyTestLanguageDelimiters {
-
- public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+ private DummyTestLanguageDelimiters() {
+ throw new UnsupportedOperationException("Utility classes may not be initialized");
+ }
- public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+ public static ICharacterClass keyword$18$Delimiter = ICharacterClass.Factory.nullClass();
+
+ // TODO do not use IDConsumer internals
+ public static ICharacterClass keyword$12$Delimiter = XtextBuiltinIDConsumer.IDConsumer$$2;
+
+ public static ISequenceMatcher ruleCall$15$Delimiter = new SetBasedKeywordMatcher(
+ "optional", "element");
+
+ public static ISequenceMatcher ruleCall$17$Delimiter = ISequenceMatcher.Factory.nullMatcher();
- 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 f23d738..d1ebd28 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
@@ -60,15 +60,27 @@ public class DummyTestLanguageParserConfiguration extends AbstractParserConfigur
public void configureConsumers() {
getModelConsumer().setElementConsumer(getElementConsumer());
- getElementConsumer().setStringConsumer(getStringConsumer());
getElementConsumer().setIdConsumer(getIdConsumer());
+ getElementConsumer().setStringConsumer(getStringConsumer());
+ getElementConsumer().setKeyword$7$Delimiter(DummyTestLanguageDelimiters.keyword$12$Delimiter);
+ getElementConsumer().setKeyword$12$Delimiter(DummyTestLanguageDelimiters.keyword$18$Delimiter);
+ getElementConsumer().setKeyword$6$Delimiter(DummyTestLanguageDelimiters.keyword$12$Delimiter);
+ getElementConsumer().setRuleCall$9$Delimiter(DummyTestLanguageDelimiters.ruleCall$15$Delimiter);
+ getElementConsumer().setRuleCall$11$Delimiter(DummyTestLanguageDelimiters.ruleCall$17$Delimiter);
+ // TODO remove workaround
getIdConsumer().initFields(this);
+ // TODO remove workaround
getIntConsumer().initFields(this);
+ // TODO remove workaround
getStringConsumer().initFields(this);
+ // TODO remove workaround
getMlCommentConsumer().initFields(this);
+ // TODO remove workaround
getSlCommentConsumer().initFields(this);
+ // TODO remove workaround
getWsConsumer().initFields(this);
+ // TODO remove workaround
getAnyOtherConsumer().initFields(this);
}
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 ed39e25..e9ac5a0 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
@@ -11,26 +11,41 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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;
+import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinSTRINGConsumer;
@SuppressWarnings("unused")
public final class DummyTestLanguageElementConsumer extends NonTerminalConsumer {
- private XtextBuiltinSTRINGConsumer stringConsumer;
private XtextBuiltinIDConsumer idConsumer;
+ private XtextBuiltinSTRINGConsumer stringConsumer;
+ private ICharacterClass keyword$7$Delimiter;
+
+ private ICharacterClass keyword$12$Delimiter;
+
+ private ICharacterClass keyword$6$Delimiter;
+
+ private ISequenceMatcher ruleCall$9$Delimiter;
+
+ private ISequenceMatcher ruleCall$11$Delimiter;
+
public DummyTestLanguageElementConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$7$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$12$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$6$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$9$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ ruleCall$11$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -68,17 +83,17 @@ public final class DummyTestLanguageElementConsumer extends NonTerminalConsumer
}
protected boolean doConsumeAssignment$5() throws Exception {
- if (consumeKeyword(getRule().ele00000KeywordOptional(), "optional", false, true, DummyTestLanguageDelimiters.ID_DELIMITER))
+ if (consumeKeyword(getRule().ele00000KeywordOptional(), "optional", false, true, getKeyword$6$Delimiter()))
return true;
return false;
}
protected boolean consumeKeyword$7() throws Exception {
- return consumeKeyword(getRule().ele0001KeywordElement(), null, false, false, DummyTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele0001KeywordElement(), null, false, false, getKeyword$7$Delimiter());
}
protected boolean consumeAssignment$8() throws Exception {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID(), DummyTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID(), getRuleCall$9$Delimiter()))
return true;
return false;
}
@@ -89,13 +104,13 @@ public final class DummyTestLanguageElementConsumer extends NonTerminalConsumer
}
protected boolean doConsumeAssignment$10() throws Exception {
- if (consumeTerminal(stringConsumer, "descriptions", true, false, getRule().ele010LexerRuleCallSTRING(), DummyTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(stringConsumer, "descriptions", true, false, getRule().ele010LexerRuleCallSTRING(), getRuleCall$11$Delimiter()))
return true;
return false;
}
protected boolean consumeKeyword$12() throws Exception {
- return consumeKeyword(getRule().ele1KeywordSemicolon(), null, false, false, DummyTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele1KeywordSemicolon(), null, false, false, getKeyword$12$Delimiter());
}
public ElementElements getRule() {
@@ -111,12 +126,52 @@ public final class DummyTestLanguageElementConsumer extends NonTerminalConsumer
return "Element";
}
+ public void setIdConsumer(XtextBuiltinIDConsumer idConsumer) {
+ this.idConsumer = idConsumer;
+ }
+
public void setStringConsumer(XtextBuiltinSTRINGConsumer stringConsumer) {
this.stringConsumer = stringConsumer;
}
- public void setIdConsumer(XtextBuiltinIDConsumer idConsumer) {
- this.idConsumer = idConsumer;
+ public ICharacterClass getKeyword$7$Delimiter() {
+ return keyword$7$Delimiter;
+ }
+
+ public void setKeyword$7$Delimiter(ICharacterClass characterClass) {
+ keyword$7$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$12$Delimiter() {
+ return keyword$12$Delimiter;
+ }
+
+ public void setKeyword$12$Delimiter(ICharacterClass characterClass) {
+ keyword$12$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$6$Delimiter() {
+ return keyword$6$Delimiter;
+ }
+
+ public void setKeyword$6$Delimiter(ICharacterClass characterClass) {
+ keyword$6$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$9$Delimiter() {
+ return ruleCall$9$Delimiter;
+ }
+
+ public void setRuleCall$9$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$9$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ISequenceMatcher getRuleCall$11$Delimiter() {
+ return ruleCall$11$Delimiter;
+ }
+
+ public void setRuleCall$11$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$11$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
}
}
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 3a881e5..9539558 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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")
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 ba713e5..b4c4741 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-14 11:48:48
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/grammarinheritance/parser/antlr/internal/InternalConcreteTestLanguage.g 2009-01-14 17:05:59
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 d5411c6..69ebed5 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-14 11:48:48
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/grammarinheritance/parser/antlr/internal/InternalConcreteTestLanguage.g 2009-01-14 17:05:59
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
index 6dd35cb..3436c66 100644
--- 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
@@ -8,14 +8,16 @@ 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 final class AbstractTestLanguageDelimiters {
-public class AbstractTestLanguageDelimiters {
-
- public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+ private AbstractTestLanguageDelimiters() {
+ throw new UnsupportedOperationException("Utility classes may not be initialized");
+ }
- public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+ public static ISequenceMatcher ruleCall$7$Delimiter = new SetBasedKeywordMatcher(
+ "element");
+
+ // TODO do not use IDConsumer internals
+ public static ICharacterClass keyword$5$Delimiter = XtextBuiltinIDConsumer.IDConsumer$$2;
- 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 ca9af0b..0074103 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
@@ -60,13 +60,23 @@ public class AbstractTestLanguageParserConfiguration extends AbstractParserConfi
public void configureConsumers() {
getInheritedParserRuleConsumer().setIdConsumer(getIdConsumer());
+ getInheritedParserRuleConsumer().setRuleCall$4$Delimiter(AbstractTestLanguageDelimiters.ruleCall$7$Delimiter);
+ getInheritedParserRuleConsumer().setKeyword$2$Delimiter(AbstractTestLanguageDelimiters.keyword$5$Delimiter);
+ // TODO remove workaround
getRealConsumer().initFields(this);
+ // TODO remove workaround
getIdConsumer().initFields(this);
+ // TODO remove workaround
getIntConsumer().initFields(this);
+ // TODO remove workaround
getStringConsumer().initFields(this);
+ // TODO remove workaround
getMlCommentConsumer().initFields(this);
+ // TODO remove workaround
getSlCommentConsumer().initFields(this);
+ // TODO remove workaround
getWsConsumer().initFields(this);
+ // TODO remove workaround
getAnyOtherConsumer().initFields(this);
}
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
index 900125a..cde79eb 100644
--- 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
@@ -8,14 +8,20 @@ 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 final class ConcreteTestLanguageDelimiters {
-public class ConcreteTestLanguageDelimiters {
-
- public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+ private ConcreteTestLanguageDelimiters() {
+ throw new UnsupportedOperationException("Utility classes may not be initialized");
+ }
- public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+ // TODO do not use IDConsumer internals
+ public static ICharacterClass keyword$6$Delimiter = XtextBuiltinIDConsumer.IDConsumer$$2;
- public static ISequenceMatcher ALL_KEYWORDS = new SetBasedKeywordMatcher(ConcreteTestLanguageGrammarAccess.INSTANCE.getGrammar());
-
+ public static ISequenceMatcher ruleCall$8$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+
+ public static ICharacterClass keyword$9$Delimiter = ICharacterClass.Factory.nullClass();
+
+ public static ISequenceMatcher ruleCall$7$Delimiter = new SetBasedKeywordMatcher(
+ "model");
+
}
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 3b79347..d9fda38 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
@@ -55,18 +55,31 @@ public class ConcreteTestLanguageParserConfiguration extends AbstractParserConfi
}
public void configureConsumers() {
- getConcreteParserRuleConsumer().setRealConsumer(getRealConsumer());
getConcreteParserRuleConsumer().setInheritedParserRuleConsumer(getInheritedParserRuleConsumer());
+ getConcreteParserRuleConsumer().setRealConsumer(getRealConsumer());
getInheritedParserRuleConsumer().setIdConsumer(getIdConsumer());
+ getConcreteParserRuleConsumer().setKeyword$4$Delimiter(ConcreteTestLanguageDelimiters.keyword$6$Delimiter);
+ getConcreteParserRuleConsumer().setRuleCall$6$Delimiter(ConcreteTestLanguageDelimiters.ruleCall$8$Delimiter);
+ getConcreteParserRuleConsumer().setKeyword$7$Delimiter(ConcreteTestLanguageDelimiters.keyword$9$Delimiter);
+ getInheritedParserRuleConsumer().setRuleCall$4$Delimiter(ConcreteTestLanguageDelimiters.ruleCall$7$Delimiter);
+ getInheritedParserRuleConsumer().setKeyword$2$Delimiter(ConcreteTestLanguageDelimiters.keyword$6$Delimiter);
+ // TODO remove workaround
getRealConsumer().initFields(this);
+ // TODO remove workaround
getIdConsumer().initFields(this);
+ // TODO remove workaround
getIntConsumer().initFields(this);
+ // TODO remove workaround
getStringConsumer().initFields(this);
+ // TODO remove workaround
getMlCommentConsumer().initFields(this);
+ // TODO remove workaround
getSlCommentConsumer().initFields(this);
+ // TODO remove workaround
getWsConsumer().initFields(this);
+ // TODO remove workaround
getAnyOtherConsumer().initFields(this);
}
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 c7d1924..c1da69c 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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")
@@ -25,10 +25,16 @@ public final class AbstractTestLanguageInheritedParserRuleConsumer extends NonTe
private AbstractTestLanguageIDConsumer idConsumer;
+ private ISequenceMatcher ruleCall$4$Delimiter;
+
+ private ICharacterClass keyword$2$Delimiter;
+
public AbstractTestLanguageInheritedParserRuleConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$4$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$2$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -49,11 +55,11 @@ public final class AbstractTestLanguageInheritedParserRuleConsumer extends NonTe
}
protected boolean consumeKeyword$2() throws Exception {
- return consumeKeyword(getRule().ele0KeywordElement(), null, false, false, AbstractTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele0KeywordElement(), null, false, false, getKeyword$2$Delimiter());
}
protected boolean consumeAssignment$3() throws Exception {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele10LexerRuleCallID(), AbstractTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele10LexerRuleCallID(), getRuleCall$4$Delimiter()))
return true;
return false;
}
@@ -75,4 +81,20 @@ public final class AbstractTestLanguageInheritedParserRuleConsumer extends NonTe
this.idConsumer = idConsumer;
}
+ public ISequenceMatcher getRuleCall$4$Delimiter() {
+ return ruleCall$4$Delimiter;
+ }
+
+ public void setRuleCall$4$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$4$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$2$Delimiter() {
+ return keyword$2$Delimiter;
+ }
+
+ public void setKeyword$2$Delimiter(ICharacterClass characterClass) {
+ keyword$2$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
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 d3c595b..fee93b4 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
@@ -11,26 +11,35 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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.AbstractTestLanguageREALConsumer;
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 AbstractTestLanguageREALConsumer realConsumer;
private AbstractTestLanguageInheritedParserRuleConsumer inheritedParserRuleConsumer;
+ private AbstractTestLanguageREALConsumer realConsumer;
+ private ICharacterClass keyword$4$Delimiter;
+
+ private ISequenceMatcher ruleCall$6$Delimiter;
+
+ private ICharacterClass keyword$7$Delimiter;
+
public ConcreteTestLanguageConcreteParserRuleConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$4$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$6$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$7$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -59,17 +68,17 @@ public final class ConcreteTestLanguageConcreteParserRuleConsumer extends NonTer
}
protected boolean consumeKeyword$4() throws Exception {
- return consumeKeyword(getRule().ele000KeywordModel(), null, false, false, ConcreteTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele000KeywordModel(), null, false, false, getKeyword$4$Delimiter());
}
protected boolean consumeAssignment$5() throws Exception {
- if (consumeTerminal(realConsumer, "magicNumber", false, false, getRule().ele0010LexerRuleCallREAL(), ConcreteTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(realConsumer, "magicNumber", false, false, getRule().ele0010LexerRuleCallREAL(), getRuleCall$6$Delimiter()))
return true;
return false;
}
protected boolean consumeKeyword$7() throws Exception {
- return consumeKeyword(getRule().ele01KeywordColon(), null, false, false, ConcreteTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele01KeywordColon(), null, false, false, getKeyword$7$Delimiter());
}
protected boolean consumeAssignment$8() throws Exception {
@@ -96,12 +105,36 @@ public final class ConcreteTestLanguageConcreteParserRuleConsumer extends NonTer
return "ConcreteParserRule";
}
+ public void setInheritedParserRuleConsumer(AbstractTestLanguageInheritedParserRuleConsumer inheritedParserRuleConsumer) {
+ this.inheritedParserRuleConsumer = inheritedParserRuleConsumer;
+ }
+
public void setRealConsumer(AbstractTestLanguageREALConsumer realConsumer) {
this.realConsumer = realConsumer;
}
- public void setInheritedParserRuleConsumer(AbstractTestLanguageInheritedParserRuleConsumer inheritedParserRuleConsumer) {
- this.inheritedParserRuleConsumer = inheritedParserRuleConsumer;
+ public ICharacterClass getKeyword$4$Delimiter() {
+ return keyword$4$Delimiter;
+ }
+
+ public void setKeyword$4$Delimiter(ICharacterClass characterClass) {
+ keyword$4$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$6$Delimiter() {
+ return ruleCall$6$Delimiter;
+ }
+
+ public void setRuleCall$6$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$6$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$7$Delimiter() {
+ return keyword$7$Delimiter;
+ }
+
+ public void setKeyword$7$Delimiter(ICharacterClass characterClass) {
+ keyword$7$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
}
}
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 e24faf3..8e540b2 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-14 11:48:52
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMetamodelRefTestLanguage.g 2009-01-14 17:06:03
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 1b9c747..118fad9 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-14 11:48:52
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMetamodelRefTestLanguage.g 2009-01-14 17:06:03
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 a52d783..28cc1e6 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-14 11:48:53
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMultiGenMMTestLanguage.g 2009-01-14 17:06:03
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 c42f57f..fdc6b52 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-14 11:48:52
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/metamodelreferencing/tests/parser/antlr/internal/InternalMultiGenMMTestLanguage.g 2009-01-14 17:06:03
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
index fa12011..b9b1a61 100644
--- 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
@@ -8,14 +8,12 @@ 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 final class MetamodelRefTestLanguageDelimiters {
-public class MetamodelRefTestLanguageDelimiters {
-
- public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+ private MetamodelRefTestLanguageDelimiters() {
+ throw new UnsupportedOperationException("Utility classes may not be initialized");
+ }
- public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+ public static ISequenceMatcher ruleCall$6$Delimiter = ISequenceMatcher.Factory.nullMatcher();
- 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 52f8337..83dc7ae 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
@@ -70,12 +70,22 @@ public class MetamodelRefTestLanguageParserConfiguration extends AbstractParserC
getMyRuleConsumer().setIdConsumer(getIdConsumer());
+ getFooConsumer().setRuleCall$3$Delimiter(MetamodelRefTestLanguageDelimiters.ruleCall$6$Delimiter);
+ getNameRefConsumer().setCrossReference$2$Delimiter(MetamodelRefTestLanguageDelimiters.ruleCall$6$Delimiter);
+ getMyRuleConsumer().setRuleCall$2$Delimiter(MetamodelRefTestLanguageDelimiters.ruleCall$6$Delimiter);
+ // TODO remove workaround
getIdConsumer().initFields(this);
+ // TODO remove workaround
getIntConsumer().initFields(this);
+ // TODO remove workaround
getStringConsumer().initFields(this);
+ // TODO remove workaround
getMlCommentConsumer().initFields(this);
+ // TODO remove workaround
getSlCommentConsumer().initFields(this);
+ // TODO remove workaround
getWsConsumer().initFields(this);
+ // TODO remove workaround
getAnyOtherConsumer().initFields(this);
}
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
index 9b306e1..8b56f2e 100644
--- 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
@@ -8,14 +8,12 @@ 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 final class MultiGenMMTestLanguageDelimiters {
-public class MultiGenMMTestLanguageDelimiters {
-
- public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+ private MultiGenMMTestLanguageDelimiters() {
+ throw new UnsupportedOperationException("Utility classes may not be initialized");
+ }
- public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+ public static ISequenceMatcher ruleCall$6$Delimiter = ISequenceMatcher.Factory.nullMatcher();
- 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 59bb3d8..9b3d30f 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
@@ -58,17 +58,26 @@ public class MultiGenMMTestLanguageParserConfiguration extends AbstractParserCon
}
public void configureConsumers() {
- getFooConsumer().setNameRefConsumer(getNameRefConsumer());
getFooConsumer().setIdConsumer(getIdConsumer());
+ getFooConsumer().setNameRefConsumer(getNameRefConsumer());
getNameRefConsumer().setStringConsumer(getStringConsumer());
+ getFooConsumer().setRuleCall$3$Delimiter(MultiGenMMTestLanguageDelimiters.ruleCall$6$Delimiter);
+ getNameRefConsumer().setRuleCall$2$Delimiter(MultiGenMMTestLanguageDelimiters.ruleCall$6$Delimiter);
+ // TODO remove workaround
getIdConsumer().initFields(this);
+ // TODO remove workaround
getIntConsumer().initFields(this);
+ // TODO remove workaround
getStringConsumer().initFields(this);
+ // TODO remove workaround
getMlCommentConsumer().initFields(this);
+ // TODO remove workaround
getSlCommentConsumer().initFields(this);
+ // TODO remove workaround
getWsConsumer().initFields(this);
+ // TODO remove workaround
getAnyOtherConsumer().initFields(this);
}
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 ee0f56d..58a985e 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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;
@@ -27,10 +27,13 @@ public final class MetamodelRefTestLanguageFooConsumer extends NonTerminalConsum
private XtextBuiltinIDConsumer idConsumer;
private MetamodelRefTestLanguageNameRefConsumer nameRefConsumer;
+ private ISequenceMatcher ruleCall$3$Delimiter;
+
public MetamodelRefTestLanguageFooConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$3$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -51,7 +54,7 @@ public final class MetamodelRefTestLanguageFooConsumer extends NonTerminalConsum
}
protected boolean consumeAssignment$2() throws Exception {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele00LexerRuleCallID(), MetamodelRefTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele00LexerRuleCallID(), getRuleCall$3$Delimiter()))
return true;
return false;
}
@@ -88,4 +91,12 @@ public final class MetamodelRefTestLanguageFooConsumer extends NonTerminalConsum
this.nameRefConsumer = nameRefConsumer;
}
+ public ISequenceMatcher getRuleCall$3$Delimiter() {
+ return ruleCall$3$Delimiter;
+ }
+
+ public void setRuleCall$3$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$3$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
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 c8c8ea5..9b6207f 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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")
@@ -25,10 +25,13 @@ public final class MetamodelRefTestLanguageMyRuleConsumer extends NonTerminalCon
private XtextBuiltinIDConsumer idConsumer;
+ private ISequenceMatcher ruleCall$2$Delimiter;
+
public MetamodelRefTestLanguageMyRuleConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$2$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -36,7 +39,7 @@ public final class MetamodelRefTestLanguageMyRuleConsumer extends NonTerminalCon
}
protected boolean consumeAssignment$1() throws Exception {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0LexerRuleCallID(), MetamodelRefTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0LexerRuleCallID(), getRuleCall$2$Delimiter()))
return true;
return false;
}
@@ -58,4 +61,12 @@ public final class MetamodelRefTestLanguageMyRuleConsumer extends NonTerminalCon
this.idConsumer = idConsumer;
}
+ public ISequenceMatcher getRuleCall$2$Delimiter() {
+ return ruleCall$2$Delimiter;
+ }
+
+ public void setRuleCall$2$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$2$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
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 e1f998a..6889e45 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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")
@@ -25,10 +25,13 @@ public final class MetamodelRefTestLanguageNameRefConsumer extends NonTerminalCo
private XtextBuiltinIDConsumer idConsumer;
+ private ISequenceMatcher crossReference$2$Delimiter;
+
public MetamodelRefTestLanguageNameRefConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ crossReference$2$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -36,7 +39,7 @@ public final class MetamodelRefTestLanguageNameRefConsumer extends NonTerminalCo
}
protected boolean consumeAssignment$1() throws Exception {
- if (consumeTerminal(idConsumer, null, false, false, getRule().ele0CrossReferenceEStringParserRule(), MetamodelRefTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, null, false, false, getRule().ele0CrossReferenceEStringParserRule(), getCrossReference$2$Delimiter()))
return true;
return false;
}
@@ -58,4 +61,12 @@ public final class MetamodelRefTestLanguageNameRefConsumer extends NonTerminalCo
this.idConsumer = idConsumer;
}
+ public ISequenceMatcher getCrossReference$2$Delimiter() {
+ return crossReference$2$Delimiter;
+ }
+
+ public void setCrossReference$2$Delimiter(ISequenceMatcher matcher) {
+ crossReference$2$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
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 24d7014..b8050b4 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
@@ -11,26 +11,29 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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.metamodelreferencing.tests.parser.packrat.consumers.MultiGenMMTestLanguageNameRefConsumer;
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 MultiGenMMTestLanguageNameRefConsumer nameRefConsumer;
private XtextBuiltinIDConsumer idConsumer;
+ private MultiGenMMTestLanguageNameRefConsumer nameRefConsumer;
+ private ISequenceMatcher ruleCall$3$Delimiter;
+
public MultiGenMMTestLanguageFooConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$3$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -51,7 +54,7 @@ public final class MultiGenMMTestLanguageFooConsumer extends NonTerminalConsumer
}
protected boolean consumeAssignment$2() throws Exception {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele00LexerRuleCallID(), MultiGenMMTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele00LexerRuleCallID(), getRuleCall$3$Delimiter()))
return true;
return false;
}
@@ -80,12 +83,20 @@ public final class MultiGenMMTestLanguageFooConsumer extends NonTerminalConsumer
return "Foo";
}
+ public void setIdConsumer(XtextBuiltinIDConsumer idConsumer) {
+ this.idConsumer = idConsumer;
+ }
+
public void setNameRefConsumer(MultiGenMMTestLanguageNameRefConsumer nameRefConsumer) {
this.nameRefConsumer = nameRefConsumer;
}
- public void setIdConsumer(XtextBuiltinIDConsumer idConsumer) {
- this.idConsumer = idConsumer;
+ public ISequenceMatcher getRuleCall$3$Delimiter() {
+ return ruleCall$3$Delimiter;
+ }
+
+ public void setRuleCall$3$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$3$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
}
}
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 09feefc..2e37556 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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")
@@ -25,10 +25,13 @@ public final class MultiGenMMTestLanguageNameRefConsumer extends NonTerminalCons
private XtextBuiltinSTRINGConsumer stringConsumer;
+ private ISequenceMatcher ruleCall$2$Delimiter;
+
public MultiGenMMTestLanguageNameRefConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$2$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -36,7 +39,7 @@ public final class MultiGenMMTestLanguageNameRefConsumer extends NonTerminalCons
}
protected boolean consumeAssignment$1() throws Exception {
- if (consumeTerminal(stringConsumer, "name", false, false, getRule().ele0LexerRuleCallSTRING(), MultiGenMMTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(stringConsumer, "name", false, false, getRule().ele0LexerRuleCallSTRING(), getRuleCall$2$Delimiter()))
return true;
return false;
}
@@ -58,4 +61,12 @@ public final class MultiGenMMTestLanguageNameRefConsumer extends NonTerminalCons
this.stringConsumer = stringConsumer;
}
+ public ISequenceMatcher getRuleCall$2$Delimiter() {
+ return ruleCall$2$Delimiter;
+ }
+
+ public void setRuleCall$2$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$2$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
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 9c229d3..732707b 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-14 11:48:51
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g 2009-01-14 17:06:02
package org.eclipse.xtext.parser.antlr.internal;
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 6a5b2fa..31bee85 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-14 11:48:51
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parser/antlr/internal/InternalXtextGrammarTestLanguage.g 2009-01-14 17:06:01
package org.eclipse.xtext.parser.antlr.internal;
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 ad9bb05..46324d1 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-14 11:49:08
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parser/datatyperules/parser/antlr/internal/InternalDatatypeRulesTestLanguage.g 2009-01-14 17:06:17
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 067f877..87d9b64 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-14 11:49:08
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parser/datatyperules/parser/antlr/internal/InternalDatatypeRulesTestLanguage.g 2009-01-14 17:06:17
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
index 5127459..fd7b0e4 100644
--- 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
@@ -8,14 +8,14 @@ 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 final class DatatypeRulesTestLanguageDelimiters {
-public class DatatypeRulesTestLanguageDelimiters {
-
- public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+ private DatatypeRulesTestLanguageDelimiters() {
+ throw new UnsupportedOperationException("Utility classes may not be initialized");
+ }
- public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+ public static ICharacterClass keyword$15$Delimiter = ICharacterClass.Factory.nullClass();
+
+ public static ISequenceMatcher ruleCall$31$Delimiter = ISequenceMatcher.Factory.nullMatcher();
- 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 ca038c4..2b764e8 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
@@ -98,12 +98,37 @@ public class DatatypeRulesTestLanguageParserConfiguration extends AbstractParser
getVectorConsumer().setIntConsumer(getIntConsumer());
+ getModelConsumer().setKeyword$12$Delimiter(DatatypeRulesTestLanguageDelimiters.keyword$15$Delimiter);
+ getModelConsumer().setKeyword$19$Delimiter(DatatypeRulesTestLanguageDelimiters.keyword$15$Delimiter);
+ getModelConsumer().setKeyword$16$Delimiter(DatatypeRulesTestLanguageDelimiters.keyword$15$Delimiter);
+ getModelConsumer().setKeyword$8$Delimiter(DatatypeRulesTestLanguageDelimiters.keyword$15$Delimiter);
+ getModelIdConsumer().setRuleCall$3$Delimiter(DatatypeRulesTestLanguageDelimiters.ruleCall$31$Delimiter);
+ getModelIdConsumer().setKeyword$4$Delimiter(DatatypeRulesTestLanguageDelimiters.keyword$15$Delimiter);
+ getModelIdConsumer().setRuleCall$5$Delimiter(DatatypeRulesTestLanguageDelimiters.ruleCall$31$Delimiter);
+ getNestedModelIdConsumer().setKeyword$4$Delimiter(DatatypeRulesTestLanguageDelimiters.keyword$15$Delimiter);
+ getFractionConsumer().setRuleCall$5$Delimiter(DatatypeRulesTestLanguageDelimiters.ruleCall$31$Delimiter);
+ getFractionConsumer().setKeyword$4$Delimiter(DatatypeRulesTestLanguageDelimiters.keyword$15$Delimiter);
+ getFractionConsumer().setRuleCall$2$Delimiter(DatatypeRulesTestLanguageDelimiters.ruleCall$31$Delimiter);
+ getVectorConsumer().setKeyword$4$Delimiter(DatatypeRulesTestLanguageDelimiters.keyword$15$Delimiter);
+ getVectorConsumer().setRuleCall$6$Delimiter(DatatypeRulesTestLanguageDelimiters.ruleCall$31$Delimiter);
+ getVectorConsumer().setRuleCall$5$Delimiter(DatatypeRulesTestLanguageDelimiters.ruleCall$31$Delimiter);
+ getVectorConsumer().setKeyword$7$Delimiter(DatatypeRulesTestLanguageDelimiters.keyword$15$Delimiter);
+ getDotsConsumer().setKeyword$5$Delimiter(DatatypeRulesTestLanguageDelimiters.keyword$15$Delimiter);
+ getDotsConsumer().setKeyword$4$Delimiter(DatatypeRulesTestLanguageDelimiters.keyword$15$Delimiter);
+ getDotsConsumer().setKeyword$3$Delimiter(DatatypeRulesTestLanguageDelimiters.keyword$15$Delimiter);
+ // TODO remove workaround
getIdConsumer().initFields(this);
+ // TODO remove workaround
getIntConsumer().initFields(this);
+ // TODO remove workaround
getStringConsumer().initFields(this);
+ // TODO remove workaround
getMlCommentConsumer().initFields(this);
+ // TODO remove workaround
getSlCommentConsumer().initFields(this);
+ // TODO remove workaround
getWsConsumer().initFields(this);
+ // TODO remove workaround
getAnyOtherConsumer().initFields(this);
}
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 c118b23..3e66f6b 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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")
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 2f22ae1..e32518b 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
@@ -11,22 +11,31 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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 {
+ private ICharacterClass keyword$5$Delimiter;
+
+ private ICharacterClass keyword$4$Delimiter;
+
+ private ICharacterClass keyword$3$Delimiter;
+
public DatatypeRulesTestLanguageDotsConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$5$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$4$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$3$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -55,15 +64,15 @@ public final class DatatypeRulesTestLanguageDotsConsumer extends NonTerminalCons
}
protected boolean consumeKeyword$3() throws Exception {
- return consumeKeyword(getRule().ele00KeywordFullStop(), null, false, false, DatatypeRulesTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele00KeywordFullStop(), null, false, false, getKeyword$3$Delimiter());
}
protected boolean consumeKeyword$4() throws Exception {
- return consumeKeyword(getRule().ele01KeywordFullStop(), null, false, false, DatatypeRulesTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele01KeywordFullStop(), null, false, false, getKeyword$4$Delimiter());
}
protected boolean consumeKeyword$5() throws Exception {
- return consumeKeyword(getRule().ele1KeywordFullStopFullStop(), null, false, false, DatatypeRulesTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele1KeywordFullStopFullStop(), null, false, false, getKeyword$5$Delimiter());
}
public DotsElements getRule() {
@@ -79,4 +88,28 @@ public final class DatatypeRulesTestLanguageDotsConsumer extends NonTerminalCons
return "EString";
}
+ public ICharacterClass getKeyword$5$Delimiter() {
+ return keyword$5$Delimiter;
+ }
+
+ public void setKeyword$5$Delimiter(ICharacterClass characterClass) {
+ keyword$5$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$4$Delimiter() {
+ return keyword$4$Delimiter;
+ }
+
+ public void setKeyword$4$Delimiter(ICharacterClass characterClass) {
+ keyword$4$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$3$Delimiter() {
+ return keyword$3$Delimiter;
+ }
+
+ public void setKeyword$3$Delimiter(ICharacterClass characterClass) {
+ keyword$3$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
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 7024b6a..df2910d 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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")
@@ -25,10 +25,19 @@ public final class DatatypeRulesTestLanguageFractionConsumer extends NonTerminal
private XtextBuiltinINTConsumer intConsumer;
+ private ISequenceMatcher ruleCall$5$Delimiter;
+
+ private ICharacterClass keyword$4$Delimiter;
+
+ private ISequenceMatcher ruleCall$2$Delimiter;
+
public DatatypeRulesTestLanguageFractionConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$5$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$4$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$2$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -49,7 +58,7 @@ public final class DatatypeRulesTestLanguageFractionConsumer extends NonTerminal
}
protected boolean consumeRuleCall$2() throws Exception {
- return consumeTerminal(intConsumer, null, false, false, getRule().ele0LexerRuleCallINT(), DatatypeRulesTestLanguageDelimiters.ALL_KEYWORDS);
+ return consumeTerminal(intConsumer, null, false, false, getRule().ele0LexerRuleCallINT(), getRuleCall$2$Delimiter());
}
protected boolean consumeGroup$3() throws Exception {
@@ -71,11 +80,11 @@ public final class DatatypeRulesTestLanguageFractionConsumer extends NonTerminal
}
protected boolean consumeKeyword$4() throws Exception {
- return consumeKeyword(getRule().ele10KeywordSolidus(), null, false, false, DatatypeRulesTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele10KeywordSolidus(), null, false, false, getKeyword$4$Delimiter());
}
protected boolean consumeRuleCall$5() throws Exception {
- return consumeTerminal(intConsumer, null, false, false, getRule().ele11LexerRuleCallINT(), DatatypeRulesTestLanguageDelimiters.ALL_KEYWORDS);
+ return consumeTerminal(intConsumer, null, false, false, getRule().ele11LexerRuleCallINT(), getRuleCall$5$Delimiter());
}
public FractionElements getRule() {
@@ -95,4 +104,28 @@ public final class DatatypeRulesTestLanguageFractionConsumer extends NonTerminal
this.intConsumer = intConsumer;
}
+ public ISequenceMatcher getRuleCall$5$Delimiter() {
+ return ruleCall$5$Delimiter;
+ }
+
+ public void setRuleCall$5$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$5$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$4$Delimiter() {
+ return keyword$4$Delimiter;
+ }
+
+ public void setKeyword$4$Delimiter(ICharacterClass characterClass) {
+ keyword$4$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$2$Delimiter() {
+ return ruleCall$2$Delimiter;
+ }
+
+ public void setRuleCall$2$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$2$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
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 65b9b7a..783c616 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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.DatatypeRulesTestLanguageDelimiters;
-
import org.eclipse.xtext.parser.datatyperules.parser.packrat.consumers.DatatypeRulesTestLanguageDotsConsumer;
import org.eclipse.xtext.parser.datatyperules.parser.packrat.consumers.DatatypeRulesTestLanguageFractionConsumer;
import org.eclipse.xtext.parser.datatyperules.parser.packrat.consumers.DatatypeRulesTestLanguageNestedModelIdConsumer;
@@ -31,10 +31,22 @@ public final class DatatypeRulesTestLanguageModelConsumer extends NonTerminalCon
private DatatypeRulesTestLanguageNestedModelIdConsumer nestedModelIdConsumer;
private DatatypeRulesTestLanguageVectorConsumer vectorConsumer;
+ private ICharacterClass keyword$12$Delimiter;
+
+ private ICharacterClass keyword$19$Delimiter;
+
+ private ICharacterClass keyword$16$Delimiter;
+
+ private ICharacterClass keyword$8$Delimiter;
+
public DatatypeRulesTestLanguageModelConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$12$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$19$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$16$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$8$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -91,7 +103,7 @@ public final class DatatypeRulesTestLanguageModelConsumer extends NonTerminalCon
}
protected boolean consumeKeyword$8() throws Exception {
- return consumeKeyword(getRule().ele00010KeywordColon(), null, false, false, DatatypeRulesTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele00010KeywordColon(), null, false, false, getKeyword$8$Delimiter());
}
protected boolean consumeAssignment$9() throws Exception {
@@ -119,7 +131,7 @@ public final class DatatypeRulesTestLanguageModelConsumer extends NonTerminalCon
}
protected boolean consumeKeyword$12() throws Exception {
- return consumeKeyword(getRule().ele0010KeywordNumberSign(), null, false, false, DatatypeRulesTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele0010KeywordNumberSign(), null, false, false, getKeyword$12$Delimiter());
}
protected boolean consumeAssignment$13() throws Exception {
@@ -147,7 +159,7 @@ public final class DatatypeRulesTestLanguageModelConsumer extends NonTerminalCon
}
protected boolean consumeKeyword$16() throws Exception {
- return consumeKeyword(getRule().ele010KeywordPlusSign(), null, false, false, DatatypeRulesTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele010KeywordPlusSign(), null, false, false, getKeyword$16$Delimiter());
}
protected boolean consumeAssignment$17() throws Exception {
@@ -157,7 +169,7 @@ public final class DatatypeRulesTestLanguageModelConsumer extends NonTerminalCon
}
protected boolean consumeKeyword$19() throws Exception {
- return consumeKeyword(getRule().ele1KeywordSemicolon(), null, false, false, DatatypeRulesTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele1KeywordSemicolon(), null, false, false, getKeyword$19$Delimiter());
}
public ModelElements getRule() {
@@ -189,4 +201,36 @@ public final class DatatypeRulesTestLanguageModelConsumer extends NonTerminalCon
this.vectorConsumer = vectorConsumer;
}
+ public ICharacterClass getKeyword$12$Delimiter() {
+ return keyword$12$Delimiter;
+ }
+
+ public void setKeyword$12$Delimiter(ICharacterClass characterClass) {
+ keyword$12$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$19$Delimiter() {
+ return keyword$19$Delimiter;
+ }
+
+ public void setKeyword$19$Delimiter(ICharacterClass characterClass) {
+ keyword$19$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$16$Delimiter() {
+ return keyword$16$Delimiter;
+ }
+
+ public void setKeyword$16$Delimiter(ICharacterClass characterClass) {
+ keyword$16$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$8$Delimiter() {
+ return keyword$8$Delimiter;
+ }
+
+ public void setKeyword$8$Delimiter(ICharacterClass characterClass) {
+ keyword$8$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
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 7f48dd1..3d0e72b 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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")
@@ -25,10 +25,19 @@ public final class DatatypeRulesTestLanguageModelIdConsumer extends NonTerminalC
private XtextBuiltinIDConsumer idConsumer;
+ private ISequenceMatcher ruleCall$3$Delimiter;
+
+ private ICharacterClass keyword$4$Delimiter;
+
+ private ISequenceMatcher ruleCall$5$Delimiter;
+
public DatatypeRulesTestLanguageModelIdConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$3$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$4$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$5$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -53,15 +62,15 @@ public final class DatatypeRulesTestLanguageModelIdConsumer extends NonTerminalC
}
protected boolean consumeRuleCall$3() throws Exception {
- return consumeTerminal(idConsumer, null, false, false, getRule().ele00LexerRuleCallID(), DatatypeRulesTestLanguageDelimiters.ALL_KEYWORDS);
+ return consumeTerminal(idConsumer, null, false, false, getRule().ele00LexerRuleCallID(), getRuleCall$3$Delimiter());
}
protected boolean consumeKeyword$4() throws Exception {
- return consumeKeyword(getRule().ele01KeywordFullStop(), null, false, false, DatatypeRulesTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele01KeywordFullStop(), null, false, false, getKeyword$4$Delimiter());
}
protected boolean consumeRuleCall$5() throws Exception {
- return consumeTerminal(idConsumer, null, false, false, getRule().ele1LexerRuleCallID(), DatatypeRulesTestLanguageDelimiters.ALL_KEYWORDS);
+ return consumeTerminal(idConsumer, null, false, false, getRule().ele1LexerRuleCallID(), getRuleCall$5$Delimiter());
}
public ModelIdElements getRule() {
@@ -81,4 +90,28 @@ public final class DatatypeRulesTestLanguageModelIdConsumer extends NonTerminalC
this.idConsumer = idConsumer;
}
+ public ISequenceMatcher getRuleCall$3$Delimiter() {
+ return ruleCall$3$Delimiter;
+ }
+
+ public void setRuleCall$3$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$3$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$4$Delimiter() {
+ return keyword$4$Delimiter;
+ }
+
+ public void setKeyword$4$Delimiter(ICharacterClass characterClass) {
+ keyword$4$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$5$Delimiter() {
+ return ruleCall$5$Delimiter;
+ }
+
+ public void setRuleCall$5$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$5$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
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 884e128..1409ada 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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")
@@ -25,10 +25,13 @@ public final class DatatypeRulesTestLanguageNestedModelIdConsumer extends NonTer
private DatatypeRulesTestLanguageModelIdConsumer modelIdConsumer;
+ private ICharacterClass keyword$4$Delimiter;
+
public DatatypeRulesTestLanguageNestedModelIdConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$4$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -57,7 +60,7 @@ public final class DatatypeRulesTestLanguageNestedModelIdConsumer extends NonTer
}
protected boolean consumeKeyword$4() throws Exception {
- return consumeKeyword(getRule().ele01KeywordFullStop(), null, false, false, DatatypeRulesTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele01KeywordFullStop(), null, false, false, getKeyword$4$Delimiter());
}
protected boolean consumeRuleCall$5() throws Exception {
@@ -81,4 +84,12 @@ public final class DatatypeRulesTestLanguageNestedModelIdConsumer extends NonTer
this.modelIdConsumer = modelIdConsumer;
}
+ public ICharacterClass getKeyword$4$Delimiter() {
+ return keyword$4$Delimiter;
+ }
+
+ public void setKeyword$4$Delimiter(ICharacterClass characterClass) {
+ keyword$4$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
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 751d895..5b0cf12 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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")
@@ -25,10 +25,22 @@ public final class DatatypeRulesTestLanguageVectorConsumer extends NonTerminalCo
private XtextBuiltinINTConsumer intConsumer;
+ private ICharacterClass keyword$4$Delimiter;
+
+ private ISequenceMatcher ruleCall$6$Delimiter;
+
+ private ISequenceMatcher ruleCall$5$Delimiter;
+
+ private ICharacterClass keyword$7$Delimiter;
+
public DatatypeRulesTestLanguageVectorConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$4$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$6$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ ruleCall$5$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$7$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -57,19 +69,19 @@ public final class DatatypeRulesTestLanguageVectorConsumer extends NonTerminalCo
}
protected boolean consumeKeyword$4() throws Exception {
- return consumeKeyword(getRule().ele000KeywordLeftParenthesis(), null, false, false, DatatypeRulesTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele000KeywordLeftParenthesis(), null, false, false, getKeyword$4$Delimiter());
}
protected boolean consumeRuleCall$5() throws Exception {
- return consumeTerminal(intConsumer, null, false, false, getRule().ele001LexerRuleCallINT(), DatatypeRulesTestLanguageDelimiters.ALL_KEYWORDS);
+ return consumeTerminal(intConsumer, null, false, false, getRule().ele001LexerRuleCallINT(), getRuleCall$5$Delimiter());
}
protected boolean consumeRuleCall$6() throws Exception {
- return consumeTerminal(intConsumer, null, false, false, getRule().ele01LexerRuleCallINT(), DatatypeRulesTestLanguageDelimiters.ALL_KEYWORDS);
+ return consumeTerminal(intConsumer, null, false, false, getRule().ele01LexerRuleCallINT(), getRuleCall$6$Delimiter());
}
protected boolean consumeKeyword$7() throws Exception {
- return consumeKeyword(getRule().ele1KeywordRightParenthesis(), null, false, false, DatatypeRulesTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele1KeywordRightParenthesis(), null, false, false, getKeyword$7$Delimiter());
}
public VectorElements getRule() {
@@ -89,4 +101,36 @@ public final class DatatypeRulesTestLanguageVectorConsumer extends NonTerminalCo
this.intConsumer = intConsumer;
}
+ public ICharacterClass getKeyword$4$Delimiter() {
+ return keyword$4$Delimiter;
+ }
+
+ public void setKeyword$4$Delimiter(ICharacterClass characterClass) {
+ keyword$4$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$6$Delimiter() {
+ return ruleCall$6$Delimiter;
+ }
+
+ public void setRuleCall$6$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$6$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ISequenceMatcher getRuleCall$5$Delimiter() {
+ return ruleCall$5$Delimiter;
+ }
+
+ public void setRuleCall$5$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$5$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$7$Delimiter() {
+ return keyword$7$Delimiter;
+ }
+
+ public void setKeyword$7$Delimiter(ICharacterClass characterClass) {
+ keyword$7$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
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
index 49b2df9..73a963e 100644
--- 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
@@ -8,14 +8,20 @@ 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 final class XtextGrammarTestLanguageDelimiters {
-public class XtextGrammarTestLanguageDelimiters {
-
- public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+ private XtextGrammarTestLanguageDelimiters() {
+ throw new UnsupportedOperationException("Utility classes may not be initialized");
+ }
- public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+ // TODO do not use IDConsumer internals
+ public static ICharacterClass keyword$11$Delimiter = XtextBuiltinIDConsumer.IDConsumer$$2;
+
+ public static ISequenceMatcher ruleCall$14$Delimiter = new SetBasedKeywordMatcher(
+ "abstract language", "language", "extends", "generate", "as", "import", "native", "lexer", "returns", "current");
+
+ public static ICharacterClass keyword$16$Delimiter = ICharacterClass.Factory.nullClass();
+
+ public static ISequenceMatcher ruleCall$51$Delimiter = ISequenceMatcher.Factory.nullMatcher();
- 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 ebec651..4e06979 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
@@ -138,29 +138,29 @@ public class XtextGrammarTestLanguageParserConfiguration extends AbstractParserC
}
public void configureConsumers() {
- getGrammarConsumer().setAbstractRuleConsumer(getAbstractRuleConsumer());
getGrammarConsumer().setAbstractMetamodelDeclarationConsumer(getAbstractMetamodelDeclarationConsumer());
+ getGrammarConsumer().setAbstractRuleConsumer(getAbstractRuleConsumer());
getGrammarConsumer().setIdConsumer(getIdConsumer());
- getAbstractRuleConsumer().setParserRuleConsumer(getParserRuleConsumer());
getAbstractRuleConsumer().setLexerRuleConsumer(getLexerRuleConsumer());
+ getAbstractRuleConsumer().setParserRuleConsumer(getParserRuleConsumer());
getAbstractMetamodelDeclarationConsumer().setGeneratedMetamodelConsumer(getGeneratedMetamodelConsumer());
getAbstractMetamodelDeclarationConsumer().setReferencedMetamodelConsumer(getReferencedMetamodelConsumer());
- getGeneratedMetamodelConsumer().setStringConsumer(getStringConsumer());
getGeneratedMetamodelConsumer().setIdConsumer(getIdConsumer());
+ getGeneratedMetamodelConsumer().setStringConsumer(getStringConsumer());
- getReferencedMetamodelConsumer().setStringConsumer(getStringConsumer());
getReferencedMetamodelConsumer().setIdConsumer(getIdConsumer());
+ getReferencedMetamodelConsumer().setStringConsumer(getStringConsumer());
+ getLexerRuleConsumer().setIdConsumer(getIdConsumer());
getLexerRuleConsumer().setStringConsumer(getStringConsumer());
getLexerRuleConsumer().setTypeRefConsumer(getTypeRefConsumer());
- getLexerRuleConsumer().setIdConsumer(getIdConsumer());
getParserRuleConsumer().setAlternativesConsumer(getAlternativesConsumer());
- getParserRuleConsumer().setTypeRefConsumer(getTypeRefConsumer());
getParserRuleConsumer().setIdConsumer(getIdConsumer());
+ getParserRuleConsumer().setTypeRefConsumer(getTypeRefConsumer());
getTypeRefConsumer().setIdConsumer(getIdConsumer());
@@ -168,23 +168,23 @@ public class XtextGrammarTestLanguageParserConfiguration extends AbstractParserC
getGroupConsumer().setAbstractTokenConsumer(getAbstractTokenConsumer());
- getAbstractTokenConsumer().setActionConsumer(getActionConsumer());
getAbstractTokenConsumer().setAbstractTerminalConsumer(getAbstractTerminalConsumer());
+ getAbstractTokenConsumer().setActionConsumer(getActionConsumer());
getAbstractTokenConsumer().setAssignmentConsumer(getAssignmentConsumer());
getAssignmentConsumer().setAbstractTerminalConsumer(getAbstractTerminalConsumer());
getAssignmentConsumer().setIdConsumer(getIdConsumer());
- getActionConsumer().setTypeRefConsumer(getTypeRefConsumer());
getActionConsumer().setIdConsumer(getIdConsumer());
+ getActionConsumer().setTypeRefConsumer(getTypeRefConsumer());
- getAbstractTerminalConsumer().setKeywordConsumer(getKeywordConsumer());
getAbstractTerminalConsumer().setCrossReferenceConsumer(getCrossReferenceConsumer());
+ getAbstractTerminalConsumer().setKeywordConsumer(getKeywordConsumer());
getAbstractTerminalConsumer().setParenthesizedElementConsumer(getParenthesizedElementConsumer());
getAbstractTerminalConsumer().setRuleCallConsumer(getRuleCallConsumer());
- getCrossReferenceConsumer().setTypeRefConsumer(getTypeRefConsumer());
getCrossReferenceConsumer().setIdConsumer(getIdConsumer());
+ getCrossReferenceConsumer().setTypeRefConsumer(getTypeRefConsumer());
getParenthesizedElementConsumer().setAlternativesConsumer(getAlternativesConsumer());
@@ -192,12 +192,76 @@ public class XtextGrammarTestLanguageParserConfiguration extends AbstractParserC
getRuleCallConsumer().setIdConsumer(getIdConsumer());
+ getGrammarConsumer().setRuleCall$15$Delimiter(XtextGrammarTestLanguageDelimiters.ruleCall$14$Delimiter);
+ getGrammarConsumer().setKeyword$9$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$11$Delimiter);
+ getGrammarConsumer().setRuleCall$24$Delimiter(XtextGrammarTestLanguageDelimiters.ruleCall$14$Delimiter);
+ getGrammarConsumer().setKeyword$8$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$11$Delimiter);
+ getGrammarConsumer().setKeyword$22$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$16$Delimiter);
+ getGrammarConsumer().setKeyword$18$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$11$Delimiter);
+ getGrammarConsumer().setRuleCall$11$Delimiter(XtextGrammarTestLanguageDelimiters.ruleCall$14$Delimiter);
+ getGrammarConsumer().setRuleCall$20$Delimiter(XtextGrammarTestLanguageDelimiters.ruleCall$14$Delimiter);
+ getGrammarConsumer().setKeyword$13$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$16$Delimiter);
+ getGeneratedMetamodelConsumer().setRuleCall$8$Delimiter(XtextGrammarTestLanguageDelimiters.ruleCall$51$Delimiter);
+ getGeneratedMetamodelConsumer().setRuleCall$12$Delimiter(XtextGrammarTestLanguageDelimiters.ruleCall$14$Delimiter);
+ getGeneratedMetamodelConsumer().setKeyword$10$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$11$Delimiter);
+ getGeneratedMetamodelConsumer().setRuleCall$6$Delimiter(XtextGrammarTestLanguageDelimiters.ruleCall$14$Delimiter);
+ getGeneratedMetamodelConsumer().setKeyword$4$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$11$Delimiter);
+ getReferencedMetamodelConsumer().setRuleCall$5$Delimiter(XtextGrammarTestLanguageDelimiters.ruleCall$51$Delimiter);
+ getReferencedMetamodelConsumer().setRuleCall$9$Delimiter(XtextGrammarTestLanguageDelimiters.ruleCall$14$Delimiter);
+ getReferencedMetamodelConsumer().setKeyword$7$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$11$Delimiter);
+ getReferencedMetamodelConsumer().setKeyword$3$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$11$Delimiter);
+ getLexerRuleConsumer().setRuleCall$10$Delimiter(XtextGrammarTestLanguageDelimiters.ruleCall$14$Delimiter);
+ getLexerRuleConsumer().setKeyword$7$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$11$Delimiter);
+ getLexerRuleConsumer().setKeyword$8$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$11$Delimiter);
+ getLexerRuleConsumer().setKeyword$18$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$16$Delimiter);
+ getLexerRuleConsumer().setKeyword$15$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$16$Delimiter);
+ getLexerRuleConsumer().setRuleCall$17$Delimiter(XtextGrammarTestLanguageDelimiters.ruleCall$51$Delimiter);
+ getLexerRuleConsumer().setKeyword$12$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$11$Delimiter);
+ getParserRuleConsumer().setKeyword$8$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$11$Delimiter);
+ getParserRuleConsumer().setRuleCall$6$Delimiter(XtextGrammarTestLanguageDelimiters.ruleCall$14$Delimiter);
+ getParserRuleConsumer().setKeyword$11$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$16$Delimiter);
+ getParserRuleConsumer().setKeyword$14$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$16$Delimiter);
+ getTypeRefConsumer().setCrossReference$4$Delimiter(XtextGrammarTestLanguageDelimiters.ruleCall$14$Delimiter);
+ getTypeRefConsumer().setCrossReference$8$Delimiter(XtextGrammarTestLanguageDelimiters.ruleCall$14$Delimiter);
+ getTypeRefConsumer().setKeyword$6$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$16$Delimiter);
+ getAlternativesConsumer().setKeyword$7$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$16$Delimiter);
+ getAbstractTokenConsumer().setKeyword$10$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$16$Delimiter);
+ getAbstractTokenConsumer().setKeyword$11$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$16$Delimiter);
+ getAbstractTokenConsumer().setKeyword$12$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$16$Delimiter);
+ getAssignmentConsumer().setRuleCall$4$Delimiter(XtextGrammarTestLanguageDelimiters.ruleCall$14$Delimiter);
+ getAssignmentConsumer().setKeyword$9$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$16$Delimiter);
+ getAssignmentConsumer().setKeyword$8$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$16$Delimiter);
+ getAssignmentConsumer().setKeyword$10$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$16$Delimiter);
+ getActionConsumer().setKeyword$8$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$16$Delimiter);
+ getActionConsumer().setKeyword$22$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$16$Delimiter);
+ getActionConsumer().setKeyword$14$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$16$Delimiter);
+ getActionConsumer().setKeyword$19$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$16$Delimiter);
+ getActionConsumer().setKeyword$20$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$16$Delimiter);
+ getActionConsumer().setKeyword$10$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$11$Delimiter);
+ getActionConsumer().setRuleCall$16$Delimiter(XtextGrammarTestLanguageDelimiters.ruleCall$14$Delimiter);
+ getActionConsumer().setKeyword$21$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$11$Delimiter);
+ getActionConsumer().setKeyword$11$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$16$Delimiter);
+ getCrossReferenceConsumer().setCrossReference$10$Delimiter(XtextGrammarTestLanguageDelimiters.ruleCall$14$Delimiter);
+ getCrossReferenceConsumer().setKeyword$8$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$16$Delimiter);
+ getCrossReferenceConsumer().setKeyword$12$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$16$Delimiter);
+ getCrossReferenceConsumer().setKeyword$4$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$16$Delimiter);
+ getParenthesizedElementConsumer().setKeyword$3$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$16$Delimiter);
+ getParenthesizedElementConsumer().setKeyword$5$Delimiter(XtextGrammarTestLanguageDelimiters.keyword$16$Delimiter);
+ getKeywordConsumer().setRuleCall$2$Delimiter(XtextGrammarTestLanguageDelimiters.ruleCall$51$Delimiter);
+ getRuleCallConsumer().setCrossReference$2$Delimiter(XtextGrammarTestLanguageDelimiters.ruleCall$14$Delimiter);
+ // TODO remove workaround
getIdConsumer().initFields(this);
+ // TODO remove workaround
getIntConsumer().initFields(this);
+ // TODO remove workaround
getStringConsumer().initFields(this);
+ // TODO remove workaround
getMlCommentConsumer().initFields(this);
+ // TODO remove workaround
getSlCommentConsumer().initFields(this);
+ // TODO remove workaround
getWsConsumer().initFields(this);
+ // TODO remove workaround
getAnyOtherConsumer().initFields(this);
}
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 246760f..65808a7 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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.XtextGrammarTestLanguageDelimiters;
-
import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageGeneratedMetamodelConsumer;
import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageReferencedMetamodelConsumer;
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 dbf53cd..1119c33 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
@@ -11,21 +11,21 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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;
+import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageParserRuleConsumer;
@SuppressWarnings("unused")
public final class XtextGrammarTestLanguageAbstractRuleConsumer extends NonTerminalConsumer {
- private XtextGrammarTestLanguageParserRuleConsumer parserRuleConsumer;
private XtextGrammarTestLanguageLexerRuleConsumer lexerRuleConsumer;
+ private XtextGrammarTestLanguageParserRuleConsumer parserRuleConsumer;
public XtextGrammarTestLanguageAbstractRuleConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
@@ -66,12 +66,12 @@ public final class XtextGrammarTestLanguageAbstractRuleConsumer extends NonTermi
return "AbstractRule";
}
- public void setParserRuleConsumer(XtextGrammarTestLanguageParserRuleConsumer parserRuleConsumer) {
- this.parserRuleConsumer = parserRuleConsumer;
- }
-
public void setLexerRuleConsumer(XtextGrammarTestLanguageLexerRuleConsumer lexerRuleConsumer) {
this.lexerRuleConsumer = lexerRuleConsumer;
}
+ public void setParserRuleConsumer(XtextGrammarTestLanguageParserRuleConsumer parserRuleConsumer) {
+ this.parserRuleConsumer = parserRuleConsumer;
+ }
+
}
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 17fc80f..14b0549 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
@@ -11,23 +11,23 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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.XtextGrammarTestLanguageKeywordConsumer;
import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageCrossReferenceConsumer;
+import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageKeywordConsumer;
import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageParenthesizedElementConsumer;
import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageRuleCallConsumer;
@SuppressWarnings("unused")
public final class XtextGrammarTestLanguageAbstractTerminalConsumer extends NonTerminalConsumer {
- private XtextGrammarTestLanguageKeywordConsumer keywordConsumer;
private XtextGrammarTestLanguageCrossReferenceConsumer crossReferenceConsumer;
+ private XtextGrammarTestLanguageKeywordConsumer keywordConsumer;
private XtextGrammarTestLanguageParenthesizedElementConsumer parenthesizedElementConsumer;
private XtextGrammarTestLanguageRuleCallConsumer ruleCallConsumer;
@@ -82,14 +82,14 @@ public final class XtextGrammarTestLanguageAbstractTerminalConsumer extends NonT
return "AbstractElement";
}
- 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 setParenthesizedElementConsumer(XtextGrammarTestLanguageParenthesizedElementConsumer parenthesizedElementConsumer) {
this.parenthesizedElementConsumer = parenthesizedElementConsumer;
}
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 0068182..dae36ef 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
@@ -11,28 +11,37 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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.XtextGrammarTestLanguageActionConsumer;
import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageAbstractTerminalConsumer;
+import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageActionConsumer;
import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageAssignmentConsumer;
@SuppressWarnings("unused")
public final class XtextGrammarTestLanguageAbstractTokenConsumer extends NonTerminalConsumer {
- private XtextGrammarTestLanguageActionConsumer actionConsumer;
private XtextGrammarTestLanguageAbstractTerminalConsumer abstractTerminalConsumer;
+ private XtextGrammarTestLanguageActionConsumer actionConsumer;
private XtextGrammarTestLanguageAssignmentConsumer assignmentConsumer;
+ private ICharacterClass keyword$10$Delimiter;
+
+ private ICharacterClass keyword$11$Delimiter;
+
+ private ICharacterClass keyword$12$Delimiter;
+
public XtextGrammarTestLanguageAbstractTokenConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$10$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$11$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$12$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -80,11 +89,11 @@ public final class XtextGrammarTestLanguageAbstractTokenConsumer extends NonTerm
}
protected boolean doConsumeAssignment$7() throws Exception {
- if (consumeKeyword(getRule().ele1000KeywordQuestionMark(), "cardinality", false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER))
+ if (consumeKeyword(getRule().ele1000KeywordQuestionMark(), "cardinality", false, false, getKeyword$10$Delimiter()))
return true;
- if (consumeKeyword(getRule().ele1001KeywordAsterisk(), "cardinality", false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER))
+ if (consumeKeyword(getRule().ele1001KeywordAsterisk(), "cardinality", false, false, getKeyword$11$Delimiter()))
return true;
- if (consumeKeyword(getRule().ele101KeywordPlusSign(), "cardinality", false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER))
+ if (consumeKeyword(getRule().ele101KeywordPlusSign(), "cardinality", false, false, getKeyword$12$Delimiter()))
return true;
return false;
}
@@ -102,16 +111,40 @@ public final class XtextGrammarTestLanguageAbstractTokenConsumer extends NonTerm
return "AbstractElement";
}
- public void setActionConsumer(XtextGrammarTestLanguageActionConsumer actionConsumer) {
- this.actionConsumer = actionConsumer;
- }
-
public void setAbstractTerminalConsumer(XtextGrammarTestLanguageAbstractTerminalConsumer abstractTerminalConsumer) {
this.abstractTerminalConsumer = abstractTerminalConsumer;
}
+ public void setActionConsumer(XtextGrammarTestLanguageActionConsumer actionConsumer) {
+ this.actionConsumer = actionConsumer;
+ }
+
public void setAssignmentConsumer(XtextGrammarTestLanguageAssignmentConsumer assignmentConsumer) {
this.assignmentConsumer = assignmentConsumer;
}
+ public ICharacterClass getKeyword$10$Delimiter() {
+ return keyword$10$Delimiter;
+ }
+
+ public void setKeyword$10$Delimiter(ICharacterClass characterClass) {
+ keyword$10$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$11$Delimiter() {
+ return keyword$11$Delimiter;
+ }
+
+ public void setKeyword$11$Delimiter(ICharacterClass characterClass) {
+ keyword$11$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$12$Delimiter() {
+ return keyword$12$Delimiter;
+ }
+
+ public void setKeyword$12$Delimiter(ICharacterClass characterClass) {
+ keyword$12$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
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 a199fe4..b130b95 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
@@ -11,26 +11,53 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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.XtextGrammarTestLanguageDelimiters;
-
-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 XtextGrammarTestLanguageActionConsumer extends NonTerminalConsumer {
- private XtextGrammarTestLanguageTypeRefConsumer typeRefConsumer;
private XtextBuiltinIDConsumer idConsumer;
+ private XtextGrammarTestLanguageTypeRefConsumer typeRefConsumer;
+ private ICharacterClass keyword$8$Delimiter;
+
+ private ICharacterClass keyword$22$Delimiter;
+
+ private ICharacterClass keyword$14$Delimiter;
+
+ private ICharacterClass keyword$19$Delimiter;
+
+ private ICharacterClass keyword$20$Delimiter;
+
+ private ICharacterClass keyword$10$Delimiter;
+
+ private ISequenceMatcher ruleCall$16$Delimiter;
+
+ private ICharacterClass keyword$21$Delimiter;
+
+ private ICharacterClass keyword$11$Delimiter;
+
public XtextGrammarTestLanguageActionConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$8$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$22$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$14$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$19$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$20$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$10$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$16$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$21$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$11$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -75,7 +102,7 @@ public final class XtextGrammarTestLanguageActionConsumer extends NonTerminalCon
}
protected boolean consumeKeyword$8() throws Exception {
- return consumeKeyword(getRule().ele0000000KeywordLeftCurlyBracket(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele0000000KeywordLeftCurlyBracket(), null, false, false, getKeyword$8$Delimiter());
}
protected boolean consumeGroup$9() throws Exception {
@@ -97,11 +124,11 @@ public final class XtextGrammarTestLanguageActionConsumer extends NonTerminalCon
}
protected boolean consumeKeyword$10() throws Exception {
- return consumeKeyword(getRule().ele00000010KeywordCurrent(), null, false, false, XtextGrammarTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele00000010KeywordCurrent(), null, false, false, getKeyword$10$Delimiter());
}
protected boolean consumeKeyword$11() throws Exception {
- return consumeKeyword(getRule().ele00000011KeywordEqualsSign(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele00000011KeywordEqualsSign(), null, false, false, getKeyword$11$Delimiter());
}
protected boolean consumeAssignment$12() throws Exception {
@@ -111,29 +138,29 @@ public final class XtextGrammarTestLanguageActionConsumer extends NonTerminalCon
}
protected boolean consumeKeyword$14() throws Exception {
- return consumeKeyword(getRule().ele00001KeywordFullStop(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele00001KeywordFullStop(), null, false, false, getKeyword$14$Delimiter());
}
protected boolean consumeAssignment$15() throws Exception {
- if (consumeTerminal(idConsumer, "feature", false, false, getRule().ele00010LexerRuleCallID(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "feature", false, false, getRule().ele00010LexerRuleCallID(), getRuleCall$16$Delimiter()))
return true;
return false;
}
protected boolean consumeAssignment$17() throws Exception {
- if (consumeKeyword(getRule().ele00100KeywordEqualsSign(), "operator", false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER))
+ if (consumeKeyword(getRule().ele00100KeywordEqualsSign(), "operator", false, false, getKeyword$19$Delimiter()))
return true;
- if (consumeKeyword(getRule().ele00101KeywordPlusSignEqualsSign(), "operator", false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER))
+ if (consumeKeyword(getRule().ele00101KeywordPlusSignEqualsSign(), "operator", false, false, getKeyword$20$Delimiter()))
return true;
return false;
}
protected boolean consumeKeyword$21() throws Exception {
- return consumeKeyword(getRule().ele01KeywordCurrent(), null, false, false, XtextGrammarTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele01KeywordCurrent(), null, false, false, getKeyword$21$Delimiter());
}
protected boolean consumeKeyword$22() throws Exception {
- return consumeKeyword(getRule().ele1KeywordRightCurlyBracket(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele1KeywordRightCurlyBracket(), null, false, false, getKeyword$22$Delimiter());
}
public ActionElements getRule() {
@@ -149,12 +176,84 @@ public final class XtextGrammarTestLanguageActionConsumer extends NonTerminalCon
return "Action";
}
+ public void setIdConsumer(XtextBuiltinIDConsumer idConsumer) {
+ this.idConsumer = idConsumer;
+ }
+
public void setTypeRefConsumer(XtextGrammarTestLanguageTypeRefConsumer typeRefConsumer) {
this.typeRefConsumer = typeRefConsumer;
}
- public void setIdConsumer(XtextBuiltinIDConsumer idConsumer) {
- this.idConsumer = idConsumer;
+ public ICharacterClass getKeyword$8$Delimiter() {
+ return keyword$8$Delimiter;
+ }
+
+ public void setKeyword$8$Delimiter(ICharacterClass characterClass) {
+ keyword$8$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$22$Delimiter() {
+ return keyword$22$Delimiter;
+ }
+
+ public void setKeyword$22$Delimiter(ICharacterClass characterClass) {
+ keyword$22$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$14$Delimiter() {
+ return keyword$14$Delimiter;
+ }
+
+ public void setKeyword$14$Delimiter(ICharacterClass characterClass) {
+ keyword$14$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$19$Delimiter() {
+ return keyword$19$Delimiter;
+ }
+
+ public void setKeyword$19$Delimiter(ICharacterClass characterClass) {
+ keyword$19$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$20$Delimiter() {
+ return keyword$20$Delimiter;
+ }
+
+ public void setKeyword$20$Delimiter(ICharacterClass characterClass) {
+ keyword$20$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$10$Delimiter() {
+ return keyword$10$Delimiter;
+ }
+
+ public void setKeyword$10$Delimiter(ICharacterClass characterClass) {
+ keyword$10$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$16$Delimiter() {
+ return ruleCall$16$Delimiter;
+ }
+
+ public void setRuleCall$16$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$16$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$21$Delimiter() {
+ return keyword$21$Delimiter;
+ }
+
+ public void setKeyword$21$Delimiter(ICharacterClass characterClass) {
+ keyword$21$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$11$Delimiter() {
+ return keyword$11$Delimiter;
+ }
+
+ public void setKeyword$11$Delimiter(ICharacterClass characterClass) {
+ keyword$11$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
}
}
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 e1ae517..15a2c2a 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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")
@@ -25,10 +25,13 @@ public final class XtextGrammarTestLanguageAlternativesConsumer extends NonTermi
private XtextGrammarTestLanguageGroupConsumer groupConsumer;
+ private ICharacterClass keyword$7$Delimiter;
+
public XtextGrammarTestLanguageAlternativesConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$7$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -79,7 +82,7 @@ public final class XtextGrammarTestLanguageAlternativesConsumer extends NonTermi
}
protected boolean consumeKeyword$7() throws Exception {
- return consumeKeyword(getRule().ele101KeywordVerticalLine(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele101KeywordVerticalLine(), null, false, false, getKeyword$7$Delimiter());
}
protected boolean consumeAssignment$8() throws Exception {
@@ -105,4 +108,12 @@ public final class XtextGrammarTestLanguageAlternativesConsumer extends NonTermi
this.groupConsumer = groupConsumer;
}
+ public ICharacterClass getKeyword$7$Delimiter() {
+ return keyword$7$Delimiter;
+ }
+
+ public void setKeyword$7$Delimiter(ICharacterClass characterClass) {
+ keyword$7$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
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 9bb56a8..325fb90 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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.XtextGrammarTestLanguageDelimiters;
-
import org.eclipse.xtext.parser.packrat.consumers.XtextGrammarTestLanguageAbstractTerminalConsumer;
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
@@ -27,10 +27,22 @@ public final class XtextGrammarTestLanguageAssignmentConsumer extends NonTermina
private XtextGrammarTestLanguageAbstractTerminalConsumer abstractTerminalConsumer;
private XtextBuiltinIDConsumer idConsumer;
+ private ISequenceMatcher ruleCall$4$Delimiter;
+
+ private ICharacterClass keyword$9$Delimiter;
+
+ private ICharacterClass keyword$8$Delimiter;
+
+ private ICharacterClass keyword$10$Delimiter;
+
public XtextGrammarTestLanguageAssignmentConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$4$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$9$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$8$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$10$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -55,17 +67,17 @@ public final class XtextGrammarTestLanguageAssignmentConsumer extends NonTermina
}
protected boolean consumeAssignment$3() throws Exception {
- if (consumeTerminal(idConsumer, "feature", false, false, getRule().ele000LexerRuleCallID(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "feature", false, false, getRule().ele000LexerRuleCallID(), getRuleCall$4$Delimiter()))
return true;
return false;
}
protected boolean consumeAssignment$5() throws Exception {
- if (consumeKeyword(getRule().ele01000KeywordPlusSignEqualsSign(), "operator", false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER))
+ if (consumeKeyword(getRule().ele01000KeywordPlusSignEqualsSign(), "operator", false, false, getKeyword$8$Delimiter()))
return true;
- if (consumeKeyword(getRule().ele01001KeywordEqualsSign(), "operator", false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER))
+ if (consumeKeyword(getRule().ele01001KeywordEqualsSign(), "operator", false, false, getKeyword$9$Delimiter()))
return true;
- if (consumeKeyword(getRule().ele0101KeywordQuestionMarkEqualsSign(), "operator", false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER))
+ if (consumeKeyword(getRule().ele0101KeywordQuestionMarkEqualsSign(), "operator", false, false, getKeyword$10$Delimiter()))
return true;
return false;
}
@@ -97,4 +109,36 @@ public final class XtextGrammarTestLanguageAssignmentConsumer extends NonTermina
this.idConsumer = idConsumer;
}
+ public ISequenceMatcher getRuleCall$4$Delimiter() {
+ return ruleCall$4$Delimiter;
+ }
+
+ public void setRuleCall$4$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$4$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$9$Delimiter() {
+ return keyword$9$Delimiter;
+ }
+
+ public void setKeyword$9$Delimiter(ICharacterClass characterClass) {
+ keyword$9$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$8$Delimiter() {
+ return keyword$8$Delimiter;
+ }
+
+ public void setKeyword$8$Delimiter(ICharacterClass characterClass) {
+ keyword$8$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$10$Delimiter() {
+ return keyword$10$Delimiter;
+ }
+
+ public void setKeyword$10$Delimiter(ICharacterClass characterClass) {
+ keyword$10$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
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 a40c7d0..93be1f2 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
@@ -11,26 +11,38 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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.XtextGrammarTestLanguageDelimiters;
-
-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 XtextGrammarTestLanguageCrossReferenceConsumer extends NonTerminalConsumer {
- private XtextGrammarTestLanguageTypeRefConsumer typeRefConsumer;
private XtextBuiltinIDConsumer idConsumer;
+ private XtextGrammarTestLanguageTypeRefConsumer typeRefConsumer;
+ private ISequenceMatcher crossReference$10$Delimiter;
+
+ private ICharacterClass keyword$8$Delimiter;
+
+ private ICharacterClass keyword$12$Delimiter;
+
+ private ICharacterClass keyword$4$Delimiter;
+
public XtextGrammarTestLanguageCrossReferenceConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ crossReference$10$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$8$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$12$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$4$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -59,7 +71,7 @@ public final class XtextGrammarTestLanguageCrossReferenceConsumer extends NonTer
}
protected boolean consumeKeyword$4() throws Exception {
- return consumeKeyword(getRule().ele000KeywordLeftSquareBracket(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele000KeywordLeftSquareBracket(), null, false, false, getKeyword$4$Delimiter());
}
protected boolean consumeAssignment$5() throws Exception {
@@ -87,17 +99,17 @@ public final class XtextGrammarTestLanguageCrossReferenceConsumer extends NonTer
}
protected boolean consumeKeyword$8() throws Exception {
- return consumeKeyword(getRule().ele010KeywordVerticalLine(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele010KeywordVerticalLine(), null, false, false, getKeyword$8$Delimiter());
}
protected boolean consumeAssignment$9() throws Exception {
- if (consumeTerminal(idConsumer, null, false, false, getRule().ele0110CrossReferenceEStringAbstractRule(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, null, false, false, getRule().ele0110CrossReferenceEStringAbstractRule(), getCrossReference$10$Delimiter()))
return true;
return false;
}
protected boolean consumeKeyword$12() throws Exception {
- return consumeKeyword(getRule().ele1KeywordRightSquareBracket(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele1KeywordRightSquareBracket(), null, false, false, getKeyword$12$Delimiter());
}
public CrossReferenceElements getRule() {
@@ -113,12 +125,44 @@ public final class XtextGrammarTestLanguageCrossReferenceConsumer extends NonTer
return "CrossReference";
}
+ public void setIdConsumer(XtextBuiltinIDConsumer idConsumer) {
+ this.idConsumer = idConsumer;
+ }
+
public void setTypeRefConsumer(XtextGrammarTestLanguageTypeRefConsumer typeRefConsumer) {
this.typeRefConsumer = typeRefConsumer;
}
- public void setIdConsumer(XtextBuiltinIDConsumer idConsumer) {
- this.idConsumer = idConsumer;
+ public ISequenceMatcher getCrossReference$10$Delimiter() {
+ return crossReference$10$Delimiter;
+ }
+
+ public void setCrossReference$10$Delimiter(ISequenceMatcher matcher) {
+ crossReference$10$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$8$Delimiter() {
+ return keyword$8$Delimiter;
+ }
+
+ public void setKeyword$8$Delimiter(ICharacterClass characterClass) {
+ keyword$8$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$12$Delimiter() {
+ return keyword$12$Delimiter;
+ }
+
+ public void setKeyword$12$Delimiter(ICharacterClass characterClass) {
+ keyword$12$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$4$Delimiter() {
+ return keyword$4$Delimiter;
+ }
+
+ public void setKeyword$4$Delimiter(ICharacterClass characterClass) {
+ keyword$4$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
}
}
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 a8a589e..c7b0c4a 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
@@ -11,26 +11,41 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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;
+import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinSTRINGConsumer;
@SuppressWarnings("unused")
public final class XtextGrammarTestLanguageGeneratedMetamodelConsumer extends NonTerminalConsumer {
- private XtextBuiltinSTRINGConsumer stringConsumer;
private XtextBuiltinIDConsumer idConsumer;
+ private XtextBuiltinSTRINGConsumer stringConsumer;
+ private ISequenceMatcher ruleCall$8$Delimiter;
+
+ private ISequenceMatcher ruleCall$12$Delimiter;
+
+ private ICharacterClass keyword$10$Delimiter;
+
+ private ISequenceMatcher ruleCall$6$Delimiter;
+
+ private ICharacterClass keyword$4$Delimiter;
+
public XtextGrammarTestLanguageGeneratedMetamodelConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$8$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ ruleCall$12$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$10$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$6$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$4$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -59,17 +74,17 @@ public final class XtextGrammarTestLanguageGeneratedMetamodelConsumer extends No
}
protected boolean consumeKeyword$4() throws Exception {
- return consumeKeyword(getRule().ele000KeywordGenerate(), null, false, false, XtextGrammarTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele000KeywordGenerate(), null, false, false, getKeyword$4$Delimiter());
}
protected boolean consumeAssignment$5() throws Exception {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID(), getRuleCall$6$Delimiter()))
return true;
return false;
}
protected boolean consumeAssignment$7() throws Exception {
- if (consumeTerminal(stringConsumer, "nsURI", false, false, getRule().ele010LexerRuleCallSTRING(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(stringConsumer, "nsURI", false, false, getRule().ele010LexerRuleCallSTRING(), getRuleCall$8$Delimiter()))
return true;
return false;
}
@@ -93,11 +108,11 @@ public final class XtextGrammarTestLanguageGeneratedMetamodelConsumer extends No
}
protected boolean consumeKeyword$10() throws Exception {
- return consumeKeyword(getRule().ele10KeywordAs(), null, false, false, XtextGrammarTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele10KeywordAs(), null, false, false, getKeyword$10$Delimiter());
}
protected boolean consumeAssignment$11() throws Exception {
- if (consumeTerminal(idConsumer, "alias", false, false, getRule().ele110LexerRuleCallID(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "alias", false, false, getRule().ele110LexerRuleCallID(), getRuleCall$12$Delimiter()))
return true;
return false;
}
@@ -115,12 +130,52 @@ public final class XtextGrammarTestLanguageGeneratedMetamodelConsumer extends No
return "GeneratedMetamodel";
}
+ public void setIdConsumer(XtextBuiltinIDConsumer idConsumer) {
+ this.idConsumer = idConsumer;
+ }
+
public void setStringConsumer(XtextBuiltinSTRINGConsumer stringConsumer) {
this.stringConsumer = stringConsumer;
}
- public void setIdConsumer(XtextBuiltinIDConsumer idConsumer) {
- this.idConsumer = idConsumer;
+ public ISequenceMatcher getRuleCall$8$Delimiter() {
+ return ruleCall$8$Delimiter;
+ }
+
+ public void setRuleCall$8$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$8$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ISequenceMatcher getRuleCall$12$Delimiter() {
+ return ruleCall$12$Delimiter;
+ }
+
+ public void setRuleCall$12$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$12$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$10$Delimiter() {
+ return keyword$10$Delimiter;
+ }
+
+ public void setKeyword$10$Delimiter(ICharacterClass characterClass) {
+ keyword$10$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$6$Delimiter() {
+ return ruleCall$6$Delimiter;
+ }
+
+ public void setRuleCall$6$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$6$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$4$Delimiter() {
+ return keyword$4$Delimiter;
+ }
+
+ public void setKeyword$4$Delimiter(ICharacterClass characterClass) {
+ keyword$4$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
}
}
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 b283136..9a1c2d5 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
@@ -11,28 +11,55 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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.parser.packrat.consumers.XtextGrammarTestLanguageAbstractRuleConsumer;
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
@SuppressWarnings("unused")
public final class XtextGrammarTestLanguageGrammarConsumer extends NonTerminalConsumer {
- private XtextGrammarTestLanguageAbstractRuleConsumer abstractRuleConsumer;
private XtextGrammarTestLanguageAbstractMetamodelDeclarationConsumer abstractMetamodelDeclarationConsumer;
+ private XtextGrammarTestLanguageAbstractRuleConsumer abstractRuleConsumer;
private XtextBuiltinIDConsumer idConsumer;
+ private ISequenceMatcher ruleCall$15$Delimiter;
+
+ private ICharacterClass keyword$9$Delimiter;
+
+ private ISequenceMatcher ruleCall$24$Delimiter;
+
+ private ICharacterClass keyword$8$Delimiter;
+
+ private ICharacterClass keyword$22$Delimiter;
+
+ private ICharacterClass keyword$18$Delimiter;
+
+ private ISequenceMatcher ruleCall$11$Delimiter;
+
+ private ISequenceMatcher ruleCall$20$Delimiter;
+
+ private ICharacterClass keyword$13$Delimiter;
+
public XtextGrammarTestLanguageGrammarConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$15$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$9$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$24$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$8$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$22$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$18$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$11$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ ruleCall$20$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$13$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -77,17 +104,17 @@ public final class XtextGrammarTestLanguageGrammarConsumer extends NonTerminalCo
}
protected boolean consumeAssignment$7() throws Exception {
- if (consumeKeyword(getRule().ele0000000KeywordAbstractLanguage(), "abstract", false, true, XtextGrammarTestLanguageDelimiters.ID_DELIMITER))
+ if (consumeKeyword(getRule().ele0000000KeywordAbstractLanguage(), "abstract", false, true, getKeyword$8$Delimiter()))
return true;
return false;
}
protected boolean consumeKeyword$9() throws Exception {
- return consumeKeyword(getRule().ele000001KeywordLanguage(), null, false, false, XtextGrammarTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele000001KeywordLanguage(), null, false, false, getKeyword$9$Delimiter());
}
protected boolean consumeAssignment$10() throws Exception {
- if (consumeTerminal(idConsumer, "idElements", true, false, getRule().ele000010LexerRuleCallID(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "idElements", true, false, getRule().ele000010LexerRuleCallID(), getRuleCall$11$Delimiter()))
return true;
return false;
}
@@ -111,11 +138,11 @@ public final class XtextGrammarTestLanguageGrammarConsumer extends NonTerminalCo
}
protected boolean consumeKeyword$13() throws Exception {
- return consumeKeyword(getRule().ele00010KeywordFullStop(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele00010KeywordFullStop(), null, false, false, getKeyword$13$Delimiter());
}
protected boolean consumeAssignment$14() throws Exception {
- if (consumeTerminal(idConsumer, "idElements", true, false, getRule().ele000110LexerRuleCallID(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "idElements", true, false, getRule().ele000110LexerRuleCallID(), getRuleCall$15$Delimiter()))
return true;
return false;
}
@@ -143,11 +170,11 @@ public final class XtextGrammarTestLanguageGrammarConsumer extends NonTerminalCo
}
protected boolean consumeKeyword$18() throws Exception {
- return consumeKeyword(getRule().ele00100KeywordExtends(), null, false, false, XtextGrammarTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele00100KeywordExtends(), null, false, false, getKeyword$18$Delimiter());
}
protected boolean consumeAssignment$19() throws Exception {
- if (consumeTerminal(idConsumer, "superGrammarIdElements", true, false, getRule().ele001010LexerRuleCallID(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "superGrammarIdElements", true, false, getRule().ele001010LexerRuleCallID(), getRuleCall$20$Delimiter()))
return true;
return false;
}
@@ -171,11 +198,11 @@ public final class XtextGrammarTestLanguageGrammarConsumer extends NonTerminalCo
}
protected boolean consumeKeyword$22() throws Exception {
- return consumeKeyword(getRule().ele00110KeywordFullStop(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele00110KeywordFullStop(), null, false, false, getKeyword$22$Delimiter());
}
protected boolean consumeAssignment$23() throws Exception {
- if (consumeTerminal(idConsumer, "superGrammarIdElements", true, false, getRule().ele001110LexerRuleCallID(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "superGrammarIdElements", true, false, getRule().ele001110LexerRuleCallID(), getRuleCall$24$Delimiter()))
return true;
return false;
}
@@ -218,16 +245,88 @@ public final class XtextGrammarTestLanguageGrammarConsumer extends NonTerminalCo
return "Grammar";
}
- public void setAbstractRuleConsumer(XtextGrammarTestLanguageAbstractRuleConsumer abstractRuleConsumer) {
- this.abstractRuleConsumer = abstractRuleConsumer;
- }
-
public void setAbstractMetamodelDeclarationConsumer(XtextGrammarTestLanguageAbstractMetamodelDeclarationConsumer abstractMetamodelDeclarationConsumer) {
this.abstractMetamodelDeclarationConsumer = abstractMetamodelDeclarationConsumer;
}
+ public void setAbstractRuleConsumer(XtextGrammarTestLanguageAbstractRuleConsumer abstractRuleConsumer) {
+ this.abstractRuleConsumer = abstractRuleConsumer;
+ }
+
public void setIdConsumer(XtextBuiltinIDConsumer idConsumer) {
this.idConsumer = idConsumer;
}
+ public ISequenceMatcher getRuleCall$15$Delimiter() {
+ return ruleCall$15$Delimiter;
+ }
+
+ public void setRuleCall$15$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$15$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$9$Delimiter() {
+ return keyword$9$Delimiter;
+ }
+
+ public void setKeyword$9$Delimiter(ICharacterClass characterClass) {
+ keyword$9$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$24$Delimiter() {
+ return ruleCall$24$Delimiter;
+ }
+
+ public void setRuleCall$24$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$24$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$8$Delimiter() {
+ return keyword$8$Delimiter;
+ }
+
+ public void setKeyword$8$Delimiter(ICharacterClass characterClass) {
+ keyword$8$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$22$Delimiter() {
+ return keyword$22$Delimiter;
+ }
+
+ public void setKeyword$22$Delimiter(ICharacterClass characterClass) {
+ keyword$22$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$18$Delimiter() {
+ return keyword$18$Delimiter;
+ }
+
+ public void setKeyword$18$Delimiter(ICharacterClass characterClass) {
+ keyword$18$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$11$Delimiter() {
+ return ruleCall$11$Delimiter;
+ }
+
+ public void setRuleCall$11$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$11$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ISequenceMatcher getRuleCall$20$Delimiter() {
+ return ruleCall$20$Delimiter;
+ }
+
+ public void setRuleCall$20$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$20$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$13$Delimiter() {
+ return keyword$13$Delimiter;
+ }
+
+ public void setKeyword$13$Delimiter(ICharacterClass characterClass) {
+ keyword$13$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
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 a0750cc..718e7c9 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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")
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 824fbca..70242ae 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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")
@@ -25,10 +25,13 @@ public final class XtextGrammarTestLanguageKeywordConsumer extends NonTerminalCo
private XtextBuiltinSTRINGConsumer stringConsumer;
+ private ISequenceMatcher ruleCall$2$Delimiter;
+
public XtextGrammarTestLanguageKeywordConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$2$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -36,7 +39,7 @@ public final class XtextGrammarTestLanguageKeywordConsumer extends NonTerminalCo
}
protected boolean consumeAssignment$1() throws Exception {
- if (consumeTerminal(stringConsumer, "value", false, false, getRule().ele0LexerRuleCallSTRING(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(stringConsumer, "value", false, false, getRule().ele0LexerRuleCallSTRING(), getRuleCall$2$Delimiter()))
return true;
return false;
}
@@ -58,4 +61,12 @@ public final class XtextGrammarTestLanguageKeywordConsumer extends NonTerminalCo
this.stringConsumer = stringConsumer;
}
+ public ISequenceMatcher getRuleCall$2$Delimiter() {
+ return ruleCall$2$Delimiter;
+ }
+
+ public void setRuleCall$2$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$2$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
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 68ae3d7..704277e 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
@@ -11,28 +11,49 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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.XtextBuiltinIDConsumer;
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;
@SuppressWarnings("unused")
public final class XtextGrammarTestLanguageLexerRuleConsumer extends NonTerminalConsumer {
+ private XtextBuiltinIDConsumer idConsumer;
private XtextBuiltinSTRINGConsumer stringConsumer;
private XtextGrammarTestLanguageTypeRefConsumer typeRefConsumer;
- private XtextBuiltinIDConsumer idConsumer;
+ private ISequenceMatcher ruleCall$10$Delimiter;
+
+ private ICharacterClass keyword$7$Delimiter;
+
+ private ICharacterClass keyword$8$Delimiter;
+
+ private ICharacterClass keyword$18$Delimiter;
+
+ private ICharacterClass keyword$15$Delimiter;
+
+ private ISequenceMatcher ruleCall$17$Delimiter;
+
+ private ICharacterClass keyword$12$Delimiter;
+
public XtextGrammarTestLanguageLexerRuleConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$10$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$7$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$8$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$18$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$15$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$17$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$12$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -77,15 +98,15 @@ public final class XtextGrammarTestLanguageLexerRuleConsumer extends NonTerminal
}
protected boolean consumeKeyword$7() throws Exception {
- return consumeKeyword(getRule().ele000000KeywordNative(), null, false, false, XtextGrammarTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele000000KeywordNative(), null, false, false, getKeyword$7$Delimiter());
}
protected boolean consumeKeyword$8() throws Exception {
- return consumeKeyword(getRule().ele000001KeywordLexer(), null, false, false, XtextGrammarTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele000001KeywordLexer(), null, false, false, getKeyword$8$Delimiter());
}
protected boolean consumeAssignment$9() throws Exception {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele000010LexerRuleCallID(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele000010LexerRuleCallID(), getRuleCall$10$Delimiter()))
return true;
return false;
}
@@ -109,7 +130,7 @@ public final class XtextGrammarTestLanguageLexerRuleConsumer extends NonTerminal
}
protected boolean consumeKeyword$12() throws Exception {
- return consumeKeyword(getRule().ele00010KeywordReturns(), null, false, false, XtextGrammarTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele00010KeywordReturns(), null, false, false, getKeyword$12$Delimiter());
}
protected boolean consumeAssignment$13() throws Exception {
@@ -119,17 +140,17 @@ public final class XtextGrammarTestLanguageLexerRuleConsumer extends NonTerminal
}
protected boolean consumeKeyword$15() throws Exception {
- return consumeKeyword(getRule().ele001KeywordColon(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele001KeywordColon(), null, false, false, getKeyword$15$Delimiter());
}
protected boolean consumeAssignment$16() throws Exception {
- if (consumeTerminal(stringConsumer, "body", false, false, getRule().ele010LexerRuleCallSTRING(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(stringConsumer, "body", false, false, getRule().ele010LexerRuleCallSTRING(), getRuleCall$17$Delimiter()))
return true;
return false;
}
protected boolean consumeKeyword$18() throws Exception {
- return consumeKeyword(getRule().ele1KeywordSemicolon(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele1KeywordSemicolon(), null, false, false, getKeyword$18$Delimiter());
}
public LexerRuleElements getRule() {
@@ -145,6 +166,10 @@ public final class XtextGrammarTestLanguageLexerRuleConsumer extends NonTerminal
return "LexerRule";
}
+ public void setIdConsumer(XtextBuiltinIDConsumer idConsumer) {
+ this.idConsumer = idConsumer;
+ }
+
public void setStringConsumer(XtextBuiltinSTRINGConsumer stringConsumer) {
this.stringConsumer = stringConsumer;
}
@@ -153,8 +178,60 @@ public final class XtextGrammarTestLanguageLexerRuleConsumer extends NonTerminal
this.typeRefConsumer = typeRefConsumer;
}
- public void setIdConsumer(XtextBuiltinIDConsumer idConsumer) {
- this.idConsumer = idConsumer;
+ public ISequenceMatcher getRuleCall$10$Delimiter() {
+ return ruleCall$10$Delimiter;
+ }
+
+ public void setRuleCall$10$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$10$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$7$Delimiter() {
+ return keyword$7$Delimiter;
+ }
+
+ public void setKeyword$7$Delimiter(ICharacterClass characterClass) {
+ keyword$7$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$8$Delimiter() {
+ return keyword$8$Delimiter;
+ }
+
+ public void setKeyword$8$Delimiter(ICharacterClass characterClass) {
+ keyword$8$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$18$Delimiter() {
+ return keyword$18$Delimiter;
+ }
+
+ public void setKeyword$18$Delimiter(ICharacterClass characterClass) {
+ keyword$18$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$15$Delimiter() {
+ return keyword$15$Delimiter;
+ }
+
+ public void setKeyword$15$Delimiter(ICharacterClass characterClass) {
+ keyword$15$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$17$Delimiter() {
+ return ruleCall$17$Delimiter;
+ }
+
+ public void setRuleCall$17$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$17$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$12$Delimiter() {
+ return keyword$12$Delimiter;
+ }
+
+ public void setKeyword$12$Delimiter(ICharacterClass characterClass) {
+ keyword$12$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
}
}
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 1312eb0..4a9c935 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
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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")
@@ -25,10 +25,16 @@ public final class XtextGrammarTestLanguageParenthesizedElementConsumer extends
private XtextGrammarTestLanguageAlternativesConsumer alternativesConsumer;
+ private ICharacterClass keyword$3$Delimiter;
+
+ private ICharacterClass keyword$5$Delimiter;
+
public XtextGrammarTestLanguageParenthesizedElementConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$3$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$5$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -53,7 +59,7 @@ public final class XtextGrammarTestLanguageParenthesizedElementConsumer extends
}
protected boolean consumeKeyword$3() throws Exception {
- return consumeKeyword(getRule().ele00KeywordLeftParenthesis(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele00KeywordLeftParenthesis(), null, false, false, getKeyword$3$Delimiter());
}
protected boolean consumeRuleCall$4() throws Exception {
@@ -61,7 +67,7 @@ public final class XtextGrammarTestLanguageParenthesizedElementConsumer extends
}
protected boolean consumeKeyword$5() throws Exception {
- return consumeKeyword(getRule().ele1KeywordRightParenthesis(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele1KeywordRightParenthesis(), null, false, false, getKeyword$5$Delimiter());
}
public ParenthesizedElementElements getRule() {
@@ -81,4 +87,20 @@ public final class XtextGrammarTestLanguageParenthesizedElementConsumer extends
this.alternativesConsumer = alternativesConsumer;
}
+ public ICharacterClass getKeyword$3$Delimiter() {
+ return keyword$3$Delimiter;
+ }
+
+ public void setKeyword$3$Delimiter(ICharacterClass characterClass) {
+ keyword$3$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$5$Delimiter() {
+ return keyword$5$Delimiter;
+ }
+
+ public void setKeyword$5$Delimiter(ICharacterClass characterClass) {
+ keyword$5$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
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 8cba155..6d0ce64 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
@@ -11,28 +11,40 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
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.parser.packrat.consumers.XtextGrammarTestLanguageAlternativesConsumer;
-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 XtextGrammarTestLanguageParserRuleConsumer extends NonTerminalConsumer {
private XtextGrammarTestLanguageAlternativesConsumer alternativesConsumer;
- private XtextGrammarTestLanguageTypeRefConsumer typeRefConsumer;
private XtextBuiltinIDConsumer idConsumer;
+ private XtextGrammarTestLanguageTypeRefConsumer typeRefConsumer;
+ private ICharacterClass keyword$8$Delimiter;
+
+ private ISequenceMatcher ruleCall$6$Delimiter;
+
+ private ICharacterClass keyword$11$Delimiter;
+
+ private ICharacterClass keyword$14$Delimiter;
+
public XtextGrammarTestLanguageParserRuleConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$8$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$6$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$11$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$14$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -65,7 +77,7 @@ public final class XtextGrammarTestLanguageParserRuleConsumer extends NonTermina
}
protected boolean consumeAssignment$5() throws Exception {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele00000LexerRuleCallID(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele00000LexerRuleCallID(), getRuleCall$6$Delimiter()))
return true;
return false;
}
@@ -89,7 +101,7 @@ public final class XtextGrammarTestLanguageParserRuleConsumer extends NonTermina
}
protected boolean consumeKeyword$8() throws Exception {
- return consumeKeyword(getRule().ele00010KeywordReturns(), null, false, false, XtextGrammarTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele00010KeywordReturns(), null, false, false, getKeyword$8$Delimiter());
}
protected boolean consumeAssignment$9() throws Exception {
@@ -99,7 +111,7 @@ public final class XtextGrammarTestLanguageParserRuleConsumer extends NonTermina
}
protected boolean consumeKeyword$11() throws Exception {
- return consumeKeyword(getRule().ele001KeywordColon(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele001KeywordColon(), null, false, false, getKeyword$11$Delimiter());
}
protected boolean consumeAssignment$12() throws Exception {
@@ -109,7 +121,7 @@ public final class XtextGrammarTestLanguageParserRuleConsumer extends NonTermina
}
protected boolean consumeKeyword$14() throws Exception {
- return consumeKeyword(getRule().ele1KeywordSemicolon(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele1KeywordSemicolon(), null, false, false, getKeyword$14$Delimiter());
}
public ParserRuleElements getRule() {
@@ -129,12 +141,44 @@ public final class XtextGrammarTestLanguageParserRuleConsumer extends NonTermina
this.alternativesConsumer = alternativesConsumer;
}
+ public void setIdConsumer(XtextBuiltinIDConsumer idConsumer) {
+ this.idConsumer = idConsumer;
+ }
+
public void setTypeRefConsumer(XtextGrammarTestLanguageTypeRefConsumer typeRefConsumer) {
this.typeRefConsumer = typeRefConsumer;
}
- public void setIdConsumer(XtextBuiltinIDConsumer idConsumer) {
- this.idConsumer = idConsumer;
+ public ICharacterClass getKeyword$8$Delimiter() {
+ return keyword$8$Delimiter;
+ }
+
+ public void setKeyword$8$Delimiter(ICharacterClass characterClass) {
+ keyword$8$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$6$Delimiter() {
+ return ruleCall$6$Delimiter;
+ }
+
+ public void setRuleCall$6$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$6$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$11$Delimiter() {
+ return keyword$11$Delimiter;
+ }
+
+ public void setKeyword$11$Delimiter(ICharacterClass characterClass) {
+ keyword$11$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$14$Delimiter() {
+ return keyword$14$Delimiter;
+ }
+
+ public void setKeyword$14$Delimiter(ICharacterClass characterClass) {
+ keyword$14$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
}
}
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 1a228fb..1b95b48 100644
--- 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
@@ -11,26 +11,38 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess;
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess.ReferencedMetamodelElements;
-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;
+import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinSTRINGConsumer;
@SuppressWarnings("unused")
public final class XtextGrammarTestLanguageReferencedMetamodelConsumer extends NonTerminalConsumer {
- private XtextBuiltinSTRINGConsumer stringConsumer;
private XtextBuiltinIDConsumer idConsumer;
+ private XtextBuiltinSTRINGConsumer stringConsumer;
+ private ISequenceMatcher ruleCall$5$Delimiter;
+
+ private ISequenceMatcher ruleCall$9$Delimiter;
+
+ private ICharacterClass keyword$7$Delimiter;
+
+ private ICharacterClass keyword$3$Delimiter;
+
public XtextGrammarTestLanguageReferencedMetamodelConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$5$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ ruleCall$9$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$7$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$3$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -55,11 +67,11 @@ public final class XtextGrammarTestLanguageReferencedMetamodelConsumer extends N
}
protected boolean consumeKeyword$3() throws Exception {
- return consumeKeyword(getRule().ele00KeywordImport(), null, false, false, XtextGrammarTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele00KeywordImport(), null, false, false, getKeyword$3$Delimiter());
}
protected boolean consumeAssignment$4() throws Exception {
- if (consumeTerminal(stringConsumer, "uri", false, false, getRule().ele010LexerRuleCallSTRING(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(stringConsumer, "uri", false, false, getRule().ele010LexerRuleCallSTRING(), getRuleCall$5$Delimiter()))
return true;
return false;
}
@@ -83,11 +95,11 @@ public final class XtextGrammarTestLanguageReferencedMetamodelConsumer extends N
}
protected boolean consumeKeyword$7() throws Exception {
- return consumeKeyword(getRule().ele10KeywordAs(), null, false, false, XtextGrammarTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele10KeywordAs(), null, false, false, getKeyword$7$Delimiter());
}
protected boolean consumeAssignment$8() throws Exception {
- if (consumeTerminal(idConsumer, "alias", false, false, getRule().ele110LexerRuleCallID(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "alias", false, false, getRule().ele110LexerRuleCallID(), getRuleCall$9$Delimiter()))
return true;
return false;
}
@@ -105,12 +117,44 @@ public final class XtextGrammarTestLanguageReferencedMetamodelConsumer extends N
return "ReferencedMetamodel";
}
+ public void setIdConsumer(XtextBuiltinIDConsumer idConsumer) {
+ this.idConsumer = idConsumer;
+ }
+
public void setStringConsumer(XtextBuiltinSTRINGConsumer stringConsumer) {
this.stringConsumer = stringConsumer;
}
- public void setIdConsumer(XtextBuiltinIDConsumer idConsumer) {
- this.idConsumer = idConsumer;
+ public ISequenceMatcher getRuleCall$5$Delimiter() {
+ return ruleCall$5$Delimiter;
+ }
+
+ public void setRuleCall$5$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$5$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ISequenceMatcher getRuleCall$9$Delimiter() {
+ return ruleCall$9$Delimiter;
+ }
+
+ public void setRuleCall$9$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$9$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$7$Delimiter() {
+ return keyword$7$Delimiter;
+ }
+
+ public void setKeyword$7$Delimiter(ICharacterClass characterClass) {
+ keyword$7$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$3$Delimiter() {
+ return keyword$3$Delimiter;
+ }
+
+ public void setKeyword$3$Delimiter(ICharacterClass characterClass) {
+ keyword$3$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
}
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageRuleCallConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageRuleCallConsumer.java
index ee97029..2bb854b 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageRuleCallConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageRuleCallConsumer.java
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess;
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess.RuleCallElements;
-import org.eclipse.xtext.parser.packrat.XtextGrammarTestLanguageDelimiters;
-
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
@SuppressWarnings("unused")
@@ -25,10 +25,13 @@ public final class XtextGrammarTestLanguageRuleCallConsumer extends NonTerminalC
private XtextBuiltinIDConsumer idConsumer;
+ private ISequenceMatcher crossReference$2$Delimiter;
+
public XtextGrammarTestLanguageRuleCallConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ crossReference$2$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -36,7 +39,7 @@ public final class XtextGrammarTestLanguageRuleCallConsumer extends NonTerminalC
}
protected boolean consumeAssignment$1() throws Exception {
- if (consumeTerminal(idConsumer, null, false, false, getRule().ele0CrossReferenceEStringAbstractRule(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, null, false, false, getRule().ele0CrossReferenceEStringAbstractRule(), getCrossReference$2$Delimiter()))
return true;
return false;
}
@@ -58,4 +61,12 @@ public final class XtextGrammarTestLanguageRuleCallConsumer extends NonTerminalC
this.idConsumer = idConsumer;
}
+ public ISequenceMatcher getCrossReference$2$Delimiter() {
+ return crossReference$2$Delimiter;
+ }
+
+ public void setCrossReference$2$Delimiter(ISequenceMatcher matcher) {
+ crossReference$2$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageTypeRefConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageTypeRefConsumer.java
index 614fa10..ab87c2f 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageTypeRefConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parser/packrat/consumers/XtextGrammarTestLanguageTypeRefConsumer.java
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess;
import org.eclipse.xtext.services.XtextGrammarTestLanguageGrammarAccess.TypeRefElements;
-import org.eclipse.xtext.parser.packrat.XtextGrammarTestLanguageDelimiters;
-
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
@SuppressWarnings("unused")
@@ -25,10 +25,19 @@ public final class XtextGrammarTestLanguageTypeRefConsumer extends NonTerminalCo
private XtextBuiltinIDConsumer idConsumer;
+ private ISequenceMatcher crossReference$4$Delimiter;
+
+ private ISequenceMatcher crossReference$8$Delimiter;
+
+ private ICharacterClass keyword$6$Delimiter;
+
public XtextGrammarTestLanguageTypeRefConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ crossReference$4$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ crossReference$8$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$6$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -67,17 +76,17 @@ public final class XtextGrammarTestLanguageTypeRefConsumer extends NonTerminalCo
}
protected boolean consumeAssignment$3() throws Exception {
- if (consumeTerminal(idConsumer, null, false, false, getRule().ele000CrossReferenceEStringAbstractMetamodelDeclaration(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, null, false, false, getRule().ele000CrossReferenceEStringAbstractMetamodelDeclaration(), getCrossReference$4$Delimiter()))
return true;
return false;
}
protected boolean consumeKeyword$6() throws Exception {
- return consumeKeyword(getRule().ele01KeywordColonColon(), null, false, false, XtextGrammarTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele01KeywordColonColon(), null, false, false, getKeyword$6$Delimiter());
}
protected boolean consumeAssignment$7() throws Exception {
- if (consumeTerminal(idConsumer, null, false, false, getRule().ele10CrossReferenceEStringEClassifier(), XtextGrammarTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, null, false, false, getRule().ele10CrossReferenceEStringEClassifier(), getCrossReference$8$Delimiter()))
return true;
return false;
}
@@ -99,4 +108,28 @@ public final class XtextGrammarTestLanguageTypeRefConsumer extends NonTerminalCo
this.idConsumer = idConsumer;
}
+ public ISequenceMatcher getCrossReference$4$Delimiter() {
+ return crossReference$4$Delimiter;
+ }
+
+ public void setCrossReference$4$Delimiter(ISequenceMatcher matcher) {
+ crossReference$4$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ISequenceMatcher getCrossReference$8$Delimiter() {
+ return crossReference$8$Delimiter;
+ }
+
+ public void setCrossReference$8$Delimiter(ISequenceMatcher matcher) {
+ crossReference$8$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$6$Delimiter() {
+ return keyword$6$Delimiter;
+ }
+
+ public void setKeyword$6$Delimiter(ICharacterClass characterClass) {
+ keyword$6$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/antlr/internal/InternalFormatterTestLanguageLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/antlr/internal/InternalFormatterTestLanguageLexer.java
index 9439bb8..3fc6d1d 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/antlr/internal/InternalFormatterTestLanguageLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/antlr/internal/InternalFormatterTestLanguageLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parsetree/formatter/parser/antlr/internal/InternalFormatterTestLanguage.g 2009-01-14 11:49:07
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parsetree/formatter/parser/antlr/internal/InternalFormatterTestLanguage.g 2009-01-14 17:06:17
package org.eclipse.xtext.parsetree.formatter.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/antlr/internal/InternalFormatterTestLanguageParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/antlr/internal/InternalFormatterTestLanguageParser.java
index c6a04c8..90179be 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/antlr/internal/InternalFormatterTestLanguageParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/antlr/internal/InternalFormatterTestLanguageParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parsetree/formatter/parser/antlr/internal/InternalFormatterTestLanguage.g 2009-01-14 11:49:07
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parsetree/formatter/parser/antlr/internal/InternalFormatterTestLanguage.g 2009-01-14 17:06:17
package org.eclipse.xtext.parsetree.formatter.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/FormatterTestLanguageDelimiters.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/FormatterTestLanguageDelimiters.java
index df93977..5705a8a 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/FormatterTestLanguageDelimiters.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/FormatterTestLanguageDelimiters.java
@@ -8,14 +8,18 @@ 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.parsetree.formatter.services.FormatterTestLanguageGrammarAccess;
+public final class FormatterTestLanguageDelimiters {
-public class FormatterTestLanguageDelimiters {
-
- public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+ private FormatterTestLanguageDelimiters() {
+ throw new UnsupportedOperationException("Utility classes may not be initialized");
+ }
- public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+ // TODO do not use IDConsumer internals
+ public static ICharacterClass keyword$4$Delimiter = XtextBuiltinIDConsumer.IDConsumer$$2;
+
+ public static ISequenceMatcher ruleCall$13$Delimiter = new SetBasedKeywordMatcher(
+ "test", "linewrap", "indentation");
+
+ public static ICharacterClass keyword$16$Delimiter = ICharacterClass.Factory.nullClass();
- public static ISequenceMatcher ALL_KEYWORDS = new SetBasedKeywordMatcher(FormatterTestLanguageGrammarAccess.INSTANCE.getGrammar());
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/FormatterTestLanguageParserConfiguration.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/FormatterTestLanguageParserConfiguration.java
index 01b24d5..6d8875a 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/FormatterTestLanguageParserConfiguration.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/FormatterTestLanguageParserConfiguration.java
@@ -68,8 +68,8 @@ public class FormatterTestLanguageParserConfiguration extends AbstractParserConf
}
public void configureConsumers() {
- getRootConsumer$().setTestLinewrapConsumer(getTestLinewrapConsumer());
getRootConsumer$().setTestIndentationConsumer(getTestIndentationConsumer());
+ getRootConsumer$().setTestLinewrapConsumer(getTestLinewrapConsumer());
getLineConsumer().setIdConsumer(getIdConsumer());
@@ -78,12 +78,27 @@ public class FormatterTestLanguageParserConfiguration extends AbstractParserConf
getTestIndentationConsumer().setLineConsumer(getLineConsumer());
getTestIndentationConsumer().setTestIndentationConsumer(getTestIndentationConsumer());
+ getRootConsumer().setKeyword$2$Delimiter(FormatterTestLanguageDelimiters.keyword$4$Delimiter);
+ getLineConsumer().setRuleCall$4$Delimiter(FormatterTestLanguageDelimiters.ruleCall$13$Delimiter);
+ getLineConsumer().setKeyword$7$Delimiter(FormatterTestLanguageDelimiters.keyword$16$Delimiter);
+ getLineConsumer().setRuleCall$6$Delimiter(FormatterTestLanguageDelimiters.ruleCall$13$Delimiter);
+ getTestLinewrapConsumer().setKeyword$2$Delimiter(FormatterTestLanguageDelimiters.keyword$4$Delimiter);
+ getTestIndentationConsumer().setKeyword$11$Delimiter(FormatterTestLanguageDelimiters.keyword$16$Delimiter);
+ getTestIndentationConsumer().setKeyword$4$Delimiter(FormatterTestLanguageDelimiters.keyword$4$Delimiter);
+ getTestIndentationConsumer().setKeyword$5$Delimiter(FormatterTestLanguageDelimiters.keyword$16$Delimiter);
+ // TODO remove workaround
getIdConsumer().initFields(this);
+ // TODO remove workaround
getIntConsumer().initFields(this);
+ // TODO remove workaround
getStringConsumer().initFields(this);
+ // TODO remove workaround
getMlCommentConsumer().initFields(this);
+ // TODO remove workaround
getSlCommentConsumer().initFields(this);
+ // TODO remove workaround
getWsConsumer().initFields(this);
+ // TODO remove workaround
getAnyOtherConsumer().initFields(this);
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/consumers/FormatterTestLanguageLineConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/consumers/FormatterTestLanguageLineConsumer.java
index e78f583..4238a33 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/consumers/FormatterTestLanguageLineConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/consumers/FormatterTestLanguageLineConsumer.java
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.formatter.services.FormatterTestLanguageGrammarAccess;
import org.eclipse.xtext.parsetree.formatter.services.FormatterTestLanguageGrammarAccess.LineElements;
-import org.eclipse.xtext.parsetree.formatter.parser.packrat.FormatterTestLanguageDelimiters;
-
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
@SuppressWarnings("unused")
@@ -25,10 +25,19 @@ public final class FormatterTestLanguageLineConsumer extends NonTerminalConsumer
private XtextBuiltinIDConsumer idConsumer;
+ private ISequenceMatcher ruleCall$4$Delimiter;
+
+ private ICharacterClass keyword$7$Delimiter;
+
+ private ISequenceMatcher ruleCall$6$Delimiter;
+
public FormatterTestLanguageLineConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$4$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$7$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$6$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -53,19 +62,19 @@ public final class FormatterTestLanguageLineConsumer extends NonTerminalConsumer
}
protected boolean consumeAssignment$3() throws Exception {
- if (consumeTerminal(idConsumer, "type", true, false, getRule().ele000LexerRuleCallID(), FormatterTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "type", true, false, getRule().ele000LexerRuleCallID(), getRuleCall$4$Delimiter()))
return true;
return false;
}
protected boolean consumeAssignment$5() throws Exception {
- if (consumeTerminal(idConsumer, "name", true, false, getRule().ele010LexerRuleCallID(), FormatterTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "name", true, false, getRule().ele010LexerRuleCallID(), getRuleCall$6$Delimiter()))
return true;
return false;
}
protected boolean consumeKeyword$7() throws Exception {
- return consumeKeyword(getRule().ele1KeywordSemicolon(), null, false, false, FormatterTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele1KeywordSemicolon(), null, false, false, getKeyword$7$Delimiter());
}
public LineElements getRule() {
@@ -85,4 +94,28 @@ public final class FormatterTestLanguageLineConsumer extends NonTerminalConsumer
this.idConsumer = idConsumer;
}
+ public ISequenceMatcher getRuleCall$4$Delimiter() {
+ return ruleCall$4$Delimiter;
+ }
+
+ public void setRuleCall$4$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$4$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$7$Delimiter() {
+ return keyword$7$Delimiter;
+ }
+
+ public void setKeyword$7$Delimiter(ICharacterClass characterClass) {
+ keyword$7$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$6$Delimiter() {
+ return ruleCall$6$Delimiter;
+ }
+
+ public void setRuleCall$6$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$6$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/consumers/FormatterTestLanguageRootConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/consumers/FormatterTestLanguageRootConsumer.java
index a6f35d6..ddac702 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/consumers/FormatterTestLanguageRootConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/consumers/FormatterTestLanguageRootConsumer.java
@@ -11,26 +11,29 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.formatter.services.FormatterTestLanguageGrammarAccess;
import org.eclipse.xtext.parsetree.formatter.services.FormatterTestLanguageGrammarAccess.RootElements;
-import org.eclipse.xtext.parsetree.formatter.parser.packrat.FormatterTestLanguageDelimiters;
-
-import org.eclipse.xtext.parsetree.formatter.parser.packrat.consumers.FormatterTestLanguageTestLinewrapConsumer;
import org.eclipse.xtext.parsetree.formatter.parser.packrat.consumers.FormatterTestLanguageTestIndentationConsumer;
+import org.eclipse.xtext.parsetree.formatter.parser.packrat.consumers.FormatterTestLanguageTestLinewrapConsumer;
@SuppressWarnings("unused")
public final class FormatterTestLanguageRootConsumer extends NonTerminalConsumer {
- private FormatterTestLanguageTestLinewrapConsumer testLinewrapConsumer;
private FormatterTestLanguageTestIndentationConsumer testIndentationConsumer;
+ private FormatterTestLanguageTestLinewrapConsumer testLinewrapConsumer;
+ private ICharacterClass keyword$2$Delimiter;
+
public FormatterTestLanguageRootConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$2$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -51,7 +54,7 @@ public final class FormatterTestLanguageRootConsumer extends NonTerminalConsumer
}
protected boolean consumeKeyword$2() throws Exception {
- return consumeKeyword(getRule().ele0KeywordTest(), null, false, false, FormatterTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele0KeywordTest(), null, false, false, getKeyword$2$Delimiter());
}
protected boolean consumeAlternatives$3() throws Exception {
@@ -83,12 +86,20 @@ public final class FormatterTestLanguageRootConsumer extends NonTerminalConsumer
return "Root";
}
+ public void setTestIndentationConsumer(FormatterTestLanguageTestIndentationConsumer testIndentationConsumer) {
+ this.testIndentationConsumer = testIndentationConsumer;
+ }
+
public void setTestLinewrapConsumer(FormatterTestLanguageTestLinewrapConsumer testLinewrapConsumer) {
this.testLinewrapConsumer = testLinewrapConsumer;
}
- public void setTestIndentationConsumer(FormatterTestLanguageTestIndentationConsumer testIndentationConsumer) {
- this.testIndentationConsumer = testIndentationConsumer;
+ public ICharacterClass getKeyword$2$Delimiter() {
+ return keyword$2$Delimiter;
+ }
+
+ public void setKeyword$2$Delimiter(ICharacterClass characterClass) {
+ keyword$2$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
}
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/consumers/FormatterTestLanguageTestIndentationConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/consumers/FormatterTestLanguageTestIndentationConsumer.java
index b9a5b87..4d1bf55 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/consumers/FormatterTestLanguageTestIndentationConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/consumers/FormatterTestLanguageTestIndentationConsumer.java
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.formatter.services.FormatterTestLanguageGrammarAccess;
import org.eclipse.xtext.parsetree.formatter.services.FormatterTestLanguageGrammarAccess.TestIndentationElements;
-import org.eclipse.xtext.parsetree.formatter.parser.packrat.FormatterTestLanguageDelimiters;
-
import org.eclipse.xtext.parsetree.formatter.parser.packrat.consumers.FormatterTestLanguageLineConsumer;
import org.eclipse.xtext.parsetree.formatter.parser.packrat.consumers.FormatterTestLanguageTestIndentationConsumer;
@@ -27,10 +27,19 @@ public final class FormatterTestLanguageTestIndentationConsumer extends NonTermi
private FormatterTestLanguageLineConsumer lineConsumer;
private FormatterTestLanguageTestIndentationConsumer testIndentationConsumer;
+ private ICharacterClass keyword$11$Delimiter;
+
+ private ICharacterClass keyword$4$Delimiter;
+
+ private ICharacterClass keyword$5$Delimiter;
+
public FormatterTestLanguageTestIndentationConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$11$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$4$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$5$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -59,11 +68,11 @@ public final class FormatterTestLanguageTestIndentationConsumer extends NonTermi
}
protected boolean consumeKeyword$4() throws Exception {
- return consumeKeyword(getRule().ele000KeywordIndentation(), null, false, false, FormatterTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele000KeywordIndentation(), null, false, false, getKeyword$4$Delimiter());
}
protected boolean consumeKeyword$5() throws Exception {
- return consumeKeyword(getRule().ele001KeywordLeftCurlyBracket(), null, false, false, FormatterTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele001KeywordLeftCurlyBracket(), null, false, false, getKeyword$5$Delimiter());
}
protected boolean consumeAlternatives$6() throws Exception {
@@ -92,7 +101,7 @@ public final class FormatterTestLanguageTestIndentationConsumer extends NonTermi
}
protected boolean consumeKeyword$11() throws Exception {
- return consumeKeyword(getRule().ele1KeywordRightCurlyBracket(), null, false, false, FormatterTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele1KeywordRightCurlyBracket(), null, false, false, getKeyword$11$Delimiter());
}
public TestIndentationElements getRule() {
@@ -116,4 +125,28 @@ public final class FormatterTestLanguageTestIndentationConsumer extends NonTermi
this.testIndentationConsumer = testIndentationConsumer;
}
+ public ICharacterClass getKeyword$11$Delimiter() {
+ return keyword$11$Delimiter;
+ }
+
+ public void setKeyword$11$Delimiter(ICharacterClass characterClass) {
+ keyword$11$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$4$Delimiter() {
+ return keyword$4$Delimiter;
+ }
+
+ public void setKeyword$4$Delimiter(ICharacterClass characterClass) {
+ keyword$4$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$5$Delimiter() {
+ return keyword$5$Delimiter;
+ }
+
+ public void setKeyword$5$Delimiter(ICharacterClass characterClass) {
+ keyword$5$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/consumers/FormatterTestLanguageTestLinewrapConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/consumers/FormatterTestLanguageTestLinewrapConsumer.java
index ee4b3ce..3ff6850 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/consumers/FormatterTestLanguageTestLinewrapConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/formatter/parser/packrat/consumers/FormatterTestLanguageTestLinewrapConsumer.java
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.formatter.services.FormatterTestLanguageGrammarAccess;
import org.eclipse.xtext.parsetree.formatter.services.FormatterTestLanguageGrammarAccess.TestLinewrapElements;
-import org.eclipse.xtext.parsetree.formatter.parser.packrat.FormatterTestLanguageDelimiters;
-
import org.eclipse.xtext.parsetree.formatter.parser.packrat.consumers.FormatterTestLanguageLineConsumer;
@SuppressWarnings("unused")
@@ -25,10 +25,13 @@ public final class FormatterTestLanguageTestLinewrapConsumer extends NonTerminal
private FormatterTestLanguageLineConsumer lineConsumer;
+ private ICharacterClass keyword$2$Delimiter;
+
public FormatterTestLanguageTestLinewrapConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$2$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -49,7 +52,7 @@ public final class FormatterTestLanguageTestLinewrapConsumer extends NonTerminal
}
protected boolean consumeKeyword$2() throws Exception {
- return consumeKeyword(getRule().ele0KeywordLinewrap(), null, false, false, FormatterTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele0KeywordLinewrap(), null, false, false, getKeyword$2$Delimiter());
}
protected boolean consumeAssignment$3() throws Exception {
@@ -80,4 +83,12 @@ public final class FormatterTestLanguageTestLinewrapConsumer extends NonTerminal
this.lineConsumer = lineConsumer;
}
+ public ICharacterClass getKeyword$2$Delimiter() {
+ return keyword$2$Delimiter;
+ }
+
+ public void setKeyword$2$Delimiter(ICharacterClass characterClass) {
+ keyword$2$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalComplexReconstrTestLanguageLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalComplexReconstrTestLanguageLexer.java
index 11250d5..39ebd0a 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalComplexReconstrTestLanguageLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalComplexReconstrTestLanguageLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalComplexReconstrTestLanguage.g 2009-01-14 11:48:57
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalComplexReconstrTestLanguage.g 2009-01-14 17:06:07
package org.eclipse.xtext.parsetree.reconstr.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalComplexReconstrTestLanguageParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalComplexReconstrTestLanguageParser.java
index 36d65c1..c82a3f8 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalComplexReconstrTestLanguageParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalComplexReconstrTestLanguageParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalComplexReconstrTestLanguage.g 2009-01-14 11:48:56
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalComplexReconstrTestLanguage.g 2009-01-14 17:06:07
package org.eclipse.xtext.parsetree.reconstr.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalSimpleReconstrTestLanguageLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalSimpleReconstrTestLanguageLexer.java
index 08d7329..ead380b 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalSimpleReconstrTestLanguageLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalSimpleReconstrTestLanguageLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalSimpleReconstrTestLanguage.g 2009-01-14 11:48:55
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalSimpleReconstrTestLanguage.g 2009-01-14 17:06:05
package org.eclipse.xtext.parsetree.reconstr.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalSimpleReconstrTestLanguageParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalSimpleReconstrTestLanguageParser.java
index 8154392..03710a4 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalSimpleReconstrTestLanguageParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalSimpleReconstrTestLanguageParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalSimpleReconstrTestLanguage.g 2009-01-14 11:48:55
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parsetree/reconstr/parser/antlr/internal/InternalSimpleReconstrTestLanguage.g 2009-01-14 17:06:05
package org.eclipse.xtext.parsetree.reconstr.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/ComplexReconstrTestLanguageDelimiters.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/ComplexReconstrTestLanguageDelimiters.java
index 4da403e..0003444 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/ComplexReconstrTestLanguageDelimiters.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/ComplexReconstrTestLanguageDelimiters.java
@@ -8,14 +8,20 @@ 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.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess;
+public final class ComplexReconstrTestLanguageDelimiters {
-public class ComplexReconstrTestLanguageDelimiters {
-
- public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+ private ComplexReconstrTestLanguageDelimiters() {
+ throw new UnsupportedOperationException("Utility classes may not be initialized");
+ }
- public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+ public static ICharacterClass keyword$15$Delimiter = ICharacterClass.Factory.nullClass();
+
+ public static ISequenceMatcher ruleCall$33$Delimiter = new SetBasedKeywordMatcher(
+ "TA", "x", "y", "TB", "TC", "z", "TD", "TE", "TF", "TG");
+
+ public static ISequenceMatcher ruleCall$64$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+
+ // TODO do not use IDConsumer internals
+ public static ICharacterClass keyword$50$Delimiter = XtextBuiltinIDConsumer.IDConsumer$$2;
- public static ISequenceMatcher ALL_KEYWORDS = new SetBasedKeywordMatcher(ComplexReconstrTestLanguageGrammarAccess.INSTANCE.getGrammar());
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/ComplexReconstrTestLanguageParserConfiguration.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/ComplexReconstrTestLanguageParserConfiguration.java
index 3d35a61..ea80946 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/ComplexReconstrTestLanguageParserConfiguration.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/ComplexReconstrTestLanguageParserConfiguration.java
@@ -123,8 +123,8 @@ public class ComplexReconstrTestLanguageParserConfiguration extends AbstractPars
}
public void configureConsumers() {
- getRootConsumer$().setTrickyGConsumer(getTrickyGConsumer());
getRootConsumer$().setOpConsumer(getOpConsumer());
+ getRootConsumer$().setTrickyGConsumer(getTrickyGConsumer());
getOpConsumer().setTermConsumer(getTermConsumer());
@@ -147,12 +147,12 @@ public class ComplexReconstrTestLanguageParserConfiguration extends AbstractPars
getTrickyCConsumer().setIdConsumer(getIdConsumer());
getTrickyDConsumer().setIdConsumer(getIdConsumer());
- getTrickyDConsumer().setStringConsumer(getStringConsumer());
getTrickyDConsumer().setIntConsumer(getIntConsumer());
+ getTrickyDConsumer().setStringConsumer(getStringConsumer());
getTrickyEConsumer().setIdConsumer(getIdConsumer());
- getTrickyEConsumer().setStringConsumer(getStringConsumer());
getTrickyEConsumer().setIntConsumer(getIntConsumer());
+ getTrickyEConsumer().setStringConsumer(getStringConsumer());
getTrickyFConsumer().setIdConsumer(getIdConsumer());
getTrickyFConsumer().setIntConsumer(getIntConsumer());
@@ -161,15 +161,67 @@ public class ComplexReconstrTestLanguageParserConfiguration extends AbstractPars
getTrickyG1Consumer().setTrickyG2Consumer(getTrickyG2Consumer());
- getTrickyG2Consumer().setTrickyG1Consumer(getTrickyG1Consumer());
getTrickyG2Consumer().setIntConsumer(getIntConsumer());
+ getTrickyG2Consumer().setTrickyG1Consumer(getTrickyG1Consumer());
+ getOpConsumer().setKeyword$15$Delimiter(ComplexReconstrTestLanguageDelimiters.keyword$15$Delimiter);
+ getOpConsumer().setKeyword$8$Delimiter(ComplexReconstrTestLanguageDelimiters.keyword$15$Delimiter);
+ getAtomConsumer().setRuleCall$2$Delimiter(ComplexReconstrTestLanguageDelimiters.ruleCall$33$Delimiter);
+ getParensConsumer().setKeyword$4$Delimiter(ComplexReconstrTestLanguageDelimiters.keyword$15$Delimiter);
+ getParensConsumer().setKeyword$8$Delimiter(ComplexReconstrTestLanguageDelimiters.keyword$15$Delimiter);
+ getParensConsumer().setKeyword$6$Delimiter(ComplexReconstrTestLanguageDelimiters.keyword$15$Delimiter);
+ getTrickyAConsumer().setRuleCall$8$Delimiter(ComplexReconstrTestLanguageDelimiters.ruleCall$33$Delimiter);
+ getTrickyAConsumer().setKeyword$13$Delimiter(ComplexReconstrTestLanguageDelimiters.keyword$50$Delimiter);
+ getTrickyAConsumer().setRuleCall$19$Delimiter(ComplexReconstrTestLanguageDelimiters.ruleCall$64$Delimiter);
+ getTrickyAConsumer().setKeyword$17$Delimiter(ComplexReconstrTestLanguageDelimiters.keyword$50$Delimiter);
+ getTrickyAConsumer().setKeyword$5$Delimiter(ComplexReconstrTestLanguageDelimiters.keyword$50$Delimiter);
+ getTrickyA1Consumer().setRuleCall$2$Delimiter(ComplexReconstrTestLanguageDelimiters.ruleCall$33$Delimiter);
+ getTrickyBConsumer().setKeyword$3$Delimiter(ComplexReconstrTestLanguageDelimiters.keyword$50$Delimiter);
+ getTrickyBConsumer().setRuleCall$6$Delimiter(ComplexReconstrTestLanguageDelimiters.ruleCall$33$Delimiter);
+ getTrickyBConsumer().setRuleCall$8$Delimiter(ComplexReconstrTestLanguageDelimiters.ruleCall$64$Delimiter);
+ getTrickyBConsumer().setRuleCall$10$Delimiter(ComplexReconstrTestLanguageDelimiters.ruleCall$64$Delimiter);
+ getTrickyCConsumer().setRuleCall$7$Delimiter(ComplexReconstrTestLanguageDelimiters.ruleCall$33$Delimiter);
+ getTrickyCConsumer().setKeyword$19$Delimiter(ComplexReconstrTestLanguageDelimiters.keyword$50$Delimiter);
+ getTrickyCConsumer().setKeyword$11$Delimiter(ComplexReconstrTestLanguageDelimiters.keyword$50$Delimiter);
+ getTrickyCConsumer().setKeyword$15$Delimiter(ComplexReconstrTestLanguageDelimiters.keyword$50$Delimiter);
+ getTrickyCConsumer().setKeyword$5$Delimiter(ComplexReconstrTestLanguageDelimiters.keyword$50$Delimiter);
+ getTrickyDConsumer().setRuleCall$15$Delimiter(ComplexReconstrTestLanguageDelimiters.ruleCall$64$Delimiter);
+ getTrickyDConsumer().setRuleCall$10$Delimiter(ComplexReconstrTestLanguageDelimiters.ruleCall$64$Delimiter);
+ getTrickyDConsumer().setRuleCall$17$Delimiter(ComplexReconstrTestLanguageDelimiters.ruleCall$33$Delimiter);
+ getTrickyDConsumer().setRuleCall$12$Delimiter(ComplexReconstrTestLanguageDelimiters.ruleCall$33$Delimiter);
+ getTrickyDConsumer().setKeyword$4$Delimiter(ComplexReconstrTestLanguageDelimiters.keyword$50$Delimiter);
+ getTrickyDConsumer().setRuleCall$8$Delimiter(ComplexReconstrTestLanguageDelimiters.ruleCall$64$Delimiter);
+ getTrickyDConsumer().setRuleCall$19$Delimiter(ComplexReconstrTestLanguageDelimiters.ruleCall$33$Delimiter);
+ getTrickyEConsumer().setRuleCall$8$Delimiter(ComplexReconstrTestLanguageDelimiters.ruleCall$64$Delimiter);
+ getTrickyEConsumer().setRuleCall$12$Delimiter(ComplexReconstrTestLanguageDelimiters.ruleCall$33$Delimiter);
+ getTrickyEConsumer().setKeyword$4$Delimiter(ComplexReconstrTestLanguageDelimiters.keyword$50$Delimiter);
+ getTrickyEConsumer().setKeyword$13$Delimiter(ComplexReconstrTestLanguageDelimiters.keyword$50$Delimiter);
+ getTrickyEConsumer().setRuleCall$18$Delimiter(ComplexReconstrTestLanguageDelimiters.ruleCall$33$Delimiter);
+ getTrickyEConsumer().setRuleCall$10$Delimiter(ComplexReconstrTestLanguageDelimiters.ruleCall$64$Delimiter);
+ getTrickyEConsumer().setRuleCall$16$Delimiter(ComplexReconstrTestLanguageDelimiters.ruleCall$64$Delimiter);
+ getTrickyFConsumer().setKeyword$3$Delimiter(ComplexReconstrTestLanguageDelimiters.keyword$50$Delimiter);
+ getTrickyFConsumer().setRuleCall$13$Delimiter(ComplexReconstrTestLanguageDelimiters.ruleCall$64$Delimiter);
+ getTrickyFConsumer().setRuleCall$11$Delimiter(ComplexReconstrTestLanguageDelimiters.ruleCall$33$Delimiter);
+ getTrickyFConsumer().setRuleCall$8$Delimiter(ComplexReconstrTestLanguageDelimiters.ruleCall$64$Delimiter);
+ getTrickyFConsumer().setRuleCall$6$Delimiter(ComplexReconstrTestLanguageDelimiters.ruleCall$33$Delimiter);
+ getTrickyGConsumer().setKeyword$2$Delimiter(ComplexReconstrTestLanguageDelimiters.keyword$50$Delimiter);
+ getTrickyG1Consumer().setKeyword$11$Delimiter(ComplexReconstrTestLanguageDelimiters.keyword$15$Delimiter);
+ getTrickyG1Consumer().setKeyword$8$Delimiter(ComplexReconstrTestLanguageDelimiters.keyword$15$Delimiter);
+ getTrickyG1Consumer().setKeyword$3$Delimiter(ComplexReconstrTestLanguageDelimiters.keyword$15$Delimiter);
+ getTrickyG2Consumer().setRuleCall$4$Delimiter(ComplexReconstrTestLanguageDelimiters.ruleCall$64$Delimiter);
+ // TODO remove workaround
getIdConsumer().initFields(this);
+ // TODO remove workaround
getIntConsumer().initFields(this);
+ // TODO remove workaround
getStringConsumer().initFields(this);
+ // TODO remove workaround
getMlCommentConsumer().initFields(this);
+ // TODO remove workaround
getSlCommentConsumer().initFields(this);
+ // TODO remove workaround
getWsConsumer().initFields(this);
+ // TODO remove workaround
getAnyOtherConsumer().initFields(this);
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/SimpleReconstrTestLanguageDelimiters.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/SimpleReconstrTestLanguageDelimiters.java
index d70be2d..3c42b8f 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/SimpleReconstrTestLanguageDelimiters.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/SimpleReconstrTestLanguageDelimiters.java
@@ -8,14 +8,20 @@ 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.parsetree.reconstr.services.SimpleReconstrTestLanguageGrammarAccess;
+public final class SimpleReconstrTestLanguageDelimiters {
-public class SimpleReconstrTestLanguageDelimiters {
-
- public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+ private SimpleReconstrTestLanguageDelimiters() {
+ throw new UnsupportedOperationException("Utility classes may not be initialized");
+ }
- public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+ public static ISequenceMatcher ruleCall$28$Delimiter = new SetBasedKeywordMatcher(
+ "type", "extends", "mykeyword1", "mykeyword2");
+
+ public static ICharacterClass keyword$34$Delimiter = ICharacterClass.Factory.nullClass();
+
+ public static ISequenceMatcher ruleCall$44$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+
+ // TODO do not use IDConsumer internals
+ public static ICharacterClass keyword$65$Delimiter = XtextBuiltinIDConsumer.IDConsumer$$2;
- public static ISequenceMatcher ALL_KEYWORDS = new SetBasedKeywordMatcher(SimpleReconstrTestLanguageGrammarAccess.INSTANCE.getGrammar());
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/SimpleReconstrTestLanguageParserConfiguration.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/SimpleReconstrTestLanguageParserConfiguration.java
index 53935f7..0cf099e 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/SimpleReconstrTestLanguageParserConfiguration.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/SimpleReconstrTestLanguageParserConfiguration.java
@@ -95,13 +95,13 @@ public class SimpleReconstrTestLanguageParserConfiguration extends AbstractParse
public void configureConsumers() {
getOpConsumer().setTermConsumer(getTermConsumer());
- getTermConsumer().setTypeConsumer(getTypeConsumer());
getTermConsumer().setAtomConsumer(getAtomConsumer());
- getTermConsumer().setTwoNumbersConsumer(getTwoNumbersConsumer());
- getTermConsumer().setParensConsumer(getParensConsumer());
getTermConsumer().setManyStringsConsumer(getManyStringsConsumer());
- getTermConsumer().setSpareConsumer(getSpareConsumer());
+ getTermConsumer().setParensConsumer(getParensConsumer());
getTermConsumer().setRef2Consumer(getRef2Consumer());
+ getTermConsumer().setSpareConsumer(getSpareConsumer());
+ getTermConsumer().setTwoNumbersConsumer(getTwoNumbersConsumer());
+ getTermConsumer().setTypeConsumer(getTypeConsumer());
getAtomConsumer().setIdConsumer(getIdConsumer());
@@ -117,12 +117,42 @@ public class SimpleReconstrTestLanguageParserConfiguration extends AbstractParse
getSpareConsumer().setIdConsumer(getIdConsumer());
+ getAtomConsumer().setRuleCall$2$Delimiter(SimpleReconstrTestLanguageDelimiters.ruleCall$28$Delimiter);
+ getParensConsumer().setKeyword$8$Delimiter(SimpleReconstrTestLanguageDelimiters.keyword$34$Delimiter);
+ getParensConsumer().setKeyword$6$Delimiter(SimpleReconstrTestLanguageDelimiters.keyword$34$Delimiter);
+ getParensConsumer().setKeyword$4$Delimiter(SimpleReconstrTestLanguageDelimiters.keyword$34$Delimiter);
+ getTwoNumbersConsumer().setRuleCall$6$Delimiter(SimpleReconstrTestLanguageDelimiters.ruleCall$44$Delimiter);
+ getTwoNumbersConsumer().setRuleCall$10$Delimiter(SimpleReconstrTestLanguageDelimiters.ruleCall$44$Delimiter);
+ getTwoNumbersConsumer().setRuleCall$4$Delimiter(SimpleReconstrTestLanguageDelimiters.ruleCall$44$Delimiter);
+ getTwoNumbersConsumer().setKeyword$8$Delimiter(SimpleReconstrTestLanguageDelimiters.keyword$34$Delimiter);
+ getManyStringsConsumer().setRuleCall$7$Delimiter(SimpleReconstrTestLanguageDelimiters.ruleCall$44$Delimiter);
+ getManyStringsConsumer().setKeyword$3$Delimiter(SimpleReconstrTestLanguageDelimiters.keyword$34$Delimiter);
+ getManyStringsConsumer().setRuleCall$5$Delimiter(SimpleReconstrTestLanguageDelimiters.ruleCall$44$Delimiter);
+ getTypeConsumer().setCrossReference$9$Delimiter(SimpleReconstrTestLanguageDelimiters.ruleCall$28$Delimiter);
+ getTypeConsumer().setKeyword$7$Delimiter(SimpleReconstrTestLanguageDelimiters.keyword$65$Delimiter);
+ getTypeConsumer().setKeyword$4$Delimiter(SimpleReconstrTestLanguageDelimiters.keyword$65$Delimiter);
+ getTypeConsumer().setRuleCall$6$Delimiter(SimpleReconstrTestLanguageDelimiters.ruleCall$28$Delimiter);
+ getRef2Consumer().setKeyword$8$Delimiter(SimpleReconstrTestLanguageDelimiters.keyword$65$Delimiter);
+ getRef2Consumer().setRuleCall$7$Delimiter(SimpleReconstrTestLanguageDelimiters.ruleCall$44$Delimiter);
+ getRef2Consumer().setKeyword$6$Delimiter(SimpleReconstrTestLanguageDelimiters.keyword$65$Delimiter);
+ getRef2Consumer().setKeyword$2$Delimiter(SimpleReconstrTestLanguageDelimiters.keyword$34$Delimiter);
+ getSpareConsumer().setKeyword$3$Delimiter(SimpleReconstrTestLanguageDelimiters.keyword$34$Delimiter);
+ getSpareConsumer().setRuleCall$5$Delimiter(SimpleReconstrTestLanguageDelimiters.ruleCall$28$Delimiter);
+ getSpareConsumer().setKeyword$7$Delimiter(SimpleReconstrTestLanguageDelimiters.keyword$34$Delimiter);
+ getSpareConsumer().setRuleCall$9$Delimiter(SimpleReconstrTestLanguageDelimiters.ruleCall$28$Delimiter);
+ // TODO remove workaround
getIdConsumer().initFields(this);
+ // TODO remove workaround
getIntConsumer().initFields(this);
+ // TODO remove workaround
getStringConsumer().initFields(this);
+ // TODO remove workaround
getMlCommentConsumer().initFields(this);
+ // TODO remove workaround
getSlCommentConsumer().initFields(this);
+ // TODO remove workaround
getWsConsumer().initFields(this);
+ // TODO remove workaround
getAnyOtherConsumer().initFields(this);
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageAtomConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageAtomConsumer.java
index 0592c99..2e9bdc7 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageAtomConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageAtomConsumer.java
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess.AtomElements;
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.ComplexReconstrTestLanguageDelimiters;
-
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
@SuppressWarnings("unused")
@@ -25,10 +25,13 @@ public final class ComplexReconstrTestLanguageAtomConsumer extends NonTerminalCo
private XtextBuiltinIDConsumer idConsumer;
+ private ISequenceMatcher ruleCall$2$Delimiter;
+
public ComplexReconstrTestLanguageAtomConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$2$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -36,7 +39,7 @@ public final class ComplexReconstrTestLanguageAtomConsumer extends NonTerminalCo
}
protected boolean consumeAssignment$1() throws Exception {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0LexerRuleCallID(), ComplexReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0LexerRuleCallID(), getRuleCall$2$Delimiter()))
return true;
return false;
}
@@ -58,4 +61,12 @@ public final class ComplexReconstrTestLanguageAtomConsumer extends NonTerminalCo
this.idConsumer = idConsumer;
}
+ public ISequenceMatcher getRuleCall$2$Delimiter() {
+ return ruleCall$2$Delimiter;
+ }
+
+ public void setRuleCall$2$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$2$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageOpConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageOpConsumer.java
index 5a565b3..433b52d 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageOpConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageOpConsumer.java
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess.OpElements;
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.ComplexReconstrTestLanguageDelimiters;
-
import org.eclipse.xtext.parsetree.reconstr.parser.packrat.consumers.ComplexReconstrTestLanguageTermConsumer;
@SuppressWarnings("unused")
@@ -25,10 +25,16 @@ public final class ComplexReconstrTestLanguageOpConsumer extends NonTerminalCons
private ComplexReconstrTestLanguageTermConsumer termConsumer;
+ private ICharacterClass keyword$15$Delimiter;
+
+ private ICharacterClass keyword$8$Delimiter;
+
public ComplexReconstrTestLanguageOpConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$15$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$8$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -87,7 +93,7 @@ public final class ComplexReconstrTestLanguageOpConsumer extends NonTerminalCons
}
protected boolean consumeKeyword$8() throws Exception {
- return consumeKeyword(getRule().ele1001KeywordPlusSign(), null, false, false, ComplexReconstrTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele1001KeywordPlusSign(), null, false, false, getKeyword$8$Delimiter());
}
protected boolean consumeAssignment$9() throws Exception {
@@ -118,7 +124,7 @@ public final class ComplexReconstrTestLanguageOpConsumer extends NonTerminalCons
}
protected boolean consumeKeyword$15() throws Exception {
- return consumeKeyword(getRule().ele1101KeywordHyphenMinus(), null, false, false, ComplexReconstrTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele1101KeywordHyphenMinus(), null, false, false, getKeyword$15$Delimiter());
}
protected boolean consumeAssignment$16() throws Exception {
@@ -144,4 +150,20 @@ public final class ComplexReconstrTestLanguageOpConsumer extends NonTerminalCons
this.termConsumer = termConsumer;
}
+ public ICharacterClass getKeyword$15$Delimiter() {
+ return keyword$15$Delimiter;
+ }
+
+ public void setKeyword$15$Delimiter(ICharacterClass characterClass) {
+ keyword$15$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$8$Delimiter() {
+ return keyword$8$Delimiter;
+ }
+
+ public void setKeyword$8$Delimiter(ICharacterClass characterClass) {
+ keyword$8$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageParensConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageParensConsumer.java
index 5fe4f93..638df57 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageParensConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageParensConsumer.java
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess.ParensElements;
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.ComplexReconstrTestLanguageDelimiters;
-
import org.eclipse.xtext.parsetree.reconstr.parser.packrat.consumers.ComplexReconstrTestLanguageOpConsumer;
@SuppressWarnings("unused")
@@ -25,10 +25,19 @@ public final class ComplexReconstrTestLanguageParensConsumer extends NonTerminal
private ComplexReconstrTestLanguageOpConsumer opConsumer;
+ private ICharacterClass keyword$4$Delimiter;
+
+ private ICharacterClass keyword$8$Delimiter;
+
+ private ICharacterClass keyword$6$Delimiter;
+
public ComplexReconstrTestLanguageParensConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$4$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$8$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$6$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -57,7 +66,7 @@ public final class ComplexReconstrTestLanguageParensConsumer extends NonTerminal
}
protected boolean consumeKeyword$4() throws Exception {
- return consumeKeyword(getRule().ele000KeywordLeftParenthesis(), null, false, false, ComplexReconstrTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele000KeywordLeftParenthesis(), null, false, false, getKeyword$4$Delimiter());
}
protected boolean consumeRuleCall$5() throws Exception {
@@ -65,7 +74,7 @@ public final class ComplexReconstrTestLanguageParensConsumer extends NonTerminal
}
protected boolean consumeKeyword$6() throws Exception {
- return consumeKeyword(getRule().ele01KeywordRightParenthesis(), null, false, false, ComplexReconstrTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele01KeywordRightParenthesis(), null, false, false, getKeyword$6$Delimiter());
}
protected boolean consumeAssignment$7() throws Exception {
@@ -74,7 +83,7 @@ public final class ComplexReconstrTestLanguageParensConsumer extends NonTerminal
}
protected boolean doConsumeAssignment$7() throws Exception {
- if (consumeKeyword(getRule().ele10KeywordExclamationMark(), "em", false, false, ComplexReconstrTestLanguageDelimiters.ANY_OTHER_DELIMITER))
+ if (consumeKeyword(getRule().ele10KeywordExclamationMark(), "em", false, false, getKeyword$8$Delimiter()))
return true;
return false;
}
@@ -96,4 +105,28 @@ public final class ComplexReconstrTestLanguageParensConsumer extends NonTerminal
this.opConsumer = opConsumer;
}
+ public ICharacterClass getKeyword$4$Delimiter() {
+ return keyword$4$Delimiter;
+ }
+
+ public void setKeyword$4$Delimiter(ICharacterClass characterClass) {
+ keyword$4$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$8$Delimiter() {
+ return keyword$8$Delimiter;
+ }
+
+ public void setKeyword$8$Delimiter(ICharacterClass characterClass) {
+ keyword$8$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$6$Delimiter() {
+ return keyword$6$Delimiter;
+ }
+
+ public void setKeyword$6$Delimiter(ICharacterClass characterClass) {
+ keyword$6$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageRootConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageRootConsumer.java
index eccd72f..ae31f0b 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageRootConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageRootConsumer.java
@@ -11,21 +11,21 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess.RootElements;
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.ComplexReconstrTestLanguageDelimiters;
-
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.consumers.ComplexReconstrTestLanguageTrickyGConsumer;
import org.eclipse.xtext.parsetree.reconstr.parser.packrat.consumers.ComplexReconstrTestLanguageOpConsumer;
+import org.eclipse.xtext.parsetree.reconstr.parser.packrat.consumers.ComplexReconstrTestLanguageTrickyGConsumer;
@SuppressWarnings("unused")
public final class ComplexReconstrTestLanguageRootConsumer extends NonTerminalConsumer {
- private ComplexReconstrTestLanguageTrickyGConsumer trickyGConsumer;
private ComplexReconstrTestLanguageOpConsumer opConsumer;
+ private ComplexReconstrTestLanguageTrickyGConsumer trickyGConsumer;
public ComplexReconstrTestLanguageRootConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
@@ -66,12 +66,12 @@ public final class ComplexReconstrTestLanguageRootConsumer extends NonTerminalCo
return "Root";
}
- public void setTrickyGConsumer(ComplexReconstrTestLanguageTrickyGConsumer trickyGConsumer) {
- this.trickyGConsumer = trickyGConsumer;
- }
-
public void setOpConsumer(ComplexReconstrTestLanguageOpConsumer opConsumer) {
this.opConsumer = opConsumer;
}
+ public void setTrickyGConsumer(ComplexReconstrTestLanguageTrickyGConsumer trickyGConsumer) {
+ this.trickyGConsumer = trickyGConsumer;
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTermConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTermConsumer.java
index 182456e..b773486 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTermConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTermConsumer.java
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess.TermElements;
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.ComplexReconstrTestLanguageDelimiters;
-
import org.eclipse.xtext.parsetree.reconstr.parser.packrat.consumers.ComplexReconstrTestLanguageAtomConsumer;
import org.eclipse.xtext.parsetree.reconstr.parser.packrat.consumers.ComplexReconstrTestLanguageParensConsumer;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyA1Consumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyA1Consumer.java
index 0f81d6b..526939f 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyA1Consumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyA1Consumer.java
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess.TrickyA1Elements;
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.ComplexReconstrTestLanguageDelimiters;
-
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
@SuppressWarnings("unused")
@@ -25,10 +25,13 @@ public final class ComplexReconstrTestLanguageTrickyA1Consumer extends NonTermin
private XtextBuiltinIDConsumer idConsumer;
+ private ISequenceMatcher ruleCall$2$Delimiter;
+
public ComplexReconstrTestLanguageTrickyA1Consumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$2$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -36,7 +39,7 @@ public final class ComplexReconstrTestLanguageTrickyA1Consumer extends NonTermin
}
protected boolean consumeAssignment$1() throws Exception {
- if (consumeTerminal(idConsumer, "name", true, false, getRule().ele0LexerRuleCallID(), ComplexReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "name", true, false, getRule().ele0LexerRuleCallID(), getRuleCall$2$Delimiter()))
return true;
return false;
}
@@ -58,4 +61,12 @@ public final class ComplexReconstrTestLanguageTrickyA1Consumer extends NonTermin
this.idConsumer = idConsumer;
}
+ public ISequenceMatcher getRuleCall$2$Delimiter() {
+ return ruleCall$2$Delimiter;
+ }
+
+ public void setRuleCall$2$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$2$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyAConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyAConsumer.java
index 4112cde..d1850f3 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyAConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyAConsumer.java
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess.TrickyAElements;
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.ComplexReconstrTestLanguageDelimiters;
-
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinSTRINGConsumer;
import org.eclipse.xtext.parsetree.reconstr.parser.packrat.consumers.ComplexReconstrTestLanguageTrickyA1Consumer;
@@ -29,10 +29,25 @@ public final class ComplexReconstrTestLanguageTrickyAConsumer extends NonTermina
private XtextBuiltinSTRINGConsumer stringConsumer;
private ComplexReconstrTestLanguageTrickyA1Consumer trickyA1Consumer;
+ private ISequenceMatcher ruleCall$8$Delimiter;
+
+ private ICharacterClass keyword$13$Delimiter;
+
+ private ISequenceMatcher ruleCall$19$Delimiter;
+
+ private ICharacterClass keyword$17$Delimiter;
+
+ private ICharacterClass keyword$5$Delimiter;
+
public ComplexReconstrTestLanguageTrickyAConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$8$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$13$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$19$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$17$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$5$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -65,7 +80,7 @@ public final class ComplexReconstrTestLanguageTrickyAConsumer extends NonTermina
}
protected boolean consumeKeyword$5() throws Exception {
- return consumeKeyword(getRule().ele0000KeywordTA(), null, false, false, ComplexReconstrTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele0000KeywordTA(), null, false, false, getKeyword$5$Delimiter());
}
protected boolean consumeRuleCall$6() throws Exception {
@@ -78,7 +93,7 @@ public final class ComplexReconstrTestLanguageTrickyAConsumer extends NonTermina
}
protected boolean doConsumeAssignment$7() throws Exception {
- if (consumeTerminal(idConsumer, "name", true, false, getRule().ele0010LexerRuleCallID(), ComplexReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "name", true, false, getRule().ele0010LexerRuleCallID(), getRuleCall$8$Delimiter()))
return true;
return false;
}
@@ -114,7 +129,7 @@ public final class ComplexReconstrTestLanguageTrickyAConsumer extends NonTermina
}
protected boolean consumeKeyword$13() throws Exception {
- return consumeKeyword(getRule().ele0101KeywordX(), null, false, false, ComplexReconstrTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele0101KeywordX(), null, false, false, getKeyword$13$Delimiter());
}
protected boolean consumeGroup$14() throws Exception {
@@ -135,11 +150,11 @@ public final class ComplexReconstrTestLanguageTrickyAConsumer extends NonTermina
}
protected boolean consumeKeyword$17() throws Exception {
- return consumeKeyword(getRule().ele0111KeywordY(), null, false, false, ComplexReconstrTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele0111KeywordY(), null, false, false, getKeyword$17$Delimiter());
}
protected boolean consumeAssignment$18() throws Exception {
- if (consumeTerminal(stringConsumer, "name", true, false, getRule().ele10LexerRuleCallSTRING(), ComplexReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(stringConsumer, "name", true, false, getRule().ele10LexerRuleCallSTRING(), getRuleCall$19$Delimiter()))
return true;
return false;
}
@@ -169,4 +184,44 @@ public final class ComplexReconstrTestLanguageTrickyAConsumer extends NonTermina
this.trickyA1Consumer = trickyA1Consumer;
}
+ public ISequenceMatcher getRuleCall$8$Delimiter() {
+ return ruleCall$8$Delimiter;
+ }
+
+ public void setRuleCall$8$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$8$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$13$Delimiter() {
+ return keyword$13$Delimiter;
+ }
+
+ public void setKeyword$13$Delimiter(ICharacterClass characterClass) {
+ keyword$13$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$19$Delimiter() {
+ return ruleCall$19$Delimiter;
+ }
+
+ public void setRuleCall$19$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$19$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$17$Delimiter() {
+ return keyword$17$Delimiter;
+ }
+
+ public void setKeyword$17$Delimiter(ICharacterClass characterClass) {
+ keyword$17$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$5$Delimiter() {
+ return keyword$5$Delimiter;
+ }
+
+ public void setKeyword$5$Delimiter(ICharacterClass characterClass) {
+ keyword$5$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyBConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyBConsumer.java
index e66b437..8d238eb 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyBConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyBConsumer.java
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess.TrickyBElements;
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.ComplexReconstrTestLanguageDelimiters;
-
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinINTConsumer;
@@ -27,10 +27,22 @@ public final class ComplexReconstrTestLanguageTrickyBConsumer extends NonTermina
private XtextBuiltinIDConsumer idConsumer;
private XtextBuiltinINTConsumer intConsumer;
+ private ICharacterClass keyword$3$Delimiter;
+
+ private ISequenceMatcher ruleCall$6$Delimiter;
+
+ private ISequenceMatcher ruleCall$8$Delimiter;
+
+ private ISequenceMatcher ruleCall$10$Delimiter;
+
public ComplexReconstrTestLanguageTrickyBConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$3$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$6$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ ruleCall$8$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ ruleCall$10$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -55,7 +67,7 @@ public final class ComplexReconstrTestLanguageTrickyBConsumer extends NonTermina
}
protected boolean consumeKeyword$3() throws Exception {
- return consumeKeyword(getRule().ele00KeywordTB(), null, false, false, ComplexReconstrTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele00KeywordTB(), null, false, false, getKeyword$3$Delimiter());
}
protected boolean consumeGroup$4() throws Exception {
@@ -77,13 +89,13 @@ public final class ComplexReconstrTestLanguageTrickyBConsumer extends NonTermina
}
protected boolean consumeAssignment$5() throws Exception {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0100LexerRuleCallID(), ComplexReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0100LexerRuleCallID(), getRuleCall$6$Delimiter()))
return true;
return false;
}
protected boolean consumeAssignment$7() throws Exception {
- if (consumeTerminal(intConsumer, "type", true, false, getRule().ele0110LexerRuleCallINT(), ComplexReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(intConsumer, "type", true, false, getRule().ele0110LexerRuleCallINT(), getRuleCall$8$Delimiter()))
return true;
return false;
}
@@ -94,7 +106,7 @@ public final class ComplexReconstrTestLanguageTrickyBConsumer extends NonTermina
}
protected boolean doConsumeAssignment$9() throws Exception {
- if (consumeTerminal(intConsumer, "type", true, false, getRule().ele10LexerRuleCallINT(), ComplexReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(intConsumer, "type", true, false, getRule().ele10LexerRuleCallINT(), getRuleCall$10$Delimiter()))
return true;
return false;
}
@@ -120,4 +132,36 @@ public final class ComplexReconstrTestLanguageTrickyBConsumer extends NonTermina
this.intConsumer = intConsumer;
}
+ public ICharacterClass getKeyword$3$Delimiter() {
+ return keyword$3$Delimiter;
+ }
+
+ public void setKeyword$3$Delimiter(ICharacterClass characterClass) {
+ keyword$3$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$6$Delimiter() {
+ return ruleCall$6$Delimiter;
+ }
+
+ public void setRuleCall$6$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$6$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ISequenceMatcher getRuleCall$8$Delimiter() {
+ return ruleCall$8$Delimiter;
+ }
+
+ public void setRuleCall$8$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$8$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ISequenceMatcher getRuleCall$10$Delimiter() {
+ return ruleCall$10$Delimiter;
+ }
+
+ public void setRuleCall$10$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$10$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyCConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyCConsumer.java
index a353252..aa3fcaa 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyCConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyCConsumer.java
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess.TrickyCElements;
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.ComplexReconstrTestLanguageDelimiters;
-
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
@SuppressWarnings("unused")
@@ -25,10 +25,25 @@ public final class ComplexReconstrTestLanguageTrickyCConsumer extends NonTermina
private XtextBuiltinIDConsumer idConsumer;
+ private ISequenceMatcher ruleCall$7$Delimiter;
+
+ private ICharacterClass keyword$19$Delimiter;
+
+ private ICharacterClass keyword$11$Delimiter;
+
+ private ICharacterClass keyword$15$Delimiter;
+
+ private ICharacterClass keyword$5$Delimiter;
+
public ComplexReconstrTestLanguageTrickyCConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$7$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$19$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$11$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$15$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$5$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -61,11 +76,11 @@ public final class ComplexReconstrTestLanguageTrickyCConsumer extends NonTermina
}
protected boolean consumeKeyword$5() throws Exception {
- return consumeKeyword(getRule().ele0000KeywordTC(), null, false, false, ComplexReconstrTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele0000KeywordTC(), null, false, false, getKeyword$5$Delimiter());
}
protected boolean consumeAssignment$6() throws Exception {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele00010LexerRuleCallID(), ComplexReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele00010LexerRuleCallID(), getRuleCall$7$Delimiter()))
return true;
return false;
}
@@ -93,7 +108,7 @@ public final class ComplexReconstrTestLanguageTrickyCConsumer extends NonTermina
}
protected boolean consumeKeyword$11() throws Exception {
- return consumeKeyword(getRule().ele0011KeywordX(), null, false, false, ComplexReconstrTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele0011KeywordX(), null, false, false, getKeyword$11$Delimiter());
}
protected boolean consumeGroup$12() throws Exception {
@@ -119,7 +134,7 @@ public final class ComplexReconstrTestLanguageTrickyCConsumer extends NonTermina
}
protected boolean consumeKeyword$15() throws Exception {
- return consumeKeyword(getRule().ele011KeywordY(), null, false, false, ComplexReconstrTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele011KeywordY(), null, false, false, getKeyword$15$Delimiter());
}
protected boolean consumeGroup$16() throws Exception {
@@ -145,7 +160,7 @@ public final class ComplexReconstrTestLanguageTrickyCConsumer extends NonTermina
}
protected boolean consumeKeyword$19() throws Exception {
- return consumeKeyword(getRule().ele11KeywordZ(), null, false, false, ComplexReconstrTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele11KeywordZ(), null, false, false, getKeyword$19$Delimiter());
}
public TrickyCElements getRule() {
@@ -165,4 +180,44 @@ public final class ComplexReconstrTestLanguageTrickyCConsumer extends NonTermina
this.idConsumer = idConsumer;
}
+ public ISequenceMatcher getRuleCall$7$Delimiter() {
+ return ruleCall$7$Delimiter;
+ }
+
+ public void setRuleCall$7$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$7$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$19$Delimiter() {
+ return keyword$19$Delimiter;
+ }
+
+ public void setKeyword$19$Delimiter(ICharacterClass characterClass) {
+ keyword$19$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$11$Delimiter() {
+ return keyword$11$Delimiter;
+ }
+
+ public void setKeyword$11$Delimiter(ICharacterClass characterClass) {
+ keyword$11$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$15$Delimiter() {
+ return keyword$15$Delimiter;
+ }
+
+ public void setKeyword$15$Delimiter(ICharacterClass characterClass) {
+ keyword$15$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$5$Delimiter() {
+ return keyword$5$Delimiter;
+ }
+
+ public void setKeyword$5$Delimiter(ICharacterClass characterClass) {
+ keyword$5$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyDConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyDConsumer.java
index 0230625..af0f4fe 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyDConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyDConsumer.java
@@ -11,28 +11,49 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess.TrickyDElements;
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.ComplexReconstrTestLanguageDelimiters;
-
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
-import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinSTRINGConsumer;
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinINTConsumer;
+import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinSTRINGConsumer;
@SuppressWarnings("unused")
public final class ComplexReconstrTestLanguageTrickyDConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
- private XtextBuiltinSTRINGConsumer stringConsumer;
private XtextBuiltinINTConsumer intConsumer;
+ private XtextBuiltinSTRINGConsumer stringConsumer;
+ private ISequenceMatcher ruleCall$15$Delimiter;
+
+ private ISequenceMatcher ruleCall$10$Delimiter;
+
+ private ISequenceMatcher ruleCall$17$Delimiter;
+
+ private ISequenceMatcher ruleCall$12$Delimiter;
+
+ private ICharacterClass keyword$4$Delimiter;
+
+ private ISequenceMatcher ruleCall$8$Delimiter;
+
+ private ISequenceMatcher ruleCall$19$Delimiter;
+
public ComplexReconstrTestLanguageTrickyDConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$15$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ ruleCall$10$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ ruleCall$17$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ ruleCall$12$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$4$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$8$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ ruleCall$19$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -61,7 +82,7 @@ public final class ComplexReconstrTestLanguageTrickyDConsumer extends NonTermina
}
protected boolean consumeKeyword$4() throws Exception {
- return consumeKeyword(getRule().ele000KeywordTD(), null, false, false, ComplexReconstrTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele000KeywordTD(), null, false, false, getKeyword$4$Delimiter());
}
protected boolean consumeGroup$5() throws Exception {
@@ -87,19 +108,19 @@ public final class ComplexReconstrTestLanguageTrickyDConsumer extends NonTermina
}
protected boolean consumeAssignment$7() throws Exception {
- if (consumeTerminal(intConsumer, "name", true, false, getRule().ele001000LexerRuleCallINT(), ComplexReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(intConsumer, "name", true, false, getRule().ele001000LexerRuleCallINT(), getRuleCall$8$Delimiter()))
return true;
return false;
}
protected boolean consumeAssignment$9() throws Exception {
- if (consumeTerminal(stringConsumer, "foo", false, false, getRule().ele001010LexerRuleCallSTRING(), ComplexReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(stringConsumer, "foo", false, false, getRule().ele001010LexerRuleCallSTRING(), getRuleCall$10$Delimiter()))
return true;
return false;
}
protected boolean consumeAssignment$11() throws Exception {
- if (consumeTerminal(idConsumer, "type", true, false, getRule().ele00110LexerRuleCallID(), ComplexReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "type", true, false, getRule().ele00110LexerRuleCallID(), getRuleCall$12$Delimiter()))
return true;
return false;
}
@@ -123,13 +144,13 @@ public final class ComplexReconstrTestLanguageTrickyDConsumer extends NonTermina
}
protected boolean consumeAssignment$14() throws Exception {
- if (consumeTerminal(intConsumer, "name", true, false, getRule().ele0100LexerRuleCallINT(), ComplexReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(intConsumer, "name", true, false, getRule().ele0100LexerRuleCallINT(), getRuleCall$15$Delimiter()))
return true;
return false;
}
protected boolean consumeAssignment$16() throws Exception {
- if (consumeTerminal(idConsumer, "type", true, false, getRule().ele0110LexerRuleCallID(), ComplexReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "type", true, false, getRule().ele0110LexerRuleCallID(), getRuleCall$17$Delimiter()))
return true;
return false;
}
@@ -140,7 +161,7 @@ public final class ComplexReconstrTestLanguageTrickyDConsumer extends NonTermina
}
protected boolean doConsumeAssignment$18() throws Exception {
- if (consumeTerminal(idConsumer, "type", true, false, getRule().ele10LexerRuleCallID(), ComplexReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "type", true, false, getRule().ele10LexerRuleCallID(), getRuleCall$19$Delimiter()))
return true;
return false;
}
@@ -162,12 +183,68 @@ public final class ComplexReconstrTestLanguageTrickyDConsumer extends NonTermina
this.idConsumer = idConsumer;
}
+ public void setIntConsumer(XtextBuiltinINTConsumer intConsumer) {
+ this.intConsumer = intConsumer;
+ }
+
public void setStringConsumer(XtextBuiltinSTRINGConsumer stringConsumer) {
this.stringConsumer = stringConsumer;
}
- public void setIntConsumer(XtextBuiltinINTConsumer intConsumer) {
- this.intConsumer = intConsumer;
+ public ISequenceMatcher getRuleCall$15$Delimiter() {
+ return ruleCall$15$Delimiter;
+ }
+
+ public void setRuleCall$15$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$15$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ISequenceMatcher getRuleCall$10$Delimiter() {
+ return ruleCall$10$Delimiter;
+ }
+
+ public void setRuleCall$10$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$10$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ISequenceMatcher getRuleCall$17$Delimiter() {
+ return ruleCall$17$Delimiter;
+ }
+
+ public void setRuleCall$17$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$17$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ISequenceMatcher getRuleCall$12$Delimiter() {
+ return ruleCall$12$Delimiter;
+ }
+
+ public void setRuleCall$12$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$12$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$4$Delimiter() {
+ return keyword$4$Delimiter;
+ }
+
+ public void setKeyword$4$Delimiter(ICharacterClass characterClass) {
+ keyword$4$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$8$Delimiter() {
+ return ruleCall$8$Delimiter;
+ }
+
+ public void setRuleCall$8$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$8$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ISequenceMatcher getRuleCall$19$Delimiter() {
+ return ruleCall$19$Delimiter;
+ }
+
+ public void setRuleCall$19$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$19$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
}
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyEConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyEConsumer.java
index 8da0c30..3a2fca2 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyEConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyEConsumer.java
@@ -11,28 +11,49 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess.TrickyEElements;
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.ComplexReconstrTestLanguageDelimiters;
-
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
-import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinSTRINGConsumer;
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinINTConsumer;
+import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinSTRINGConsumer;
@SuppressWarnings("unused")
public final class ComplexReconstrTestLanguageTrickyEConsumer extends NonTerminalConsumer {
private XtextBuiltinIDConsumer idConsumer;
- private XtextBuiltinSTRINGConsumer stringConsumer;
private XtextBuiltinINTConsumer intConsumer;
+ private XtextBuiltinSTRINGConsumer stringConsumer;
+ private ISequenceMatcher ruleCall$8$Delimiter;
+
+ private ISequenceMatcher ruleCall$12$Delimiter;
+
+ private ICharacterClass keyword$4$Delimiter;
+
+ private ICharacterClass keyword$13$Delimiter;
+
+ private ISequenceMatcher ruleCall$18$Delimiter;
+
+ private ISequenceMatcher ruleCall$10$Delimiter;
+
+ private ISequenceMatcher ruleCall$16$Delimiter;
+
public ComplexReconstrTestLanguageTrickyEConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$8$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ ruleCall$12$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$4$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$13$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$18$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ ruleCall$10$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ ruleCall$16$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -61,7 +82,7 @@ public final class ComplexReconstrTestLanguageTrickyEConsumer extends NonTermina
}
protected boolean consumeKeyword$4() throws Exception {
- return consumeKeyword(getRule().ele000KeywordTE(), null, false, false, ComplexReconstrTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele000KeywordTE(), null, false, false, getKeyword$4$Delimiter());
}
protected boolean consumeGroup$5() throws Exception {
@@ -87,25 +108,25 @@ public final class ComplexReconstrTestLanguageTrickyEConsumer extends NonTermina
}
protected boolean consumeAssignment$7() throws Exception {
- if (consumeTerminal(intConsumer, "name", true, false, getRule().ele001000LexerRuleCallINT(), ComplexReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(intConsumer, "name", true, false, getRule().ele001000LexerRuleCallINT(), getRuleCall$8$Delimiter()))
return true;
return false;
}
protected boolean consumeAssignment$9() throws Exception {
- if (consumeTerminal(stringConsumer, "foo", true, false, getRule().ele001010LexerRuleCallSTRING(), ComplexReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(stringConsumer, "foo", true, false, getRule().ele001010LexerRuleCallSTRING(), getRuleCall$10$Delimiter()))
return true;
return false;
}
protected boolean consumeAssignment$11() throws Exception {
- if (consumeTerminal(idConsumer, "type", true, false, getRule().ele00110LexerRuleCallID(), ComplexReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "type", true, false, getRule().ele00110LexerRuleCallID(), getRuleCall$12$Delimiter()))
return true;
return false;
}
protected boolean consumeKeyword$13() throws Exception {
- return consumeKeyword(getRule().ele01KeywordX(), null, false, false, ComplexReconstrTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele01KeywordX(), null, false, false, getKeyword$13$Delimiter());
}
protected boolean consumeGroup$14() throws Exception {
@@ -127,13 +148,13 @@ public final class ComplexReconstrTestLanguageTrickyEConsumer extends NonTermina
}
protected boolean consumeAssignment$15() throws Exception {
- if (consumeTerminal(intConsumer, "name", true, false, getRule().ele100LexerRuleCallINT(), ComplexReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(intConsumer, "name", true, false, getRule().ele100LexerRuleCallINT(), getRuleCall$16$Delimiter()))
return true;
return false;
}
protected boolean consumeAssignment$17() throws Exception {
- if (consumeTerminal(idConsumer, "type", true, false, getRule().ele110LexerRuleCallID(), ComplexReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "type", true, false, getRule().ele110LexerRuleCallID(), getRuleCall$18$Delimiter()))
return true;
return false;
}
@@ -155,12 +176,68 @@ public final class ComplexReconstrTestLanguageTrickyEConsumer extends NonTermina
this.idConsumer = idConsumer;
}
+ public void setIntConsumer(XtextBuiltinINTConsumer intConsumer) {
+ this.intConsumer = intConsumer;
+ }
+
public void setStringConsumer(XtextBuiltinSTRINGConsumer stringConsumer) {
this.stringConsumer = stringConsumer;
}
- public void setIntConsumer(XtextBuiltinINTConsumer intConsumer) {
- this.intConsumer = intConsumer;
+ public ISequenceMatcher getRuleCall$8$Delimiter() {
+ return ruleCall$8$Delimiter;
+ }
+
+ public void setRuleCall$8$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$8$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ISequenceMatcher getRuleCall$12$Delimiter() {
+ return ruleCall$12$Delimiter;
+ }
+
+ public void setRuleCall$12$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$12$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$4$Delimiter() {
+ return keyword$4$Delimiter;
+ }
+
+ public void setKeyword$4$Delimiter(ICharacterClass characterClass) {
+ keyword$4$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$13$Delimiter() {
+ return keyword$13$Delimiter;
+ }
+
+ public void setKeyword$13$Delimiter(ICharacterClass characterClass) {
+ keyword$13$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$18$Delimiter() {
+ return ruleCall$18$Delimiter;
+ }
+
+ public void setRuleCall$18$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$18$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ISequenceMatcher getRuleCall$10$Delimiter() {
+ return ruleCall$10$Delimiter;
+ }
+
+ public void setRuleCall$10$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$10$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ISequenceMatcher getRuleCall$16$Delimiter() {
+ return ruleCall$16$Delimiter;
+ }
+
+ public void setRuleCall$16$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$16$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
}
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyFConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyFConsumer.java
index ec05abd..b172750 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyFConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyFConsumer.java
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess.TrickyFElements;
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.ComplexReconstrTestLanguageDelimiters;
-
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinINTConsumer;
@@ -27,10 +27,25 @@ public final class ComplexReconstrTestLanguageTrickyFConsumer extends NonTermina
private XtextBuiltinIDConsumer idConsumer;
private XtextBuiltinINTConsumer intConsumer;
+ private ICharacterClass keyword$3$Delimiter;
+
+ private ISequenceMatcher ruleCall$13$Delimiter;
+
+ private ISequenceMatcher ruleCall$11$Delimiter;
+
+ private ISequenceMatcher ruleCall$8$Delimiter;
+
+ private ISequenceMatcher ruleCall$6$Delimiter;
+
public ComplexReconstrTestLanguageTrickyFConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$3$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$13$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ ruleCall$11$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ ruleCall$8$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ ruleCall$6$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -55,7 +70,7 @@ public final class ComplexReconstrTestLanguageTrickyFConsumer extends NonTermina
}
protected boolean consumeKeyword$3() throws Exception {
- return consumeKeyword(getRule().ele00KeywordTF(), null, false, false, ComplexReconstrTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele00KeywordTF(), null, false, false, getKeyword$3$Delimiter());
}
protected boolean consumeGroup$4() throws Exception {
@@ -77,13 +92,13 @@ public final class ComplexReconstrTestLanguageTrickyFConsumer extends NonTermina
}
protected boolean consumeAssignment$5() throws Exception {
- if (consumeTerminal(idConsumer, "name", true, false, getRule().ele0100LexerRuleCallID(), ComplexReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "name", true, false, getRule().ele0100LexerRuleCallID(), getRuleCall$6$Delimiter()))
return true;
return false;
}
protected boolean consumeAssignment$7() throws Exception {
- if (consumeTerminal(intConsumer, "type", true, false, getRule().ele0110LexerRuleCallINT(), ComplexReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(intConsumer, "type", true, false, getRule().ele0110LexerRuleCallINT(), getRuleCall$8$Delimiter()))
return true;
return false;
}
@@ -97,13 +112,13 @@ public final class ComplexReconstrTestLanguageTrickyFConsumer extends NonTermina
}
protected boolean consumeAssignment$10() throws Exception {
- if (consumeTerminal(idConsumer, "name", true, false, getRule().ele100LexerRuleCallID(), ComplexReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "name", true, false, getRule().ele100LexerRuleCallID(), getRuleCall$11$Delimiter()))
return true;
return false;
}
protected boolean consumeAssignment$12() throws Exception {
- if (consumeTerminal(intConsumer, "type", true, false, getRule().ele110LexerRuleCallINT(), ComplexReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(intConsumer, "type", true, false, getRule().ele110LexerRuleCallINT(), getRuleCall$13$Delimiter()))
return true;
return false;
}
@@ -129,4 +144,44 @@ public final class ComplexReconstrTestLanguageTrickyFConsumer extends NonTermina
this.intConsumer = intConsumer;
}
+ public ICharacterClass getKeyword$3$Delimiter() {
+ return keyword$3$Delimiter;
+ }
+
+ public void setKeyword$3$Delimiter(ICharacterClass characterClass) {
+ keyword$3$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$13$Delimiter() {
+ return ruleCall$13$Delimiter;
+ }
+
+ public void setRuleCall$13$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$13$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ISequenceMatcher getRuleCall$11$Delimiter() {
+ return ruleCall$11$Delimiter;
+ }
+
+ public void setRuleCall$11$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$11$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ISequenceMatcher getRuleCall$8$Delimiter() {
+ return ruleCall$8$Delimiter;
+ }
+
+ public void setRuleCall$8$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$8$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ISequenceMatcher getRuleCall$6$Delimiter() {
+ return ruleCall$6$Delimiter;
+ }
+
+ public void setRuleCall$6$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$6$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyG1Consumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyG1Consumer.java
index 615073a..8840f0f 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyG1Consumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyG1Consumer.java
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess.TrickyG1Elements;
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.ComplexReconstrTestLanguageDelimiters;
-
import org.eclipse.xtext.parsetree.reconstr.parser.packrat.consumers.ComplexReconstrTestLanguageTrickyG2Consumer;
@SuppressWarnings("unused")
@@ -25,10 +25,19 @@ public final class ComplexReconstrTestLanguageTrickyG1Consumer extends NonTermin
private ComplexReconstrTestLanguageTrickyG2Consumer trickyG2Consumer;
+ private ICharacterClass keyword$11$Delimiter;
+
+ private ICharacterClass keyword$8$Delimiter;
+
+ private ICharacterClass keyword$3$Delimiter;
+
public ComplexReconstrTestLanguageTrickyG1Consumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$11$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$8$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$3$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -53,7 +62,7 @@ public final class ComplexReconstrTestLanguageTrickyG1Consumer extends NonTermin
}
protected boolean consumeKeyword$3() throws Exception {
- return consumeKeyword(getRule().ele00KeywordLeftSquareBracket(), null, false, false, ComplexReconstrTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele00KeywordLeftSquareBracket(), null, false, false, getKeyword$3$Delimiter());
}
protected boolean consumeGroup$4() throws Exception {
@@ -99,7 +108,7 @@ public final class ComplexReconstrTestLanguageTrickyG1Consumer extends NonTermin
}
protected boolean consumeKeyword$8() throws Exception {
- return consumeKeyword(getRule().ele0110KeywordComma(), null, false, false, ComplexReconstrTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele0110KeywordComma(), null, false, false, getKeyword$8$Delimiter());
}
protected boolean consumeAssignment$9() throws Exception {
@@ -109,7 +118,7 @@ public final class ComplexReconstrTestLanguageTrickyG1Consumer extends NonTermin
}
protected boolean consumeKeyword$11() throws Exception {
- return consumeKeyword(getRule().ele1KeywordRightSquareBracket(), null, false, false, ComplexReconstrTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele1KeywordRightSquareBracket(), null, false, false, getKeyword$11$Delimiter());
}
public TrickyG1Elements getRule() {
@@ -129,4 +138,28 @@ public final class ComplexReconstrTestLanguageTrickyG1Consumer extends NonTermin
this.trickyG2Consumer = trickyG2Consumer;
}
+ public ICharacterClass getKeyword$11$Delimiter() {
+ return keyword$11$Delimiter;
+ }
+
+ public void setKeyword$11$Delimiter(ICharacterClass characterClass) {
+ keyword$11$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$8$Delimiter() {
+ return keyword$8$Delimiter;
+ }
+
+ public void setKeyword$8$Delimiter(ICharacterClass characterClass) {
+ keyword$8$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$3$Delimiter() {
+ return keyword$3$Delimiter;
+ }
+
+ public void setKeyword$3$Delimiter(ICharacterClass characterClass) {
+ keyword$3$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyG2Consumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyG2Consumer.java
index 582e691..1571705 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyG2Consumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyG2Consumer.java
@@ -11,26 +11,29 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess.TrickyG2Elements;
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.ComplexReconstrTestLanguageDelimiters;
-
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.consumers.ComplexReconstrTestLanguageTrickyG1Consumer;
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinINTConsumer;
+import org.eclipse.xtext.parsetree.reconstr.parser.packrat.consumers.ComplexReconstrTestLanguageTrickyG1Consumer;
@SuppressWarnings("unused")
public final class ComplexReconstrTestLanguageTrickyG2Consumer extends NonTerminalConsumer {
- private ComplexReconstrTestLanguageTrickyG1Consumer trickyG1Consumer;
private XtextBuiltinINTConsumer intConsumer;
+ private ComplexReconstrTestLanguageTrickyG1Consumer trickyG1Consumer;
+ private ISequenceMatcher ruleCall$4$Delimiter;
+
public ComplexReconstrTestLanguageTrickyG2Consumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$4$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -50,7 +53,7 @@ public final class ComplexReconstrTestLanguageTrickyG2Consumer extends NonTermin
}
protected boolean consumeAssignment$3() throws Exception {
- if (consumeTerminal(intConsumer, "val", false, false, getRule().ele10LexerRuleCallINT(), ComplexReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(intConsumer, "val", false, false, getRule().ele10LexerRuleCallINT(), getRuleCall$4$Delimiter()))
return true;
return false;
}
@@ -68,12 +71,20 @@ public final class ComplexReconstrTestLanguageTrickyG2Consumer extends NonTermin
return "TrickyG2";
}
+ public void setIntConsumer(XtextBuiltinINTConsumer intConsumer) {
+ this.intConsumer = intConsumer;
+ }
+
public void setTrickyG1Consumer(ComplexReconstrTestLanguageTrickyG1Consumer trickyG1Consumer) {
this.trickyG1Consumer = trickyG1Consumer;
}
- public void setIntConsumer(XtextBuiltinINTConsumer intConsumer) {
- this.intConsumer = intConsumer;
+ public ISequenceMatcher getRuleCall$4$Delimiter() {
+ return ruleCall$4$Delimiter;
+ }
+
+ public void setRuleCall$4$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$4$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
}
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyGConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyGConsumer.java
index e0f82d6..9e1183d 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyGConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/ComplexReconstrTestLanguageTrickyGConsumer.java
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess;
import org.eclipse.xtext.parsetree.reconstr.services.ComplexReconstrTestLanguageGrammarAccess.TrickyGElements;
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.ComplexReconstrTestLanguageDelimiters;
-
import org.eclipse.xtext.parsetree.reconstr.parser.packrat.consumers.ComplexReconstrTestLanguageTrickyG1Consumer;
@SuppressWarnings("unused")
@@ -25,10 +25,13 @@ public final class ComplexReconstrTestLanguageTrickyGConsumer extends NonTermina
private ComplexReconstrTestLanguageTrickyG1Consumer trickyG1Consumer;
+ private ICharacterClass keyword$2$Delimiter;
+
public ComplexReconstrTestLanguageTrickyGConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$2$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -49,7 +52,7 @@ public final class ComplexReconstrTestLanguageTrickyGConsumer extends NonTermina
}
protected boolean consumeKeyword$2() throws Exception {
- return consumeKeyword(getRule().ele0KeywordTG(), null, false, false, ComplexReconstrTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele0KeywordTG(), null, false, false, getKeyword$2$Delimiter());
}
protected boolean consumeAssignment$3() throws Exception {
@@ -75,4 +78,12 @@ public final class ComplexReconstrTestLanguageTrickyGConsumer extends NonTermina
this.trickyG1Consumer = trickyG1Consumer;
}
+ public ICharacterClass getKeyword$2$Delimiter() {
+ return keyword$2$Delimiter;
+ }
+
+ public void setKeyword$2$Delimiter(ICharacterClass characterClass) {
+ keyword$2$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageAtomConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageAtomConsumer.java
index ee2cbd4..e7dd934 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageAtomConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageAtomConsumer.java
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.reconstr.services.SimpleReconstrTestLanguageGrammarAccess;
import org.eclipse.xtext.parsetree.reconstr.services.SimpleReconstrTestLanguageGrammarAccess.AtomElements;
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.SimpleReconstrTestLanguageDelimiters;
-
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
@SuppressWarnings("unused")
@@ -25,10 +25,13 @@ public final class SimpleReconstrTestLanguageAtomConsumer extends NonTerminalCon
private XtextBuiltinIDConsumer idConsumer;
+ private ISequenceMatcher ruleCall$2$Delimiter;
+
public SimpleReconstrTestLanguageAtomConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$2$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -36,7 +39,7 @@ public final class SimpleReconstrTestLanguageAtomConsumer extends NonTerminalCon
}
protected boolean consumeAssignment$1() throws Exception {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0LexerRuleCallID(), SimpleReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0LexerRuleCallID(), getRuleCall$2$Delimiter()))
return true;
return false;
}
@@ -58,4 +61,12 @@ public final class SimpleReconstrTestLanguageAtomConsumer extends NonTerminalCon
this.idConsumer = idConsumer;
}
+ public ISequenceMatcher getRuleCall$2$Delimiter() {
+ return ruleCall$2$Delimiter;
+ }
+
+ public void setRuleCall$2$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$2$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageManyStringsConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageManyStringsConsumer.java
index a4197e5..cc3e6f1 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageManyStringsConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageManyStringsConsumer.java
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.reconstr.services.SimpleReconstrTestLanguageGrammarAccess;
import org.eclipse.xtext.parsetree.reconstr.services.SimpleReconstrTestLanguageGrammarAccess.ManyStringsElements;
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.SimpleReconstrTestLanguageDelimiters;
-
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinSTRINGConsumer;
@SuppressWarnings("unused")
@@ -25,10 +25,19 @@ public final class SimpleReconstrTestLanguageManyStringsConsumer extends NonTerm
private XtextBuiltinSTRINGConsumer stringConsumer;
+ private ISequenceMatcher ruleCall$7$Delimiter;
+
+ private ICharacterClass keyword$3$Delimiter;
+
+ private ISequenceMatcher ruleCall$5$Delimiter;
+
public SimpleReconstrTestLanguageManyStringsConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$7$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$3$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$5$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -53,7 +62,7 @@ public final class SimpleReconstrTestLanguageManyStringsConsumer extends NonTerm
}
protected boolean consumeKeyword$3() throws Exception {
- return consumeKeyword(getRule().ele00KeywordEqualsSign(), null, false, false, SimpleReconstrTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele00KeywordEqualsSign(), null, false, false, getKeyword$3$Delimiter());
}
protected boolean consumeAssignment$4() throws Exception {
@@ -62,13 +71,13 @@ public final class SimpleReconstrTestLanguageManyStringsConsumer extends NonTerm
}
protected boolean doConsumeAssignment$4() throws Exception {
- if (consumeTerminal(stringConsumer, "str1", true, false, getRule().ele010LexerRuleCallSTRING(), SimpleReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(stringConsumer, "str1", true, false, getRule().ele010LexerRuleCallSTRING(), getRuleCall$5$Delimiter()))
return true;
return false;
}
protected boolean consumeAssignment$6() throws Exception {
- if (consumeTerminal(stringConsumer, "str2", true, false, getRule().ele10LexerRuleCallSTRING(), SimpleReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(stringConsumer, "str2", true, false, getRule().ele10LexerRuleCallSTRING(), getRuleCall$7$Delimiter()))
return true;
return false;
}
@@ -90,4 +99,28 @@ public final class SimpleReconstrTestLanguageManyStringsConsumer extends NonTerm
this.stringConsumer = stringConsumer;
}
+ public ISequenceMatcher getRuleCall$7$Delimiter() {
+ return ruleCall$7$Delimiter;
+ }
+
+ public void setRuleCall$7$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$7$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$3$Delimiter() {
+ return keyword$3$Delimiter;
+ }
+
+ public void setKeyword$3$Delimiter(ICharacterClass characterClass) {
+ keyword$3$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$5$Delimiter() {
+ return ruleCall$5$Delimiter;
+ }
+
+ public void setRuleCall$5$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$5$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageOpConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageOpConsumer.java
index 4e0e647..547c7a6 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageOpConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageOpConsumer.java
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.reconstr.services.SimpleReconstrTestLanguageGrammarAccess;
import org.eclipse.xtext.parsetree.reconstr.services.SimpleReconstrTestLanguageGrammarAccess.OpElements;
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.SimpleReconstrTestLanguageDelimiters;
-
import org.eclipse.xtext.parsetree.reconstr.parser.packrat.consumers.SimpleReconstrTestLanguageTermConsumer;
@SuppressWarnings("unused")
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageParensConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageParensConsumer.java
index 3a078e3..840b984 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageParensConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageParensConsumer.java
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.reconstr.services.SimpleReconstrTestLanguageGrammarAccess;
import org.eclipse.xtext.parsetree.reconstr.services.SimpleReconstrTestLanguageGrammarAccess.ParensElements;
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.SimpleReconstrTestLanguageDelimiters;
-
import org.eclipse.xtext.parsetree.reconstr.parser.packrat.consumers.SimpleReconstrTestLanguageOpConsumer;
@SuppressWarnings("unused")
@@ -25,10 +25,19 @@ public final class SimpleReconstrTestLanguageParensConsumer extends NonTerminalC
private SimpleReconstrTestLanguageOpConsumer opConsumer;
+ private ICharacterClass keyword$8$Delimiter;
+
+ private ICharacterClass keyword$6$Delimiter;
+
+ private ICharacterClass keyword$4$Delimiter;
+
public SimpleReconstrTestLanguageParensConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$8$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$6$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$4$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -57,7 +66,7 @@ public final class SimpleReconstrTestLanguageParensConsumer extends NonTerminalC
}
protected boolean consumeKeyword$4() throws Exception {
- return consumeKeyword(getRule().ele000KeywordLeftParenthesis(), null, false, false, SimpleReconstrTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele000KeywordLeftParenthesis(), null, false, false, getKeyword$4$Delimiter());
}
protected boolean consumeRuleCall$5() throws Exception {
@@ -65,7 +74,7 @@ public final class SimpleReconstrTestLanguageParensConsumer extends NonTerminalC
}
protected boolean consumeKeyword$6() throws Exception {
- return consumeKeyword(getRule().ele01KeywordRightParenthesis(), null, false, false, SimpleReconstrTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele01KeywordRightParenthesis(), null, false, false, getKeyword$6$Delimiter());
}
protected boolean consumeAssignment$7() throws Exception {
@@ -74,7 +83,7 @@ public final class SimpleReconstrTestLanguageParensConsumer extends NonTerminalC
}
protected boolean doConsumeAssignment$7() throws Exception {
- if (consumeKeyword(getRule().ele10KeywordExclamationMark(), "em", false, false, SimpleReconstrTestLanguageDelimiters.ANY_OTHER_DELIMITER))
+ if (consumeKeyword(getRule().ele10KeywordExclamationMark(), "em", false, false, getKeyword$8$Delimiter()))
return true;
return false;
}
@@ -96,4 +105,28 @@ public final class SimpleReconstrTestLanguageParensConsumer extends NonTerminalC
this.opConsumer = opConsumer;
}
+ public ICharacterClass getKeyword$8$Delimiter() {
+ return keyword$8$Delimiter;
+ }
+
+ public void setKeyword$8$Delimiter(ICharacterClass characterClass) {
+ keyword$8$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$6$Delimiter() {
+ return keyword$6$Delimiter;
+ }
+
+ public void setKeyword$6$Delimiter(ICharacterClass characterClass) {
+ keyword$6$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$4$Delimiter() {
+ return keyword$4$Delimiter;
+ }
+
+ public void setKeyword$4$Delimiter(ICharacterClass characterClass) {
+ keyword$4$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageRef2Consumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageRef2Consumer.java
index aa2f906..bcb331e 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageRef2Consumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageRef2Consumer.java
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.reconstr.services.SimpleReconstrTestLanguageGrammarAccess;
import org.eclipse.xtext.parsetree.reconstr.services.SimpleReconstrTestLanguageGrammarAccess.Ref2Elements;
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.SimpleReconstrTestLanguageDelimiters;
-
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinSTRINGConsumer;
@SuppressWarnings("unused")
@@ -25,10 +25,22 @@ public final class SimpleReconstrTestLanguageRef2Consumer extends NonTerminalCon
private XtextBuiltinSTRINGConsumer stringConsumer;
+ private ICharacterClass keyword$8$Delimiter;
+
+ private ISequenceMatcher ruleCall$7$Delimiter;
+
+ private ICharacterClass keyword$6$Delimiter;
+
+ private ICharacterClass keyword$2$Delimiter;
+
public SimpleReconstrTestLanguageRef2Consumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$8$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$7$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$6$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$2$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -49,15 +61,15 @@ public final class SimpleReconstrTestLanguageRef2Consumer extends NonTerminalCon
}
protected boolean consumeKeyword$2() throws Exception {
- return consumeKeyword(getRule().ele0KeywordNumberSignDigitTwo(), null, false, false, SimpleReconstrTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele0KeywordNumberSignDigitTwo(), null, false, false, getKeyword$2$Delimiter());
}
protected boolean consumeAssignment$3() throws Exception {
- if (consumeKeyword(getRule().ele1000KeywordMykeyword1(), "ref2", false, false, SimpleReconstrTestLanguageDelimiters.ID_DELIMITER))
+ if (consumeKeyword(getRule().ele1000KeywordMykeyword1(), "ref2", false, false, getKeyword$6$Delimiter()))
return true;
- if (consumeTerminal(stringConsumer, "ref2", false, false, getRule().ele1001LexerRuleCallSTRING(), SimpleReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(stringConsumer, "ref2", false, false, getRule().ele1001LexerRuleCallSTRING(), getRuleCall$7$Delimiter()))
return true;
- if (consumeKeyword(getRule().ele101KeywordMykeyword2(), "ref2", false, false, SimpleReconstrTestLanguageDelimiters.ID_DELIMITER))
+ if (consumeKeyword(getRule().ele101KeywordMykeyword2(), "ref2", false, false, getKeyword$8$Delimiter()))
return true;
return false;
}
@@ -79,4 +91,36 @@ public final class SimpleReconstrTestLanguageRef2Consumer extends NonTerminalCon
this.stringConsumer = stringConsumer;
}
+ public ICharacterClass getKeyword$8$Delimiter() {
+ return keyword$8$Delimiter;
+ }
+
+ public void setKeyword$8$Delimiter(ICharacterClass characterClass) {
+ keyword$8$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$7$Delimiter() {
+ return ruleCall$7$Delimiter;
+ }
+
+ public void setRuleCall$7$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$7$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$6$Delimiter() {
+ return keyword$6$Delimiter;
+ }
+
+ public void setKeyword$6$Delimiter(ICharacterClass characterClass) {
+ keyword$6$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$2$Delimiter() {
+ return keyword$2$Delimiter;
+ }
+
+ public void setKeyword$2$Delimiter(ICharacterClass characterClass) {
+ keyword$2$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageSpareConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageSpareConsumer.java
index 8ef7607..594e642 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageSpareConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageSpareConsumer.java
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.reconstr.services.SimpleReconstrTestLanguageGrammarAccess;
import org.eclipse.xtext.parsetree.reconstr.services.SimpleReconstrTestLanguageGrammarAccess.SpareElements;
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.SimpleReconstrTestLanguageDelimiters;
-
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
@SuppressWarnings("unused")
@@ -25,10 +25,22 @@ public final class SimpleReconstrTestLanguageSpareConsumer extends NonTerminalCo
private XtextBuiltinIDConsumer idConsumer;
+ private ICharacterClass keyword$3$Delimiter;
+
+ private ISequenceMatcher ruleCall$5$Delimiter;
+
+ private ICharacterClass keyword$7$Delimiter;
+
+ private ISequenceMatcher ruleCall$9$Delimiter;
+
public SimpleReconstrTestLanguageSpareConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$3$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$5$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$7$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$9$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -53,11 +65,11 @@ public final class SimpleReconstrTestLanguageSpareConsumer extends NonTerminalCo
}
protected boolean consumeKeyword$3() throws Exception {
- return consumeKeyword(getRule().ele00KeywordNumberSignDigitThree(), null, false, false, SimpleReconstrTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele00KeywordNumberSignDigitThree(), null, false, false, getKeyword$3$Delimiter());
}
protected boolean consumeAssignment$4() throws Exception {
- if (consumeTerminal(idConsumer, "id", true, false, getRule().ele010LexerRuleCallID(), SimpleReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "id", true, false, getRule().ele010LexerRuleCallID(), getRuleCall$5$Delimiter()))
return true;
return false;
}
@@ -81,11 +93,11 @@ public final class SimpleReconstrTestLanguageSpareConsumer extends NonTerminalCo
}
protected boolean consumeKeyword$7() throws Exception {
- return consumeKeyword(getRule().ele10KeywordFullStop(), null, false, false, SimpleReconstrTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele10KeywordFullStop(), null, false, false, getKeyword$7$Delimiter());
}
protected boolean consumeAssignment$8() throws Exception {
- if (consumeTerminal(idConsumer, "id", true, false, getRule().ele110LexerRuleCallID(), SimpleReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "id", true, false, getRule().ele110LexerRuleCallID(), getRuleCall$9$Delimiter()))
return true;
return false;
}
@@ -107,4 +119,36 @@ public final class SimpleReconstrTestLanguageSpareConsumer extends NonTerminalCo
this.idConsumer = idConsumer;
}
+ public ICharacterClass getKeyword$3$Delimiter() {
+ return keyword$3$Delimiter;
+ }
+
+ public void setKeyword$3$Delimiter(ICharacterClass characterClass) {
+ keyword$3$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$5$Delimiter() {
+ return ruleCall$5$Delimiter;
+ }
+
+ public void setRuleCall$5$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$5$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$7$Delimiter() {
+ return keyword$7$Delimiter;
+ }
+
+ public void setKeyword$7$Delimiter(ICharacterClass characterClass) {
+ keyword$7$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$9$Delimiter() {
+ return ruleCall$9$Delimiter;
+ }
+
+ public void setRuleCall$9$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$9$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageTermConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageTermConsumer.java
index 3f086ca..8876094 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageTermConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageTermConsumer.java
@@ -11,31 +11,31 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.reconstr.services.SimpleReconstrTestLanguageGrammarAccess;
import org.eclipse.xtext.parsetree.reconstr.services.SimpleReconstrTestLanguageGrammarAccess.TermElements;
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.SimpleReconstrTestLanguageDelimiters;
-
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.consumers.SimpleReconstrTestLanguageTypeConsumer;
import org.eclipse.xtext.parsetree.reconstr.parser.packrat.consumers.SimpleReconstrTestLanguageAtomConsumer;
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.consumers.SimpleReconstrTestLanguageTwoNumbersConsumer;
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.consumers.SimpleReconstrTestLanguageParensConsumer;
import org.eclipse.xtext.parsetree.reconstr.parser.packrat.consumers.SimpleReconstrTestLanguageManyStringsConsumer;
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.consumers.SimpleReconstrTestLanguageSpareConsumer;
+import org.eclipse.xtext.parsetree.reconstr.parser.packrat.consumers.SimpleReconstrTestLanguageParensConsumer;
import org.eclipse.xtext.parsetree.reconstr.parser.packrat.consumers.SimpleReconstrTestLanguageRef2Consumer;
+import org.eclipse.xtext.parsetree.reconstr.parser.packrat.consumers.SimpleReconstrTestLanguageSpareConsumer;
+import org.eclipse.xtext.parsetree.reconstr.parser.packrat.consumers.SimpleReconstrTestLanguageTwoNumbersConsumer;
+import org.eclipse.xtext.parsetree.reconstr.parser.packrat.consumers.SimpleReconstrTestLanguageTypeConsumer;
@SuppressWarnings("unused")
public final class SimpleReconstrTestLanguageTermConsumer extends NonTerminalConsumer {
- private SimpleReconstrTestLanguageTypeConsumer typeConsumer;
private SimpleReconstrTestLanguageAtomConsumer atomConsumer;
- private SimpleReconstrTestLanguageTwoNumbersConsumer twoNumbersConsumer;
- private SimpleReconstrTestLanguageParensConsumer parensConsumer;
private SimpleReconstrTestLanguageManyStringsConsumer manyStringsConsumer;
- private SimpleReconstrTestLanguageSpareConsumer spareConsumer;
+ private SimpleReconstrTestLanguageParensConsumer parensConsumer;
private SimpleReconstrTestLanguageRef2Consumer ref2Consumer;
+ private SimpleReconstrTestLanguageSpareConsumer spareConsumer;
+ private SimpleReconstrTestLanguageTwoNumbersConsumer twoNumbersConsumer;
+ private SimpleReconstrTestLanguageTypeConsumer typeConsumer;
public SimpleReconstrTestLanguageTermConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
@@ -106,32 +106,32 @@ public final class SimpleReconstrTestLanguageTermConsumer extends NonTerminalCon
return "Expression";
}
- public void setTypeConsumer(SimpleReconstrTestLanguageTypeConsumer typeConsumer) {
- this.typeConsumer = typeConsumer;
- }
-
public void setAtomConsumer(SimpleReconstrTestLanguageAtomConsumer atomConsumer) {
this.atomConsumer = atomConsumer;
}
- public void setTwoNumbersConsumer(SimpleReconstrTestLanguageTwoNumbersConsumer twoNumbersConsumer) {
- this.twoNumbersConsumer = twoNumbersConsumer;
+ public void setManyStringsConsumer(SimpleReconstrTestLanguageManyStringsConsumer manyStringsConsumer) {
+ this.manyStringsConsumer = manyStringsConsumer;
}
public void setParensConsumer(SimpleReconstrTestLanguageParensConsumer parensConsumer) {
this.parensConsumer = parensConsumer;
}
- public void setManyStringsConsumer(SimpleReconstrTestLanguageManyStringsConsumer manyStringsConsumer) {
- this.manyStringsConsumer = manyStringsConsumer;
+ public void setRef2Consumer(SimpleReconstrTestLanguageRef2Consumer ref2Consumer) {
+ this.ref2Consumer = ref2Consumer;
}
public void setSpareConsumer(SimpleReconstrTestLanguageSpareConsumer spareConsumer) {
this.spareConsumer = spareConsumer;
}
- public void setRef2Consumer(SimpleReconstrTestLanguageRef2Consumer ref2Consumer) {
- this.ref2Consumer = ref2Consumer;
+ public void setTwoNumbersConsumer(SimpleReconstrTestLanguageTwoNumbersConsumer twoNumbersConsumer) {
+ this.twoNumbersConsumer = twoNumbersConsumer;
+ }
+
+ public void setTypeConsumer(SimpleReconstrTestLanguageTypeConsumer typeConsumer) {
+ this.typeConsumer = typeConsumer;
}
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageTwoNumbersConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageTwoNumbersConsumer.java
index 7e7b7f0..17c640d 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageTwoNumbersConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageTwoNumbersConsumer.java
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.reconstr.services.SimpleReconstrTestLanguageGrammarAccess;
import org.eclipse.xtext.parsetree.reconstr.services.SimpleReconstrTestLanguageGrammarAccess.TwoNumbersElements;
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.SimpleReconstrTestLanguageDelimiters;
-
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinINTConsumer;
@SuppressWarnings("unused")
@@ -25,10 +25,22 @@ public final class SimpleReconstrTestLanguageTwoNumbersConsumer extends NonTermi
private XtextBuiltinINTConsumer intConsumer;
+ private ISequenceMatcher ruleCall$6$Delimiter;
+
+ private ISequenceMatcher ruleCall$10$Delimiter;
+
+ private ISequenceMatcher ruleCall$4$Delimiter;
+
+ private ICharacterClass keyword$8$Delimiter;
+
public SimpleReconstrTestLanguageTwoNumbersConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$6$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ ruleCall$10$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ ruleCall$4$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$8$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -53,13 +65,13 @@ public final class SimpleReconstrTestLanguageTwoNumbersConsumer extends NonTermi
}
protected boolean consumeAssignment$3() throws Exception {
- if (consumeTerminal(intConsumer, "num1", false, false, getRule().ele000LexerRuleCallINT(), SimpleReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(intConsumer, "num1", false, false, getRule().ele000LexerRuleCallINT(), getRuleCall$4$Delimiter()))
return true;
return false;
}
protected boolean consumeAssignment$5() throws Exception {
- if (consumeTerminal(intConsumer, "num2", false, false, getRule().ele010LexerRuleCallINT(), SimpleReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(intConsumer, "num2", false, false, getRule().ele010LexerRuleCallINT(), getRuleCall$6$Delimiter()))
return true;
return false;
}
@@ -83,11 +95,11 @@ public final class SimpleReconstrTestLanguageTwoNumbersConsumer extends NonTermi
}
protected boolean consumeKeyword$8() throws Exception {
- return consumeKeyword(getRule().ele10KeywordNumberSign(), null, false, false, SimpleReconstrTestLanguageDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele10KeywordNumberSign(), null, false, false, getKeyword$8$Delimiter());
}
protected boolean consumeAssignment$9() throws Exception {
- if (consumeTerminal(intConsumer, "num3", true, false, getRule().ele110LexerRuleCallINT(), SimpleReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(intConsumer, "num3", true, false, getRule().ele110LexerRuleCallINT(), getRuleCall$10$Delimiter()))
return true;
return false;
}
@@ -109,4 +121,36 @@ public final class SimpleReconstrTestLanguageTwoNumbersConsumer extends NonTermi
this.intConsumer = intConsumer;
}
+ public ISequenceMatcher getRuleCall$6$Delimiter() {
+ return ruleCall$6$Delimiter;
+ }
+
+ public void setRuleCall$6$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$6$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ISequenceMatcher getRuleCall$10$Delimiter() {
+ return ruleCall$10$Delimiter;
+ }
+
+ public void setRuleCall$10$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$10$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ISequenceMatcher getRuleCall$4$Delimiter() {
+ return ruleCall$4$Delimiter;
+ }
+
+ public void setRuleCall$4$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$4$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$8$Delimiter() {
+ return keyword$8$Delimiter;
+ }
+
+ public void setKeyword$8$Delimiter(ICharacterClass characterClass) {
+ keyword$8$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageTypeConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageTypeConsumer.java
index 0c9e3e2..4c27aac 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageTypeConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/parser/packrat/consumers/SimpleReconstrTestLanguageTypeConsumer.java
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.reconstr.services.SimpleReconstrTestLanguageGrammarAccess;
import org.eclipse.xtext.parsetree.reconstr.services.SimpleReconstrTestLanguageGrammarAccess.TypeElements;
-import org.eclipse.xtext.parsetree.reconstr.parser.packrat.SimpleReconstrTestLanguageDelimiters;
-
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
@SuppressWarnings("unused")
@@ -25,10 +25,22 @@ public final class SimpleReconstrTestLanguageTypeConsumer extends NonTerminalCon
private XtextBuiltinIDConsumer idConsumer;
+ private ISequenceMatcher crossReference$9$Delimiter;
+
+ private ICharacterClass keyword$7$Delimiter;
+
+ private ICharacterClass keyword$4$Delimiter;
+
+ private ISequenceMatcher ruleCall$6$Delimiter;
+
public SimpleReconstrTestLanguageTypeConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ crossReference$9$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$7$Delimiter = ICharacterClass.Factory.nullClass();
+ keyword$4$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$6$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -57,21 +69,21 @@ public final class SimpleReconstrTestLanguageTypeConsumer extends NonTerminalCon
}
protected boolean consumeKeyword$4() throws Exception {
- return consumeKeyword(getRule().ele000KeywordType(), null, false, false, SimpleReconstrTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele000KeywordType(), null, false, false, getKeyword$4$Delimiter());
}
protected boolean consumeAssignment$5() throws Exception {
- if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID(), SimpleReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "name", false, false, getRule().ele0010LexerRuleCallID(), getRuleCall$6$Delimiter()))
return true;
return false;
}
protected boolean consumeKeyword$7() throws Exception {
- return consumeKeyword(getRule().ele01KeywordExtends(), null, false, false, SimpleReconstrTestLanguageDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele01KeywordExtends(), null, false, false, getKeyword$7$Delimiter());
}
protected boolean consumeAssignment$8() throws Exception {
- if (consumeTerminal(idConsumer, null, false, false, getRule().ele10CrossReferenceEStringType(), SimpleReconstrTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, null, false, false, getRule().ele10CrossReferenceEStringType(), getCrossReference$9$Delimiter()))
return true;
return false;
}
@@ -93,4 +105,36 @@ public final class SimpleReconstrTestLanguageTypeConsumer extends NonTerminalCon
this.idConsumer = idConsumer;
}
+ public ISequenceMatcher getCrossReference$9$Delimiter() {
+ return crossReference$9$Delimiter;
+ }
+
+ public void setCrossReference$9$Delimiter(ISequenceMatcher matcher) {
+ crossReference$9$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$7$Delimiter() {
+ return keyword$7$Delimiter;
+ }
+
+ public void setKeyword$7$Delimiter(ICharacterClass characterClass) {
+ keyword$7$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ICharacterClass getKeyword$4$Delimiter() {
+ return keyword$4$Delimiter;
+ }
+
+ public void setKeyword$4$Delimiter(ICharacterClass characterClass) {
+ keyword$4$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$6$Delimiter() {
+ return ruleCall$6$Delimiter;
+ }
+
+ public void setRuleCall$6$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$6$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/antlr/internal/InternalTransientValuesTestLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/antlr/internal/InternalTransientValuesTestLexer.java
index 7b1701f..ef0b11a 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/antlr/internal/InternalTransientValuesTestLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/antlr/internal/InternalTransientValuesTestLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/antlr/internal/InternalTransientValuesTest.g 2009-01-14 11:49:06
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/antlr/internal/InternalTransientValuesTest.g 2009-01-14 17:06:16
package org.eclipse.xtext.parsetree.transientvalues.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/antlr/internal/InternalTransientValuesTestParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/antlr/internal/InternalTransientValuesTestParser.java
index b685248..c2a34f9 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/antlr/internal/InternalTransientValuesTestParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/antlr/internal/InternalTransientValuesTestParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/antlr/internal/InternalTransientValuesTest.g 2009-01-14 11:49:06
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/antlr/internal/InternalTransientValuesTest.g 2009-01-14 17:06:16
package org.eclipse.xtext.parsetree.transientvalues.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/TransientValuesTestDelimiters.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/TransientValuesTestDelimiters.java
index a322d91..15609ff 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/TransientValuesTestDelimiters.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/TransientValuesTestDelimiters.java
@@ -8,14 +8,17 @@ 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.parsetree.transientvalues.services.TransientValuesTestGrammarAccess;
+public final class TransientValuesTestDelimiters {
-public class TransientValuesTestDelimiters {
-
- public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+ private TransientValuesTestDelimiters() {
+ throw new UnsupportedOperationException("Utility classes may not be initialized");
+ }
- public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+ // TODO do not use IDConsumer internals
+ public static ICharacterClass keyword$4$Delimiter = XtextBuiltinIDConsumer.IDConsumer$$2;
+
+ public static ISequenceMatcher ruleCall$16$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+
+ public static ICharacterClass keyword$27$Delimiter = ICharacterClass.Factory.nullClass();
- public static ISequenceMatcher ALL_KEYWORDS = new SetBasedKeywordMatcher(TransientValuesTestGrammarAccess.INSTANCE.getGrammar());
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/TransientValuesTestParserConfiguration.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/TransientValuesTestParserConfiguration.java
index 1017b8a..60b10d8 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/TransientValuesTestParserConfiguration.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/TransientValuesTestParserConfiguration.java
@@ -68,8 +68,8 @@ public class TransientValuesTestParserConfiguration extends AbstractParserConfig
}
public void configureConsumers() {
- getRootConsumer$().setTestOptionalConsumer(getTestOptionalConsumer());
getRootConsumer$().setTestListConsumer(getTestListConsumer());
+ getRootConsumer$().setTestOptionalConsumer(getTestOptionalConsumer());
getRootConsumer$().setTestRequiredConsumer(getTestRequiredConsumer());
getTestRequiredConsumer().setIntConsumer(getIntConsumer());
@@ -78,12 +78,29 @@ public class TransientValuesTestParserConfiguration extends AbstractParserConfig
getTestListConsumer().setIntConsumer(getIntConsumer());
+ getRootConsumer().setKeyword$2$Delimiter(TransientValuesTestDelimiters.keyword$4$Delimiter);
+ getTestRequiredConsumer().setRuleCall$7$Delimiter(TransientValuesTestDelimiters.ruleCall$16$Delimiter);
+ getTestRequiredConsumer().setKeyword$3$Delimiter(TransientValuesTestDelimiters.keyword$4$Delimiter);
+ getTestRequiredConsumer().setRuleCall$5$Delimiter(TransientValuesTestDelimiters.ruleCall$16$Delimiter);
+ getTestOptionalConsumer().setKeyword$3$Delimiter(TransientValuesTestDelimiters.keyword$4$Delimiter);
+ getTestOptionalConsumer().setRuleCall$9$Delimiter(TransientValuesTestDelimiters.ruleCall$16$Delimiter);
+ getTestOptionalConsumer().setRuleCall$5$Delimiter(TransientValuesTestDelimiters.ruleCall$16$Delimiter);
+ getTestOptionalConsumer().setKeyword$7$Delimiter(TransientValuesTestDelimiters.keyword$27$Delimiter);
+ getTestListConsumer().setKeyword$2$Delimiter(TransientValuesTestDelimiters.keyword$4$Delimiter);
+ getTestListConsumer().setRuleCall$4$Delimiter(TransientValuesTestDelimiters.ruleCall$16$Delimiter);
+ // TODO remove workaround
getIdConsumer().initFields(this);
+ // TODO remove workaround
getIntConsumer().initFields(this);
+ // TODO remove workaround
getStringConsumer().initFields(this);
+ // TODO remove workaround
getMlCommentConsumer().initFields(this);
+ // TODO remove workaround
getSlCommentConsumer().initFields(this);
+ // TODO remove workaround
getWsConsumer().initFields(this);
+ // TODO remove workaround
getAnyOtherConsumer().initFields(this);
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/consumers/TransientValuesTestRootConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/consumers/TransientValuesTestRootConsumer.java
index d736835..0394626 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/consumers/TransientValuesTestRootConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/consumers/TransientValuesTestRootConsumer.java
@@ -11,28 +11,31 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.transientvalues.services.TransientValuesTestGrammarAccess;
import org.eclipse.xtext.parsetree.transientvalues.services.TransientValuesTestGrammarAccess.RootElements;
-import org.eclipse.xtext.parsetree.transientvalues.parser.packrat.TransientValuesTestDelimiters;
-
-import org.eclipse.xtext.parsetree.transientvalues.parser.packrat.consumers.TransientValuesTestTestOptionalConsumer;
import org.eclipse.xtext.parsetree.transientvalues.parser.packrat.consumers.TransientValuesTestTestListConsumer;
+import org.eclipse.xtext.parsetree.transientvalues.parser.packrat.consumers.TransientValuesTestTestOptionalConsumer;
import org.eclipse.xtext.parsetree.transientvalues.parser.packrat.consumers.TransientValuesTestTestRequiredConsumer;
@SuppressWarnings("unused")
public final class TransientValuesTestRootConsumer extends NonTerminalConsumer {
- private TransientValuesTestTestOptionalConsumer testOptionalConsumer;
private TransientValuesTestTestListConsumer testListConsumer;
+ private TransientValuesTestTestOptionalConsumer testOptionalConsumer;
private TransientValuesTestTestRequiredConsumer testRequiredConsumer;
+ private ICharacterClass keyword$2$Delimiter;
+
public TransientValuesTestRootConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$2$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -53,7 +56,7 @@ public final class TransientValuesTestRootConsumer extends NonTerminalConsumer {
}
protected boolean consumeKeyword$2() throws Exception {
- return consumeKeyword(getRule().ele0KeywordTest(), null, false, false, TransientValuesTestDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele0KeywordTest(), null, false, false, getKeyword$2$Delimiter());
}
protected boolean consumeAlternatives$3() throws Exception {
@@ -91,16 +94,24 @@ public final class TransientValuesTestRootConsumer extends NonTerminalConsumer {
return "Root";
}
- public void setTestOptionalConsumer(TransientValuesTestTestOptionalConsumer testOptionalConsumer) {
- this.testOptionalConsumer = testOptionalConsumer;
- }
-
public void setTestListConsumer(TransientValuesTestTestListConsumer testListConsumer) {
this.testListConsumer = testListConsumer;
}
+ public void setTestOptionalConsumer(TransientValuesTestTestOptionalConsumer testOptionalConsumer) {
+ this.testOptionalConsumer = testOptionalConsumer;
+ }
+
public void setTestRequiredConsumer(TransientValuesTestTestRequiredConsumer testRequiredConsumer) {
this.testRequiredConsumer = testRequiredConsumer;
}
+ public ICharacterClass getKeyword$2$Delimiter() {
+ return keyword$2$Delimiter;
+ }
+
+ public void setKeyword$2$Delimiter(ICharacterClass characterClass) {
+ keyword$2$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/consumers/TransientValuesTestTestListConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/consumers/TransientValuesTestTestListConsumer.java
index 309eb59..e8b0562 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/consumers/TransientValuesTestTestListConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/consumers/TransientValuesTestTestListConsumer.java
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.transientvalues.services.TransientValuesTestGrammarAccess;
import org.eclipse.xtext.parsetree.transientvalues.services.TransientValuesTestGrammarAccess.TestListElements;
-import org.eclipse.xtext.parsetree.transientvalues.parser.packrat.TransientValuesTestDelimiters;
-
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinINTConsumer;
@SuppressWarnings("unused")
@@ -25,10 +25,16 @@ public final class TransientValuesTestTestListConsumer extends NonTerminalConsum
private XtextBuiltinINTConsumer intConsumer;
+ private ICharacterClass keyword$2$Delimiter;
+
+ private ISequenceMatcher ruleCall$4$Delimiter;
+
public TransientValuesTestTestListConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$2$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$4$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -49,7 +55,7 @@ public final class TransientValuesTestTestListConsumer extends NonTerminalConsum
}
protected boolean consumeKeyword$2() throws Exception {
- return consumeKeyword(getRule().ele0KeywordList(), null, false, false, TransientValuesTestDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele0KeywordList(), null, false, false, getKeyword$2$Delimiter());
}
protected boolean consumeAssignment$3() throws Exception {
@@ -58,7 +64,7 @@ public final class TransientValuesTestTestListConsumer extends NonTerminalConsum
}
protected boolean doConsumeAssignment$3() throws Exception {
- if (consumeTerminal(intConsumer, "item", true, false, getRule().ele10LexerRuleCallINT(), TransientValuesTestDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(intConsumer, "item", true, false, getRule().ele10LexerRuleCallINT(), getRuleCall$4$Delimiter()))
return true;
return false;
}
@@ -80,4 +86,20 @@ public final class TransientValuesTestTestListConsumer extends NonTerminalConsum
this.intConsumer = intConsumer;
}
+ public ICharacterClass getKeyword$2$Delimiter() {
+ return keyword$2$Delimiter;
+ }
+
+ public void setKeyword$2$Delimiter(ICharacterClass characterClass) {
+ keyword$2$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$4$Delimiter() {
+ return ruleCall$4$Delimiter;
+ }
+
+ public void setRuleCall$4$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$4$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/consumers/TransientValuesTestTestOptionalConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/consumers/TransientValuesTestTestOptionalConsumer.java
index 102f65d..ae6c512 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/consumers/TransientValuesTestTestOptionalConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/consumers/TransientValuesTestTestOptionalConsumer.java
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.transientvalues.services.TransientValuesTestGrammarAccess;
import org.eclipse.xtext.parsetree.transientvalues.services.TransientValuesTestGrammarAccess.TestOptionalElements;
-import org.eclipse.xtext.parsetree.transientvalues.parser.packrat.TransientValuesTestDelimiters;
-
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinINTConsumer;
@SuppressWarnings("unused")
@@ -25,10 +25,22 @@ public final class TransientValuesTestTestOptionalConsumer extends NonTerminalCo
private XtextBuiltinINTConsumer intConsumer;
+ private ICharacterClass keyword$3$Delimiter;
+
+ private ISequenceMatcher ruleCall$9$Delimiter;
+
+ private ISequenceMatcher ruleCall$5$Delimiter;
+
+ private ICharacterClass keyword$7$Delimiter;
+
public TransientValuesTestTestOptionalConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ keyword$3$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$9$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ ruleCall$5$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$7$Delimiter = ICharacterClass.Factory.nullClass();
}
protected boolean doConsume() throws Exception {
@@ -53,7 +65,7 @@ public final class TransientValuesTestTestOptionalConsumer extends NonTerminalCo
}
protected boolean consumeKeyword$3() throws Exception {
- return consumeKeyword(getRule().ele00KeywordOptional(), null, false, false, TransientValuesTestDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele00KeywordOptional(), null, false, false, getKeyword$3$Delimiter());
}
protected boolean consumeAssignment$4() throws Exception {
@@ -62,7 +74,7 @@ public final class TransientValuesTestTestOptionalConsumer extends NonTerminalCo
}
protected boolean doConsumeAssignment$4() throws Exception {
- if (consumeTerminal(intConsumer, "opt1", false, false, getRule().ele010LexerRuleCallINT(), TransientValuesTestDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(intConsumer, "opt1", false, false, getRule().ele010LexerRuleCallINT(), getRuleCall$5$Delimiter()))
return true;
return false;
}
@@ -86,11 +98,11 @@ public final class TransientValuesTestTestOptionalConsumer extends NonTerminalCo
}
protected boolean consumeKeyword$7() throws Exception {
- return consumeKeyword(getRule().ele10KeywordColon(), null, false, false, TransientValuesTestDelimiters.ANY_OTHER_DELIMITER);
+ return consumeKeyword(getRule().ele10KeywordColon(), null, false, false, getKeyword$7$Delimiter());
}
protected boolean consumeAssignment$8() throws Exception {
- if (consumeTerminal(intConsumer, "opt2", false, false, getRule().ele110LexerRuleCallINT(), TransientValuesTestDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(intConsumer, "opt2", false, false, getRule().ele110LexerRuleCallINT(), getRuleCall$9$Delimiter()))
return true;
return false;
}
@@ -112,4 +124,36 @@ public final class TransientValuesTestTestOptionalConsumer extends NonTerminalCo
this.intConsumer = intConsumer;
}
+ public ICharacterClass getKeyword$3$Delimiter() {
+ return keyword$3$Delimiter;
+ }
+
+ public void setKeyword$3$Delimiter(ICharacterClass characterClass) {
+ keyword$3$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$9$Delimiter() {
+ return ruleCall$9$Delimiter;
+ }
+
+ public void setRuleCall$9$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$9$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ISequenceMatcher getRuleCall$5$Delimiter() {
+ return ruleCall$5$Delimiter;
+ }
+
+ public void setRuleCall$5$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$5$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$7$Delimiter() {
+ return keyword$7$Delimiter;
+ }
+
+ public void setKeyword$7$Delimiter(ICharacterClass characterClass) {
+ keyword$7$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/consumers/TransientValuesTestTestRequiredConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/consumers/TransientValuesTestTestRequiredConsumer.java
index b027b25..4eb1c48 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/consumers/TransientValuesTestTestRequiredConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/parsetree/transientvalues/parser/packrat/consumers/TransientValuesTestTestRequiredConsumer.java
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.parsetree.transientvalues.services.TransientValuesTestGrammarAccess;
import org.eclipse.xtext.parsetree.transientvalues.services.TransientValuesTestGrammarAccess.TestRequiredElements;
-import org.eclipse.xtext.parsetree.transientvalues.parser.packrat.TransientValuesTestDelimiters;
-
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinINTConsumer;
@SuppressWarnings("unused")
@@ -25,10 +25,19 @@ public final class TransientValuesTestTestRequiredConsumer extends NonTerminalCo
private XtextBuiltinINTConsumer intConsumer;
+ private ISequenceMatcher ruleCall$7$Delimiter;
+
+ private ICharacterClass keyword$3$Delimiter;
+
+ private ISequenceMatcher ruleCall$5$Delimiter;
+
public TransientValuesTestTestRequiredConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$7$Delimiter = ISequenceMatcher.Factory.nullMatcher();
+ keyword$3$Delimiter = ICharacterClass.Factory.nullClass();
+ ruleCall$5$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -53,17 +62,17 @@ public final class TransientValuesTestTestRequiredConsumer extends NonTerminalCo
}
protected boolean consumeKeyword$3() throws Exception {
- return consumeKeyword(getRule().ele00KeywordRequired(), null, false, false, TransientValuesTestDelimiters.ID_DELIMITER);
+ return consumeKeyword(getRule().ele00KeywordRequired(), null, false, false, getKeyword$3$Delimiter());
}
protected boolean consumeAssignment$4() throws Exception {
- if (consumeTerminal(intConsumer, "required1", false, false, getRule().ele010LexerRuleCallINT(), TransientValuesTestDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(intConsumer, "required1", false, false, getRule().ele010LexerRuleCallINT(), getRuleCall$5$Delimiter()))
return true;
return false;
}
protected boolean consumeAssignment$6() throws Exception {
- if (consumeTerminal(intConsumer, "required2", false, false, getRule().ele10LexerRuleCallINT(), TransientValuesTestDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(intConsumer, "required2", false, false, getRule().ele10LexerRuleCallINT(), getRuleCall$7$Delimiter()))
return true;
return false;
}
@@ -85,4 +94,28 @@ public final class TransientValuesTestTestRequiredConsumer extends NonTerminalCo
this.intConsumer = intConsumer;
}
+ public ISequenceMatcher getRuleCall$7$Delimiter() {
+ return ruleCall$7$Delimiter;
+ }
+
+ public void setRuleCall$7$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$7$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
+ public ICharacterClass getKeyword$3$Delimiter() {
+ return keyword$3$Delimiter;
+ }
+
+ public void setKeyword$3$Delimiter(ICharacterClass characterClass) {
+ keyword$3$Delimiter = characterClass != null ? characterClass : ICharacterClass.Factory.nullClass();
+ }
+
+ public ISequenceMatcher getRuleCall$5$Delimiter() {
+ return ruleCall$5$Delimiter;
+ }
+
+ public void setRuleCall$5$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$5$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/parser/antlr/internal/InternalMultiValueFeatureTestLanguageLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/parser/antlr/internal/InternalMultiValueFeatureTestLanguageLexer.java
index 88a46ee..06a148f 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/parser/antlr/internal/InternalMultiValueFeatureTestLanguageLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/parser/antlr/internal/InternalMultiValueFeatureTestLanguageLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/resource/metamodel/parser/antlr/internal/InternalMultiValueFeatureTestLanguage.g 2009-01-14 11:49:08
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/resource/metamodel/parser/antlr/internal/InternalMultiValueFeatureTestLanguage.g 2009-01-14 17:06:18
package org.eclipse.xtext.resource.metamodel.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/parser/antlr/internal/InternalMultiValueFeatureTestLanguageParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/parser/antlr/internal/InternalMultiValueFeatureTestLanguageParser.java
index bac8c30..5e70660 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/parser/antlr/internal/InternalMultiValueFeatureTestLanguageParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/parser/antlr/internal/InternalMultiValueFeatureTestLanguageParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/resource/metamodel/parser/antlr/internal/InternalMultiValueFeatureTestLanguage.g 2009-01-14 11:49:08
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/resource/metamodel/parser/antlr/internal/InternalMultiValueFeatureTestLanguage.g 2009-01-14 17:06:18
package org.eclipse.xtext.resource.metamodel.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/parser/packrat/MultiValueFeatureTestLanguageDelimiters.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/parser/packrat/MultiValueFeatureTestLanguageDelimiters.java
index fbb497c..24931a7 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/parser/packrat/MultiValueFeatureTestLanguageDelimiters.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/parser/packrat/MultiValueFeatureTestLanguageDelimiters.java
@@ -8,14 +8,12 @@ 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.resource.metamodel.services.MultiValueFeatureTestLanguageGrammarAccess;
+public final class MultiValueFeatureTestLanguageDelimiters {
-public class MultiValueFeatureTestLanguageDelimiters {
-
- public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+ private MultiValueFeatureTestLanguageDelimiters() {
+ throw new UnsupportedOperationException("Utility classes may not be initialized");
+ }
- public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+ public static ISequenceMatcher ruleCall$4$Delimiter = ISequenceMatcher.Factory.nullMatcher();
- public static ISequenceMatcher ALL_KEYWORDS = new SetBasedKeywordMatcher(MultiValueFeatureTestLanguageGrammarAccess.INSTANCE.getGrammar());
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/parser/packrat/MultiValueFeatureTestLanguageParserConfiguration.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/parser/packrat/MultiValueFeatureTestLanguageParserConfiguration.java
index 50b083f..17af433 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/parser/packrat/MultiValueFeatureTestLanguageParserConfiguration.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/parser/packrat/MultiValueFeatureTestLanguageParserConfiguration.java
@@ -55,12 +55,20 @@ public class MultiValueFeatureTestLanguageParserConfiguration extends AbstractPa
public void configureConsumers() {
getStartConsumer().setIdConsumer(getIdConsumer());
+ getStartConsumer().setRuleCall$2$Delimiter(MultiValueFeatureTestLanguageDelimiters.ruleCall$4$Delimiter);
+ // TODO remove workaround
getIdConsumer().initFields(this);
+ // TODO remove workaround
getIntConsumer().initFields(this);
+ // TODO remove workaround
getStringConsumer().initFields(this);
+ // TODO remove workaround
getMlCommentConsumer().initFields(this);
+ // TODO remove workaround
getSlCommentConsumer().initFields(this);
+ // TODO remove workaround
getWsConsumer().initFields(this);
+ // TODO remove workaround
getAnyOtherConsumer().initFields(this);
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/parser/packrat/consumers/MultiValueFeatureTestLanguageStartConsumer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/parser/packrat/consumers/MultiValueFeatureTestLanguageStartConsumer.java
index 00acdd1..80d703b 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/parser/packrat/consumers/MultiValueFeatureTestLanguageStartConsumer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/resource/metamodel/parser/packrat/consumers/MultiValueFeatureTestLanguageStartConsumer.java
@@ -11,13 +11,13 @@ import org.eclipse.xtext.parser.packrat.IMarkerFactory.IMarker;
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.matching.ICharacterClass;
+import org.eclipse.xtext.parser.packrat.matching.ISequenceMatcher;
import org.eclipse.xtext.parser.packrat.tokens.IParsedTokenAcceptor;
import org.eclipse.xtext.resource.metamodel.services.MultiValueFeatureTestLanguageGrammarAccess;
import org.eclipse.xtext.resource.metamodel.services.MultiValueFeatureTestLanguageGrammarAccess.StartElements;
-import org.eclipse.xtext.resource.metamodel.parser.packrat.MultiValueFeatureTestLanguageDelimiters;
-
import org.eclipse.xtext.builtin.parser.packrat.consumers.XtextBuiltinIDConsumer;
@SuppressWarnings("unused")
@@ -25,10 +25,13 @@ public final class MultiValueFeatureTestLanguageStartConsumer extends NonTermina
private XtextBuiltinIDConsumer idConsumer;
+ private ISequenceMatcher ruleCall$2$Delimiter;
+
public MultiValueFeatureTestLanguageStartConsumer(ICharSequenceWithOffset input, IMarkerFactory markerFactory,
IParsedTokenAcceptor tokenAcceptor, IHiddenTokenHandler hiddenTokenHandler, IConsumerUtility consumerUtil,
ITerminalConsumer[] hiddenTokens) {
super(input, markerFactory, tokenAcceptor, hiddenTokenHandler, consumerUtil, hiddenTokens);
+ ruleCall$2$Delimiter = ISequenceMatcher.Factory.nullMatcher();
}
protected boolean doConsume() throws Exception {
@@ -44,7 +47,7 @@ public final class MultiValueFeatureTestLanguageStartConsumer extends NonTermina
}
protected boolean doConsumeAssignment$1() throws Exception {
- if (consumeTerminal(idConsumer, "featureA", true, false, getRule().ele0LexerRuleCallID(), MultiValueFeatureTestLanguageDelimiters.ALL_KEYWORDS))
+ if (consumeTerminal(idConsumer, "featureA", true, false, getRule().ele0LexerRuleCallID(), getRuleCall$2$Delimiter()))
return true;
return false;
}
@@ -66,4 +69,12 @@ public final class MultiValueFeatureTestLanguageStartConsumer extends NonTermina
this.idConsumer = idConsumer;
}
+ public ISequenceMatcher getRuleCall$2$Delimiter() {
+ return ruleCall$2$Delimiter;
+ }
+
+ public void setRuleCall$2$Delimiter(ISequenceMatcher matcher) {
+ ruleCall$2$Delimiter = matcher != null ? matcher : ISequenceMatcher.Factory.nullMatcher();
+ }
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalActionTestLanguageLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalActionTestLanguageLexer.java
index 8008f05..aa1e581 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalActionTestLanguageLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalActionTestLanguageLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalActionTestLanguage.g 2009-01-14 11:48:59
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalActionTestLanguage.g 2009-01-14 17:06:09
package org.eclipse.xtext.testlanguages.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalActionTestLanguageParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalActionTestLanguageParser.java
index 2072746..4efe6e8 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalActionTestLanguageParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalActionTestLanguageParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalActionTestLanguage.g 2009-01-14 11:48:59
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalActionTestLanguage.g 2009-01-14 17:06:09
package org.eclipse.xtext.testlanguages.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalContentAssistTestLanguageLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalContentAssistTestLanguageLexer.java
index 16db3cc..80af466 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalContentAssistTestLanguageLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalContentAssistTestLanguageLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalContentAssistTestLanguage.g 2009-01-14 11:49:06
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalContentAssistTestLanguage.g 2009-01-14 17:06:15
package org.eclipse.xtext.testlanguages.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalContentAssistTestLanguageParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalContentAssistTestLanguageParser.java
index fb59121..d4117b0 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalContentAssistTestLanguageParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalContentAssistTestLanguageParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalContentAssistTestLanguage.g 2009-01-14 11:49:06
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalContentAssistTestLanguage.g 2009-01-14 17:06:15
package org.eclipse.xtext.testlanguages.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalFowlerDslTestLanguageLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalFowlerDslTestLanguageLexer.java
index 7eaacc9..7a11b20 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalFowlerDslTestLanguageLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalFowlerDslTestLanguageLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalFowlerDslTestLanguage.g 2009-01-14 11:49:03
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalFowlerDslTestLanguage.g 2009-01-14 17:06:13
package org.eclipse.xtext.testlanguages.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalFowlerDslTestLanguageParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalFowlerDslTestLanguageParser.java
index 8cb7ad7..ff2599b 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalFowlerDslTestLanguageParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalFowlerDslTestLanguageParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalFowlerDslTestLanguage.g 2009-01-14 11:49:02
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalFowlerDslTestLanguage.g 2009-01-14 17:06:12
package org.eclipse.xtext.testlanguages.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalLexerTestLanguageLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalLexerTestLanguageLexer.java
index 10245e7..8039f16 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalLexerTestLanguageLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalLexerTestLanguageLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalLexerTestLanguage.g 2009-01-14 11:48:57
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalLexerTestLanguage.g 2009-01-14 17:06:08
package org.eclipse.xtext.testlanguages.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalLexerTestLanguageParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalLexerTestLanguageParser.java
index 8956f80..f9aa693 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalLexerTestLanguageParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalLexerTestLanguageParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalLexerTestLanguage.g 2009-01-14 11:48:57
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalLexerTestLanguage.g 2009-01-14 17:06:08
package org.eclipse.xtext.testlanguages.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalLookaheadTestLanguageLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalLookaheadTestLanguageLexer.java
index c136cfc..86200dd 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalLookaheadTestLanguageLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalLookaheadTestLanguageLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalLookaheadTestLanguage.g 2009-01-14 11:49:01
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalLookaheadTestLanguage.g 2009-01-14 17:06:11
package org.eclipse.xtext.testlanguages.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalLookaheadTestLanguageParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalLookaheadTestLanguageParser.java
index 5aabf58..78a669b 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalLookaheadTestLanguageParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalLookaheadTestLanguageParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalLookaheadTestLanguage.g 2009-01-14 11:49:01
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalLookaheadTestLanguage.g 2009-01-14 17:06:11
package org.eclipse.xtext.testlanguages.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalOptionalEmptyTestLanguageLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalOptionalEmptyTestLanguageLexer.java
index a10b27c..4edd064 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalOptionalEmptyTestLanguageLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalOptionalEmptyTestLanguageLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalOptionalEmptyTestLanguage.g 2009-01-14 11:48:59
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalOptionalEmptyTestLanguage.g 2009-01-14 17:06:09
package org.eclipse.xtext.testlanguages.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalOptionalEmptyTestLanguageParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalOptionalEmptyTestLanguageParser.java
index 31b2433..a6faf8b 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalOptionalEmptyTestLanguageParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalOptionalEmptyTestLanguageParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalOptionalEmptyTestLanguage.g 2009-01-14 11:48:59
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalOptionalEmptyTestLanguage.g 2009-01-14 17:06:09
package org.eclipse.xtext.testlanguages.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalPartialParserTestLanguageLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalPartialParserTestLanguageLexer.java
index b963275..4fc1edd 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalPartialParserTestLanguageLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalPartialParserTestLanguageLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalPartialParserTestLanguage.g 2009-01-14 11:49:05
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalPartialParserTestLanguage.g 2009-01-14 17:06:15
package org.eclipse.xtext.testlanguages.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalPartialParserTestLanguageParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalPartialParserTestLanguageParser.java
index 278f8c7..3810cd6 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalPartialParserTestLanguageParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalPartialParserTestLanguageParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalPartialParserTestLanguage.g 2009-01-14 11:49:05
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalPartialParserTestLanguage.g 2009-01-14 17:06:15
package org.eclipse.xtext.testlanguages.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalReferenceGrammarTestLanguageLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalReferenceGrammarTestLanguageLexer.java
index 9a0f069..2b11f33 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalReferenceGrammarTestLanguageLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalReferenceGrammarTestLanguageLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalReferenceGrammarTestLanguage.g 2009-01-14 11:49:00
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalReferenceGrammarTestLanguage.g 2009-01-14 17:06:10
package org.eclipse.xtext.testlanguages.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalReferenceGrammarTestLanguageParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalReferenceGrammarTestLanguageParser.java
index 05ef9bb..2e5f1d4 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalReferenceGrammarTestLanguageParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalReferenceGrammarTestLanguageParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalReferenceGrammarTestLanguage.g 2009-01-14 11:49:00
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalReferenceGrammarTestLanguage.g 2009-01-14 17:06:10
package org.eclipse.xtext.testlanguages.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalSimpleExpressionsTestLanguageLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalSimpleExpressionsTestLanguageLexer.java
index 1516e74..6cf6126 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalSimpleExpressionsTestLanguageLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalSimpleExpressionsTestLanguageLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalSimpleExpressionsTestLanguage.g 2009-01-14 11:48:58
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalSimpleExpressionsTestLanguage.g 2009-01-14 17:06:08
package org.eclipse.xtext.testlanguages.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalSimpleExpressionsTestLanguageParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalSimpleExpressionsTestLanguageParser.java
index bb1901b..bc3cc63 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalSimpleExpressionsTestLanguageParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalSimpleExpressionsTestLanguageParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalSimpleExpressionsTestLanguage.g 2009-01-14 11:48:58
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalSimpleExpressionsTestLanguage.g 2009-01-14 17:06:08
package org.eclipse.xtext.testlanguages.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTestLanguageLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTestLanguageLexer.java
index 82cfc3a..9cb01bf 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTestLanguageLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTestLanguageLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTestLanguage.g 2009-01-14 11:48:54
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTestLanguage.g 2009-01-14 17:06:04
package org.eclipse.xtext.testlanguages.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTestLanguageParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTestLanguageParser.java
index 226d0e4..15c663e 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTestLanguageParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTestLanguageParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTestLanguage.g 2009-01-14 11:48:54
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTestLanguage.g 2009-01-14 17:06:04
package org.eclipse.xtext.testlanguages.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTreeTestLanguageLexer.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTreeTestLanguageLexer.java
index 73f037c..bd4c0a5 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTreeTestLanguageLexer.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTreeTestLanguageLexer.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTreeTestLanguage.g 2009-01-14 11:49:03
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTreeTestLanguage.g 2009-01-14 17:06:13
package org.eclipse.xtext.testlanguages.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTreeTestLanguageParser.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTreeTestLanguageParser.java
index 861958f..a94d14c 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTreeTestLanguageParser.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTreeTestLanguageParser.java
@@ -1,4 +1,4 @@
-// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTreeTestLanguage.g 2009-01-14 11:49:03
+// $ANTLR 3.0.1 ./src-gen/org/eclipse/xtext/testlanguages/parser/antlr/internal/InternalTreeTestLanguage.g 2009-01-14 17:06:13
package org.eclipse.xtext.testlanguages.parser.antlr.internal;
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/ActionTestLanguageDelimiters.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/ActionTestLanguageDelimiters.java
index 7399b76..400e3c1 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/ActionTestLanguageDelimiters.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/ActionTestLanguageDelimiters.java
@@ -8,14 +8,12 @@ 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.testlanguages.services.ActionTestLanguageGrammarAccess;
+public final class ActionTestLanguageDelimiters {
-public class ActionTestLanguageDelimiters {
-
- public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+ private ActionTestLanguageDelimiters() {
+ throw new UnsupportedOperationException("Utility classes may not be initialized");
+ }
- public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+ public static ISequenceMatcher ruleCall$20$Delimiter = ISequenceMatcher.Factory.nullMatcher();
- public static ISequenceMatcher ALL_KEYWORDS = new SetBasedKeywordMatcher(ActionTestLanguageGrammarAccess.INSTANCE.getGrammar());
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/ActionTestLanguageParserConfiguration.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/ActionTestLanguageParserConfiguration.java
index 07bcdfc..ffc56b9 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/ActionTestLanguageParserConfiguration.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/ActionTestLanguageParserConfiguration.java
@@ -69,12 +69,20 @@ public class ActionTestLanguageParserConfiguration extends AbstractParserConfigu
getItemConsumer().setIdConsumer(getIdConsumer());
+ getItemConsumer().setRuleCall$5$Delimiter(ActionTestLanguageDelimiters.ruleCall$20$Delimiter);
+ // TODO remove workaround
getIdConsumer().initFields(this);
+ // TODO remove workaround
getIntConsumer().initFields(this);
+ // TODO remove workaround
getStringConsumer().initFields(this);
+ // TODO remove workaround
getMlCommentConsumer().initFields(this);
+ // TODO remove workaround
getSlCommentConsumer().initFields(this);
+ // TODO remove workaround
getWsConsumer().initFields(this);
+ // TODO remove workaround
getAnyOtherConsumer().initFields(this);
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/ContentAssistTestLanguageDelimiters.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/ContentAssistTestLanguageDelimiters.java
index 9506cc3..ec7b603 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/ContentAssistTestLanguageDelimiters.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/ContentAssistTestLanguageDelimiters.java
@@ -8,14 +8,18 @@ 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.testlanguages.services.ContentAssistTestLanguageGrammarAccess;
+public final class ContentAssistTestLanguageDelimiters {
-public class ContentAssistTestLanguageDelimiters {
-
- public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+ private ContentAssistTestLanguageDelimiters() {
+ throw new UnsupportedOperationException("Utility classes may not be initialized");
+ }
- public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+ // TODO do not use IDConsumer internals
+ public static ICharacterClass keyword$5$Delimiter = XtextBuiltinIDConsumer.IDConsumer$$2;
- public static ISequenceMatcher ALL_KEYWORDS = new SetBasedKeywordMatcher(ContentAssistTestLanguageGrammarAccess.INSTANCE.getGrammar());
-
+ public static ICharacterClass keyword$22$Delimiter = ICharacterClass.Factory.nullClass();
+
+ public static ISequenceMatcher ruleCall$21$Delimiter = new SetBasedKeywordMatcher(
+ "abstract rules", "end", "rule");
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/ContentAssistTestLanguageParserConfiguration.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/ContentAssistTestLanguageParserConfiguration.java
index 051616a..cb8f51d 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/ContentAssistTestLanguageParserConfiguration.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/ContentAssistTestLanguageParserConfiguration.java
@@ -75,23 +75,41 @@ public class ContentAssistTestLanguageParserConfiguration extends AbstractParser
public void configureConsumers() {
getStartConsumer().setAbstractRuleConsumer(getAbstractRuleConsumer());
- getAbstractRuleConsumer().setSecondAbstractRuleChildConsumer(getSecondAbstractRuleChildConsumer());
getAbstractRuleConsumer().setFirstAbstractRuleChildConsumer(getFirstAbstractRuleChildConsumer());
+ getAbstractRuleConsumer().setSecondAbstractRuleChildConsumer(getSecondAbstractRuleChildConsumer());
- getFirstAbstractRuleChildConsumer().setIdConsumer(getIdConsumer());
getFirstAbstractRuleChildConsumer().setAbstractRuleConsumer(getAbstractRuleConsumer());
+ getFirstAbstractRuleChildConsumer().setIdConsumer(getIdConsumer());
- getSecondAbstractRuleChildConsumer().setIdConsumer(getIdConsumer());
getSecondAbstractRuleChildConsumer().setAbstractRuleCallConsumer(getAbstractRuleCallConsumer());
+ getSecondAbstractRuleChildConsumer().setIdConsumer(getIdConsumer());
getAbstractRuleCallConsumer().setIdConsumer(getIdConsumer());
+ getStartConsumer().setKeyword$3$Delimiter(ContentAssistTestLanguageDelimiters.keyword$5$Delimiter);
+ getStartConsumer().setKeyword$6$Delimiter(ContentAssistTestLanguageDelimiters.keyword$5$Delimiter);
+ getFirstAbstractRuleChildConsumer().setKeyword$7$Delimiter(ContentAssistTestLanguageDelimiters.keyword$22$Delimiter);
+ getFirstAbstractRuleChildConsumer().setRuleCall$6$Delimiter(ContentAssistTestLanguageDelimiters.ruleCall$21$Delimiter);
+ getFirstAbstractRuleChildConsumer().setKeyword$11$Delimiter(ContentAssistTestLanguageDelimiters.keyword$22$Delimiter);
+ getFirstAbstractRuleChildConsumer().setKeyword$10$Delimiter(ContentAssistTestLanguageDelimiters.keyword$22$Delimiter);
+ getSecondAbstractRuleChildConsumer().setKeyword$11$Delimiter(ContentAssistTestLanguageDelimiters.keyword$22$Delimiter);
+ getSecondAbstractRuleChildConsumer().setKeyword$7$Delimiter(ContentAssistTestLanguageDelimiters.keyword$5$Delimiter);
+ getSecondAbstractRuleChildConsumer().setKeyword$8$Delimiter(ContentAssistTestLanguageDelimiters.keyword$22$Delimiter);
+ getSecondAbstractRuleChildConsumer().setRuleCall$6$Delimiter(ContentAssistTestLanguageDelimiters.ruleCall$21$Delimiter);
+ getAbstractRuleCallConsumer().setCrossReference$2$Delimiter(ContentAssistTestLanguageDelimiters.ruleCall$21$Delimiter);
+ // TODO remove workaround
getIdConsumer().initFields(this);
+ // TODO remove workaround
getIntConsumer().initFields(this);
+ // TODO remove workaround
getStringConsumer().initFields(this);
+ // TODO remove workaround
getMlCommentConsumer().initFields(this);
+ // TODO remove workaround
getSlCommentConsumer().initFields(this);
+ // TODO remove workaround
getWsConsumer().initFields(this);
+ // TODO remove workaround
getAnyOtherConsumer().initFields(this);
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/FowlerDslTestLanguageDelimiters.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/FowlerDslTestLanguageDelimiters.java
index 7392f40..f15bb88 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/FowlerDslTestLanguageDelimiters.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/FowlerDslTestLanguageDelimiters.java
@@ -8,14 +8,18 @@ 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.testlanguages.services.FowlerDslTestLanguageGrammarAccess;
+public final class FowlerDslTestLanguageDelimiters {
-public class FowlerDslTestLanguageDelimiters {
-
- public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+ private FowlerDslTestLanguageDelimiters() {
+ throw new UnsupportedOperationException("Utility classes may not be initialized");
+ }
- public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+ // TODO do not use IDConsumer internals
+ public static ICharacterClass keyword$9$Delimiter = XtextBuiltinIDConsumer.IDConsumer$$2;
+
+ public static ISequenceMatcher ruleCall$26$Delimiter = new SetBasedKeywordMatcher(
+ "events", "end", "commands", "resetting", "state", "actions");
+
+ public static ICharacterClass keyword$49$Delimiter = ICharacterClass.Factory.nullClass();
- public static ISequenceMatcher ALL_KEYWORDS = new SetBasedKeywordMatcher(FowlerDslTestLanguageGrammarAccess.INSTANCE.getGrammar());
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/FowlerDslTestLanguageParserConfiguration.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/FowlerDslTestLanguageParserConfiguration.java
index 479894a..c0c5743 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/FowlerDslTestLanguageParserConfiguration.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/FowlerDslTestLanguageParserConfiguration.java
@@ -73,9 +73,9 @@ public class FowlerDslTestLanguageParserConfiguration extends AbstractParserConf
}
public void configureConsumers() {
+ getStatemachineConsumer().setCommandConsumer(getCommandConsumer());
getStatemachineConsumer().setEventConsumer(getEventConsumer());
getStatemachineConsumer().setStateConsumer(getStateConsumer());
- getStatemachineConsumer().setCommandConsumer(getCommandConsumer());
getEventConsumer().setIdConsumer(getIdConsumer());
@@ -86,12 +86,38 @@ public class FowlerDslTestLanguageParserConfiguration extends AbstractParserConf
getTransitionConsumer().setIdConsumer(getIdConsumer());
+ getStatemachineConsumer().setKeyword$11$Delimiter(FowlerDslTestLanguageDelimiters.keyword$9$Delimiter);
+ getStatemachineConsumer().setKeyword$7$Delimiter(FowlerDslTestLanguageDelimiters.keyword$9$Delimiter);
+ getStatemachineConsumer().setKeyword$10$Delimiter(FowlerDslTestLanguageDelimiters.keyword$9$Delimiter);
+ getStatemachineConsumer().setKeyword$14$Delimiter(FowlerDslTestLanguageDelimiters.keyword$9$Delimiter);
+ getEventConsumer().setRuleCall$6$Delimiter(FowlerDslTestLanguageDelimiters.ruleCall$26$Delimiter);
+ getEventConsumer().setRuleCall$8$Delimiter(FowlerDslTestLanguageDelimiters.ruleCall$26$Delimiter);
+ getEventConsumer().setKeyword$4$Delimiter(FowlerDslTestLanguageDelimiters.keyword$9$Delimiter);
+ getCommandConsumer().setRuleCall$5$Delimiter(FowlerDslTestLanguageDelimiters.ruleCall$26$Delimiter);
+ getCommandConsumer().setRuleCall$3$Delimiter(FowlerDslTestLanguageDelimiters.ruleCall$26$Delimiter);
+ getStateConsumer().setCrossReference$14$Delimiter(FowlerDslTestLanguageDelimiters.ruleCall$26$Delimiter);
+ getStateConsumer().setKeyword$5$Delimiter(FowlerDslTestLanguageDelimiters.keyword$9$Delimiter);
+ getStateConsumer().setKeyword$16$Delimiter(FowlerDslTestLanguageDelimiters.keyword$49$Delimiter);
+ getStateConsumer().setKeyword$12$Delimiter(FowlerDslTestLanguageDelimiters.keyword$49$Delimiter);
+ getStateConsumer().setRuleCall$7$Delimiter(FowlerDslTestLanguageDelimiters.ruleCall$26$Delimiter);
+ getStateConsumer().setKeyword$11$Delimiter(FowlerDslTestLanguageDelimiters.keyword$9$Delimiter);
+ getStateConsumer().setKeyword$19$Delimiter(FowlerDslTestLanguageDelimiters.keyword$9$Delimiter);
+ getTransitionConsumer().setCrossReference$8$Delimiter(FowlerDslTestLanguageDelimiters.ruleCall$26$Delimiter);
+ getTransitionConsumer().setKeyword$6$Delimiter(FowlerDslTestLanguageDelimiters.keyword$49$Delimiter);
+ getTransitionConsumer().setCrossReference$4$Delimiter(FowlerDslTestLanguageDelimiters.ruleCall$26$Delimiter);
+ // TODO remove workaround
getIdConsumer().initFields(this);
+ // TODO remove workaround
getIntConsumer().initFields(this);
+ // TODO remove workaround
getStringConsumer().initFields(this);
+ // TODO remove workaround
getMlCommentConsumer().initFields(this);
+ // TODO remove workaround
getSlCommentConsumer().initFields(this);
+ // TODO remove workaround
getWsConsumer().initFields(this);
+ // TODO remove workaround
getAnyOtherConsumer().initFields(this);
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/LexerTestLanguageDelimiters.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/LexerTestLanguageDelimiters.java
index f3394c3..723f691 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/LexerTestLanguageDelimiters.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/LexerTestLanguageDelimiters.java
@@ -8,14 +8,12 @@ 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.testlanguages.services.LexerTestLanguageGrammarAccess;
+public final class LexerTestLanguageDelimiters {
-public class LexerTestLanguageDelimiters {
-
- public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+ private LexerTestLanguageDelimiters() {
+ throw new UnsupportedOperationException("Utility classes may not be initialized");
+ }
- public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+ public static ISequenceMatcher ruleCall$9$Delimiter = ISequenceMatcher.Factory.nullMatcher();
- public static ISequenceMatcher ALL_KEYWORDS = new SetBasedKeywordMatcher(LexerTestLanguageGrammarAccess.INSTANCE.getGrammar());
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/LexerTestLanguageParserConfiguration.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/LexerTestLanguageParserConfiguration.java
index b887a07..0fb5f7a 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/LexerTestLanguageParserConfiguration.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/LexerTestLanguageParserConfiguration.java
@@ -62,15 +62,24 @@ public class LexerTestLanguageParserConfiguration extends AbstractParserConfigur
public void configureConsumers() {
getModelConsumer().setElementConsumer(getElementConsumer());
- getElementConsumer().setStringConsumer(getStringConsumer());
getElementConsumer().setIdConsumer(getIdConsumer());
+ getElementConsumer().setStringConsumer(getStringConsumer());
+ getElementConsumer().setRuleCall$5$Delimiter(LexerTestLanguageDelimiters.ruleCall$9$Delimiter);
+ getElementConsumer().setRuleCall$3$Delimiter(LexerTestLanguageDelimiters.ruleCall$9$Delimiter);
+ // TODO remove workaround
getStringConsumer().initFields(this);
+ // TODO remove workaround
getIdConsumer().initFields(this);
+ // TODO remove workaround
getIntConsumer().initFields(this);
+ // TODO remove workaround
getMlCommentConsumer().initFields(this);
+ // TODO remove workaround
getSlCommentConsumer().initFields(this);
+ // TODO remove workaround
getWsConsumer().initFields(this);
+ // TODO remove workaround
getAnyOtherConsumer().initFields(this);
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/LookaheadTestLanguageDelimiters.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/LookaheadTestLanguageDelimiters.java
index 72dd279..b2b7029 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/LookaheadTestLanguageDelimiters.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/LookaheadTestLanguageDelimiters.java
@@ -8,14 +8,13 @@ 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.testlanguages.services.LookaheadTestLanguageGrammarAccess;
+public final class LookaheadTestLanguageDelimiters {
-public class LookaheadTestLanguageDelimiters {
-
- public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+ private LookaheadTestLanguageDelimiters() {
+ throw new UnsupportedOperationException("Utility classes may not be initialized");
+ }
- public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+ // TODO do not use IDConsumer internals
+ public static ICharacterClass keyword$15$Delimiter = XtextBuiltinIDConsumer.IDConsumer$$2;
- public static ISequenceMatcher ALL_KEYWORDS = new SetBasedKeywordMatcher(LookaheadTestLanguageGrammarAccess.INSTANCE.getGrammar());
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/LookaheadTestLanguageParserConfiguration.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/LookaheadTestLanguageParserConfiguration.java
index bf964f0..7487b11 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/LookaheadTestLanguageParserConfiguration.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/LookaheadTestLanguageParserConfiguration.java
@@ -85,20 +85,40 @@ public class LookaheadTestLanguageParserConfiguration extends AbstractParserConf
public void configureConsumers() {
getEntryConsumer().setAltsConsumer(getAltsConsumer());
- getAltsConsumer().setLookAhead3Consumer(getLookAhead3Consumer());
getAltsConsumer().setLookAhead0Consumer(getLookAhead0Consumer());
getAltsConsumer().setLookAhead1Consumer(getLookAhead1Consumer());
+ getAltsConsumer().setLookAhead3Consumer(getLookAhead3Consumer());
getLookAhead1Consumer().setLookAhead2Consumer(getLookAhead2Consumer());
getLookAhead3Consumer().setLookAhead4Consumer(getLookAhead4Consumer());
+ getLookAhead0Consumer().setKeyword$4$Delimiter(LookaheadTestLanguageDelimiters.keyword$15$Delimiter);
+ getLookAhead0Consumer().setKeyword$2$Delimiter(LookaheadTestLanguageDelimiters.keyword$15$Delimiter);
+ getLookAhead1Consumer().setKeyword$10$Delimiter(LookaheadTestLanguageDelimiters.keyword$15$Delimiter);
+ getLookAhead1Consumer().setKeyword$4$Delimiter(LookaheadTestLanguageDelimiters.keyword$15$Delimiter);
+ getLookAhead1Consumer().setKeyword$8$Delimiter(LookaheadTestLanguageDelimiters.keyword$15$Delimiter);
+ getLookAhead2Consumer().setKeyword$6$Delimiter(LookaheadTestLanguageDelimiters.keyword$15$Delimiter);
+ getLookAhead2Consumer().setKeyword$4$Delimiter(LookaheadTestLanguageDelimiters.keyword$15$Delimiter);
+ getLookAhead2Consumer().setKeyword$7$Delimiter(LookaheadTestLanguageDelimiters.keyword$15$Delimiter);
+ getLookAhead3Consumer().setKeyword$5$Delimiter(LookaheadTestLanguageDelimiters.keyword$15$Delimiter);
+ getLookAhead3Consumer().setKeyword$7$Delimiter(LookaheadTestLanguageDelimiters.keyword$15$Delimiter);
+ getLookAhead3Consumer().setKeyword$4$Delimiter(LookaheadTestLanguageDelimiters.keyword$15$Delimiter);
+ getLookAhead4Consumer().setKeyword$3$Delimiter(LookaheadTestLanguageDelimiters.keyword$15$Delimiter);
+ getLookAhead4Consumer().setKeyword$5$Delimiter(LookaheadTestLanguageDelimiters.keyword$15$Delimiter);
+ // TODO remove workaround
getIdConsumer().initFields(this);
+ // TODO remove workaround
getIntConsumer().initFields(this);
+ // TODO remove workaround
getStringConsumer().initFields(this);
+ // TODO remove workaround
getMlCommentConsumer().initFields(this);
+ // TODO remove workaround
getSlCommentConsumer().initFields(this);
+ // TODO remove workaround
getWsConsumer().initFields(this);
+ // TODO remove workaround
getAnyOtherConsumer().initFields(this);
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/OptionalEmptyTestLanguageDelimiters.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/OptionalEmptyTestLanguageDelimiters.java
index 432af15..b930cf1 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/OptionalEmptyTestLanguageDelimiters.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/OptionalEmptyTestLanguageDelimiters.java
@@ -8,14 +8,16 @@ 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.testlanguages.services.OptionalEmptyTestLanguageGrammarAccess;
+public final class OptionalEmptyTestLanguageDelimiters {
-public class OptionalEmptyTestLanguageDelimiters {
-
- public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+ private OptionalEmptyTestLanguageDelimiters() {
+ throw new UnsupportedOperationException("Utility classes may not be initialized");
+ }
- public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+ // TODO do not use IDConsumer internals
+ public static ICharacterClass keyword$8$Delimiter = XtextBuiltinIDConsumer.IDConsumer$$2;
- public static ISequenceMatcher ALL_KEYWORDS = new SetBasedKeywordMatcher(OptionalEmptyTestLanguageGrammarAccess.INSTANCE.getGrammar());
-
+ public static ISequenceMatcher ruleCall$10$Delimiter = new SetBasedKeywordMatcher(
+ "hallo");
+
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/OptionalEmptyTestLanguageParserConfiguration.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/OptionalEmptyTestLanguageParserConfiguration.java
index bbc426c..bff7141 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/OptionalEmptyTestLanguageParserConfiguration.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/OptionalEmptyTestLanguageParserConfiguration.java
@@ -62,12 +62,21 @@ public class OptionalEmptyTestLanguageParserConfiguration extends AbstractParser
getGreetingConsumer().setIdConsumer(getIdConsumer());
+ getGreetingConsumer().setKeyword$2$Delimiter(OptionalEmptyTestLanguageDelimiters.keyword$8$Delimiter);
+ getGreetingConsumer().setRuleCall$4$Delimiter(OptionalEmptyTestLanguageDelimiters.ruleCall$10$Delimiter);
+ // TODO remove workaround
getIdConsumer().initFields(this);
+ // TODO remove workaround
getIntConsumer().initFields(this);
+ // TODO remove workaround
getStringConsumer().initFields(this);
+ // TODO remove workaround
getMlCommentConsumer().initFields(this);
+ // TODO remove workaround
getSlCommentConsumer().initFields(this);
+ // TODO remove workaround
getWsConsumer().initFields(this);
+ // TODO remove workaround
getAnyOtherConsumer().initFields(this);
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/PartialParserTestLanguageDelimiters.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/PartialParserTestLanguageDelimiters.java
index af66400..9c082fe 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/PartialParserTestLanguageDelimiters.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/PartialParserTestLanguageDelimiters.java
@@ -8,14 +8,18 @@ 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.testlanguages.services.PartialParserTestLanguageGrammarAccess;
+public final class PartialParserTestLanguageDelimiters {
-public class PartialParserTestLanguageDelimiters {
-
- public static ICharacterClass ID_DELIMITER = XtextBuiltinIDConsumer.IDConsumer$$2;
+ private PartialParserTestLanguageDelimiters() {
+ throw new UnsupportedOperationException("Utility classes may not be initialized");
+ }
- public static ICharacterClass ANY_OTHER_DELIMITER = ICharacterClass.Factory.nullClass();
+ public static ICharacterClass keyword$10$Delimiter = ICharacterClass.Factory.nullClass();
+
+ public static ISequenceMatcher ruleCall$9$Delimiter = new SetBasedKeywordMatcher(
+ "container", "nested", "children", "C", "abstract children", "F", "S");
+
+ // TODO do not use IDConsumer internals
+ public static ICharacterClass keyword$7$Delimiter = XtextBuiltinIDConsumer.IDConsumer$$2;
- public static ISequenceMatcher ALL_KEYWORDS = new SetBasedKeywordMatcher(PartialParserTestLanguageGrammarAccess.INSTANCE.getGrammar());
-
}
diff --git a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/PartialParserTestLanguageParserConfiguration.java b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/PartialParserTestLanguageParserConfiguration.java
index 8461ad7..e39faa1 100644
--- a/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/PartialParserTestLanguageParserConfiguration.java
+++ b/tests/org.eclipse.xtext.generator.tests/src-gen/org/eclipse/xtext/testlanguages/parser/packrat/PartialParserTestLanguageParserConfiguration.java
@@ -99,13 +99,13 @@ public class PartialParserTestLanguageParserConfiguration extends AbstractParser
public void configureConsumers() {
getContainerConsumer().setContentConsumer(getContentConsumer());
- getContainerConsumer().setNestedConsumer(getNestedConsumer());
getContainerConsumer().setIdConsumer(getIdConsumer());
+ getContainerConsumer().setNestedConsumer(getNestedConsumer());
getNestedConsumer().setContainerConsumer(getContainerConsumer());
- getContentConsumer().setChildrenConsumer(getChildrenConsumer());
getContentConsumer().setAbstractChildrenConsumer(getAbstractChildrenConsumer());
+ getContentConsumer().setChildrenConsumer(getChildrenConsumer());
getChildrenConsumer().setChildConsumer(getChildConsumer());
@@ -124,12 +124,49 @@ public class PartialParserTestLanguageParserConfiguration extends AbstractParser
getNamedConsumer().setIdConsumer(getIdConsumer());
+ getContainerConsumer().setKeyword$8$Delimiter(PartialParserTestLanguageDelimiters.keyword$10$Delimiter);
+ getContainerConsumer().setKeyword$14$Delimiter(PartialParserTestLanguageDelimiters.keyword$10$Delimiter);
+ getContainerConsumer().setRuleCall$7$Delimiter(PartialParserTestLanguageDelimiters.ruleCall$9$Delimiter);
+ getContainerConsumer().setKeyword$5$Delimiter(PartialParserTestLanguageDelimiters.keyword$7$Delimiter);
+ getNestedConsumer().setKeyword$8$Delimiter(PartialParserTestLanguageDelimiters.keyword$10$Delimiter);
+ getNestedConsumer().setKeyword$4$Delimiter(PartialParserTestLanguageDelimiters.keyword$7$Delimiter);
+ getNestedConsumer().setKeyword$5$Delimiter(PartialParserTestLanguageDelimiters.keyword$10$Delimiter);
+ getChildrenConsumer().setKeyword$6$Delimiter(PartialParserTestLanguageDelimiters.keyword$10$Delimiter);
+ getChildrenConsumer().setKeyword$13$Delimiter(PartialParserTestLanguageDelimiters.keyword$10$Delimiter);
+ getChildrenConsumer().setKeyword$10$Delimiter(PartialParserTestLanguageDelimiters.keyword$10$Delimiter);
+ getChildrenConsumer().setKeyword$5$Delimiter(PartialParserTestLanguageDelimiters.keyword$7$Delimiter);
+ getChildConsumer().setKeyword$5$Delimiter(PartialParserTestLanguageDelimiters.keyword$10$Delimiter);
+ getChildConsumer().setKeyword$10$Delimiter(PartialParserTestLanguageDelimiters.keyword$10$Delimiter);
+ getChildConsumer().setKeyword$7$Delimiter(PartialParserTestLanguageDelimiters.keyword$10$Delimiter);
+ getChildConsumer().setKeyword$6$Delimiter(PartialParserTestLanguageDelimiters.keyword$7$Delimiter);
+ getAbstractChildrenConsumer().setKeyword$5$Delimiter(PartialParserTestLanguageDelimiters.keyword$10$Delimiter);
+ getAbstractChildrenConsumer().setKeyword$8$Delimiter(PartialParserTestLanguageDelimiters.keyword$10$Delimiter);
+ getAbstractChildrenConsumer().setKeyword$4$Delimiter(PartialParserTestLanguageDelimiters.keyword$7$Delimiter);
+ getFirstConcreteConsumer().setKeyword$14$Delimiter(PartialParserTestLanguageDelimiters.keyword$10$Delimiter);
+ getFirstConcreteConsumer().setCrossReference$12$Delimiter(PartialParserTestLanguageDelimiters.ruleCall$9$Delimiter);
+ getFirstConcreteConsumer().setKeyword$6$Delimiter(PartialParserTestLanguageDelimiters.keyword$10$Delimiter);
+ getFirstConcreteConsumer().setKeyword$8$Delimiter(PartialParserTestLanguageDelimiters.keyword$10$Delimiter);