From 3f5aaab5025b8eb243f414b1c789085327df04f4 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Wed, 20 Mar 2019 16:09:09 +0100 Subject: Fault tree transformation for partial models WIP --- .../internal/InternalApplicationConfiguration.g | 9205 +++++++++++--------- 1 file changed, 4902 insertions(+), 4303 deletions(-) (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.g') diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.g b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.g index 455e7054..370bbe33 100644 --- a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.g +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.g @@ -1,4303 +1,4902 @@ -/* - * generated by Xtext 2.12.0 - */ -grammar InternalApplicationConfiguration; - -options { - superClass=AbstractInternalAntlrParser; -} - -@lexer::header { -package hu.bme.mit.inf.dslreasoner.application.parser.antlr.internal; - -// Hack: Use our own Lexer superclass by means of import. -// Currently there is no other way to specify the superclass for the lexer. -import org.eclipse.xtext.parser.antlr.Lexer; -} - -@parser::header { -package hu.bme.mit.inf.dslreasoner.application.parser.antlr.internal; - -import org.eclipse.xtext.*; -import org.eclipse.xtext.parser.*; -import org.eclipse.xtext.parser.impl.*; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.common.util.Enumerator; -import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser; -import org.eclipse.xtext.parser.antlr.XtextTokenStream; -import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; -import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; -import hu.bme.mit.inf.dslreasoner.application.services.ApplicationConfigurationGrammarAccess; - -} - -@parser::members { - - private ApplicationConfigurationGrammarAccess grammarAccess; - - public InternalApplicationConfigurationParser(TokenStream input, ApplicationConfigurationGrammarAccess grammarAccess) { - this(input); - this.grammarAccess = grammarAccess; - registerRules(grammarAccess.getGrammar()); - } - - @Override - protected String getFirstRuleName() { - return "ConfigurationScript"; - } - - @Override - protected ApplicationConfigurationGrammarAccess getGrammarAccess() { - return grammarAccess; - } - -} - -@rulecatch { - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } -} - -// Entry rule entryRuleConfigurationScript -entryRuleConfigurationScript returns [EObject current=null]: - { newCompositeNode(grammarAccess.getConfigurationScriptRule()); } - iv_ruleConfigurationScript=ruleConfigurationScript - { $current=$iv_ruleConfigurationScript.current; } - EOF; - -// Rule ConfigurationScript -ruleConfigurationScript returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - { - newCompositeNode(grammarAccess.getConfigurationScriptAccess().getImportsImportParserRuleCall_0_0()); - } - lv_imports_0_0=ruleImport - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getConfigurationScriptRule()); - } - add( - $current, - "imports", - lv_imports_0_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Import"); - afterParserOrEnumRuleCall(); - } - ) - )* - ( - ( - { - newCompositeNode(grammarAccess.getConfigurationScriptAccess().getCommandsCommandParserRuleCall_1_0()); - } - lv_commands_1_0=ruleCommand - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getConfigurationScriptRule()); - } - add( - $current, - "commands", - lv_commands_1_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Command"); - afterParserOrEnumRuleCall(); - } - ) - )* - ) -; - -// Entry rule entryRuleCommand -entryRuleCommand returns [EObject current=null]: - { newCompositeNode(grammarAccess.getCommandRule()); } - iv_ruleCommand=ruleCommand - { $current=$iv_ruleCommand.current; } - EOF; - -// Rule Command -ruleCommand returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getCommandAccess().getDeclarationParserRuleCall_0()); - } - this_Declaration_0=ruleDeclaration - { - $current = $this_Declaration_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getCommandAccess().getTaskParserRuleCall_1()); - } - this_Task_1=ruleTask - { - $current = $this_Task_1.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRuleQualifiedName -entryRuleQualifiedName returns [String current=null]: - { newCompositeNode(grammarAccess.getQualifiedNameRule()); } - iv_ruleQualifiedName=ruleQualifiedName - { $current=$iv_ruleQualifiedName.current.getText(); } - EOF; - -// Rule QualifiedName -ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - this_ID_0=RULE_ID - { - $current.merge(this_ID_0); - } - { - newLeafNode(this_ID_0, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); - } - ( - kw='.' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); - } - this_ID_2=RULE_ID - { - $current.merge(this_ID_2); - } - { - newLeafNode(this_ID_2, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); - } - )* - ) -; - -// Entry rule entryRuleREALLiteral -entryRuleREALLiteral returns [String current=null]: - { newCompositeNode(grammarAccess.getREALLiteralRule()); } - iv_ruleREALLiteral=ruleREALLiteral - { $current=$iv_ruleREALLiteral.current.getText(); } - EOF; - -// Rule REALLiteral -ruleREALLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - kw='-' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getREALLiteralAccess().getHyphenMinusKeyword_0()); - } - )? - this_INT_1=RULE_INT - { - $current.merge(this_INT_1); - } - { - newLeafNode(this_INT_1, grammarAccess.getREALLiteralAccess().getINTTerminalRuleCall_1()); - } - kw='.' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getREALLiteralAccess().getFullStopKeyword_2()); - } - this_INT_3=RULE_INT - { - $current.merge(this_INT_3); - } - { - newLeafNode(this_INT_3, grammarAccess.getREALLiteralAccess().getINTTerminalRuleCall_3()); - } - ) -; - -// Entry rule entryRuleINTLiteral -entryRuleINTLiteral returns [String current=null]: - { newCompositeNode(grammarAccess.getINTLiteralRule()); } - iv_ruleINTLiteral=ruleINTLiteral - { $current=$iv_ruleINTLiteral.current.getText(); } - EOF; - -// Rule INTLiteral -ruleINTLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - kw='-' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getINTLiteralAccess().getHyphenMinusKeyword_0()); - } - )? - this_INT_1=RULE_INT - { - $current.merge(this_INT_1); - } - { - newLeafNode(this_INT_1, grammarAccess.getINTLiteralAccess().getINTTerminalRuleCall_1()); - } - ) -; - -// Entry rule entryRuleImport -entryRuleImport returns [EObject current=null]: - { newCompositeNode(grammarAccess.getImportRule()); } - iv_ruleImport=ruleImport - { $current=$iv_ruleImport.current; } - EOF; - -// Rule Import -ruleImport returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getImportAccess().getEPackageImportParserRuleCall_0()); - } - this_EPackageImport_0=ruleEPackageImport - { - $current = $this_EPackageImport_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getImportAccess().getViatraImportParserRuleCall_1()); - } - this_ViatraImport_1=ruleViatraImport - { - $current = $this_ViatraImport_1.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRuleEPackageImport -entryRuleEPackageImport returns [EObject current=null]: - { newCompositeNode(grammarAccess.getEPackageImportRule()); } - iv_ruleEPackageImport=ruleEPackageImport - { $current=$iv_ruleEPackageImport.current; } - EOF; - -// Rule EPackageImport -ruleEPackageImport returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='import' - { - newLeafNode(otherlv_0, grammarAccess.getEPackageImportAccess().getImportKeyword_0()); - } - otherlv_1='epackage' - { - newLeafNode(otherlv_1, grammarAccess.getEPackageImportAccess().getEpackageKeyword_1()); - } - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getEPackageImportRule()); - } - } - otherlv_2=RULE_STRING - { - newLeafNode(otherlv_2, grammarAccess.getEPackageImportAccess().getImportedPackageEPackageCrossReference_2_0()); - } - ) - ) - ) -; - -// Entry rule entryRuleViatraImport -entryRuleViatraImport returns [EObject current=null]: - { newCompositeNode(grammarAccess.getViatraImportRule()); } - iv_ruleViatraImport=ruleViatraImport - { $current=$iv_ruleViatraImport.current; } - EOF; - -// Rule ViatraImport -ruleViatraImport returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='import' - { - newLeafNode(otherlv_0, grammarAccess.getViatraImportAccess().getImportKeyword_0()); - } - otherlv_1='viatra' - { - newLeafNode(otherlv_1, grammarAccess.getViatraImportAccess().getViatraKeyword_1()); - } - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getViatraImportRule()); - } - } - otherlv_2=RULE_STRING - { - newLeafNode(otherlv_2, grammarAccess.getViatraImportAccess().getImportedViatraPatternModelCrossReference_2_0()); - } - ) - ) - ) -; - -// Entry rule entryRuleDeclaration -entryRuleDeclaration returns [EObject current=null]: - { newCompositeNode(grammarAccess.getDeclarationRule()); } - iv_ruleDeclaration=ruleDeclaration - { $current=$iv_ruleDeclaration.current; } - EOF; - -// Rule Declaration -ruleDeclaration returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getDeclarationAccess().getFileDeclarationParserRuleCall_0()); - } - this_FileDeclaration_0=ruleFileDeclaration - { - $current = $this_FileDeclaration_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getDeclarationAccess().getMetamodelDeclarationParserRuleCall_1()); - } - this_MetamodelDeclaration_1=ruleMetamodelDeclaration - { - $current = $this_MetamodelDeclaration_1.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getDeclarationAccess().getPartialModelDeclarationParserRuleCall_2()); - } - this_PartialModelDeclaration_2=rulePartialModelDeclaration - { - $current = $this_PartialModelDeclaration_2.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getDeclarationAccess().getGraphPatternDeclarationParserRuleCall_3()); - } - this_GraphPatternDeclaration_3=ruleGraphPatternDeclaration - { - $current = $this_GraphPatternDeclaration_3.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getDeclarationAccess().getConfigDeclarationParserRuleCall_4()); - } - this_ConfigDeclaration_4=ruleConfigDeclaration - { - $current = $this_ConfigDeclaration_4.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getDeclarationAccess().getScopeDeclarationParserRuleCall_5()); - } - this_ScopeDeclaration_5=ruleScopeDeclaration - { - $current = $this_ScopeDeclaration_5.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRuleFileSpecification -entryRuleFileSpecification returns [EObject current=null]: - { newCompositeNode(grammarAccess.getFileSpecificationRule()); } - iv_ruleFileSpecification=ruleFileSpecification - { $current=$iv_ruleFileSpecification.current; } - EOF; - -// Rule FileSpecification -ruleFileSpecification returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - lv_path_0_0=RULE_STRING - { - newLeafNode(lv_path_0_0, grammarAccess.getFileSpecificationAccess().getPathSTRINGTerminalRuleCall_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getFileSpecificationRule()); - } - setWithLastConsumed( - $current, - "path", - lv_path_0_0, - "org.eclipse.xtext.common.Terminals.STRING"); - } - ) - ) -; - -// Entry rule entryRuleFileDeclaration -entryRuleFileDeclaration returns [EObject current=null]: - { newCompositeNode(grammarAccess.getFileDeclarationRule()); } - iv_ruleFileDeclaration=ruleFileDeclaration - { $current=$iv_ruleFileDeclaration.current; } - EOF; - -// Rule FileDeclaration -ruleFileDeclaration returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='file' - { - newLeafNode(otherlv_0, grammarAccess.getFileDeclarationAccess().getFileKeyword_0()); - } - ( - ( - lv_name_1_0=RULE_ID - { - newLeafNode(lv_name_1_0, grammarAccess.getFileDeclarationAccess().getNameIDTerminalRuleCall_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getFileDeclarationRule()); - } - setWithLastConsumed( - $current, - "name", - lv_name_1_0, - "org.eclipse.xtext.common.Terminals.ID"); - } - ) - ) - otherlv_2='=' - { - newLeafNode(otherlv_2, grammarAccess.getFileDeclarationAccess().getEqualsSignKeyword_2()); - } - ( - ( - { - newCompositeNode(grammarAccess.getFileDeclarationAccess().getSpecificationFileSpecificationParserRuleCall_3_0()); - } - lv_specification_3_0=ruleFileSpecification - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getFileDeclarationRule()); - } - set( - $current, - "specification", - lv_specification_3_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.FileSpecification"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRuleFileReference -entryRuleFileReference returns [EObject current=null]: - { newCompositeNode(grammarAccess.getFileReferenceRule()); } - iv_ruleFileReference=ruleFileReference - { $current=$iv_ruleFileReference.current; } - EOF; - -// Rule FileReference -ruleFileReference returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getFileReferenceRule()); - } - } - otherlv_0=RULE_ID - { - newLeafNode(otherlv_0, grammarAccess.getFileReferenceAccess().getReferredFileDeclarationCrossReference_0()); - } - ) - ) -; - -// Entry rule entryRuleFile -entryRuleFile returns [EObject current=null]: - { newCompositeNode(grammarAccess.getFileRule()); } - iv_ruleFile=ruleFile - { $current=$iv_ruleFile.current; } - EOF; - -// Rule File -ruleFile returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getFileAccess().getFileSpecificationParserRuleCall_0()); - } - this_FileSpecification_0=ruleFileSpecification - { - $current = $this_FileSpecification_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getFileAccess().getFileReferenceParserRuleCall_1()); - } - this_FileReference_1=ruleFileReference - { - $current = $this_FileReference_1.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRuleMetamodelSpecification -entryRuleMetamodelSpecification returns [EObject current=null]: - { newCompositeNode(grammarAccess.getMetamodelSpecificationRule()); } - iv_ruleMetamodelSpecification=ruleMetamodelSpecification - { $current=$iv_ruleMetamodelSpecification.current; } - EOF; - -// Rule MetamodelSpecification -ruleMetamodelSpecification returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='{' - { - newLeafNode(otherlv_0, grammarAccess.getMetamodelSpecificationAccess().getLeftCurlyBracketKeyword_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getMetamodelSpecificationAccess().getEntriesMetamodelEntryParserRuleCall_1_0()); - } - lv_entries_1_0=ruleMetamodelEntry - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getMetamodelSpecificationRule()); - } - add( - $current, - "entries", - lv_entries_1_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelEntry"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_2=',' - { - newLeafNode(otherlv_2, grammarAccess.getMetamodelSpecificationAccess().getCommaKeyword_2_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getMetamodelSpecificationAccess().getEntriesMetamodelEntryParserRuleCall_2_1_0()); - } - lv_entries_3_0=ruleMetamodelEntry - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getMetamodelSpecificationRule()); - } - add( - $current, - "entries", - lv_entries_3_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelEntry"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - otherlv_4='}' - { - newLeafNode(otherlv_4, grammarAccess.getMetamodelSpecificationAccess().getRightCurlyBracketKeyword_3()); - } - ) -; - -// Entry rule entryRuleMetamodelEntry -entryRuleMetamodelEntry returns [EObject current=null]: - { newCompositeNode(grammarAccess.getMetamodelEntryRule()); } - iv_ruleMetamodelEntry=ruleMetamodelEntry - { $current=$iv_ruleMetamodelEntry.current; } - EOF; - -// Rule MetamodelEntry -ruleMetamodelEntry returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getMetamodelEntryAccess().getMetamodelElementParserRuleCall_0()); - } - this_MetamodelElement_0=ruleMetamodelElement - { - $current = $this_MetamodelElement_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getMetamodelEntryAccess().getAllPackageEntryParserRuleCall_1()); - } - this_AllPackageEntry_1=ruleAllPackageEntry - { - $current = $this_AllPackageEntry_1.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRuleAllPackageEntry -entryRuleAllPackageEntry returns [EObject current=null]: - { newCompositeNode(grammarAccess.getAllPackageEntryRule()); } - iv_ruleAllPackageEntry=ruleAllPackageEntry - { $current=$iv_ruleAllPackageEntry.current; } - EOF; - -// Rule AllPackageEntry -ruleAllPackageEntry returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='package' - { - newLeafNode(otherlv_0, grammarAccess.getAllPackageEntryAccess().getPackageKeyword_0()); - } - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getAllPackageEntryRule()); - } - } - { - newCompositeNode(grammarAccess.getAllPackageEntryAccess().getPackageEPackageCrossReference_1_0()); - } - ruleQualifiedName - { - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_2='excluding' - { - newLeafNode(otherlv_2, grammarAccess.getAllPackageEntryAccess().getExcludingKeyword_2_0()); - } - otherlv_3='{' - { - newLeafNode(otherlv_3, grammarAccess.getAllPackageEntryAccess().getLeftCurlyBracketKeyword_2_1()); - } - ( - ( - { - newCompositeNode(grammarAccess.getAllPackageEntryAccess().getExclusionMetamodelElementParserRuleCall_2_2_0()); - } - lv_exclusion_4_0=ruleMetamodelElement - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getAllPackageEntryRule()); - } - add( - $current, - "exclusion", - lv_exclusion_4_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelElement"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_5=',' - { - newLeafNode(otherlv_5, grammarAccess.getAllPackageEntryAccess().getCommaKeyword_2_3_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getAllPackageEntryAccess().getExclusionMetamodelElementParserRuleCall_2_3_1_0()); - } - lv_exclusion_6_0=ruleMetamodelElement - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getAllPackageEntryRule()); - } - add( - $current, - "exclusion", - lv_exclusion_6_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelElement"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - otherlv_7='}' - { - newLeafNode(otherlv_7, grammarAccess.getAllPackageEntryAccess().getRightCurlyBracketKeyword_2_4()); - } - )? - ) -; - -// Entry rule entryRuleMetamodelElement -entryRuleMetamodelElement returns [EObject current=null]: - { newCompositeNode(grammarAccess.getMetamodelElementRule()); } - iv_ruleMetamodelElement=ruleMetamodelElement - { $current=$iv_ruleMetamodelElement.current; } - EOF; - -// Rule MetamodelElement -ruleMetamodelElement returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getMetamodelElementRule()); - } - } - { - newCompositeNode(grammarAccess.getMetamodelElementAccess().getPackageEPackageCrossReference_0_0_0()); - } - ruleQualifiedName - { - afterParserOrEnumRuleCall(); - } - ) - ) - otherlv_1='::' - { - newLeafNode(otherlv_1, grammarAccess.getMetamodelElementAccess().getColonColonKeyword_0_1()); - } - )? - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getMetamodelElementRule()); - } - } - otherlv_2=RULE_ID - { - newLeafNode(otherlv_2, grammarAccess.getMetamodelElementAccess().getClassifierEClassifierCrossReference_1_0()); - } - ) - ) - ( - otherlv_3='.' - { - newLeafNode(otherlv_3, grammarAccess.getMetamodelElementAccess().getFullStopKeyword_2_0()); - } - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getMetamodelElementRule()); - } - } - otherlv_4=RULE_ID - { - newLeafNode(otherlv_4, grammarAccess.getMetamodelElementAccess().getFeatureENamedElementCrossReference_2_1_0()); - } - ) - ) - )? - ) -; - -// Entry rule entryRuleMetamodelDeclaration -entryRuleMetamodelDeclaration returns [EObject current=null]: - { newCompositeNode(grammarAccess.getMetamodelDeclarationRule()); } - iv_ruleMetamodelDeclaration=ruleMetamodelDeclaration - { $current=$iv_ruleMetamodelDeclaration.current; } - EOF; - -// Rule MetamodelDeclaration -ruleMetamodelDeclaration returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='metamodel' - { - newLeafNode(otherlv_0, grammarAccess.getMetamodelDeclarationAccess().getMetamodelKeyword_0()); - } - ( - ( - lv_name_1_0=RULE_ID - { - newLeafNode(lv_name_1_0, grammarAccess.getMetamodelDeclarationAccess().getNameIDTerminalRuleCall_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getMetamodelDeclarationRule()); - } - setWithLastConsumed( - $current, - "name", - lv_name_1_0, - "org.eclipse.xtext.common.Terminals.ID"); - } - ) - ) - ( - ( - { - newCompositeNode(grammarAccess.getMetamodelDeclarationAccess().getSpecificationMetamodelSpecificationParserRuleCall_2_0()); - } - lv_specification_2_0=ruleMetamodelSpecification - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getMetamodelDeclarationRule()); - } - set( - $current, - "specification", - lv_specification_2_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelSpecification"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRuleMetamodelReference -entryRuleMetamodelReference returns [EObject current=null]: - { newCompositeNode(grammarAccess.getMetamodelReferenceRule()); } - iv_ruleMetamodelReference=ruleMetamodelReference - { $current=$iv_ruleMetamodelReference.current; } - EOF; - -// Rule MetamodelReference -ruleMetamodelReference returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getMetamodelReferenceRule()); - } - } - otherlv_0=RULE_ID - { - newLeafNode(otherlv_0, grammarAccess.getMetamodelReferenceAccess().getReferredMetamodelDeclarationCrossReference_0()); - } - ) - ) -; - -// Entry rule entryRuleMetamodel -entryRuleMetamodel returns [EObject current=null]: - { newCompositeNode(grammarAccess.getMetamodelRule()); } - iv_ruleMetamodel=ruleMetamodel - { $current=$iv_ruleMetamodel.current; } - EOF; - -// Rule Metamodel -ruleMetamodel returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getMetamodelAccess().getMetamodelReferenceParserRuleCall_0()); - } - this_MetamodelReference_0=ruleMetamodelReference - { - $current = $this_MetamodelReference_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getMetamodelAccess().getMetamodelSpecificationParserRuleCall_1()); - } - this_MetamodelSpecification_1=ruleMetamodelSpecification - { - $current = $this_MetamodelSpecification_1.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRulePartialModelSpecification -entryRulePartialModelSpecification returns [EObject current=null]: - { newCompositeNode(grammarAccess.getPartialModelSpecificationRule()); } - iv_rulePartialModelSpecification=rulePartialModelSpecification - { $current=$iv_rulePartialModelSpecification.current; } - EOF; - -// Rule PartialModelSpecification -rulePartialModelSpecification returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='{' - { - newLeafNode(otherlv_0, grammarAccess.getPartialModelSpecificationAccess().getLeftCurlyBracketKeyword_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getPartialModelSpecificationAccess().getEntryPartialModelEntryParserRuleCall_1_0()); - } - lv_entry_1_0=rulePartialModelEntry - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getPartialModelSpecificationRule()); - } - add( - $current, - "entry", - lv_entry_1_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PartialModelEntry"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_2=',' - { - newLeafNode(otherlv_2, grammarAccess.getPartialModelSpecificationAccess().getCommaKeyword_2_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getPartialModelSpecificationAccess().getEntryPartialModelEntryParserRuleCall_2_1_0()); - } - lv_entry_3_0=rulePartialModelEntry - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getPartialModelSpecificationRule()); - } - add( - $current, - "entry", - lv_entry_3_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PartialModelEntry"); - afterParserOrEnumRuleCall(); - } - ) - ) - )? - otherlv_4='}' - { - newLeafNode(otherlv_4, grammarAccess.getPartialModelSpecificationAccess().getRightCurlyBracketKeyword_3()); - } - ) -; - -// Entry rule entryRulePartialModelEntry -entryRulePartialModelEntry returns [EObject current=null]: - { newCompositeNode(grammarAccess.getPartialModelEntryRule()); } - iv_rulePartialModelEntry=rulePartialModelEntry - { $current=$iv_rulePartialModelEntry.current; } - EOF; - -// Rule PartialModelEntry -rulePartialModelEntry returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getPartialModelEntryAccess().getModelEntryParserRuleCall_0()); - } - this_ModelEntry_0=ruleModelEntry - { - $current = $this_ModelEntry_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getPartialModelEntryAccess().getFolderEntryParserRuleCall_1()); - } - this_FolderEntry_1=ruleFolderEntry - { - $current = $this_FolderEntry_1.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRuleModelEntry -entryRuleModelEntry returns [EObject current=null]: - { newCompositeNode(grammarAccess.getModelEntryRule()); } - iv_ruleModelEntry=ruleModelEntry - { $current=$iv_ruleModelEntry.current; } - EOF; - -// Rule ModelEntry -ruleModelEntry returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - newCompositeNode(grammarAccess.getModelEntryAccess().getPathFileParserRuleCall_0()); - } - lv_path_0_0=ruleFile - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getModelEntryRule()); - } - set( - $current, - "path", - lv_path_0_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); - afterParserOrEnumRuleCall(); - } - ) - ) -; - -// Entry rule entryRuleFolderEntry -entryRuleFolderEntry returns [EObject current=null]: - { newCompositeNode(grammarAccess.getFolderEntryRule()); } - iv_ruleFolderEntry=ruleFolderEntry - { $current=$iv_ruleFolderEntry.current; } - EOF; - -// Rule FolderEntry -ruleFolderEntry returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='folder' - { - newLeafNode(otherlv_0, grammarAccess.getFolderEntryAccess().getFolderKeyword_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getFolderEntryAccess().getPathFileParserRuleCall_1_0()); - } - lv_path_1_0=ruleFile - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getFolderEntryRule()); - } - set( - $current, - "path", - lv_path_1_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_2='excluding' - { - newLeafNode(otherlv_2, grammarAccess.getFolderEntryAccess().getExcludingKeyword_2_0()); - } - otherlv_3='{' - { - newLeafNode(otherlv_3, grammarAccess.getFolderEntryAccess().getLeftCurlyBracketKeyword_2_1()); - } - ( - ( - { - newCompositeNode(grammarAccess.getFolderEntryAccess().getExclusionModelEntryParserRuleCall_2_2_0()); - } - lv_exclusion_4_0=ruleModelEntry - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getFolderEntryRule()); - } - add( - $current, - "exclusion", - lv_exclusion_4_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ModelEntry"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_5=',' - { - newLeafNode(otherlv_5, grammarAccess.getFolderEntryAccess().getCommaKeyword_2_3_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getFolderEntryAccess().getExclusionModelEntryParserRuleCall_2_3_1_0()); - } - lv_exclusion_6_0=ruleModelEntry - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getFolderEntryRule()); - } - add( - $current, - "exclusion", - lv_exclusion_6_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ModelEntry"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - otherlv_7='}' - { - newLeafNode(otherlv_7, grammarAccess.getFolderEntryAccess().getRightCurlyBracketKeyword_2_4()); - } - )? - ) -; - -// Entry rule entryRulePartialModelDeclaration -entryRulePartialModelDeclaration returns [EObject current=null]: - { newCompositeNode(grammarAccess.getPartialModelDeclarationRule()); } - iv_rulePartialModelDeclaration=rulePartialModelDeclaration - { $current=$iv_rulePartialModelDeclaration.current; } - EOF; - -// Rule PartialModelDeclaration -rulePartialModelDeclaration returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='models' - { - newLeafNode(otherlv_0, grammarAccess.getPartialModelDeclarationAccess().getModelsKeyword_0()); - } - ( - ( - lv_name_1_0=RULE_ID - { - newLeafNode(lv_name_1_0, grammarAccess.getPartialModelDeclarationAccess().getNameIDTerminalRuleCall_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getPartialModelDeclarationRule()); - } - setWithLastConsumed( - $current, - "name", - lv_name_1_0, - "org.eclipse.xtext.common.Terminals.ID"); - } - ) - ) - ( - ( - { - newCompositeNode(grammarAccess.getPartialModelDeclarationAccess().getSpecificationPartialModelSpecificationParserRuleCall_2_0()); - } - lv_specification_2_0=rulePartialModelSpecification - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getPartialModelDeclarationRule()); - } - set( - $current, - "specification", - lv_specification_2_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PartialModelSpecification"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRulePartialModelReference -entryRulePartialModelReference returns [EObject current=null]: - { newCompositeNode(grammarAccess.getPartialModelReferenceRule()); } - iv_rulePartialModelReference=rulePartialModelReference - { $current=$iv_rulePartialModelReference.current; } - EOF; - -// Rule PartialModelReference -rulePartialModelReference returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getPartialModelReferenceRule()); - } - } - otherlv_0=RULE_ID - { - newLeafNode(otherlv_0, grammarAccess.getPartialModelReferenceAccess().getReferredPartialModelDeclarationCrossReference_0()); - } - ) - ) -; - -// Entry rule entryRulePartialModel -entryRulePartialModel returns [EObject current=null]: - { newCompositeNode(grammarAccess.getPartialModelRule()); } - iv_rulePartialModel=rulePartialModel - { $current=$iv_rulePartialModel.current; } - EOF; - -// Rule PartialModel -rulePartialModel returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getPartialModelAccess().getPartialModelSpecificationParserRuleCall_0()); - } - this_PartialModelSpecification_0=rulePartialModelSpecification - { - $current = $this_PartialModelSpecification_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getPartialModelAccess().getPartialModelReferenceParserRuleCall_1()); - } - this_PartialModelReference_1=rulePartialModelReference - { - $current = $this_PartialModelReference_1.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRulePatternSpecification -entryRulePatternSpecification returns [EObject current=null]: - { newCompositeNode(grammarAccess.getPatternSpecificationRule()); } - iv_rulePatternSpecification=rulePatternSpecification - { $current=$iv_rulePatternSpecification.current; } - EOF; - -// Rule PatternSpecification -rulePatternSpecification returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='{' - { - newLeafNode(otherlv_0, grammarAccess.getPatternSpecificationAccess().getLeftCurlyBracketKeyword_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getPatternSpecificationAccess().getEntriesPatternEntryParserRuleCall_1_0()); - } - lv_entries_1_0=rulePatternEntry - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getPatternSpecificationRule()); - } - add( - $current, - "entries", - lv_entries_1_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PatternEntry"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_2=',' - { - newLeafNode(otherlv_2, grammarAccess.getPatternSpecificationAccess().getCommaKeyword_2_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getPatternSpecificationAccess().getEntriesPatternEntryParserRuleCall_2_1_0()); - } - lv_entries_3_0=rulePatternEntry - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getPatternSpecificationRule()); - } - add( - $current, - "entries", - lv_entries_3_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PatternEntry"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - otherlv_4='}' - { - newLeafNode(otherlv_4, grammarAccess.getPatternSpecificationAccess().getRightCurlyBracketKeyword_3()); - } - ) -; - -// Entry rule entryRulePatternEntry -entryRulePatternEntry returns [EObject current=null]: - { newCompositeNode(grammarAccess.getPatternEntryRule()); } - iv_rulePatternEntry=rulePatternEntry - { $current=$iv_rulePatternEntry.current; } - EOF; - -// Rule PatternEntry -rulePatternEntry returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getPatternEntryAccess().getPatternElementParserRuleCall_0()); - } - this_PatternElement_0=rulePatternElement - { - $current = $this_PatternElement_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getPatternEntryAccess().getAllPatternEntryParserRuleCall_1()); - } - this_AllPatternEntry_1=ruleAllPatternEntry - { - $current = $this_AllPatternEntry_1.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRuleAllPatternEntry -entryRuleAllPatternEntry returns [EObject current=null]: - { newCompositeNode(grammarAccess.getAllPatternEntryRule()); } - iv_ruleAllPatternEntry=ruleAllPatternEntry - { $current=$iv_ruleAllPatternEntry.current; } - EOF; - -// Rule AllPatternEntry -ruleAllPatternEntry returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='package' - { - newLeafNode(otherlv_0, grammarAccess.getAllPatternEntryAccess().getPackageKeyword_0()); - } - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getAllPatternEntryRule()); - } - } - { - newCompositeNode(grammarAccess.getAllPatternEntryAccess().getPackagePatternModelCrossReference_1_0()); - } - ruleQualifiedName - { - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_2='excluding' - { - newLeafNode(otherlv_2, grammarAccess.getAllPatternEntryAccess().getExcludingKeyword_2_0()); - } - otherlv_3='{' - { - newLeafNode(otherlv_3, grammarAccess.getAllPatternEntryAccess().getLeftCurlyBracketKeyword_2_1()); - } - ( - ( - { - newCompositeNode(grammarAccess.getAllPatternEntryAccess().getExclusuionPatternElementParserRuleCall_2_2_0()); - } - lv_exclusuion_4_0=rulePatternElement - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getAllPatternEntryRule()); - } - add( - $current, - "exclusuion", - lv_exclusuion_4_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PatternElement"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_5=',' - { - newLeafNode(otherlv_5, grammarAccess.getAllPatternEntryAccess().getCommaKeyword_2_3_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getAllPatternEntryAccess().getExclusuionPatternElementParserRuleCall_2_3_1_0()); - } - lv_exclusuion_6_0=rulePatternElement - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getAllPatternEntryRule()); - } - add( - $current, - "exclusuion", - lv_exclusuion_6_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PatternElement"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - otherlv_7='}' - { - newLeafNode(otherlv_7, grammarAccess.getAllPatternEntryAccess().getRightCurlyBracketKeyword_2_4()); - } - )? - ) -; - -// Entry rule entryRulePatternElement -entryRulePatternElement returns [EObject current=null]: - { newCompositeNode(grammarAccess.getPatternElementRule()); } - iv_rulePatternElement=rulePatternElement - { $current=$iv_rulePatternElement.current; } - EOF; - -// Rule PatternElement -rulePatternElement returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getPatternElementRule()); - } - } - { - newCompositeNode(grammarAccess.getPatternElementAccess().getPackagePatternModelCrossReference_0_0_0()); - } - ruleQualifiedName - { - afterParserOrEnumRuleCall(); - } - ) - ) - otherlv_1='::' - { - newLeafNode(otherlv_1, grammarAccess.getPatternElementAccess().getColonColonKeyword_0_1()); - } - )? - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getPatternElementRule()); - } - } - otherlv_2=RULE_ID - { - newLeafNode(otherlv_2, grammarAccess.getPatternElementAccess().getPatternPatternCrossReference_1_0()); - } - ) - ) - ) -; - -// Entry rule entryRuleGraphPatternDeclaration -entryRuleGraphPatternDeclaration returns [EObject current=null]: - { newCompositeNode(grammarAccess.getGraphPatternDeclarationRule()); } - iv_ruleGraphPatternDeclaration=ruleGraphPatternDeclaration - { $current=$iv_ruleGraphPatternDeclaration.current; } - EOF; - -// Rule GraphPatternDeclaration -ruleGraphPatternDeclaration returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='constraints' - { - newLeafNode(otherlv_0, grammarAccess.getGraphPatternDeclarationAccess().getConstraintsKeyword_0()); - } - ( - ( - lv_name_1_0=RULE_ID - { - newLeafNode(lv_name_1_0, grammarAccess.getGraphPatternDeclarationAccess().getNameIDTerminalRuleCall_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getGraphPatternDeclarationRule()); - } - setWithLastConsumed( - $current, - "name", - lv_name_1_0, - "org.eclipse.xtext.common.Terminals.ID"); - } - ) - ) - ( - ( - { - newCompositeNode(grammarAccess.getGraphPatternDeclarationAccess().getSpecificationPatternSpecificationParserRuleCall_2_0()); - } - lv_specification_2_0=rulePatternSpecification - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getGraphPatternDeclarationRule()); - } - set( - $current, - "specification", - lv_specification_2_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PatternSpecification"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRuleGraphPatternReference -entryRuleGraphPatternReference returns [EObject current=null]: - { newCompositeNode(grammarAccess.getGraphPatternReferenceRule()); } - iv_ruleGraphPatternReference=ruleGraphPatternReference - { $current=$iv_ruleGraphPatternReference.current; } - EOF; - -// Rule GraphPatternReference -ruleGraphPatternReference returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getGraphPatternReferenceRule()); - } - } - otherlv_0=RULE_ID - { - newLeafNode(otherlv_0, grammarAccess.getGraphPatternReferenceAccess().getReferredGraphPatternDeclarationCrossReference_0()); - } - ) - ) -; - -// Entry rule entryRuleGraphPattern -entryRuleGraphPattern returns [EObject current=null]: - { newCompositeNode(grammarAccess.getGraphPatternRule()); } - iv_ruleGraphPattern=ruleGraphPattern - { $current=$iv_ruleGraphPattern.current; } - EOF; - -// Rule GraphPattern -ruleGraphPattern returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getGraphPatternAccess().getGraphPatternReferenceParserRuleCall_0()); - } - this_GraphPatternReference_0=ruleGraphPatternReference - { - $current = $this_GraphPatternReference_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getGraphPatternAccess().getPatternSpecificationParserRuleCall_1()); - } - this_PatternSpecification_1=rulePatternSpecification - { - $current = $this_PatternSpecification_1.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRuleConfigSpecification -entryRuleConfigSpecification returns [EObject current=null]: - { newCompositeNode(grammarAccess.getConfigSpecificationRule()); } - iv_ruleConfigSpecification=ruleConfigSpecification - { $current=$iv_ruleConfigSpecification.current; } - EOF; - -// Rule ConfigSpecification -ruleConfigSpecification returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getConfigSpecificationAccess().getConfigSpecificationAction_0(), - $current); - } - ) - otherlv_1='{' - { - newLeafNode(otherlv_1, grammarAccess.getConfigSpecificationAccess().getLeftCurlyBracketKeyword_1()); - } - ( - ( - ( - { - newCompositeNode(grammarAccess.getConfigSpecificationAccess().getEntriesConfigEntryParserRuleCall_2_0_0()); - } - lv_entries_2_0=ruleConfigEntry - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getConfigSpecificationRule()); - } - add( - $current, - "entries", - lv_entries_2_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ConfigEntry"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_3=',' - { - newLeafNode(otherlv_3, grammarAccess.getConfigSpecificationAccess().getCommaKeyword_2_1_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getConfigSpecificationAccess().getEntriesConfigEntryParserRuleCall_2_1_1_0()); - } - lv_entries_4_0=ruleConfigEntry - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getConfigSpecificationRule()); - } - add( - $current, - "entries", - lv_entries_4_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ConfigEntry"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - )? - otherlv_5='}' - { - newLeafNode(otherlv_5, grammarAccess.getConfigSpecificationAccess().getRightCurlyBracketKeyword_3()); - } - ) -; - -// Entry rule entryRuleConfigDeclaration -entryRuleConfigDeclaration returns [EObject current=null]: - { newCompositeNode(grammarAccess.getConfigDeclarationRule()); } - iv_ruleConfigDeclaration=ruleConfigDeclaration - { $current=$iv_ruleConfigDeclaration.current; } - EOF; - -// Rule ConfigDeclaration -ruleConfigDeclaration returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='config' - { - newLeafNode(otherlv_0, grammarAccess.getConfigDeclarationAccess().getConfigKeyword_0()); - } - ( - ( - lv_name_1_0=RULE_ID - { - newLeafNode(lv_name_1_0, grammarAccess.getConfigDeclarationAccess().getNameIDTerminalRuleCall_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getConfigDeclarationRule()); - } - setWithLastConsumed( - $current, - "name", - lv_name_1_0, - "org.eclipse.xtext.common.Terminals.ID"); - } - ) - ) - ( - ( - { - newCompositeNode(grammarAccess.getConfigDeclarationAccess().getSpecificationConfigSpecificationParserRuleCall_2_0()); - } - lv_specification_2_0=ruleConfigSpecification - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getConfigDeclarationRule()); - } - set( - $current, - "specification", - lv_specification_2_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ConfigSpecification"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRuleConfigEntry -entryRuleConfigEntry returns [EObject current=null]: - { newCompositeNode(grammarAccess.getConfigEntryRule()); } - iv_ruleConfigEntry=ruleConfigEntry - { $current=$iv_ruleConfigEntry.current; } - EOF; - -// Rule ConfigEntry -ruleConfigEntry returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getConfigEntryAccess().getDocumentationEntryParserRuleCall_0()); - } - this_DocumentationEntry_0=ruleDocumentationEntry - { - $current = $this_DocumentationEntry_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getConfigEntryAccess().getRuntimeEntryParserRuleCall_1()); - } - this_RuntimeEntry_1=ruleRuntimeEntry - { - $current = $this_RuntimeEntry_1.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getConfigEntryAccess().getMemoryEntryParserRuleCall_2()); - } - this_MemoryEntry_2=ruleMemoryEntry - { - $current = $this_MemoryEntry_2.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getConfigEntryAccess().getCustomEntryParserRuleCall_3()); - } - this_CustomEntry_3=ruleCustomEntry - { - $current = $this_CustomEntry_3.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRuleDocumentationEntry -entryRuleDocumentationEntry returns [EObject current=null]: - { newCompositeNode(grammarAccess.getDocumentationEntryRule()); } - iv_ruleDocumentationEntry=ruleDocumentationEntry - { $current=$iv_ruleDocumentationEntry.current; } - EOF; - -// Rule DocumentationEntry -ruleDocumentationEntry returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='log-level' - { - newLeafNode(otherlv_0, grammarAccess.getDocumentationEntryAccess().getLogLevelKeyword_0()); - } - otherlv_1='=' - { - newLeafNode(otherlv_1, grammarAccess.getDocumentationEntryAccess().getEqualsSignKeyword_1()); - } - ( - ( - { - newCompositeNode(grammarAccess.getDocumentationEntryAccess().getLevelDocumentLevelSpecificationEnumRuleCall_2_0()); - } - lv_level_2_0=ruleDocumentLevelSpecification - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getDocumentationEntryRule()); - } - set( - $current, - "level", - lv_level_2_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.DocumentLevelSpecification"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRuleRuntimeEntry -entryRuleRuntimeEntry returns [EObject current=null]: - { newCompositeNode(grammarAccess.getRuntimeEntryRule()); } - iv_ruleRuntimeEntry=ruleRuntimeEntry - { $current=$iv_ruleRuntimeEntry.current; } - EOF; - -// Rule RuntimeEntry -ruleRuntimeEntry returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='runtime' - { - newLeafNode(otherlv_0, grammarAccess.getRuntimeEntryAccess().getRuntimeKeyword_0()); - } - otherlv_1='=' - { - newLeafNode(otherlv_1, grammarAccess.getRuntimeEntryAccess().getEqualsSignKeyword_1()); - } - ( - ( - lv_millisecLimit_2_0=RULE_INT - { - newLeafNode(lv_millisecLimit_2_0, grammarAccess.getRuntimeEntryAccess().getMillisecLimitINTTerminalRuleCall_2_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getRuntimeEntryRule()); - } - setWithLastConsumed( - $current, - "millisecLimit", - lv_millisecLimit_2_0, - "org.eclipse.xtext.common.Terminals.INT"); - } - ) - ) - ) -; - -// Entry rule entryRuleMemoryEntry -entryRuleMemoryEntry returns [EObject current=null]: - { newCompositeNode(grammarAccess.getMemoryEntryRule()); } - iv_ruleMemoryEntry=ruleMemoryEntry - { $current=$iv_ruleMemoryEntry.current; } - EOF; - -// Rule MemoryEntry -ruleMemoryEntry returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='memory' - { - newLeafNode(otherlv_0, grammarAccess.getMemoryEntryAccess().getMemoryKeyword_0()); - } - otherlv_1='=' - { - newLeafNode(otherlv_1, grammarAccess.getMemoryEntryAccess().getEqualsSignKeyword_1()); - } - ( - ( - lv_megabyteLimit_2_0=RULE_INT - { - newLeafNode(lv_megabyteLimit_2_0, grammarAccess.getMemoryEntryAccess().getMegabyteLimitINTTerminalRuleCall_2_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getMemoryEntryRule()); - } - setWithLastConsumed( - $current, - "megabyteLimit", - lv_megabyteLimit_2_0, - "org.eclipse.xtext.common.Terminals.INT"); - } - ) - ) - ) -; - -// Entry rule entryRuleCustomEntry -entryRuleCustomEntry returns [EObject current=null]: - { newCompositeNode(grammarAccess.getCustomEntryRule()); } - iv_ruleCustomEntry=ruleCustomEntry - { $current=$iv_ruleCustomEntry.current; } - EOF; - -// Rule CustomEntry -ruleCustomEntry returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - lv_key_0_0=RULE_STRING - { - newLeafNode(lv_key_0_0, grammarAccess.getCustomEntryAccess().getKeySTRINGTerminalRuleCall_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getCustomEntryRule()); - } - setWithLastConsumed( - $current, - "key", - lv_key_0_0, - "org.eclipse.xtext.common.Terminals.STRING"); - } - ) - ) - otherlv_1='=' - { - newLeafNode(otherlv_1, grammarAccess.getCustomEntryAccess().getEqualsSignKeyword_1()); - } - ( - ( - lv_value_2_0=RULE_STRING - { - newLeafNode(lv_value_2_0, grammarAccess.getCustomEntryAccess().getValueSTRINGTerminalRuleCall_2_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getCustomEntryRule()); - } - setWithLastConsumed( - $current, - "value", - lv_value_2_0, - "org.eclipse.xtext.common.Terminals.STRING"); - } - ) - ) - ) -; - -// Entry rule entryRuleConfigReference -entryRuleConfigReference returns [EObject current=null]: - { newCompositeNode(grammarAccess.getConfigReferenceRule()); } - iv_ruleConfigReference=ruleConfigReference - { $current=$iv_ruleConfigReference.current; } - EOF; - -// Rule ConfigReference -ruleConfigReference returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getConfigReferenceRule()); - } - } - otherlv_0=RULE_ID - { - newLeafNode(otherlv_0, grammarAccess.getConfigReferenceAccess().getConfigConfigDeclarationCrossReference_0()); - } - ) - ) -; - -// Entry rule entryRuleConfig -entryRuleConfig returns [EObject current=null]: - { newCompositeNode(grammarAccess.getConfigRule()); } - iv_ruleConfig=ruleConfig - { $current=$iv_ruleConfig.current; } - EOF; - -// Rule Config -ruleConfig returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getConfigAccess().getConfigSpecificationParserRuleCall_0()); - } - this_ConfigSpecification_0=ruleConfigSpecification - { - $current = $this_ConfigSpecification_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getConfigAccess().getConfigReferenceParserRuleCall_1()); - } - this_ConfigReference_1=ruleConfigReference - { - $current = $this_ConfigReference_1.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRuleScopeSpecification -entryRuleScopeSpecification returns [EObject current=null]: - { newCompositeNode(grammarAccess.getScopeSpecificationRule()); } - iv_ruleScopeSpecification=ruleScopeSpecification - { $current=$iv_ruleScopeSpecification.current; } - EOF; - -// Rule ScopeSpecification -ruleScopeSpecification returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getScopeSpecificationAccess().getScopeSpecificationAction_0(), - $current); - } - ) - otherlv_1='{' - { - newLeafNode(otherlv_1, grammarAccess.getScopeSpecificationAccess().getLeftCurlyBracketKeyword_1()); - } - ( - ( - ( - { - newCompositeNode(grammarAccess.getScopeSpecificationAccess().getScopesTypeScopeParserRuleCall_2_0_0()); - } - lv_scopes_2_0=ruleTypeScope - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getScopeSpecificationRule()); - } - add( - $current, - "scopes", - lv_scopes_2_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.TypeScope"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_3=',' - { - newLeafNode(otherlv_3, grammarAccess.getScopeSpecificationAccess().getCommaKeyword_2_1_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getScopeSpecificationAccess().getScopesTypeScopeParserRuleCall_2_1_1_0()); - } - lv_scopes_4_0=ruleTypeScope - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getScopeSpecificationRule()); - } - add( - $current, - "scopes", - lv_scopes_4_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.TypeScope"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - )? - otherlv_5='}' - { - newLeafNode(otherlv_5, grammarAccess.getScopeSpecificationAccess().getRightCurlyBracketKeyword_3()); - } - ) -; - -// Entry rule entryRuleTypeScope -entryRuleTypeScope returns [EObject current=null]: - { newCompositeNode(grammarAccess.getTypeScopeRule()); } - iv_ruleTypeScope=ruleTypeScope - { $current=$iv_ruleTypeScope.current; } - EOF; - -// Rule TypeScope -ruleTypeScope returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getTypeScopeAccess().getClassTypeScopeParserRuleCall_0()); - } - this_ClassTypeScope_0=ruleClassTypeScope - { - $current = $this_ClassTypeScope_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getTypeScopeAccess().getObjectTypeScopeParserRuleCall_1()); - } - this_ObjectTypeScope_1=ruleObjectTypeScope - { - $current = $this_ObjectTypeScope_1.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getTypeScopeAccess().getIntegerTypeScopeParserRuleCall_2()); - } - this_IntegerTypeScope_2=ruleIntegerTypeScope - { - $current = $this_IntegerTypeScope_2.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getTypeScopeAccess().getRealTypeScopeParserRuleCall_3()); - } - this_RealTypeScope_3=ruleRealTypeScope - { - $current = $this_RealTypeScope_3.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getTypeScopeAccess().getStringTypeScopeParserRuleCall_4()); - } - this_StringTypeScope_4=ruleStringTypeScope - { - $current = $this_StringTypeScope_4.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRuleClassTypeScope -entryRuleClassTypeScope returns [EObject current=null]: - { newCompositeNode(grammarAccess.getClassTypeScopeRule()); } - iv_ruleClassTypeScope=ruleClassTypeScope - { $current=$iv_ruleClassTypeScope.current; } - EOF; - -// Rule ClassTypeScope -ruleClassTypeScope returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='#' - { - newLeafNode(otherlv_0, grammarAccess.getClassTypeScopeAccess().getNumberSignKeyword_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getClassTypeScopeAccess().getTypeClassReferenceParserRuleCall_1_0()); - } - lv_type_1_0=ruleClassReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getClassTypeScopeRule()); - } - set( - $current, - "type", - lv_type_1_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ClassReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - ( - ( - lv_setsNew_2_0='+=' - { - newLeafNode(lv_setsNew_2_0, grammarAccess.getClassTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getClassTypeScopeRule()); - } - setWithLastConsumed($current, "setsNew", true, "+="); - } - ) - ) - | - ( - ( - lv_setsSum_3_0='=' - { - newLeafNode(lv_setsSum_3_0, grammarAccess.getClassTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getClassTypeScopeRule()); - } - setWithLastConsumed($current, "setsSum", true, "="); - } - ) - ) - ) - ( - ( - ( - { - newCompositeNode(grammarAccess.getClassTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); - } - lv_number_4_0=ruleExactNumber - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getClassTypeScopeRule()); - } - set( - $current, - "number", - lv_number_4_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); - afterParserOrEnumRuleCall(); - } - ) - ) - | - ( - ( - { - newCompositeNode(grammarAccess.getClassTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); - } - lv_number_5_0=ruleIntervallNumber - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getClassTypeScopeRule()); - } - set( - $current, - "number", - lv_number_5_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) - ) -; - -// Entry rule entryRuleObjectTypeScope -entryRuleObjectTypeScope returns [EObject current=null]: - { newCompositeNode(grammarAccess.getObjectTypeScopeRule()); } - iv_ruleObjectTypeScope=ruleObjectTypeScope - { $current=$iv_ruleObjectTypeScope.current; } - EOF; - -// Rule ObjectTypeScope -ruleObjectTypeScope returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='#' - { - newLeafNode(otherlv_0, grammarAccess.getObjectTypeScopeAccess().getNumberSignKeyword_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getObjectTypeScopeAccess().getTypeObjectReferenceParserRuleCall_1_0()); - } - lv_type_1_0=ruleObjectReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getObjectTypeScopeRule()); - } - set( - $current, - "type", - lv_type_1_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ObjectReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - ( - ( - lv_setsNew_2_0='+=' - { - newLeafNode(lv_setsNew_2_0, grammarAccess.getObjectTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getObjectTypeScopeRule()); - } - setWithLastConsumed($current, "setsNew", true, "+="); - } - ) - ) - | - ( - ( - lv_setsSum_3_0='=' - { - newLeafNode(lv_setsSum_3_0, grammarAccess.getObjectTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getObjectTypeScopeRule()); - } - setWithLastConsumed($current, "setsSum", true, "="); - } - ) - ) - ) - ( - ( - ( - { - newCompositeNode(grammarAccess.getObjectTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); - } - lv_number_4_0=ruleExactNumber - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getObjectTypeScopeRule()); - } - set( - $current, - "number", - lv_number_4_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); - afterParserOrEnumRuleCall(); - } - ) - ) - | - ( - ( - { - newCompositeNode(grammarAccess.getObjectTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); - } - lv_number_5_0=ruleIntervallNumber - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getObjectTypeScopeRule()); - } - set( - $current, - "number", - lv_number_5_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) - ) -; - -// Entry rule entryRuleIntegerTypeScope -entryRuleIntegerTypeScope returns [EObject current=null]: - { newCompositeNode(grammarAccess.getIntegerTypeScopeRule()); } - iv_ruleIntegerTypeScope=ruleIntegerTypeScope - { $current=$iv_ruleIntegerTypeScope.current; } - EOF; - -// Rule IntegerTypeScope -ruleIntegerTypeScope returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='#' - { - newLeafNode(otherlv_0, grammarAccess.getIntegerTypeScopeAccess().getNumberSignKeyword_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getIntegerTypeScopeAccess().getTypeIntegerReferenceParserRuleCall_1_0()); - } - lv_type_1_0=ruleIntegerReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getIntegerTypeScopeRule()); - } - set( - $current, - "type", - lv_type_1_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntegerReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - ( - ( - lv_setsNew_2_0='+=' - { - newLeafNode(lv_setsNew_2_0, grammarAccess.getIntegerTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getIntegerTypeScopeRule()); - } - setWithLastConsumed($current, "setsNew", true, "+="); - } - ) - ) - | - ( - ( - lv_setsSum_3_0='=' - { - newLeafNode(lv_setsSum_3_0, grammarAccess.getIntegerTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getIntegerTypeScopeRule()); - } - setWithLastConsumed($current, "setsSum", true, "="); - } - ) - ) - ) - ( - ( - ( - { - newCompositeNode(grammarAccess.getIntegerTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); - } - lv_number_4_0=ruleExactNumber - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getIntegerTypeScopeRule()); - } - set( - $current, - "number", - lv_number_4_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); - afterParserOrEnumRuleCall(); - } - ) - ) - | - ( - ( - { - newCompositeNode(grammarAccess.getIntegerTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); - } - lv_number_5_0=ruleIntervallNumber - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getIntegerTypeScopeRule()); - } - set( - $current, - "number", - lv_number_5_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); - afterParserOrEnumRuleCall(); - } - ) - ) - | - ( - ( - { - newCompositeNode(grammarAccess.getIntegerTypeScopeAccess().getNumberIntEnumberationParserRuleCall_3_2_0()); - } - lv_number_6_0=ruleIntEnumberation - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getIntegerTypeScopeRule()); - } - set( - $current, - "number", - lv_number_6_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntEnumberation"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) - ) -; - -// Entry rule entryRuleRealTypeScope -entryRuleRealTypeScope returns [EObject current=null]: - { newCompositeNode(grammarAccess.getRealTypeScopeRule()); } - iv_ruleRealTypeScope=ruleRealTypeScope - { $current=$iv_ruleRealTypeScope.current; } - EOF; - -// Rule RealTypeScope -ruleRealTypeScope returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='#' - { - newLeafNode(otherlv_0, grammarAccess.getRealTypeScopeAccess().getNumberSignKeyword_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getRealTypeScopeAccess().getTypeRealReferenceParserRuleCall_1_0()); - } - lv_type_1_0=ruleRealReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getRealTypeScopeRule()); - } - set( - $current, - "type", - lv_type_1_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.RealReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - ( - ( - lv_setsNew_2_0='+=' - { - newLeafNode(lv_setsNew_2_0, grammarAccess.getRealTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getRealTypeScopeRule()); - } - setWithLastConsumed($current, "setsNew", true, "+="); - } - ) - ) - | - ( - ( - lv_setsSum_3_0='=' - { - newLeafNode(lv_setsSum_3_0, grammarAccess.getRealTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getRealTypeScopeRule()); - } - setWithLastConsumed($current, "setsSum", true, "="); - } - ) - ) - ) - ( - ( - ( - { - newCompositeNode(grammarAccess.getRealTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); - } - lv_number_4_0=ruleExactNumber - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getRealTypeScopeRule()); - } - set( - $current, - "number", - lv_number_4_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); - afterParserOrEnumRuleCall(); - } - ) - ) - | - ( - ( - { - newCompositeNode(grammarAccess.getRealTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); - } - lv_number_5_0=ruleIntervallNumber - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getRealTypeScopeRule()); - } - set( - $current, - "number", - lv_number_5_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); - afterParserOrEnumRuleCall(); - } - ) - ) - | - ( - ( - { - newCompositeNode(grammarAccess.getRealTypeScopeAccess().getNumberRealEnumerationParserRuleCall_3_2_0()); - } - lv_number_6_0=ruleRealEnumeration - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getRealTypeScopeRule()); - } - set( - $current, - "number", - lv_number_6_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.RealEnumeration"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) - ) -; - -// Entry rule entryRuleStringTypeScope -entryRuleStringTypeScope returns [EObject current=null]: - { newCompositeNode(grammarAccess.getStringTypeScopeRule()); } - iv_ruleStringTypeScope=ruleStringTypeScope - { $current=$iv_ruleStringTypeScope.current; } - EOF; - -// Rule StringTypeScope -ruleStringTypeScope returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='#' - { - newLeafNode(otherlv_0, grammarAccess.getStringTypeScopeAccess().getNumberSignKeyword_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getStringTypeScopeAccess().getTypeStringReferenceParserRuleCall_1_0()); - } - lv_type_1_0=ruleStringReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getStringTypeScopeRule()); - } - set( - $current, - "type", - lv_type_1_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.StringReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - ( - ( - lv_setsNew_2_0='+=' - { - newLeafNode(lv_setsNew_2_0, grammarAccess.getStringTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getStringTypeScopeRule()); - } - setWithLastConsumed($current, "setsNew", true, "+="); - } - ) - ) - | - ( - ( - lv_setsSum_3_0='=' - { - newLeafNode(lv_setsSum_3_0, grammarAccess.getStringTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getStringTypeScopeRule()); - } - setWithLastConsumed($current, "setsSum", true, "="); - } - ) - ) - ) - ( - ( - ( - { - newCompositeNode(grammarAccess.getStringTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); - } - lv_number_4_0=ruleExactNumber - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getStringTypeScopeRule()); - } - set( - $current, - "number", - lv_number_4_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); - afterParserOrEnumRuleCall(); - } - ) - ) - | - ( - ( - { - newCompositeNode(grammarAccess.getStringTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); - } - lv_number_5_0=ruleIntervallNumber - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getStringTypeScopeRule()); - } - set( - $current, - "number", - lv_number_5_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); - afterParserOrEnumRuleCall(); - } - ) - ) - | - ( - ( - { - newCompositeNode(grammarAccess.getStringTypeScopeAccess().getNumberStringEnumerationParserRuleCall_3_2_0()); - } - lv_number_6_0=ruleStringEnumeration - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getStringTypeScopeRule()); - } - set( - $current, - "number", - lv_number_6_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.StringEnumeration"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) - ) -; - -// Entry rule entryRuleClassReference -entryRuleClassReference returns [EObject current=null]: - { newCompositeNode(grammarAccess.getClassReferenceRule()); } - iv_ruleClassReference=ruleClassReference - { $current=$iv_ruleClassReference.current; } - EOF; - -// Rule ClassReference -ruleClassReference returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='<' - { - newLeafNode(otherlv_0, grammarAccess.getClassReferenceAccess().getLessThanSignKeyword_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getClassReferenceAccess().getElementMetamodelElementParserRuleCall_1_0()); - } - lv_element_1_0=ruleMetamodelElement - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getClassReferenceRule()); - } - set( - $current, - "element", - lv_element_1_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelElement"); - afterParserOrEnumRuleCall(); - } - ) - ) - otherlv_2='>' - { - newLeafNode(otherlv_2, grammarAccess.getClassReferenceAccess().getGreaterThanSignKeyword_2()); - } - ) -; - -// Entry rule entryRuleObjectReference -entryRuleObjectReference returns [EObject current=null]: - { newCompositeNode(grammarAccess.getObjectReferenceRule()); } - iv_ruleObjectReference=ruleObjectReference - { $current=$iv_ruleObjectReference.current; } - EOF; - -// Rule ObjectReference -ruleObjectReference returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getObjectReferenceAccess().getObjectReferenceAction_0(), - $current); - } - ) - otherlv_1='node' - { - newLeafNode(otherlv_1, grammarAccess.getObjectReferenceAccess().getNodeKeyword_1()); - } - ) -; - -// Entry rule entryRuleIntegerReference -entryRuleIntegerReference returns [EObject current=null]: - { newCompositeNode(grammarAccess.getIntegerReferenceRule()); } - iv_ruleIntegerReference=ruleIntegerReference - { $current=$iv_ruleIntegerReference.current; } - EOF; - -// Rule IntegerReference -ruleIntegerReference returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getIntegerReferenceAccess().getIntegerScopeAction_0(), - $current); - } - ) - otherlv_1='int' - { - newLeafNode(otherlv_1, grammarAccess.getIntegerReferenceAccess().getIntKeyword_1()); - } - ) -; - -// Entry rule entryRuleRealReference -entryRuleRealReference returns [EObject current=null]: - { newCompositeNode(grammarAccess.getRealReferenceRule()); } - iv_ruleRealReference=ruleRealReference - { $current=$iv_ruleRealReference.current; } - EOF; - -// Rule RealReference -ruleRealReference returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getRealReferenceAccess().getRealScopeAction_0(), - $current); - } - ) - otherlv_1='real' - { - newLeafNode(otherlv_1, grammarAccess.getRealReferenceAccess().getRealKeyword_1()); - } - ) -; - -// Entry rule entryRuleStringReference -entryRuleStringReference returns [EObject current=null]: - { newCompositeNode(grammarAccess.getStringReferenceRule()); } - iv_ruleStringReference=ruleStringReference - { $current=$iv_ruleStringReference.current; } - EOF; - -// Rule StringReference -ruleStringReference returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getStringReferenceAccess().getStringScopeAction_0(), - $current); - } - ) - otherlv_1='string' - { - newLeafNode(otherlv_1, grammarAccess.getStringReferenceAccess().getStringKeyword_1()); - } - ) -; - -// Entry rule entryRuleExactNumber -entryRuleExactNumber returns [EObject current=null]: - { newCompositeNode(grammarAccess.getExactNumberRule()); } - iv_ruleExactNumber=ruleExactNumber - { $current=$iv_ruleExactNumber.current; } - EOF; - -// Rule ExactNumber -ruleExactNumber returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - lv_exactNumber_0_0=RULE_INT - { - newLeafNode(lv_exactNumber_0_0, grammarAccess.getExactNumberAccess().getExactNumberINTTerminalRuleCall_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getExactNumberRule()); - } - setWithLastConsumed( - $current, - "exactNumber", - lv_exactNumber_0_0, - "org.eclipse.xtext.common.Terminals.INT"); - } - ) - ) - | - ( - ( - lv_exactUnlimited_1_0='*' - { - newLeafNode(lv_exactUnlimited_1_0, grammarAccess.getExactNumberAccess().getExactUnlimitedAsteriskKeyword_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getExactNumberRule()); - } - setWithLastConsumed($current, "exactUnlimited", true, "*"); - } - ) - ) - ) -; - -// Entry rule entryRuleIntervallNumber -entryRuleIntervallNumber returns [EObject current=null]: - { newCompositeNode(grammarAccess.getIntervallNumberRule()); } - iv_ruleIntervallNumber=ruleIntervallNumber - { $current=$iv_ruleIntervallNumber.current; } - EOF; - -// Rule IntervallNumber -ruleIntervallNumber returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - lv_min_0_0=RULE_INT - { - newLeafNode(lv_min_0_0, grammarAccess.getIntervallNumberAccess().getMinINTTerminalRuleCall_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getIntervallNumberRule()); - } - setWithLastConsumed( - $current, - "min", - lv_min_0_0, - "org.eclipse.xtext.common.Terminals.INT"); - } - ) - ) - otherlv_1='..' - { - newLeafNode(otherlv_1, grammarAccess.getIntervallNumberAccess().getFullStopFullStopKeyword_1()); - } - ( - ( - ( - lv_maxNumber_2_0=RULE_INT - { - newLeafNode(lv_maxNumber_2_0, grammarAccess.getIntervallNumberAccess().getMaxNumberINTTerminalRuleCall_2_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getIntervallNumberRule()); - } - setWithLastConsumed( - $current, - "maxNumber", - lv_maxNumber_2_0, - "org.eclipse.xtext.common.Terminals.INT"); - } - ) - ) - | - ( - ( - lv_maxUnlimited_3_0='*' - { - newLeafNode(lv_maxUnlimited_3_0, grammarAccess.getIntervallNumberAccess().getMaxUnlimitedAsteriskKeyword_2_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getIntervallNumberRule()); - } - setWithLastConsumed($current, "maxUnlimited", true, "*"); - } - ) - ) - ) - ) -; - -// Entry rule entryRuleIntEnumberation -entryRuleIntEnumberation returns [EObject current=null]: - { newCompositeNode(grammarAccess.getIntEnumberationRule()); } - iv_ruleIntEnumberation=ruleIntEnumberation - { $current=$iv_ruleIntEnumberation.current; } - EOF; - -// Rule IntEnumberation -ruleIntEnumberation returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getIntEnumberationAccess().getIntEnumberationAction_0(), - $current); - } - ) - otherlv_1='{' - { - newLeafNode(otherlv_1, grammarAccess.getIntEnumberationAccess().getLeftCurlyBracketKeyword_1()); - } - ( - ( - ( - { - newCompositeNode(grammarAccess.getIntEnumberationAccess().getEntryINTLiteralParserRuleCall_2_0_0()); - } - lv_entry_2_0=ruleINTLiteral - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getIntEnumberationRule()); - } - add( - $current, - "entry", - lv_entry_2_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.INTLiteral"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_3=',' - { - newLeafNode(otherlv_3, grammarAccess.getIntEnumberationAccess().getCommaKeyword_2_1_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getIntEnumberationAccess().getEntryINTLiteralParserRuleCall_2_1_1_0()); - } - lv_entry_4_0=ruleINTLiteral - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getIntEnumberationRule()); - } - add( - $current, - "entry", - lv_entry_4_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.INTLiteral"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - )? - otherlv_5='}' - { - newLeafNode(otherlv_5, grammarAccess.getIntEnumberationAccess().getRightCurlyBracketKeyword_3()); - } - ) -; - -// Entry rule entryRuleRealEnumeration -entryRuleRealEnumeration returns [EObject current=null]: - { newCompositeNode(grammarAccess.getRealEnumerationRule()); } - iv_ruleRealEnumeration=ruleRealEnumeration - { $current=$iv_ruleRealEnumeration.current; } - EOF; - -// Rule RealEnumeration -ruleRealEnumeration returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getRealEnumerationAccess().getRealEnumerationAction_0(), - $current); - } - ) - otherlv_1='{' - { - newLeafNode(otherlv_1, grammarAccess.getRealEnumerationAccess().getLeftCurlyBracketKeyword_1()); - } - ( - ( - ( - { - newCompositeNode(grammarAccess.getRealEnumerationAccess().getEntryREALLiteralParserRuleCall_2_0_0()); - } - lv_entry_2_0=ruleREALLiteral - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getRealEnumerationRule()); - } - add( - $current, - "entry", - lv_entry_2_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.REALLiteral"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_3=',' - { - newLeafNode(otherlv_3, grammarAccess.getRealEnumerationAccess().getCommaKeyword_2_1_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getRealEnumerationAccess().getEntryREALLiteralParserRuleCall_2_1_1_0()); - } - lv_entry_4_0=ruleREALLiteral - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getRealEnumerationRule()); - } - add( - $current, - "entry", - lv_entry_4_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.REALLiteral"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - )? - otherlv_5='}' - { - newLeafNode(otherlv_5, grammarAccess.getRealEnumerationAccess().getRightCurlyBracketKeyword_3()); - } - ) -; - -// Entry rule entryRuleStringEnumeration -entryRuleStringEnumeration returns [EObject current=null]: - { newCompositeNode(grammarAccess.getStringEnumerationRule()); } - iv_ruleStringEnumeration=ruleStringEnumeration - { $current=$iv_ruleStringEnumeration.current; } - EOF; - -// Rule StringEnumeration -ruleStringEnumeration returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getStringEnumerationAccess().getStringEnumerationAction_0(), - $current); - } - ) - otherlv_1='{' - { - newLeafNode(otherlv_1, grammarAccess.getStringEnumerationAccess().getLeftCurlyBracketKeyword_1()); - } - ( - ( - ( - lv_entry_2_0=RULE_STRING - { - newLeafNode(lv_entry_2_0, grammarAccess.getStringEnumerationAccess().getEntrySTRINGTerminalRuleCall_2_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getStringEnumerationRule()); - } - addWithLastConsumed( - $current, - "entry", - lv_entry_2_0, - "org.eclipse.xtext.common.Terminals.STRING"); - } - ) - ) - ( - otherlv_3=',' - { - newLeafNode(otherlv_3, grammarAccess.getStringEnumerationAccess().getCommaKeyword_2_1_0()); - } - ( - ( - lv_entry_4_0=RULE_STRING - { - newLeafNode(lv_entry_4_0, grammarAccess.getStringEnumerationAccess().getEntrySTRINGTerminalRuleCall_2_1_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getStringEnumerationRule()); - } - addWithLastConsumed( - $current, - "entry", - lv_entry_4_0, - "org.eclipse.xtext.common.Terminals.STRING"); - } - ) - ) - )* - )? - otherlv_5='}' - { - newLeafNode(otherlv_5, grammarAccess.getStringEnumerationAccess().getRightCurlyBracketKeyword_3()); - } - ) -; - -// Entry rule entryRuleScopeDeclaration -entryRuleScopeDeclaration returns [EObject current=null]: - { newCompositeNode(grammarAccess.getScopeDeclarationRule()); } - iv_ruleScopeDeclaration=ruleScopeDeclaration - { $current=$iv_ruleScopeDeclaration.current; } - EOF; - -// Rule ScopeDeclaration -ruleScopeDeclaration returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='scope' - { - newLeafNode(otherlv_0, grammarAccess.getScopeDeclarationAccess().getScopeKeyword_0()); - } - ( - ( - lv_name_1_0=RULE_ID - { - newLeafNode(lv_name_1_0, grammarAccess.getScopeDeclarationAccess().getNameIDTerminalRuleCall_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getScopeDeclarationRule()); - } - setWithLastConsumed( - $current, - "name", - lv_name_1_0, - "org.eclipse.xtext.common.Terminals.ID"); - } - ) - ) - ( - ( - { - newCompositeNode(grammarAccess.getScopeDeclarationAccess().getSpecificationScopeSpecificationParserRuleCall_2_0()); - } - lv_specification_2_0=ruleScopeSpecification - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getScopeDeclarationRule()); - } - set( - $current, - "specification", - lv_specification_2_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ScopeSpecification"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRuleScopeReference -entryRuleScopeReference returns [EObject current=null]: - { newCompositeNode(grammarAccess.getScopeReferenceRule()); } - iv_ruleScopeReference=ruleScopeReference - { $current=$iv_ruleScopeReference.current; } - EOF; - -// Rule ScopeReference -ruleScopeReference returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getScopeReferenceRule()); - } - } - otherlv_0=RULE_ID - { - newLeafNode(otherlv_0, grammarAccess.getScopeReferenceAccess().getReferredScopeDeclarationCrossReference_0()); - } - ) - ) -; - -// Entry rule entryRuleScope -entryRuleScope returns [EObject current=null]: - { newCompositeNode(grammarAccess.getScopeRule()); } - iv_ruleScope=ruleScope - { $current=$iv_ruleScope.current; } - EOF; - -// Rule Scope -ruleScope returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getScopeAccess().getScopeSpecificationParserRuleCall_0()); - } - this_ScopeSpecification_0=ruleScopeSpecification - { - $current = $this_ScopeSpecification_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getScopeAccess().getScopeReferenceParserRuleCall_1()); - } - this_ScopeReference_1=ruleScopeReference - { - $current = $this_ScopeReference_1.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRuleTask -entryRuleTask returns [EObject current=null]: - { newCompositeNode(grammarAccess.getTaskRule()); } - iv_ruleTask=ruleTask - { $current=$iv_ruleTask.current; } - EOF; - -// Rule Task -ruleTask returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - { - newCompositeNode(grammarAccess.getTaskAccess().getGenerationTaskParserRuleCall()); - } - this_GenerationTask_0=ruleGenerationTask - { - $current = $this_GenerationTask_0.current; - afterParserOrEnumRuleCall(); - } -; - -// Entry rule entryRuleGenerationTask -entryRuleGenerationTask returns [EObject current=null]: - { newCompositeNode(grammarAccess.getGenerationTaskRule()); } - iv_ruleGenerationTask=ruleGenerationTask - { $current=$iv_ruleGenerationTask.current; } - EOF; - -// Rule GenerationTask -ruleGenerationTask returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='generate' - { - newLeafNode(otherlv_0, grammarAccess.getGenerationTaskAccess().getGenerateKeyword_0()); - } - ( - { - $current = forceCreateModelElement( - grammarAccess.getGenerationTaskAccess().getGenerationTaskAction_1(), - $current); - } - ) - otherlv_2='{' - { - newLeafNode(otherlv_2, grammarAccess.getGenerationTaskAccess().getLeftCurlyBracketKeyword_2()); - } - ( - ( - { - getUnorderedGroupHelper().enter(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); - } - ( - ( - ( - {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 0)}?=>( - { - getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 0); - } - ({true}?=>(otherlv_4='metamodel' - { - newLeafNode(otherlv_4, grammarAccess.getGenerationTaskAccess().getMetamodelKeyword_3_0_0()); - } - otherlv_5='=' - { - newLeafNode(otherlv_5, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_0_1()); - } - ( - ( - { - newCompositeNode(grammarAccess.getGenerationTaskAccess().getMetamodelMetamodelParserRuleCall_3_0_2_0()); - } - lv_metamodel_6_0=ruleMetamodel - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); - } - set( - $current, - "metamodel", - lv_metamodel_6_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Metamodel"); - afterParserOrEnumRuleCall(); - } - ) - ) - )) - { - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); - } - ) - )| - ( - {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 1)}?=>( - { - getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 1); - } - ({true}?=>(otherlv_7='partial-model' - { - newLeafNode(otherlv_7, grammarAccess.getGenerationTaskAccess().getPartialModelKeyword_3_1_0()); - } - otherlv_8='=' - { - newLeafNode(otherlv_8, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_1_1()); - } - ( - ( - { - newCompositeNode(grammarAccess.getGenerationTaskAccess().getPartialModelPartialModelParserRuleCall_3_1_2_0()); - } - lv_partialModel_9_0=rulePartialModel - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); - } - set( - $current, - "partialModel", - lv_partialModel_9_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PartialModel"); - afterParserOrEnumRuleCall(); - } - ) - ) - )) - { - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); - } - ) - )| - ( - {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 2)}?=>( - { - getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 2); - } - ({true}?=>(otherlv_10='constraints' - { - newLeafNode(otherlv_10, grammarAccess.getGenerationTaskAccess().getConstraintsKeyword_3_2_0()); - } - otherlv_11='=' - { - newLeafNode(otherlv_11, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_2_1()); - } - ( - ( - { - newCompositeNode(grammarAccess.getGenerationTaskAccess().getPatternsGraphPatternParserRuleCall_3_2_2_0()); - } - lv_patterns_12_0=ruleGraphPattern - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); - } - set( - $current, - "patterns", - lv_patterns_12_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.GraphPattern"); - afterParserOrEnumRuleCall(); - } - ) - ) - )) - { - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); - } - ) - )| - ( - {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 3)}?=>( - { - getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 3); - } - ({true}?=>(otherlv_13='scope' - { - newLeafNode(otherlv_13, grammarAccess.getGenerationTaskAccess().getScopeKeyword_3_3_0()); - } - otherlv_14='=' - { - newLeafNode(otherlv_14, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_3_1()); - } - ( - ( - { - newCompositeNode(grammarAccess.getGenerationTaskAccess().getScopeScopeParserRuleCall_3_3_2_0()); - } - lv_scope_15_0=ruleScope - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); - } - set( - $current, - "scope", - lv_scope_15_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Scope"); - afterParserOrEnumRuleCall(); - } - ) - ) - )) - { - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); - } - ) - )| - ( - {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 4)}?=>( - { - getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 4); - } - ({true}?=>(( - ( - lv_numberSpecified_16_0='number' - { - newLeafNode(lv_numberSpecified_16_0, grammarAccess.getGenerationTaskAccess().getNumberSpecifiedNumberKeyword_3_4_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getGenerationTaskRule()); - } - setWithLastConsumed($current, "numberSpecified", true, "number"); - } - ) - ) - otherlv_17='=' - { - newLeafNode(otherlv_17, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_4_1()); - } - ( - ( - lv_number_18_0=RULE_INT - { - newLeafNode(lv_number_18_0, grammarAccess.getGenerationTaskAccess().getNumberINTTerminalRuleCall_3_4_2_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getGenerationTaskRule()); - } - setWithLastConsumed( - $current, - "number", - lv_number_18_0, - "org.eclipse.xtext.common.Terminals.INT"); - } - ) - ) - )) - { - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); - } - ) - )| - ( - {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 5)}?=>( - { - getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 5); - } - ({true}?=>(( - ( - lv_runSpecified_19_0='runs' - { - newLeafNode(lv_runSpecified_19_0, grammarAccess.getGenerationTaskAccess().getRunSpecifiedRunsKeyword_3_5_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getGenerationTaskRule()); - } - setWithLastConsumed($current, "runSpecified", true, "runs"); - } - ) - ) - otherlv_20='=' - { - newLeafNode(otherlv_20, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_5_1()); - } - ( - ( - lv_runs_21_0=RULE_INT - { - newLeafNode(lv_runs_21_0, grammarAccess.getGenerationTaskAccess().getRunsINTTerminalRuleCall_3_5_2_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getGenerationTaskRule()); - } - setWithLastConsumed( - $current, - "runs", - lv_runs_21_0, - "org.eclipse.xtext.common.Terminals.INT"); - } - ) - ) - )) - { - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); - } - ) - )| - ( - {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 6)}?=>( - { - getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 6); - } - ({true}?=>(otherlv_22='solver' - { - newLeafNode(otherlv_22, grammarAccess.getGenerationTaskAccess().getSolverKeyword_3_6_0()); - } - otherlv_23='=' - { - newLeafNode(otherlv_23, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_6_1()); - } - ( - ( - { - newCompositeNode(grammarAccess.getGenerationTaskAccess().getSolverSolverEnumRuleCall_3_6_2_0()); - } - lv_solver_24_0=ruleSolver - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); - } - set( - $current, - "solver", - lv_solver_24_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Solver"); - afterParserOrEnumRuleCall(); - } - ) - ) - )) - { - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); - } - ) - )| - ( - {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 7)}?=>( - { - getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 7); - } - ({true}?=>(otherlv_25='config' - { - newLeafNode(otherlv_25, grammarAccess.getGenerationTaskAccess().getConfigKeyword_3_7_0()); - } - otherlv_26='=' - { - newLeafNode(otherlv_26, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_7_1()); - } - ( - ( - { - newCompositeNode(grammarAccess.getGenerationTaskAccess().getConfigConfigParserRuleCall_3_7_2_0()); - } - lv_config_27_0=ruleConfig - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); - } - set( - $current, - "config", - lv_config_27_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Config"); - afterParserOrEnumRuleCall(); - } - ) - ) - )) - { - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); - } - ) - )| - ( - {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 8)}?=>( - { - getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 8); - } - ({true}?=>(otherlv_28='debug' - { - newLeafNode(otherlv_28, grammarAccess.getGenerationTaskAccess().getDebugKeyword_3_8_0()); - } - otherlv_29='=' - { - newLeafNode(otherlv_29, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_8_1()); - } - ( - ( - { - newCompositeNode(grammarAccess.getGenerationTaskAccess().getDebugFolderFileParserRuleCall_3_8_2_0()); - } - lv_debugFolder_30_0=ruleFile - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); - } - set( - $current, - "debugFolder", - lv_debugFolder_30_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); - afterParserOrEnumRuleCall(); - } - ) - ) - )) - { - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); - } - ) - )| - ( - {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 9)}?=>( - { - getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 9); - } - ({true}?=>(otherlv_31='log' - { - newLeafNode(otherlv_31, grammarAccess.getGenerationTaskAccess().getLogKeyword_3_9_0()); - } - otherlv_32='=' - { - newLeafNode(otherlv_32, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_9_1()); - } - ( - ( - { - newCompositeNode(grammarAccess.getGenerationTaskAccess().getTargetLogFileFileParserRuleCall_3_9_2_0()); - } - lv_targetLogFile_33_0=ruleFile - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); - } - set( - $current, - "targetLogFile", - lv_targetLogFile_33_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); - afterParserOrEnumRuleCall(); - } - ) - ) - )) - { - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); - } - ) - )| - ( - {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 10)}?=>( - { - getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 10); - } - ({true}?=>(otherlv_34='statistics' - { - newLeafNode(otherlv_34, grammarAccess.getGenerationTaskAccess().getStatisticsKeyword_3_10_0()); - } - otherlv_35='=' - { - newLeafNode(otherlv_35, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_10_1()); - } - ( - ( - { - newCompositeNode(grammarAccess.getGenerationTaskAccess().getTargetStatisticsFileFileParserRuleCall_3_10_2_0()); - } - lv_targetStatisticsFile_36_0=ruleFile - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); - } - set( - $current, - "targetStatisticsFile", - lv_targetStatisticsFile_36_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); - afterParserOrEnumRuleCall(); - } - ) - ) - )) - { - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); - } - ) - )| - ( - {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 11)}?=>( - { - getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 11); - } - ({true}?=>(otherlv_37='output' - { - newLeafNode(otherlv_37, grammarAccess.getGenerationTaskAccess().getOutputKeyword_3_11_0()); - } - otherlv_38='=' - { - newLeafNode(otherlv_38, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_11_1()); - } - ( - ( - { - newCompositeNode(grammarAccess.getGenerationTaskAccess().getTagetFolderFileParserRuleCall_3_11_2_0()); - } - lv_tagetFolder_39_0=ruleFile - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); - } - set( - $current, - "tagetFolder", - lv_tagetFolder_39_0, - "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); - afterParserOrEnumRuleCall(); - } - ) - ) - )) - { - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); - } - ) - ) - )* - ) - ) - { - getUnorderedGroupHelper().leave(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); - } - ) - otherlv_40='}' - { - newLeafNode(otherlv_40, grammarAccess.getGenerationTaskAccess().getRightCurlyBracketKeyword_4()); - } - ) -; - -// Rule DocumentLevelSpecification -ruleDocumentLevelSpecification returns [Enumerator current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - enumLiteral_0='none' - { - $current = grammarAccess.getDocumentLevelSpecificationAccess().getNoneEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_0, grammarAccess.getDocumentLevelSpecificationAccess().getNoneEnumLiteralDeclaration_0()); - } - ) - | - ( - enumLiteral_1='normal' - { - $current = grammarAccess.getDocumentLevelSpecificationAccess().getNormalEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_1, grammarAccess.getDocumentLevelSpecificationAccess().getNormalEnumLiteralDeclaration_1()); - } - ) - | - ( - enumLiteral_2='full' - { - $current = grammarAccess.getDocumentLevelSpecificationAccess().getFullEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_2, grammarAccess.getDocumentLevelSpecificationAccess().getFullEnumLiteralDeclaration_2()); - } - ) - ) -; - -// Rule Solver -ruleSolver returns [Enumerator current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - enumLiteral_0='SMTSolver' - { - $current = grammarAccess.getSolverAccess().getSMTSolverEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_0, grammarAccess.getSolverAccess().getSMTSolverEnumLiteralDeclaration_0()); - } - ) - | - ( - enumLiteral_1='AlloySolver' - { - $current = grammarAccess.getSolverAccess().getAlloySolverEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_1, grammarAccess.getSolverAccess().getAlloySolverEnumLiteralDeclaration_1()); - } - ) - | - ( - enumLiteral_2='ViatraSolver' - { - $current = grammarAccess.getSolverAccess().getViatraSolverEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_2, grammarAccess.getSolverAccess().getViatraSolverEnumLiteralDeclaration_2()); - } - ) - ) -; - -RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; - -RULE_INT : ('0'..'9')+; - -RULE_STRING : ('"' ('\\' .|~(('\\'|'"')))* '"'|'\'' ('\\' .|~(('\\'|'\'')))* '\''); - -RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/'; - -RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?; - -RULE_WS : (' '|'\t'|'\r'|'\n')+; - -RULE_ANY_OTHER : .; +/* + * generated by Xtext 2.16.0 + */ +grammar InternalApplicationConfiguration; + +options { + superClass=AbstractInternalAntlrParser; +} + +@lexer::header { +package hu.bme.mit.inf.dslreasoner.application.parser.antlr.internal; + +// Hack: Use our own Lexer superclass by means of import. +// Currently there is no other way to specify the superclass for the lexer. +import org.eclipse.xtext.parser.antlr.Lexer; +} + +@parser::header { +package hu.bme.mit.inf.dslreasoner.application.parser.antlr.internal; + +import org.eclipse.xtext.*; +import org.eclipse.xtext.parser.*; +import org.eclipse.xtext.parser.impl.*; +import org.eclipse.emf.ecore.util.EcoreUtil; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.common.util.Enumerator; +import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser; +import org.eclipse.xtext.parser.antlr.XtextTokenStream; +import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; +import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; +import hu.bme.mit.inf.dslreasoner.application.services.ApplicationConfigurationGrammarAccess; + +} + +@parser::members { + + private ApplicationConfigurationGrammarAccess grammarAccess; + + public InternalApplicationConfigurationParser(TokenStream input, ApplicationConfigurationGrammarAccess grammarAccess) { + this(input); + this.grammarAccess = grammarAccess; + registerRules(grammarAccess.getGrammar()); + } + + @Override + protected String getFirstRuleName() { + return "ConfigurationScript"; + } + + @Override + protected ApplicationConfigurationGrammarAccess getGrammarAccess() { + return grammarAccess; + } + +} + +@rulecatch { + catch (RecognitionException re) { + recover(input,re); + appendSkippedTokens(); + } +} + +// Entry rule entryRuleConfigurationScript +entryRuleConfigurationScript returns [EObject current=null]: + { newCompositeNode(grammarAccess.getConfigurationScriptRule()); } + iv_ruleConfigurationScript=ruleConfigurationScript + { $current=$iv_ruleConfigurationScript.current; } + EOF; + +// Rule ConfigurationScript +ruleConfigurationScript returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + ( + { + newCompositeNode(grammarAccess.getConfigurationScriptAccess().getImportsImportParserRuleCall_0_0()); + } + lv_imports_0_0=ruleImport + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getConfigurationScriptRule()); + } + add( + $current, + "imports", + lv_imports_0_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Import"); + afterParserOrEnumRuleCall(); + } + ) + )* + ( + ( + { + newCompositeNode(grammarAccess.getConfigurationScriptAccess().getCommandsCommandParserRuleCall_1_0()); + } + lv_commands_1_0=ruleCommand + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getConfigurationScriptRule()); + } + add( + $current, + "commands", + lv_commands_1_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Command"); + afterParserOrEnumRuleCall(); + } + ) + )* + ) +; + +// Entry rule entryRuleCommand +entryRuleCommand returns [EObject current=null]: + { newCompositeNode(grammarAccess.getCommandRule()); } + iv_ruleCommand=ruleCommand + { $current=$iv_ruleCommand.current; } + EOF; + +// Rule Command +ruleCommand returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + { + newCompositeNode(grammarAccess.getCommandAccess().getDeclarationParserRuleCall_0()); + } + this_Declaration_0=ruleDeclaration + { + $current = $this_Declaration_0.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getCommandAccess().getTaskParserRuleCall_1()); + } + this_Task_1=ruleTask + { + $current = $this_Task_1.current; + afterParserOrEnumRuleCall(); + } + ) +; + +// Entry rule entryRuleQualifiedName +entryRuleQualifiedName returns [String current=null]: + { newCompositeNode(grammarAccess.getQualifiedNameRule()); } + iv_ruleQualifiedName=ruleQualifiedName + { $current=$iv_ruleQualifiedName.current.getText(); } + EOF; + +// Rule QualifiedName +ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + this_ID_0=RULE_ID + { + $current.merge(this_ID_0); + } + { + newLeafNode(this_ID_0, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); + } + ( + kw='.' + { + $current.merge(kw); + newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); + } + this_ID_2=RULE_ID + { + $current.merge(this_ID_2); + } + { + newLeafNode(this_ID_2, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); + } + )* + ) +; + +// Entry rule entryRuleREALLiteral +entryRuleREALLiteral returns [String current=null]: + { newCompositeNode(grammarAccess.getREALLiteralRule()); } + iv_ruleREALLiteral=ruleREALLiteral + { $current=$iv_ruleREALLiteral.current.getText(); } + EOF; + +// Rule REALLiteral +ruleREALLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + kw='-' + { + $current.merge(kw); + newLeafNode(kw, grammarAccess.getREALLiteralAccess().getHyphenMinusKeyword_0()); + } + )? + this_INT_1=RULE_INT + { + $current.merge(this_INT_1); + } + { + newLeafNode(this_INT_1, grammarAccess.getREALLiteralAccess().getINTTerminalRuleCall_1()); + } + kw='.' + { + $current.merge(kw); + newLeafNode(kw, grammarAccess.getREALLiteralAccess().getFullStopKeyword_2()); + } + this_INT_3=RULE_INT + { + $current.merge(this_INT_3); + } + { + newLeafNode(this_INT_3, grammarAccess.getREALLiteralAccess().getINTTerminalRuleCall_3()); + } + ) +; + +// Entry rule entryRuleINTLiteral +entryRuleINTLiteral returns [String current=null]: + { newCompositeNode(grammarAccess.getINTLiteralRule()); } + iv_ruleINTLiteral=ruleINTLiteral + { $current=$iv_ruleINTLiteral.current.getText(); } + EOF; + +// Rule INTLiteral +ruleINTLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + kw='-' + { + $current.merge(kw); + newLeafNode(kw, grammarAccess.getINTLiteralAccess().getHyphenMinusKeyword_0()); + } + )? + this_INT_1=RULE_INT + { + $current.merge(this_INT_1); + } + { + newLeafNode(this_INT_1, grammarAccess.getINTLiteralAccess().getINTTerminalRuleCall_1()); + } + ) +; + +// Entry rule entryRuleImport +entryRuleImport returns [EObject current=null]: + { newCompositeNode(grammarAccess.getImportRule()); } + iv_ruleImport=ruleImport + { $current=$iv_ruleImport.current; } + EOF; + +// Rule Import +ruleImport returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + { + newCompositeNode(grammarAccess.getImportAccess().getEPackageImportParserRuleCall_0()); + } + this_EPackageImport_0=ruleEPackageImport + { + $current = $this_EPackageImport_0.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getImportAccess().getViatraImportParserRuleCall_1()); + } + this_ViatraImport_1=ruleViatraImport + { + $current = $this_ViatraImport_1.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getImportAccess().getCftImportParserRuleCall_2()); + } + this_CftImport_2=ruleCftImport + { + $current = $this_CftImport_2.current; + afterParserOrEnumRuleCall(); + } + ) +; + +// Entry rule entryRuleEPackageImport +entryRuleEPackageImport returns [EObject current=null]: + { newCompositeNode(grammarAccess.getEPackageImportRule()); } + iv_ruleEPackageImport=ruleEPackageImport + { $current=$iv_ruleEPackageImport.current; } + EOF; + +// Rule EPackageImport +ruleEPackageImport returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='import' + { + newLeafNode(otherlv_0, grammarAccess.getEPackageImportAccess().getImportKeyword_0()); + } + otherlv_1='epackage' + { + newLeafNode(otherlv_1, grammarAccess.getEPackageImportAccess().getEpackageKeyword_1()); + } + ( + ( + { + if ($current==null) { + $current = createModelElement(grammarAccess.getEPackageImportRule()); + } + } + otherlv_2=RULE_STRING + { + newLeafNode(otherlv_2, grammarAccess.getEPackageImportAccess().getImportedPackageEPackageCrossReference_2_0()); + } + ) + ) + ) +; + +// Entry rule entryRuleViatraImport +entryRuleViatraImport returns [EObject current=null]: + { newCompositeNode(grammarAccess.getViatraImportRule()); } + iv_ruleViatraImport=ruleViatraImport + { $current=$iv_ruleViatraImport.current; } + EOF; + +// Rule ViatraImport +ruleViatraImport returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='import' + { + newLeafNode(otherlv_0, grammarAccess.getViatraImportAccess().getImportKeyword_0()); + } + otherlv_1='viatra' + { + newLeafNode(otherlv_1, grammarAccess.getViatraImportAccess().getViatraKeyword_1()); + } + ( + ( + { + if ($current==null) { + $current = createModelElement(grammarAccess.getViatraImportRule()); + } + } + otherlv_2=RULE_STRING + { + newLeafNode(otherlv_2, grammarAccess.getViatraImportAccess().getImportedViatraPatternModelCrossReference_2_0()); + } + ) + ) + ) +; + +// Entry rule entryRuleCftImport +entryRuleCftImport returns [EObject current=null]: + { newCompositeNode(grammarAccess.getCftImportRule()); } + iv_ruleCftImport=ruleCftImport + { $current=$iv_ruleCftImport.current; } + EOF; + +// Rule CftImport +ruleCftImport returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='import' + { + newLeafNode(otherlv_0, grammarAccess.getCftImportAccess().getImportKeyword_0()); + } + otherlv_1='reliability' + { + newLeafNode(otherlv_1, grammarAccess.getCftImportAccess().getReliabilityKeyword_1()); + } + ( + ( + { + if ($current==null) { + $current = createModelElement(grammarAccess.getCftImportRule()); + } + } + otherlv_2=RULE_STRING + { + newLeafNode(otherlv_2, grammarAccess.getCftImportAccess().getImportedCftCftModelCrossReference_2_0()); + } + ) + ) + ) +; + +// Entry rule entryRuleDeclaration +entryRuleDeclaration returns [EObject current=null]: + { newCompositeNode(grammarAccess.getDeclarationRule()); } + iv_ruleDeclaration=ruleDeclaration + { $current=$iv_ruleDeclaration.current; } + EOF; + +// Rule Declaration +ruleDeclaration returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + { + newCompositeNode(grammarAccess.getDeclarationAccess().getFileDeclarationParserRuleCall_0()); + } + this_FileDeclaration_0=ruleFileDeclaration + { + $current = $this_FileDeclaration_0.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getDeclarationAccess().getMetamodelDeclarationParserRuleCall_1()); + } + this_MetamodelDeclaration_1=ruleMetamodelDeclaration + { + $current = $this_MetamodelDeclaration_1.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getDeclarationAccess().getPartialModelDeclarationParserRuleCall_2()); + } + this_PartialModelDeclaration_2=rulePartialModelDeclaration + { + $current = $this_PartialModelDeclaration_2.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getDeclarationAccess().getGraphPatternDeclarationParserRuleCall_3()); + } + this_GraphPatternDeclaration_3=ruleGraphPatternDeclaration + { + $current = $this_GraphPatternDeclaration_3.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getDeclarationAccess().getConfigDeclarationParserRuleCall_4()); + } + this_ConfigDeclaration_4=ruleConfigDeclaration + { + $current = $this_ConfigDeclaration_4.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getDeclarationAccess().getScopeDeclarationParserRuleCall_5()); + } + this_ScopeDeclaration_5=ruleScopeDeclaration + { + $current = $this_ScopeDeclaration_5.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getDeclarationAccess().getObjectiveDeclarationParserRuleCall_6()); + } + this_ObjectiveDeclaration_6=ruleObjectiveDeclaration + { + $current = $this_ObjectiveDeclaration_6.current; + afterParserOrEnumRuleCall(); + } + ) +; + +// Entry rule entryRuleFileSpecification +entryRuleFileSpecification returns [EObject current=null]: + { newCompositeNode(grammarAccess.getFileSpecificationRule()); } + iv_ruleFileSpecification=ruleFileSpecification + { $current=$iv_ruleFileSpecification.current; } + EOF; + +// Rule FileSpecification +ruleFileSpecification returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + lv_path_0_0=RULE_STRING + { + newLeafNode(lv_path_0_0, grammarAccess.getFileSpecificationAccess().getPathSTRINGTerminalRuleCall_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getFileSpecificationRule()); + } + setWithLastConsumed( + $current, + "path", + lv_path_0_0, + "org.eclipse.xtext.common.Terminals.STRING"); + } + ) + ) +; + +// Entry rule entryRuleFileDeclaration +entryRuleFileDeclaration returns [EObject current=null]: + { newCompositeNode(grammarAccess.getFileDeclarationRule()); } + iv_ruleFileDeclaration=ruleFileDeclaration + { $current=$iv_ruleFileDeclaration.current; } + EOF; + +// Rule FileDeclaration +ruleFileDeclaration returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='file' + { + newLeafNode(otherlv_0, grammarAccess.getFileDeclarationAccess().getFileKeyword_0()); + } + ( + ( + lv_name_1_0=RULE_ID + { + newLeafNode(lv_name_1_0, grammarAccess.getFileDeclarationAccess().getNameIDTerminalRuleCall_1_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getFileDeclarationRule()); + } + setWithLastConsumed( + $current, + "name", + lv_name_1_0, + "org.eclipse.xtext.common.Terminals.ID"); + } + ) + ) + otherlv_2='=' + { + newLeafNode(otherlv_2, grammarAccess.getFileDeclarationAccess().getEqualsSignKeyword_2()); + } + ( + ( + { + newCompositeNode(grammarAccess.getFileDeclarationAccess().getSpecificationFileSpecificationParserRuleCall_3_0()); + } + lv_specification_3_0=ruleFileSpecification + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getFileDeclarationRule()); + } + set( + $current, + "specification", + lv_specification_3_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.FileSpecification"); + afterParserOrEnumRuleCall(); + } + ) + ) + ) +; + +// Entry rule entryRuleFileReference +entryRuleFileReference returns [EObject current=null]: + { newCompositeNode(grammarAccess.getFileReferenceRule()); } + iv_ruleFileReference=ruleFileReference + { $current=$iv_ruleFileReference.current; } + EOF; + +// Rule FileReference +ruleFileReference returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + { + if ($current==null) { + $current = createModelElement(grammarAccess.getFileReferenceRule()); + } + } + otherlv_0=RULE_ID + { + newLeafNode(otherlv_0, grammarAccess.getFileReferenceAccess().getReferredFileDeclarationCrossReference_0()); + } + ) + ) +; + +// Entry rule entryRuleFile +entryRuleFile returns [EObject current=null]: + { newCompositeNode(grammarAccess.getFileRule()); } + iv_ruleFile=ruleFile + { $current=$iv_ruleFile.current; } + EOF; + +// Rule File +ruleFile returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + { + newCompositeNode(grammarAccess.getFileAccess().getFileSpecificationParserRuleCall_0()); + } + this_FileSpecification_0=ruleFileSpecification + { + $current = $this_FileSpecification_0.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getFileAccess().getFileReferenceParserRuleCall_1()); + } + this_FileReference_1=ruleFileReference + { + $current = $this_FileReference_1.current; + afterParserOrEnumRuleCall(); + } + ) +; + +// Entry rule entryRuleMetamodelSpecification +entryRuleMetamodelSpecification returns [EObject current=null]: + { newCompositeNode(grammarAccess.getMetamodelSpecificationRule()); } + iv_ruleMetamodelSpecification=ruleMetamodelSpecification + { $current=$iv_ruleMetamodelSpecification.current; } + EOF; + +// Rule MetamodelSpecification +ruleMetamodelSpecification returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='{' + { + newLeafNode(otherlv_0, grammarAccess.getMetamodelSpecificationAccess().getLeftCurlyBracketKeyword_0()); + } + ( + ( + { + newCompositeNode(grammarAccess.getMetamodelSpecificationAccess().getEntriesMetamodelEntryParserRuleCall_1_0()); + } + lv_entries_1_0=ruleMetamodelEntry + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getMetamodelSpecificationRule()); + } + add( + $current, + "entries", + lv_entries_1_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelEntry"); + afterParserOrEnumRuleCall(); + } + ) + ) + ( + otherlv_2=',' + { + newLeafNode(otherlv_2, grammarAccess.getMetamodelSpecificationAccess().getCommaKeyword_2_0()); + } + ( + ( + { + newCompositeNode(grammarAccess.getMetamodelSpecificationAccess().getEntriesMetamodelEntryParserRuleCall_2_1_0()); + } + lv_entries_3_0=ruleMetamodelEntry + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getMetamodelSpecificationRule()); + } + add( + $current, + "entries", + lv_entries_3_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelEntry"); + afterParserOrEnumRuleCall(); + } + ) + ) + )* + otherlv_4='}' + { + newLeafNode(otherlv_4, grammarAccess.getMetamodelSpecificationAccess().getRightCurlyBracketKeyword_3()); + } + ) +; + +// Entry rule entryRuleMetamodelEntry +entryRuleMetamodelEntry returns [EObject current=null]: + { newCompositeNode(grammarAccess.getMetamodelEntryRule()); } + iv_ruleMetamodelEntry=ruleMetamodelEntry + { $current=$iv_ruleMetamodelEntry.current; } + EOF; + +// Rule MetamodelEntry +ruleMetamodelEntry returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + { + newCompositeNode(grammarAccess.getMetamodelEntryAccess().getMetamodelElementParserRuleCall_0()); + } + this_MetamodelElement_0=ruleMetamodelElement + { + $current = $this_MetamodelElement_0.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getMetamodelEntryAccess().getAllPackageEntryParserRuleCall_1()); + } + this_AllPackageEntry_1=ruleAllPackageEntry + { + $current = $this_AllPackageEntry_1.current; + afterParserOrEnumRuleCall(); + } + ) +; + +// Entry rule entryRuleAllPackageEntry +entryRuleAllPackageEntry returns [EObject current=null]: + { newCompositeNode(grammarAccess.getAllPackageEntryRule()); } + iv_ruleAllPackageEntry=ruleAllPackageEntry + { $current=$iv_ruleAllPackageEntry.current; } + EOF; + +// Rule AllPackageEntry +ruleAllPackageEntry returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='package' + { + newLeafNode(otherlv_0, grammarAccess.getAllPackageEntryAccess().getPackageKeyword_0()); + } + ( + ( + { + if ($current==null) { + $current = createModelElement(grammarAccess.getAllPackageEntryRule()); + } + } + { + newCompositeNode(grammarAccess.getAllPackageEntryAccess().getPackageEPackageCrossReference_1_0()); + } + ruleQualifiedName + { + afterParserOrEnumRuleCall(); + } + ) + ) + ( + otherlv_2='excluding' + { + newLeafNode(otherlv_2, grammarAccess.getAllPackageEntryAccess().getExcludingKeyword_2_0()); + } + otherlv_3='{' + { + newLeafNode(otherlv_3, grammarAccess.getAllPackageEntryAccess().getLeftCurlyBracketKeyword_2_1()); + } + ( + ( + { + newCompositeNode(grammarAccess.getAllPackageEntryAccess().getExclusionMetamodelElementParserRuleCall_2_2_0()); + } + lv_exclusion_4_0=ruleMetamodelElement + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getAllPackageEntryRule()); + } + add( + $current, + "exclusion", + lv_exclusion_4_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelElement"); + afterParserOrEnumRuleCall(); + } + ) + ) + ( + otherlv_5=',' + { + newLeafNode(otherlv_5, grammarAccess.getAllPackageEntryAccess().getCommaKeyword_2_3_0()); + } + ( + ( + { + newCompositeNode(grammarAccess.getAllPackageEntryAccess().getExclusionMetamodelElementParserRuleCall_2_3_1_0()); + } + lv_exclusion_6_0=ruleMetamodelElement + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getAllPackageEntryRule()); + } + add( + $current, + "exclusion", + lv_exclusion_6_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelElement"); + afterParserOrEnumRuleCall(); + } + ) + ) + )* + otherlv_7='}' + { + newLeafNode(otherlv_7, grammarAccess.getAllPackageEntryAccess().getRightCurlyBracketKeyword_2_4()); + } + )? + ) +; + +// Entry rule entryRuleMetamodelElement +entryRuleMetamodelElement returns [EObject current=null]: + { newCompositeNode(grammarAccess.getMetamodelElementRule()); } + iv_ruleMetamodelElement=ruleMetamodelElement + { $current=$iv_ruleMetamodelElement.current; } + EOF; + +// Rule MetamodelElement +ruleMetamodelElement returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + ( + ( + { + if ($current==null) { + $current = createModelElement(grammarAccess.getMetamodelElementRule()); + } + } + { + newCompositeNode(grammarAccess.getMetamodelElementAccess().getPackageEPackageCrossReference_0_0_0()); + } + ruleQualifiedName + { + afterParserOrEnumRuleCall(); + } + ) + ) + otherlv_1='::' + { + newLeafNode(otherlv_1, grammarAccess.getMetamodelElementAccess().getColonColonKeyword_0_1()); + } + )? + ( + ( + { + if ($current==null) { + $current = createModelElement(grammarAccess.getMetamodelElementRule()); + } + } + otherlv_2=RULE_ID + { + newLeafNode(otherlv_2, grammarAccess.getMetamodelElementAccess().getClassifierEClassifierCrossReference_1_0()); + } + ) + ) + ( + otherlv_3='.' + { + newLeafNode(otherlv_3, grammarAccess.getMetamodelElementAccess().getFullStopKeyword_2_0()); + } + ( + ( + { + if ($current==null) { + $current = createModelElement(grammarAccess.getMetamodelElementRule()); + } + } + otherlv_4=RULE_ID + { + newLeafNode(otherlv_4, grammarAccess.getMetamodelElementAccess().getFeatureENamedElementCrossReference_2_1_0()); + } + ) + ) + )? + ) +; + +// Entry rule entryRuleMetamodelDeclaration +entryRuleMetamodelDeclaration returns [EObject current=null]: + { newCompositeNode(grammarAccess.getMetamodelDeclarationRule()); } + iv_ruleMetamodelDeclaration=ruleMetamodelDeclaration + { $current=$iv_ruleMetamodelDeclaration.current; } + EOF; + +// Rule MetamodelDeclaration +ruleMetamodelDeclaration returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='metamodel' + { + newLeafNode(otherlv_0, grammarAccess.getMetamodelDeclarationAccess().getMetamodelKeyword_0()); + } + ( + ( + lv_name_1_0=RULE_ID + { + newLeafNode(lv_name_1_0, grammarAccess.getMetamodelDeclarationAccess().getNameIDTerminalRuleCall_1_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getMetamodelDeclarationRule()); + } + setWithLastConsumed( + $current, + "name", + lv_name_1_0, + "org.eclipse.xtext.common.Terminals.ID"); + } + ) + ) + ( + ( + { + newCompositeNode(grammarAccess.getMetamodelDeclarationAccess().getSpecificationMetamodelSpecificationParserRuleCall_2_0()); + } + lv_specification_2_0=ruleMetamodelSpecification + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getMetamodelDeclarationRule()); + } + set( + $current, + "specification", + lv_specification_2_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelSpecification"); + afterParserOrEnumRuleCall(); + } + ) + ) + ) +; + +// Entry rule entryRuleMetamodelReference +entryRuleMetamodelReference returns [EObject current=null]: + { newCompositeNode(grammarAccess.getMetamodelReferenceRule()); } + iv_ruleMetamodelReference=ruleMetamodelReference + { $current=$iv_ruleMetamodelReference.current; } + EOF; + +// Rule MetamodelReference +ruleMetamodelReference returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + { + if ($current==null) { + $current = createModelElement(grammarAccess.getMetamodelReferenceRule()); + } + } + otherlv_0=RULE_ID + { + newLeafNode(otherlv_0, grammarAccess.getMetamodelReferenceAccess().getReferredMetamodelDeclarationCrossReference_0()); + } + ) + ) +; + +// Entry rule entryRuleMetamodel +entryRuleMetamodel returns [EObject current=null]: + { newCompositeNode(grammarAccess.getMetamodelRule()); } + iv_ruleMetamodel=ruleMetamodel + { $current=$iv_ruleMetamodel.current; } + EOF; + +// Rule Metamodel +ruleMetamodel returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + { + newCompositeNode(grammarAccess.getMetamodelAccess().getMetamodelReferenceParserRuleCall_0()); + } + this_MetamodelReference_0=ruleMetamodelReference + { + $current = $this_MetamodelReference_0.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getMetamodelAccess().getMetamodelSpecificationParserRuleCall_1()); + } + this_MetamodelSpecification_1=ruleMetamodelSpecification + { + $current = $this_MetamodelSpecification_1.current; + afterParserOrEnumRuleCall(); + } + ) +; + +// Entry rule entryRulePartialModelSpecification +entryRulePartialModelSpecification returns [EObject current=null]: + { newCompositeNode(grammarAccess.getPartialModelSpecificationRule()); } + iv_rulePartialModelSpecification=rulePartialModelSpecification + { $current=$iv_rulePartialModelSpecification.current; } + EOF; + +// Rule PartialModelSpecification +rulePartialModelSpecification returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='{' + { + newLeafNode(otherlv_0, grammarAccess.getPartialModelSpecificationAccess().getLeftCurlyBracketKeyword_0()); + } + ( + ( + { + newCompositeNode(grammarAccess.getPartialModelSpecificationAccess().getEntryPartialModelEntryParserRuleCall_1_0()); + } + lv_entry_1_0=rulePartialModelEntry + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getPartialModelSpecificationRule()); + } + add( + $current, + "entry", + lv_entry_1_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PartialModelEntry"); + afterParserOrEnumRuleCall(); + } + ) + ) + ( + otherlv_2=',' + { + newLeafNode(otherlv_2, grammarAccess.getPartialModelSpecificationAccess().getCommaKeyword_2_0()); + } + ( + ( + { + newCompositeNode(grammarAccess.getPartialModelSpecificationAccess().getEntryPartialModelEntryParserRuleCall_2_1_0()); + } + lv_entry_3_0=rulePartialModelEntry + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getPartialModelSpecificationRule()); + } + add( + $current, + "entry", + lv_entry_3_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PartialModelEntry"); + afterParserOrEnumRuleCall(); + } + ) + ) + )? + otherlv_4='}' + { + newLeafNode(otherlv_4, grammarAccess.getPartialModelSpecificationAccess().getRightCurlyBracketKeyword_3()); + } + ) +; + +// Entry rule entryRulePartialModelEntry +entryRulePartialModelEntry returns [EObject current=null]: + { newCompositeNode(grammarAccess.getPartialModelEntryRule()); } + iv_rulePartialModelEntry=rulePartialModelEntry + { $current=$iv_rulePartialModelEntry.current; } + EOF; + +// Rule PartialModelEntry +rulePartialModelEntry returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + { + newCompositeNode(grammarAccess.getPartialModelEntryAccess().getModelEntryParserRuleCall_0()); + } + this_ModelEntry_0=ruleModelEntry + { + $current = $this_ModelEntry_0.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getPartialModelEntryAccess().getFolderEntryParserRuleCall_1()); + } + this_FolderEntry_1=ruleFolderEntry + { + $current = $this_FolderEntry_1.current; + afterParserOrEnumRuleCall(); + } + ) +; + +// Entry rule entryRuleModelEntry +entryRuleModelEntry returns [EObject current=null]: + { newCompositeNode(grammarAccess.getModelEntryRule()); } + iv_ruleModelEntry=ruleModelEntry + { $current=$iv_ruleModelEntry.current; } + EOF; + +// Rule ModelEntry +ruleModelEntry returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + { + newCompositeNode(grammarAccess.getModelEntryAccess().getPathFileParserRuleCall_0()); + } + lv_path_0_0=ruleFile + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getModelEntryRule()); + } + set( + $current, + "path", + lv_path_0_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); + afterParserOrEnumRuleCall(); + } + ) + ) +; + +// Entry rule entryRuleFolderEntry +entryRuleFolderEntry returns [EObject current=null]: + { newCompositeNode(grammarAccess.getFolderEntryRule()); } + iv_ruleFolderEntry=ruleFolderEntry + { $current=$iv_ruleFolderEntry.current; } + EOF; + +// Rule FolderEntry +ruleFolderEntry returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='folder' + { + newLeafNode(otherlv_0, grammarAccess.getFolderEntryAccess().getFolderKeyword_0()); + } + ( + ( + { + newCompositeNode(grammarAccess.getFolderEntryAccess().getPathFileParserRuleCall_1_0()); + } + lv_path_1_0=ruleFile + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getFolderEntryRule()); + } + set( + $current, + "path", + lv_path_1_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); + afterParserOrEnumRuleCall(); + } + ) + ) + ( + otherlv_2='excluding' + { + newLeafNode(otherlv_2, grammarAccess.getFolderEntryAccess().getExcludingKeyword_2_0()); + } + otherlv_3='{' + { + newLeafNode(otherlv_3, grammarAccess.getFolderEntryAccess().getLeftCurlyBracketKeyword_2_1()); + } + ( + ( + { + newCompositeNode(grammarAccess.getFolderEntryAccess().getExclusionModelEntryParserRuleCall_2_2_0()); + } + lv_exclusion_4_0=ruleModelEntry + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getFolderEntryRule()); + } + add( + $current, + "exclusion", + lv_exclusion_4_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ModelEntry"); + afterParserOrEnumRuleCall(); + } + ) + ) + ( + otherlv_5=',' + { + newLeafNode(otherlv_5, grammarAccess.getFolderEntryAccess().getCommaKeyword_2_3_0()); + } + ( + ( + { + newCompositeNode(grammarAccess.getFolderEntryAccess().getExclusionModelEntryParserRuleCall_2_3_1_0()); + } + lv_exclusion_6_0=ruleModelEntry + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getFolderEntryRule()); + } + add( + $current, + "exclusion", + lv_exclusion_6_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ModelEntry"); + afterParserOrEnumRuleCall(); + } + ) + ) + )* + otherlv_7='}' + { + newLeafNode(otherlv_7, grammarAccess.getFolderEntryAccess().getRightCurlyBracketKeyword_2_4()); + } + )? + ) +; + +// Entry rule entryRulePartialModelDeclaration +entryRulePartialModelDeclaration returns [EObject current=null]: + { newCompositeNode(grammarAccess.getPartialModelDeclarationRule()); } + iv_rulePartialModelDeclaration=rulePartialModelDeclaration + { $current=$iv_rulePartialModelDeclaration.current; } + EOF; + +// Rule PartialModelDeclaration +rulePartialModelDeclaration returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='models' + { + newLeafNode(otherlv_0, grammarAccess.getPartialModelDeclarationAccess().getModelsKeyword_0()); + } + ( + ( + lv_name_1_0=RULE_ID + { + newLeafNode(lv_name_1_0, grammarAccess.getPartialModelDeclarationAccess().getNameIDTerminalRuleCall_1_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getPartialModelDeclarationRule()); + } + setWithLastConsumed( + $current, + "name", + lv_name_1_0, + "org.eclipse.xtext.common.Terminals.ID"); + } + ) + ) + ( + ( + { + newCompositeNode(grammarAccess.getPartialModelDeclarationAccess().getSpecificationPartialModelSpecificationParserRuleCall_2_0()); + } + lv_specification_2_0=rulePartialModelSpecification + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getPartialModelDeclarationRule()); + } + set( + $current, + "specification", + lv_specification_2_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PartialModelSpecification"); + afterParserOrEnumRuleCall(); + } + ) + ) + ) +; + +// Entry rule entryRulePartialModelReference +entryRulePartialModelReference returns [EObject current=null]: + { newCompositeNode(grammarAccess.getPartialModelReferenceRule()); } + iv_rulePartialModelReference=rulePartialModelReference + { $current=$iv_rulePartialModelReference.current; } + EOF; + +// Rule PartialModelReference +rulePartialModelReference returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + { + if ($current==null) { + $current = createModelElement(grammarAccess.getPartialModelReferenceRule()); + } + } + otherlv_0=RULE_ID + { + newLeafNode(otherlv_0, grammarAccess.getPartialModelReferenceAccess().getReferredPartialModelDeclarationCrossReference_0()); + } + ) + ) +; + +// Entry rule entryRulePartialModel +entryRulePartialModel returns [EObject current=null]: + { newCompositeNode(grammarAccess.getPartialModelRule()); } + iv_rulePartialModel=rulePartialModel + { $current=$iv_rulePartialModel.current; } + EOF; + +// Rule PartialModel +rulePartialModel returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + { + newCompositeNode(grammarAccess.getPartialModelAccess().getPartialModelSpecificationParserRuleCall_0()); + } + this_PartialModelSpecification_0=rulePartialModelSpecification + { + $current = $this_PartialModelSpecification_0.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getPartialModelAccess().getPartialModelReferenceParserRuleCall_1()); + } + this_PartialModelReference_1=rulePartialModelReference + { + $current = $this_PartialModelReference_1.current; + afterParserOrEnumRuleCall(); + } + ) +; + +// Entry rule entryRulePatternSpecification +entryRulePatternSpecification returns [EObject current=null]: + { newCompositeNode(grammarAccess.getPatternSpecificationRule()); } + iv_rulePatternSpecification=rulePatternSpecification + { $current=$iv_rulePatternSpecification.current; } + EOF; + +// Rule PatternSpecification +rulePatternSpecification returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='{' + { + newLeafNode(otherlv_0, grammarAccess.getPatternSpecificationAccess().getLeftCurlyBracketKeyword_0()); + } + ( + ( + { + newCompositeNode(grammarAccess.getPatternSpecificationAccess().getEntriesPatternEntryParserRuleCall_1_0()); + } + lv_entries_1_0=rulePatternEntry + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getPatternSpecificationRule()); + } + add( + $current, + "entries", + lv_entries_1_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PatternEntry"); + afterParserOrEnumRuleCall(); + } + ) + ) + ( + otherlv_2=',' + { + newLeafNode(otherlv_2, grammarAccess.getPatternSpecificationAccess().getCommaKeyword_2_0()); + } + ( + ( + { + newCompositeNode(grammarAccess.getPatternSpecificationAccess().getEntriesPatternEntryParserRuleCall_2_1_0()); + } + lv_entries_3_0=rulePatternEntry + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getPatternSpecificationRule()); + } + add( + $current, + "entries", + lv_entries_3_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PatternEntry"); + afterParserOrEnumRuleCall(); + } + ) + ) + )* + otherlv_4='}' + { + newLeafNode(otherlv_4, grammarAccess.getPatternSpecificationAccess().getRightCurlyBracketKeyword_3()); + } + ) +; + +// Entry rule entryRulePatternEntry +entryRulePatternEntry returns [EObject current=null]: + { newCompositeNode(grammarAccess.getPatternEntryRule()); } + iv_rulePatternEntry=rulePatternEntry + { $current=$iv_rulePatternEntry.current; } + EOF; + +// Rule PatternEntry +rulePatternEntry returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + { + newCompositeNode(grammarAccess.getPatternEntryAccess().getPatternElementParserRuleCall_0()); + } + this_PatternElement_0=rulePatternElement + { + $current = $this_PatternElement_0.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getPatternEntryAccess().getAllPatternEntryParserRuleCall_1()); + } + this_AllPatternEntry_1=ruleAllPatternEntry + { + $current = $this_AllPatternEntry_1.current; + afterParserOrEnumRuleCall(); + } + ) +; + +// Entry rule entryRuleAllPatternEntry +entryRuleAllPatternEntry returns [EObject current=null]: + { newCompositeNode(grammarAccess.getAllPatternEntryRule()); } + iv_ruleAllPatternEntry=ruleAllPatternEntry + { $current=$iv_ruleAllPatternEntry.current; } + EOF; + +// Rule AllPatternEntry +ruleAllPatternEntry returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='package' + { + newLeafNode(otherlv_0, grammarAccess.getAllPatternEntryAccess().getPackageKeyword_0()); + } + ( + ( + { + if ($current==null) { + $current = createModelElement(grammarAccess.getAllPatternEntryRule()); + } + } + { + newCompositeNode(grammarAccess.getAllPatternEntryAccess().getPackagePatternModelCrossReference_1_0()); + } + ruleQualifiedName + { + afterParserOrEnumRuleCall(); + } + ) + ) + ( + otherlv_2='excluding' + { + newLeafNode(otherlv_2, grammarAccess.getAllPatternEntryAccess().getExcludingKeyword_2_0()); + } + otherlv_3='{' + { + newLeafNode(otherlv_3, grammarAccess.getAllPatternEntryAccess().getLeftCurlyBracketKeyword_2_1()); + } + ( + ( + { + newCompositeNode(grammarAccess.getAllPatternEntryAccess().getExclusuionPatternElementParserRuleCall_2_2_0()); + } + lv_exclusuion_4_0=rulePatternElement + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getAllPatternEntryRule()); + } + add( + $current, + "exclusuion", + lv_exclusuion_4_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PatternElement"); + afterParserOrEnumRuleCall(); + } + ) + ) + ( + otherlv_5=',' + { + newLeafNode(otherlv_5, grammarAccess.getAllPatternEntryAccess().getCommaKeyword_2_3_0()); + } + ( + ( + { + newCompositeNode(grammarAccess.getAllPatternEntryAccess().getExclusuionPatternElementParserRuleCall_2_3_1_0()); + } + lv_exclusuion_6_0=rulePatternElement + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getAllPatternEntryRule()); + } + add( + $current, + "exclusuion", + lv_exclusuion_6_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PatternElement"); + afterParserOrEnumRuleCall(); + } + ) + ) + )* + otherlv_7='}' + { + newLeafNode(otherlv_7, grammarAccess.getAllPatternEntryAccess().getRightCurlyBracketKeyword_2_4()); + } + )? + ) +; + +// Entry rule entryRulePatternElement +entryRulePatternElement returns [EObject current=null]: + { newCompositeNode(grammarAccess.getPatternElementRule()); } + iv_rulePatternElement=rulePatternElement + { $current=$iv_rulePatternElement.current; } + EOF; + +// Rule PatternElement +rulePatternElement returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + ( + ( + { + if ($current==null) { + $current = createModelElement(grammarAccess.getPatternElementRule()); + } + } + { + newCompositeNode(grammarAccess.getPatternElementAccess().getPackagePatternModelCrossReference_0_0_0()); + } + ruleQualifiedName + { + afterParserOrEnumRuleCall(); + } + ) + ) + otherlv_1='::' + { + newLeafNode(otherlv_1, grammarAccess.getPatternElementAccess().getColonColonKeyword_0_1()); + } + )? + ( + ( + { + if ($current==null) { + $current = createModelElement(grammarAccess.getPatternElementRule()); + } + } + otherlv_2=RULE_ID + { + newLeafNode(otherlv_2, grammarAccess.getPatternElementAccess().getPatternPatternCrossReference_1_0()); + } + ) + ) + ) +; + +// Entry rule entryRuleGraphPatternDeclaration +entryRuleGraphPatternDeclaration returns [EObject current=null]: + { newCompositeNode(grammarAccess.getGraphPatternDeclarationRule()); } + iv_ruleGraphPatternDeclaration=ruleGraphPatternDeclaration + { $current=$iv_ruleGraphPatternDeclaration.current; } + EOF; + +// Rule GraphPatternDeclaration +ruleGraphPatternDeclaration returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='constraints' + { + newLeafNode(otherlv_0, grammarAccess.getGraphPatternDeclarationAccess().getConstraintsKeyword_0()); + } + ( + ( + lv_name_1_0=RULE_ID + { + newLeafNode(lv_name_1_0, grammarAccess.getGraphPatternDeclarationAccess().getNameIDTerminalRuleCall_1_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getGraphPatternDeclarationRule()); + } + setWithLastConsumed( + $current, + "name", + lv_name_1_0, + "org.eclipse.xtext.common.Terminals.ID"); + } + ) + ) + ( + ( + { + newCompositeNode(grammarAccess.getGraphPatternDeclarationAccess().getSpecificationPatternSpecificationParserRuleCall_2_0()); + } + lv_specification_2_0=rulePatternSpecification + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getGraphPatternDeclarationRule()); + } + set( + $current, + "specification", + lv_specification_2_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PatternSpecification"); + afterParserOrEnumRuleCall(); + } + ) + ) + ) +; + +// Entry rule entryRuleGraphPatternReference +entryRuleGraphPatternReference returns [EObject current=null]: + { newCompositeNode(grammarAccess.getGraphPatternReferenceRule()); } + iv_ruleGraphPatternReference=ruleGraphPatternReference + { $current=$iv_ruleGraphPatternReference.current; } + EOF; + +// Rule GraphPatternReference +ruleGraphPatternReference returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + { + if ($current==null) { + $current = createModelElement(grammarAccess.getGraphPatternReferenceRule()); + } + } + otherlv_0=RULE_ID + { + newLeafNode(otherlv_0, grammarAccess.getGraphPatternReferenceAccess().getReferredGraphPatternDeclarationCrossReference_0()); + } + ) + ) +; + +// Entry rule entryRuleGraphPattern +entryRuleGraphPattern returns [EObject current=null]: + { newCompositeNode(grammarAccess.getGraphPatternRule()); } + iv_ruleGraphPattern=ruleGraphPattern + { $current=$iv_ruleGraphPattern.current; } + EOF; + +// Rule GraphPattern +ruleGraphPattern returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + { + newCompositeNode(grammarAccess.getGraphPatternAccess().getGraphPatternReferenceParserRuleCall_0()); + } + this_GraphPatternReference_0=ruleGraphPatternReference + { + $current = $this_GraphPatternReference_0.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getGraphPatternAccess().getPatternSpecificationParserRuleCall_1()); + } + this_PatternSpecification_1=rulePatternSpecification + { + $current = $this_PatternSpecification_1.current; + afterParserOrEnumRuleCall(); + } + ) +; + +// Entry rule entryRuleObjectiveSpecification +entryRuleObjectiveSpecification returns [EObject current=null]: + { newCompositeNode(grammarAccess.getObjectiveSpecificationRule()); } + iv_ruleObjectiveSpecification=ruleObjectiveSpecification + { $current=$iv_ruleObjectiveSpecification.current; } + EOF; + +// Rule ObjectiveSpecification +ruleObjectiveSpecification returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='{' + { + newLeafNode(otherlv_0, grammarAccess.getObjectiveSpecificationAccess().getLeftCurlyBracketKeyword_0()); + } + ( + ( + { + newCompositeNode(grammarAccess.getObjectiveSpecificationAccess().getEntriesObjectiveEntryParserRuleCall_1_0()); + } + lv_entries_1_0=ruleObjectiveEntry + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getObjectiveSpecificationRule()); + } + add( + $current, + "entries", + lv_entries_1_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ObjectiveEntry"); + afterParserOrEnumRuleCall(); + } + ) + ) + ( + otherlv_2=',' + { + newLeafNode(otherlv_2, grammarAccess.getObjectiveSpecificationAccess().getCommaKeyword_2_0()); + } + ( + ( + { + newCompositeNode(grammarAccess.getObjectiveSpecificationAccess().getEntriesObjectiveEntryParserRuleCall_2_1_0()); + } + lv_entries_3_0=ruleObjectiveEntry + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getObjectiveSpecificationRule()); + } + add( + $current, + "entries", + lv_entries_3_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ObjectiveEntry"); + afterParserOrEnumRuleCall(); + } + ) + ) + )* + otherlv_4='}' + { + newLeafNode(otherlv_4, grammarAccess.getObjectiveSpecificationAccess().getRightCurlyBracketKeyword_3()); + } + ) +; + +// Entry rule entryRuleObjectiveEntry +entryRuleObjectiveEntry returns [EObject current=null]: + { newCompositeNode(grammarAccess.getObjectiveEntryRule()); } + iv_ruleObjectiveEntry=ruleObjectiveEntry + { $current=$iv_ruleObjectiveEntry.current; } + EOF; + +// Rule ObjectiveEntry +ruleObjectiveEntry returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + { + newCompositeNode(grammarAccess.getObjectiveEntryAccess().getOptimizationEntryParserRuleCall_0()); + } + this_OptimizationEntry_0=ruleOptimizationEntry + { + $current = $this_OptimizationEntry_0.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getObjectiveEntryAccess().getThresholdEntryParserRuleCall_1()); + } + this_ThresholdEntry_1=ruleThresholdEntry + { + $current = $this_ThresholdEntry_1.current; + afterParserOrEnumRuleCall(); + } + ) +; + +// Entry rule entryRuleOptimizationEntry +entryRuleOptimizationEntry returns [EObject current=null]: + { newCompositeNode(grammarAccess.getOptimizationEntryRule()); } + iv_ruleOptimizationEntry=ruleOptimizationEntry + { $current=$iv_ruleOptimizationEntry.current; } + EOF; + +// Rule OptimizationEntry +ruleOptimizationEntry returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + ( + { + newCompositeNode(grammarAccess.getOptimizationEntryAccess().getDirectionOptimizationDirectionEnumRuleCall_0_0()); + } + lv_direction_0_0=ruleOptimizationDirection + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getOptimizationEntryRule()); + } + set( + $current, + "direction", + lv_direction_0_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.OptimizationDirection"); + afterParserOrEnumRuleCall(); + } + ) + ) + ( + ( + { + newCompositeNode(grammarAccess.getOptimizationEntryAccess().getFunctionObjectiveFunctionParserRuleCall_1_0()); + } + lv_function_1_0=ruleObjectiveFunction + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getOptimizationEntryRule()); + } + set( + $current, + "function", + lv_function_1_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ObjectiveFunction"); + afterParserOrEnumRuleCall(); + } + ) + ) + ) +; + +// Entry rule entryRuleThresholdEntry +entryRuleThresholdEntry returns [EObject current=null]: + { newCompositeNode(grammarAccess.getThresholdEntryRule()); } + iv_ruleThresholdEntry=ruleThresholdEntry + { $current=$iv_ruleThresholdEntry.current; } + EOF; + +// Rule ThresholdEntry +ruleThresholdEntry returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + ( + { + newCompositeNode(grammarAccess.getThresholdEntryAccess().getFunctionObjectiveFunctionParserRuleCall_0_0()); + } + lv_function_0_0=ruleObjectiveFunction + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getThresholdEntryRule()); + } + set( + $current, + "function", + lv_function_0_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ObjectiveFunction"); + afterParserOrEnumRuleCall(); + } + ) + ) + ( + ( + { + newCompositeNode(grammarAccess.getThresholdEntryAccess().getOperatorComparisonOperatorEnumRuleCall_1_0()); + } + lv_operator_1_0=ruleComparisonOperator + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getThresholdEntryRule()); + } + set( + $current, + "operator", + lv_operator_1_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ComparisonOperator"); + afterParserOrEnumRuleCall(); + } + ) + ) + ( + ( + { + newCompositeNode(grammarAccess.getThresholdEntryAccess().getThresholdREALLiteralParserRuleCall_2_0()); + } + lv_threshold_2_0=ruleREALLiteral + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getThresholdEntryRule()); + } + set( + $current, + "threshold", + lv_threshold_2_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.REALLiteral"); + afterParserOrEnumRuleCall(); + } + ) + ) + ) +; + +// Entry rule entryRuleObjectiveFunction +entryRuleObjectiveFunction returns [EObject current=null]: + { newCompositeNode(grammarAccess.getObjectiveFunctionRule()); } + iv_ruleObjectiveFunction=ruleObjectiveFunction + { $current=$iv_ruleObjectiveFunction.current; } + EOF; + +// Rule ObjectiveFunction +ruleObjectiveFunction returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + { + newCompositeNode(grammarAccess.getObjectiveFunctionAccess().getReliabiltiyFunctionParserRuleCall()); + } + this_ReliabiltiyFunction_0=ruleReliabiltiyFunction + { + $current = $this_ReliabiltiyFunction_0.current; + afterParserOrEnumRuleCall(); + } +; + +// Entry rule entryRuleReliabiltiyFunction +entryRuleReliabiltiyFunction returns [EObject current=null]: + { newCompositeNode(grammarAccess.getReliabiltiyFunctionRule()); } + iv_ruleReliabiltiyFunction=ruleReliabiltiyFunction + { $current=$iv_ruleReliabiltiyFunction.current; } + EOF; + +// Rule ReliabiltiyFunction +ruleReliabiltiyFunction returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='reliability' + { + newLeafNode(otherlv_0, grammarAccess.getReliabiltiyFunctionAccess().getReliabilityKeyword_0()); + } + ( + ( + ( + { + if ($current==null) { + $current = createModelElement(grammarAccess.getReliabiltiyFunctionRule()); + } + } + { + newCompositeNode(grammarAccess.getReliabiltiyFunctionAccess().getPackageCftModelCrossReference_1_0_0()); + } + ruleQualifiedName + { + afterParserOrEnumRuleCall(); + } + ) + ) + otherlv_2='::' + { + newLeafNode(otherlv_2, grammarAccess.getReliabiltiyFunctionAccess().getColonColonKeyword_1_1()); + } + )? + ( + ( + { + if ($current==null) { + $current = createModelElement(grammarAccess.getReliabiltiyFunctionRule()); + } + } + otherlv_3=RULE_ID + { + newLeafNode(otherlv_3, grammarAccess.getReliabiltiyFunctionAccess().getTransformationTransformationDefinitionCrossReference_2_0()); + } + ) + ) + ) +; + +// Entry rule entryRuleObjectiveDeclaration +entryRuleObjectiveDeclaration returns [EObject current=null]: + { newCompositeNode(grammarAccess.getObjectiveDeclarationRule()); } + iv_ruleObjectiveDeclaration=ruleObjectiveDeclaration + { $current=$iv_ruleObjectiveDeclaration.current; } + EOF; + +// Rule ObjectiveDeclaration +ruleObjectiveDeclaration returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='objectives' + { + newLeafNode(otherlv_0, grammarAccess.getObjectiveDeclarationAccess().getObjectivesKeyword_0()); + } + ( + ( + lv_name_1_0=RULE_ID + { + newLeafNode(lv_name_1_0, grammarAccess.getObjectiveDeclarationAccess().getNameIDTerminalRuleCall_1_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getObjectiveDeclarationRule()); + } + setWithLastConsumed( + $current, + "name", + lv_name_1_0, + "org.eclipse.xtext.common.Terminals.ID"); + } + ) + ) + ( + ( + { + newCompositeNode(grammarAccess.getObjectiveDeclarationAccess().getSpecificationObjectiveSpecificationParserRuleCall_2_0()); + } + lv_specification_2_0=ruleObjectiveSpecification + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getObjectiveDeclarationRule()); + } + set( + $current, + "specification", + lv_specification_2_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ObjectiveSpecification"); + afterParserOrEnumRuleCall(); + } + ) + ) + ) +; + +// Entry rule entryRuleObjectiveReference +entryRuleObjectiveReference returns [EObject current=null]: + { newCompositeNode(grammarAccess.getObjectiveReferenceRule()); } + iv_ruleObjectiveReference=ruleObjectiveReference + { $current=$iv_ruleObjectiveReference.current; } + EOF; + +// Rule ObjectiveReference +ruleObjectiveReference returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + { + if ($current==null) { + $current = createModelElement(grammarAccess.getObjectiveReferenceRule()); + } + } + otherlv_0=RULE_ID + { + newLeafNode(otherlv_0, grammarAccess.getObjectiveReferenceAccess().getReferredObjectiveDeclarationCrossReference_0()); + } + ) + ) +; + +// Entry rule entryRuleObjective +entryRuleObjective returns [EObject current=null]: + { newCompositeNode(grammarAccess.getObjectiveRule()); } + iv_ruleObjective=ruleObjective + { $current=$iv_ruleObjective.current; } + EOF; + +// Rule Objective +ruleObjective returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + { + newCompositeNode(grammarAccess.getObjectiveAccess().getObjectiveReferenceParserRuleCall_0()); + } + this_ObjectiveReference_0=ruleObjectiveReference + { + $current = $this_ObjectiveReference_0.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getObjectiveAccess().getObjectiveSpecificationParserRuleCall_1()); + } + this_ObjectiveSpecification_1=ruleObjectiveSpecification + { + $current = $this_ObjectiveSpecification_1.current; + afterParserOrEnumRuleCall(); + } + ) +; + +// Entry rule entryRuleConfigSpecification +entryRuleConfigSpecification returns [EObject current=null]: + { newCompositeNode(grammarAccess.getConfigSpecificationRule()); } + iv_ruleConfigSpecification=ruleConfigSpecification + { $current=$iv_ruleConfigSpecification.current; } + EOF; + +// Rule ConfigSpecification +ruleConfigSpecification returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + { + $current = forceCreateModelElement( + grammarAccess.getConfigSpecificationAccess().getConfigSpecificationAction_0(), + $current); + } + ) + otherlv_1='{' + { + newLeafNode(otherlv_1, grammarAccess.getConfigSpecificationAccess().getLeftCurlyBracketKeyword_1()); + } + ( + ( + ( + { + newCompositeNode(grammarAccess.getConfigSpecificationAccess().getEntriesConfigEntryParserRuleCall_2_0_0()); + } + lv_entries_2_0=ruleConfigEntry + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getConfigSpecificationRule()); + } + add( + $current, + "entries", + lv_entries_2_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ConfigEntry"); + afterParserOrEnumRuleCall(); + } + ) + ) + ( + otherlv_3=',' + { + newLeafNode(otherlv_3, grammarAccess.getConfigSpecificationAccess().getCommaKeyword_2_1_0()); + } + ( + ( + { + newCompositeNode(grammarAccess.getConfigSpecificationAccess().getEntriesConfigEntryParserRuleCall_2_1_1_0()); + } + lv_entries_4_0=ruleConfigEntry + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getConfigSpecificationRule()); + } + add( + $current, + "entries", + lv_entries_4_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ConfigEntry"); + afterParserOrEnumRuleCall(); + } + ) + ) + )* + )? + otherlv_5='}' + { + newLeafNode(otherlv_5, grammarAccess.getConfigSpecificationAccess().getRightCurlyBracketKeyword_3()); + } + ) +; + +// Entry rule entryRuleConfigDeclaration +entryRuleConfigDeclaration returns [EObject current=null]: + { newCompositeNode(grammarAccess.getConfigDeclarationRule()); } + iv_ruleConfigDeclaration=ruleConfigDeclaration + { $current=$iv_ruleConfigDeclaration.current; } + EOF; + +// Rule ConfigDeclaration +ruleConfigDeclaration returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='config' + { + newLeafNode(otherlv_0, grammarAccess.getConfigDeclarationAccess().getConfigKeyword_0()); + } + ( + ( + lv_name_1_0=RULE_ID + { + newLeafNode(lv_name_1_0, grammarAccess.getConfigDeclarationAccess().getNameIDTerminalRuleCall_1_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getConfigDeclarationRule()); + } + setWithLastConsumed( + $current, + "name", + lv_name_1_0, + "org.eclipse.xtext.common.Terminals.ID"); + } + ) + ) + ( + ( + { + newCompositeNode(grammarAccess.getConfigDeclarationAccess().getSpecificationConfigSpecificationParserRuleCall_2_0()); + } + lv_specification_2_0=ruleConfigSpecification + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getConfigDeclarationRule()); + } + set( + $current, + "specification", + lv_specification_2_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ConfigSpecification"); + afterParserOrEnumRuleCall(); + } + ) + ) + ) +; + +// Entry rule entryRuleConfigEntry +entryRuleConfigEntry returns [EObject current=null]: + { newCompositeNode(grammarAccess.getConfigEntryRule()); } + iv_ruleConfigEntry=ruleConfigEntry + { $current=$iv_ruleConfigEntry.current; } + EOF; + +// Rule ConfigEntry +ruleConfigEntry returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + { + newCompositeNode(grammarAccess.getConfigEntryAccess().getDocumentationEntryParserRuleCall_0()); + } + this_DocumentationEntry_0=ruleDocumentationEntry + { + $current = $this_DocumentationEntry_0.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getConfigEntryAccess().getRuntimeEntryParserRuleCall_1()); + } + this_RuntimeEntry_1=ruleRuntimeEntry + { + $current = $this_RuntimeEntry_1.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getConfigEntryAccess().getMemoryEntryParserRuleCall_2()); + } + this_MemoryEntry_2=ruleMemoryEntry + { + $current = $this_MemoryEntry_2.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getConfigEntryAccess().getCustomEntryParserRuleCall_3()); + } + this_CustomEntry_3=ruleCustomEntry + { + $current = $this_CustomEntry_3.current; + afterParserOrEnumRuleCall(); + } + ) +; + +// Entry rule entryRuleDocumentationEntry +entryRuleDocumentationEntry returns [EObject current=null]: + { newCompositeNode(grammarAccess.getDocumentationEntryRule()); } + iv_ruleDocumentationEntry=ruleDocumentationEntry + { $current=$iv_ruleDocumentationEntry.current; } + EOF; + +// Rule DocumentationEntry +ruleDocumentationEntry returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='log-level' + { + newLeafNode(otherlv_0, grammarAccess.getDocumentationEntryAccess().getLogLevelKeyword_0()); + } + otherlv_1='=' + { + newLeafNode(otherlv_1, grammarAccess.getDocumentationEntryAccess().getEqualsSignKeyword_1()); + } + ( + ( + { + newCompositeNode(grammarAccess.getDocumentationEntryAccess().getLevelDocumentLevelSpecificationEnumRuleCall_2_0()); + } + lv_level_2_0=ruleDocumentLevelSpecification + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getDocumentationEntryRule()); + } + set( + $current, + "level", + lv_level_2_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.DocumentLevelSpecification"); + afterParserOrEnumRuleCall(); + } + ) + ) + ) +; + +// Entry rule entryRuleRuntimeEntry +entryRuleRuntimeEntry returns [EObject current=null]: + { newCompositeNode(grammarAccess.getRuntimeEntryRule()); } + iv_ruleRuntimeEntry=ruleRuntimeEntry + { $current=$iv_ruleRuntimeEntry.current; } + EOF; + +// Rule RuntimeEntry +ruleRuntimeEntry returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='runtime' + { + newLeafNode(otherlv_0, grammarAccess.getRuntimeEntryAccess().getRuntimeKeyword_0()); + } + otherlv_1='=' + { + newLeafNode(otherlv_1, grammarAccess.getRuntimeEntryAccess().getEqualsSignKeyword_1()); + } + ( + ( + lv_millisecLimit_2_0=RULE_INT + { + newLeafNode(lv_millisecLimit_2_0, grammarAccess.getRuntimeEntryAccess().getMillisecLimitINTTerminalRuleCall_2_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getRuntimeEntryRule()); + } + setWithLastConsumed( + $current, + "millisecLimit", + lv_millisecLimit_2_0, + "org.eclipse.xtext.common.Terminals.INT"); + } + ) + ) + ) +; + +// Entry rule entryRuleMemoryEntry +entryRuleMemoryEntry returns [EObject current=null]: + { newCompositeNode(grammarAccess.getMemoryEntryRule()); } + iv_ruleMemoryEntry=ruleMemoryEntry + { $current=$iv_ruleMemoryEntry.current; } + EOF; + +// Rule MemoryEntry +ruleMemoryEntry returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='memory' + { + newLeafNode(otherlv_0, grammarAccess.getMemoryEntryAccess().getMemoryKeyword_0()); + } + otherlv_1='=' + { + newLeafNode(otherlv_1, grammarAccess.getMemoryEntryAccess().getEqualsSignKeyword_1()); + } + ( + ( + lv_megabyteLimit_2_0=RULE_INT + { + newLeafNode(lv_megabyteLimit_2_0, grammarAccess.getMemoryEntryAccess().getMegabyteLimitINTTerminalRuleCall_2_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getMemoryEntryRule()); + } + setWithLastConsumed( + $current, + "megabyteLimit", + lv_megabyteLimit_2_0, + "org.eclipse.xtext.common.Terminals.INT"); + } + ) + ) + ) +; + +// Entry rule entryRuleCustomEntry +entryRuleCustomEntry returns [EObject current=null]: + { newCompositeNode(grammarAccess.getCustomEntryRule()); } + iv_ruleCustomEntry=ruleCustomEntry + { $current=$iv_ruleCustomEntry.current; } + EOF; + +// Rule CustomEntry +ruleCustomEntry returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + ( + lv_key_0_0=RULE_STRING + { + newLeafNode(lv_key_0_0, grammarAccess.getCustomEntryAccess().getKeySTRINGTerminalRuleCall_0_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getCustomEntryRule()); + } + setWithLastConsumed( + $current, + "key", + lv_key_0_0, + "org.eclipse.xtext.common.Terminals.STRING"); + } + ) + ) + otherlv_1='=' + { + newLeafNode(otherlv_1, grammarAccess.getCustomEntryAccess().getEqualsSignKeyword_1()); + } + ( + ( + lv_value_2_0=RULE_STRING + { + newLeafNode(lv_value_2_0, grammarAccess.getCustomEntryAccess().getValueSTRINGTerminalRuleCall_2_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getCustomEntryRule()); + } + setWithLastConsumed( + $current, + "value", + lv_value_2_0, + "org.eclipse.xtext.common.Terminals.STRING"); + } + ) + ) + ) +; + +// Entry rule entryRuleConfigReference +entryRuleConfigReference returns [EObject current=null]: + { newCompositeNode(grammarAccess.getConfigReferenceRule()); } + iv_ruleConfigReference=ruleConfigReference + { $current=$iv_ruleConfigReference.current; } + EOF; + +// Rule ConfigReference +ruleConfigReference returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + { + if ($current==null) { + $current = createModelElement(grammarAccess.getConfigReferenceRule()); + } + } + otherlv_0=RULE_ID + { + newLeafNode(otherlv_0, grammarAccess.getConfigReferenceAccess().getConfigConfigDeclarationCrossReference_0()); + } + ) + ) +; + +// Entry rule entryRuleConfig +entryRuleConfig returns [EObject current=null]: + { newCompositeNode(grammarAccess.getConfigRule()); } + iv_ruleConfig=ruleConfig + { $current=$iv_ruleConfig.current; } + EOF; + +// Rule Config +ruleConfig returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + { + newCompositeNode(grammarAccess.getConfigAccess().getConfigSpecificationParserRuleCall_0()); + } + this_ConfigSpecification_0=ruleConfigSpecification + { + $current = $this_ConfigSpecification_0.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getConfigAccess().getConfigReferenceParserRuleCall_1()); + } + this_ConfigReference_1=ruleConfigReference + { + $current = $this_ConfigReference_1.current; + afterParserOrEnumRuleCall(); + } + ) +; + +// Entry rule entryRuleScopeSpecification +entryRuleScopeSpecification returns [EObject current=null]: + { newCompositeNode(grammarAccess.getScopeSpecificationRule()); } + iv_ruleScopeSpecification=ruleScopeSpecification + { $current=$iv_ruleScopeSpecification.current; } + EOF; + +// Rule ScopeSpecification +ruleScopeSpecification returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + { + $current = forceCreateModelElement( + grammarAccess.getScopeSpecificationAccess().getScopeSpecificationAction_0(), + $current); + } + ) + otherlv_1='{' + { + newLeafNode(otherlv_1, grammarAccess.getScopeSpecificationAccess().getLeftCurlyBracketKeyword_1()); + } + ( + ( + ( + { + newCompositeNode(grammarAccess.getScopeSpecificationAccess().getScopesTypeScopeParserRuleCall_2_0_0()); + } + lv_scopes_2_0=ruleTypeScope + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getScopeSpecificationRule()); + } + add( + $current, + "scopes", + lv_scopes_2_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.TypeScope"); + afterParserOrEnumRuleCall(); + } + ) + ) + ( + otherlv_3=',' + { + newLeafNode(otherlv_3, grammarAccess.getScopeSpecificationAccess().getCommaKeyword_2_1_0()); + } + ( + ( + { + newCompositeNode(grammarAccess.getScopeSpecificationAccess().getScopesTypeScopeParserRuleCall_2_1_1_0()); + } + lv_scopes_4_0=ruleTypeScope + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getScopeSpecificationRule()); + } + add( + $current, + "scopes", + lv_scopes_4_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.TypeScope"); + afterParserOrEnumRuleCall(); + } + ) + ) + )* + )? + otherlv_5='}' + { + newLeafNode(otherlv_5, grammarAccess.getScopeSpecificationAccess().getRightCurlyBracketKeyword_3()); + } + ) +; + +// Entry rule entryRuleTypeScope +entryRuleTypeScope returns [EObject current=null]: + { newCompositeNode(grammarAccess.getTypeScopeRule()); } + iv_ruleTypeScope=ruleTypeScope + { $current=$iv_ruleTypeScope.current; } + EOF; + +// Rule TypeScope +ruleTypeScope returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + { + newCompositeNode(grammarAccess.getTypeScopeAccess().getClassTypeScopeParserRuleCall_0()); + } + this_ClassTypeScope_0=ruleClassTypeScope + { + $current = $this_ClassTypeScope_0.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getTypeScopeAccess().getObjectTypeScopeParserRuleCall_1()); + } + this_ObjectTypeScope_1=ruleObjectTypeScope + { + $current = $this_ObjectTypeScope_1.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getTypeScopeAccess().getIntegerTypeScopeParserRuleCall_2()); + } + this_IntegerTypeScope_2=ruleIntegerTypeScope + { + $current = $this_IntegerTypeScope_2.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getTypeScopeAccess().getRealTypeScopeParserRuleCall_3()); + } + this_RealTypeScope_3=ruleRealTypeScope + { + $current = $this_RealTypeScope_3.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getTypeScopeAccess().getStringTypeScopeParserRuleCall_4()); + } + this_StringTypeScope_4=ruleStringTypeScope + { + $current = $this_StringTypeScope_4.current; + afterParserOrEnumRuleCall(); + } + ) +; + +// Entry rule entryRuleClassTypeScope +entryRuleClassTypeScope returns [EObject current=null]: + { newCompositeNode(grammarAccess.getClassTypeScopeRule()); } + iv_ruleClassTypeScope=ruleClassTypeScope + { $current=$iv_ruleClassTypeScope.current; } + EOF; + +// Rule ClassTypeScope +ruleClassTypeScope returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='#' + { + newLeafNode(otherlv_0, grammarAccess.getClassTypeScopeAccess().getNumberSignKeyword_0()); + } + ( + ( + { + newCompositeNode(grammarAccess.getClassTypeScopeAccess().getTypeClassReferenceParserRuleCall_1_0()); + } + lv_type_1_0=ruleClassReference + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getClassTypeScopeRule()); + } + set( + $current, + "type", + lv_type_1_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ClassReference"); + afterParserOrEnumRuleCall(); + } + ) + ) + ( + ( + ( + lv_setsNew_2_0='+=' + { + newLeafNode(lv_setsNew_2_0, grammarAccess.getClassTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getClassTypeScopeRule()); + } + setWithLastConsumed($current, "setsNew", true, "+="); + } + ) + ) + | + ( + ( + lv_setsSum_3_0='=' + { + newLeafNode(lv_setsSum_3_0, grammarAccess.getClassTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getClassTypeScopeRule()); + } + setWithLastConsumed($current, "setsSum", true, "="); + } + ) + ) + ) + ( + ( + ( + { + newCompositeNode(grammarAccess.getClassTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); + } + lv_number_4_0=ruleExactNumber + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getClassTypeScopeRule()); + } + set( + $current, + "number", + lv_number_4_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); + afterParserOrEnumRuleCall(); + } + ) + ) + | + ( + ( + { + newCompositeNode(grammarAccess.getClassTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); + } + lv_number_5_0=ruleIntervallNumber + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getClassTypeScopeRule()); + } + set( + $current, + "number", + lv_number_5_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); + afterParserOrEnumRuleCall(); + } + ) + ) + ) + ) +; + +// Entry rule entryRuleObjectTypeScope +entryRuleObjectTypeScope returns [EObject current=null]: + { newCompositeNode(grammarAccess.getObjectTypeScopeRule()); } + iv_ruleObjectTypeScope=ruleObjectTypeScope + { $current=$iv_ruleObjectTypeScope.current; } + EOF; + +// Rule ObjectTypeScope +ruleObjectTypeScope returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='#' + { + newLeafNode(otherlv_0, grammarAccess.getObjectTypeScopeAccess().getNumberSignKeyword_0()); + } + ( + ( + { + newCompositeNode(grammarAccess.getObjectTypeScopeAccess().getTypeObjectReferenceParserRuleCall_1_0()); + } + lv_type_1_0=ruleObjectReference + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getObjectTypeScopeRule()); + } + set( + $current, + "type", + lv_type_1_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ObjectReference"); + afterParserOrEnumRuleCall(); + } + ) + ) + ( + ( + ( + lv_setsNew_2_0='+=' + { + newLeafNode(lv_setsNew_2_0, grammarAccess.getObjectTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getObjectTypeScopeRule()); + } + setWithLastConsumed($current, "setsNew", true, "+="); + } + ) + ) + | + ( + ( + lv_setsSum_3_0='=' + { + newLeafNode(lv_setsSum_3_0, grammarAccess.getObjectTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getObjectTypeScopeRule()); + } + setWithLastConsumed($current, "setsSum", true, "="); + } + ) + ) + ) + ( + ( + ( + { + newCompositeNode(grammarAccess.getObjectTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); + } + lv_number_4_0=ruleExactNumber + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getObjectTypeScopeRule()); + } + set( + $current, + "number", + lv_number_4_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); + afterParserOrEnumRuleCall(); + } + ) + ) + | + ( + ( + { + newCompositeNode(grammarAccess.getObjectTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); + } + lv_number_5_0=ruleIntervallNumber + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getObjectTypeScopeRule()); + } + set( + $current, + "number", + lv_number_5_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); + afterParserOrEnumRuleCall(); + } + ) + ) + ) + ) +; + +// Entry rule entryRuleIntegerTypeScope +entryRuleIntegerTypeScope returns [EObject current=null]: + { newCompositeNode(grammarAccess.getIntegerTypeScopeRule()); } + iv_ruleIntegerTypeScope=ruleIntegerTypeScope + { $current=$iv_ruleIntegerTypeScope.current; } + EOF; + +// Rule IntegerTypeScope +ruleIntegerTypeScope returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='#' + { + newLeafNode(otherlv_0, grammarAccess.getIntegerTypeScopeAccess().getNumberSignKeyword_0()); + } + ( + ( + { + newCompositeNode(grammarAccess.getIntegerTypeScopeAccess().getTypeIntegerReferenceParserRuleCall_1_0()); + } + lv_type_1_0=ruleIntegerReference + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getIntegerTypeScopeRule()); + } + set( + $current, + "type", + lv_type_1_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntegerReference"); + afterParserOrEnumRuleCall(); + } + ) + ) + ( + ( + ( + lv_setsNew_2_0='+=' + { + newLeafNode(lv_setsNew_2_0, grammarAccess.getIntegerTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getIntegerTypeScopeRule()); + } + setWithLastConsumed($current, "setsNew", true, "+="); + } + ) + ) + | + ( + ( + lv_setsSum_3_0='=' + { + newLeafNode(lv_setsSum_3_0, grammarAccess.getIntegerTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getIntegerTypeScopeRule()); + } + setWithLastConsumed($current, "setsSum", true, "="); + } + ) + ) + ) + ( + ( + ( + { + newCompositeNode(grammarAccess.getIntegerTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); + } + lv_number_4_0=ruleExactNumber + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getIntegerTypeScopeRule()); + } + set( + $current, + "number", + lv_number_4_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); + afterParserOrEnumRuleCall(); + } + ) + ) + | + ( + ( + { + newCompositeNode(grammarAccess.getIntegerTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); + } + lv_number_5_0=ruleIntervallNumber + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getIntegerTypeScopeRule()); + } + set( + $current, + "number", + lv_number_5_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); + afterParserOrEnumRuleCall(); + } + ) + ) + | + ( + ( + { + newCompositeNode(grammarAccess.getIntegerTypeScopeAccess().getNumberIntEnumberationParserRuleCall_3_2_0()); + } + lv_number_6_0=ruleIntEnumberation + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getIntegerTypeScopeRule()); + } + set( + $current, + "number", + lv_number_6_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntEnumberation"); + afterParserOrEnumRuleCall(); + } + ) + ) + ) + ) +; + +// Entry rule entryRuleRealTypeScope +entryRuleRealTypeScope returns [EObject current=null]: + { newCompositeNode(grammarAccess.getRealTypeScopeRule()); } + iv_ruleRealTypeScope=ruleRealTypeScope + { $current=$iv_ruleRealTypeScope.current; } + EOF; + +// Rule RealTypeScope +ruleRealTypeScope returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='#' + { + newLeafNode(otherlv_0, grammarAccess.getRealTypeScopeAccess().getNumberSignKeyword_0()); + } + ( + ( + { + newCompositeNode(grammarAccess.getRealTypeScopeAccess().getTypeRealReferenceParserRuleCall_1_0()); + } + lv_type_1_0=ruleRealReference + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getRealTypeScopeRule()); + } + set( + $current, + "type", + lv_type_1_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.RealReference"); + afterParserOrEnumRuleCall(); + } + ) + ) + ( + ( + ( + lv_setsNew_2_0='+=' + { + newLeafNode(lv_setsNew_2_0, grammarAccess.getRealTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getRealTypeScopeRule()); + } + setWithLastConsumed($current, "setsNew", true, "+="); + } + ) + ) + | + ( + ( + lv_setsSum_3_0='=' + { + newLeafNode(lv_setsSum_3_0, grammarAccess.getRealTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getRealTypeScopeRule()); + } + setWithLastConsumed($current, "setsSum", true, "="); + } + ) + ) + ) + ( + ( + ( + { + newCompositeNode(grammarAccess.getRealTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); + } + lv_number_4_0=ruleExactNumber + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getRealTypeScopeRule()); + } + set( + $current, + "number", + lv_number_4_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); + afterParserOrEnumRuleCall(); + } + ) + ) + | + ( + ( + { + newCompositeNode(grammarAccess.getRealTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); + } + lv_number_5_0=ruleIntervallNumber + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getRealTypeScopeRule()); + } + set( + $current, + "number", + lv_number_5_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); + afterParserOrEnumRuleCall(); + } + ) + ) + | + ( + ( + { + newCompositeNode(grammarAccess.getRealTypeScopeAccess().getNumberRealEnumerationParserRuleCall_3_2_0()); + } + lv_number_6_0=ruleRealEnumeration + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getRealTypeScopeRule()); + } + set( + $current, + "number", + lv_number_6_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.RealEnumeration"); + afterParserOrEnumRuleCall(); + } + ) + ) + ) + ) +; + +// Entry rule entryRuleStringTypeScope +entryRuleStringTypeScope returns [EObject current=null]: + { newCompositeNode(grammarAccess.getStringTypeScopeRule()); } + iv_ruleStringTypeScope=ruleStringTypeScope + { $current=$iv_ruleStringTypeScope.current; } + EOF; + +// Rule StringTypeScope +ruleStringTypeScope returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='#' + { + newLeafNode(otherlv_0, grammarAccess.getStringTypeScopeAccess().getNumberSignKeyword_0()); + } + ( + ( + { + newCompositeNode(grammarAccess.getStringTypeScopeAccess().getTypeStringReferenceParserRuleCall_1_0()); + } + lv_type_1_0=ruleStringReference + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getStringTypeScopeRule()); + } + set( + $current, + "type", + lv_type_1_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.StringReference"); + afterParserOrEnumRuleCall(); + } + ) + ) + ( + ( + ( + lv_setsNew_2_0='+=' + { + newLeafNode(lv_setsNew_2_0, grammarAccess.getStringTypeScopeAccess().getSetsNewPlusSignEqualsSignKeyword_2_0_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getStringTypeScopeRule()); + } + setWithLastConsumed($current, "setsNew", true, "+="); + } + ) + ) + | + ( + ( + lv_setsSum_3_0='=' + { + newLeafNode(lv_setsSum_3_0, grammarAccess.getStringTypeScopeAccess().getSetsSumEqualsSignKeyword_2_1_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getStringTypeScopeRule()); + } + setWithLastConsumed($current, "setsSum", true, "="); + } + ) + ) + ) + ( + ( + ( + { + newCompositeNode(grammarAccess.getStringTypeScopeAccess().getNumberExactNumberParserRuleCall_3_0_0()); + } + lv_number_4_0=ruleExactNumber + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getStringTypeScopeRule()); + } + set( + $current, + "number", + lv_number_4_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ExactNumber"); + afterParserOrEnumRuleCall(); + } + ) + ) + | + ( + ( + { + newCompositeNode(grammarAccess.getStringTypeScopeAccess().getNumberIntervallNumberParserRuleCall_3_1_0()); + } + lv_number_5_0=ruleIntervallNumber + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getStringTypeScopeRule()); + } + set( + $current, + "number", + lv_number_5_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.IntervallNumber"); + afterParserOrEnumRuleCall(); + } + ) + ) + | + ( + ( + { + newCompositeNode(grammarAccess.getStringTypeScopeAccess().getNumberStringEnumerationParserRuleCall_3_2_0()); + } + lv_number_6_0=ruleStringEnumeration + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getStringTypeScopeRule()); + } + set( + $current, + "number", + lv_number_6_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.StringEnumeration"); + afterParserOrEnumRuleCall(); + } + ) + ) + ) + ) +; + +// Entry rule entryRuleClassReference +entryRuleClassReference returns [EObject current=null]: + { newCompositeNode(grammarAccess.getClassReferenceRule()); } + iv_ruleClassReference=ruleClassReference + { $current=$iv_ruleClassReference.current; } + EOF; + +// Rule ClassReference +ruleClassReference returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='<' + { + newLeafNode(otherlv_0, grammarAccess.getClassReferenceAccess().getLessThanSignKeyword_0()); + } + ( + ( + { + newCompositeNode(grammarAccess.getClassReferenceAccess().getElementMetamodelElementParserRuleCall_1_0()); + } + lv_element_1_0=ruleMetamodelElement + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getClassReferenceRule()); + } + set( + $current, + "element", + lv_element_1_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelElement"); + afterParserOrEnumRuleCall(); + } + ) + ) + otherlv_2='>' + { + newLeafNode(otherlv_2, grammarAccess.getClassReferenceAccess().getGreaterThanSignKeyword_2()); + } + ) +; + +// Entry rule entryRuleObjectReference +entryRuleObjectReference returns [EObject current=null]: + { newCompositeNode(grammarAccess.getObjectReferenceRule()); } + iv_ruleObjectReference=ruleObjectReference + { $current=$iv_ruleObjectReference.current; } + EOF; + +// Rule ObjectReference +ruleObjectReference returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + { + $current = forceCreateModelElement( + grammarAccess.getObjectReferenceAccess().getObjectReferenceAction_0(), + $current); + } + ) + otherlv_1='node' + { + newLeafNode(otherlv_1, grammarAccess.getObjectReferenceAccess().getNodeKeyword_1()); + } + ) +; + +// Entry rule entryRuleIntegerReference +entryRuleIntegerReference returns [EObject current=null]: + { newCompositeNode(grammarAccess.getIntegerReferenceRule()); } + iv_ruleIntegerReference=ruleIntegerReference + { $current=$iv_ruleIntegerReference.current; } + EOF; + +// Rule IntegerReference +ruleIntegerReference returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + { + $current = forceCreateModelElement( + grammarAccess.getIntegerReferenceAccess().getIntegerScopeAction_0(), + $current); + } + ) + otherlv_1='int' + { + newLeafNode(otherlv_1, grammarAccess.getIntegerReferenceAccess().getIntKeyword_1()); + } + ) +; + +// Entry rule entryRuleRealReference +entryRuleRealReference returns [EObject current=null]: + { newCompositeNode(grammarAccess.getRealReferenceRule()); } + iv_ruleRealReference=ruleRealReference + { $current=$iv_ruleRealReference.current; } + EOF; + +// Rule RealReference +ruleRealReference returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + { + $current = forceCreateModelElement( + grammarAccess.getRealReferenceAccess().getRealScopeAction_0(), + $current); + } + ) + otherlv_1='real' + { + newLeafNode(otherlv_1, grammarAccess.getRealReferenceAccess().getRealKeyword_1()); + } + ) +; + +// Entry rule entryRuleStringReference +entryRuleStringReference returns [EObject current=null]: + { newCompositeNode(grammarAccess.getStringReferenceRule()); } + iv_ruleStringReference=ruleStringReference + { $current=$iv_ruleStringReference.current; } + EOF; + +// Rule StringReference +ruleStringReference returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + { + $current = forceCreateModelElement( + grammarAccess.getStringReferenceAccess().getStringScopeAction_0(), + $current); + } + ) + otherlv_1='string' + { + newLeafNode(otherlv_1, grammarAccess.getStringReferenceAccess().getStringKeyword_1()); + } + ) +; + +// Entry rule entryRuleExactNumber +entryRuleExactNumber returns [EObject current=null]: + { newCompositeNode(grammarAccess.getExactNumberRule()); } + iv_ruleExactNumber=ruleExactNumber + { $current=$iv_ruleExactNumber.current; } + EOF; + +// Rule ExactNumber +ruleExactNumber returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + ( + lv_exactNumber_0_0=RULE_INT + { + newLeafNode(lv_exactNumber_0_0, grammarAccess.getExactNumberAccess().getExactNumberINTTerminalRuleCall_0_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getExactNumberRule()); + } + setWithLastConsumed( + $current, + "exactNumber", + lv_exactNumber_0_0, + "org.eclipse.xtext.common.Terminals.INT"); + } + ) + ) + | + ( + ( + lv_exactUnlimited_1_0='*' + { + newLeafNode(lv_exactUnlimited_1_0, grammarAccess.getExactNumberAccess().getExactUnlimitedAsteriskKeyword_1_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getExactNumberRule()); + } + setWithLastConsumed($current, "exactUnlimited", true, "*"); + } + ) + ) + ) +; + +// Entry rule entryRuleIntervallNumber +entryRuleIntervallNumber returns [EObject current=null]: + { newCompositeNode(grammarAccess.getIntervallNumberRule()); } + iv_ruleIntervallNumber=ruleIntervallNumber + { $current=$iv_ruleIntervallNumber.current; } + EOF; + +// Rule IntervallNumber +ruleIntervallNumber returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + ( + lv_min_0_0=RULE_INT + { + newLeafNode(lv_min_0_0, grammarAccess.getIntervallNumberAccess().getMinINTTerminalRuleCall_0_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getIntervallNumberRule()); + } + setWithLastConsumed( + $current, + "min", + lv_min_0_0, + "org.eclipse.xtext.common.Terminals.INT"); + } + ) + ) + otherlv_1='..' + { + newLeafNode(otherlv_1, grammarAccess.getIntervallNumberAccess().getFullStopFullStopKeyword_1()); + } + ( + ( + ( + lv_maxNumber_2_0=RULE_INT + { + newLeafNode(lv_maxNumber_2_0, grammarAccess.getIntervallNumberAccess().getMaxNumberINTTerminalRuleCall_2_0_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getIntervallNumberRule()); + } + setWithLastConsumed( + $current, + "maxNumber", + lv_maxNumber_2_0, + "org.eclipse.xtext.common.Terminals.INT"); + } + ) + ) + | + ( + ( + lv_maxUnlimited_3_0='*' + { + newLeafNode(lv_maxUnlimited_3_0, grammarAccess.getIntervallNumberAccess().getMaxUnlimitedAsteriskKeyword_2_1_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getIntervallNumberRule()); + } + setWithLastConsumed($current, "maxUnlimited", true, "*"); + } + ) + ) + ) + ) +; + +// Entry rule entryRuleIntEnumberation +entryRuleIntEnumberation returns [EObject current=null]: + { newCompositeNode(grammarAccess.getIntEnumberationRule()); } + iv_ruleIntEnumberation=ruleIntEnumberation + { $current=$iv_ruleIntEnumberation.current; } + EOF; + +// Rule IntEnumberation +ruleIntEnumberation returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + { + $current = forceCreateModelElement( + grammarAccess.getIntEnumberationAccess().getIntEnumberationAction_0(), + $current); + } + ) + otherlv_1='{' + { + newLeafNode(otherlv_1, grammarAccess.getIntEnumberationAccess().getLeftCurlyBracketKeyword_1()); + } + ( + ( + ( + { + newCompositeNode(grammarAccess.getIntEnumberationAccess().getEntryINTLiteralParserRuleCall_2_0_0()); + } + lv_entry_2_0=ruleINTLiteral + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getIntEnumberationRule()); + } + add( + $current, + "entry", + lv_entry_2_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.INTLiteral"); + afterParserOrEnumRuleCall(); + } + ) + ) + ( + otherlv_3=',' + { + newLeafNode(otherlv_3, grammarAccess.getIntEnumberationAccess().getCommaKeyword_2_1_0()); + } + ( + ( + { + newCompositeNode(grammarAccess.getIntEnumberationAccess().getEntryINTLiteralParserRuleCall_2_1_1_0()); + } + lv_entry_4_0=ruleINTLiteral + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getIntEnumberationRule()); + } + add( + $current, + "entry", + lv_entry_4_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.INTLiteral"); + afterParserOrEnumRuleCall(); + } + ) + ) + )* + )? + otherlv_5='}' + { + newLeafNode(otherlv_5, grammarAccess.getIntEnumberationAccess().getRightCurlyBracketKeyword_3()); + } + ) +; + +// Entry rule entryRuleRealEnumeration +entryRuleRealEnumeration returns [EObject current=null]: + { newCompositeNode(grammarAccess.getRealEnumerationRule()); } + iv_ruleRealEnumeration=ruleRealEnumeration + { $current=$iv_ruleRealEnumeration.current; } + EOF; + +// Rule RealEnumeration +ruleRealEnumeration returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + { + $current = forceCreateModelElement( + grammarAccess.getRealEnumerationAccess().getRealEnumerationAction_0(), + $current); + } + ) + otherlv_1='{' + { + newLeafNode(otherlv_1, grammarAccess.getRealEnumerationAccess().getLeftCurlyBracketKeyword_1()); + } + ( + ( + ( + { + newCompositeNode(grammarAccess.getRealEnumerationAccess().getEntryREALLiteralParserRuleCall_2_0_0()); + } + lv_entry_2_0=ruleREALLiteral + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getRealEnumerationRule()); + } + add( + $current, + "entry", + lv_entry_2_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.REALLiteral"); + afterParserOrEnumRuleCall(); + } + ) + ) + ( + otherlv_3=',' + { + newLeafNode(otherlv_3, grammarAccess.getRealEnumerationAccess().getCommaKeyword_2_1_0()); + } + ( + ( + { + newCompositeNode(grammarAccess.getRealEnumerationAccess().getEntryREALLiteralParserRuleCall_2_1_1_0()); + } + lv_entry_4_0=ruleREALLiteral + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getRealEnumerationRule()); + } + add( + $current, + "entry", + lv_entry_4_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.REALLiteral"); + afterParserOrEnumRuleCall(); + } + ) + ) + )* + )? + otherlv_5='}' + { + newLeafNode(otherlv_5, grammarAccess.getRealEnumerationAccess().getRightCurlyBracketKeyword_3()); + } + ) +; + +// Entry rule entryRuleStringEnumeration +entryRuleStringEnumeration returns [EObject current=null]: + { newCompositeNode(grammarAccess.getStringEnumerationRule()); } + iv_ruleStringEnumeration=ruleStringEnumeration + { $current=$iv_ruleStringEnumeration.current; } + EOF; + +// Rule StringEnumeration +ruleStringEnumeration returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + { + $current = forceCreateModelElement( + grammarAccess.getStringEnumerationAccess().getStringEnumerationAction_0(), + $current); + } + ) + otherlv_1='{' + { + newLeafNode(otherlv_1, grammarAccess.getStringEnumerationAccess().getLeftCurlyBracketKeyword_1()); + } + ( + ( + ( + lv_entry_2_0=RULE_STRING + { + newLeafNode(lv_entry_2_0, grammarAccess.getStringEnumerationAccess().getEntrySTRINGTerminalRuleCall_2_0_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getStringEnumerationRule()); + } + addWithLastConsumed( + $current, + "entry", + lv_entry_2_0, + "org.eclipse.xtext.common.Terminals.STRING"); + } + ) + ) + ( + otherlv_3=',' + { + newLeafNode(otherlv_3, grammarAccess.getStringEnumerationAccess().getCommaKeyword_2_1_0()); + } + ( + ( + lv_entry_4_0=RULE_STRING + { + newLeafNode(lv_entry_4_0, grammarAccess.getStringEnumerationAccess().getEntrySTRINGTerminalRuleCall_2_1_1_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getStringEnumerationRule()); + } + addWithLastConsumed( + $current, + "entry", + lv_entry_4_0, + "org.eclipse.xtext.common.Terminals.STRING"); + } + ) + ) + )* + )? + otherlv_5='}' + { + newLeafNode(otherlv_5, grammarAccess.getStringEnumerationAccess().getRightCurlyBracketKeyword_3()); + } + ) +; + +// Entry rule entryRuleScopeDeclaration +entryRuleScopeDeclaration returns [EObject current=null]: + { newCompositeNode(grammarAccess.getScopeDeclarationRule()); } + iv_ruleScopeDeclaration=ruleScopeDeclaration + { $current=$iv_ruleScopeDeclaration.current; } + EOF; + +// Rule ScopeDeclaration +ruleScopeDeclaration returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='scope' + { + newLeafNode(otherlv_0, grammarAccess.getScopeDeclarationAccess().getScopeKeyword_0()); + } + ( + ( + lv_name_1_0=RULE_ID + { + newLeafNode(lv_name_1_0, grammarAccess.getScopeDeclarationAccess().getNameIDTerminalRuleCall_1_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getScopeDeclarationRule()); + } + setWithLastConsumed( + $current, + "name", + lv_name_1_0, + "org.eclipse.xtext.common.Terminals.ID"); + } + ) + ) + ( + ( + { + newCompositeNode(grammarAccess.getScopeDeclarationAccess().getSpecificationScopeSpecificationParserRuleCall_2_0()); + } + lv_specification_2_0=ruleScopeSpecification + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getScopeDeclarationRule()); + } + set( + $current, + "specification", + lv_specification_2_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ScopeSpecification"); + afterParserOrEnumRuleCall(); + } + ) + ) + ) +; + +// Entry rule entryRuleScopeReference +entryRuleScopeReference returns [EObject current=null]: + { newCompositeNode(grammarAccess.getScopeReferenceRule()); } + iv_ruleScopeReference=ruleScopeReference + { $current=$iv_ruleScopeReference.current; } + EOF; + +// Rule ScopeReference +ruleScopeReference returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + { + if ($current==null) { + $current = createModelElement(grammarAccess.getScopeReferenceRule()); + } + } + otherlv_0=RULE_ID + { + newLeafNode(otherlv_0, grammarAccess.getScopeReferenceAccess().getReferredScopeDeclarationCrossReference_0()); + } + ) + ) +; + +// Entry rule entryRuleScope +entryRuleScope returns [EObject current=null]: + { newCompositeNode(grammarAccess.getScopeRule()); } + iv_ruleScope=ruleScope + { $current=$iv_ruleScope.current; } + EOF; + +// Rule Scope +ruleScope returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + { + newCompositeNode(grammarAccess.getScopeAccess().getScopeSpecificationParserRuleCall_0()); + } + this_ScopeSpecification_0=ruleScopeSpecification + { + $current = $this_ScopeSpecification_0.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getScopeAccess().getScopeReferenceParserRuleCall_1()); + } + this_ScopeReference_1=ruleScopeReference + { + $current = $this_ScopeReference_1.current; + afterParserOrEnumRuleCall(); + } + ) +; + +// Entry rule entryRuleTask +entryRuleTask returns [EObject current=null]: + { newCompositeNode(grammarAccess.getTaskRule()); } + iv_ruleTask=ruleTask + { $current=$iv_ruleTask.current; } + EOF; + +// Rule Task +ruleTask returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + { + newCompositeNode(grammarAccess.getTaskAccess().getGenerationTaskParserRuleCall()); + } + this_GenerationTask_0=ruleGenerationTask + { + $current = $this_GenerationTask_0.current; + afterParserOrEnumRuleCall(); + } +; + +// Entry rule entryRuleGenerationTask +entryRuleGenerationTask returns [EObject current=null]: + { newCompositeNode(grammarAccess.getGenerationTaskRule()); } + iv_ruleGenerationTask=ruleGenerationTask + { $current=$iv_ruleGenerationTask.current; } + EOF; + +// Rule GenerationTask +ruleGenerationTask returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='generate' + { + newLeafNode(otherlv_0, grammarAccess.getGenerationTaskAccess().getGenerateKeyword_0()); + } + ( + { + $current = forceCreateModelElement( + grammarAccess.getGenerationTaskAccess().getGenerationTaskAction_1(), + $current); + } + ) + otherlv_2='{' + { + newLeafNode(otherlv_2, grammarAccess.getGenerationTaskAccess().getLeftCurlyBracketKeyword_2()); + } + ( + ( + { + getUnorderedGroupHelper().enter(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); + } + ( + ( + ( + {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 0)}?=>( + { + getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 0); + } + ({true}?=>(otherlv_4='metamodel' + { + newLeafNode(otherlv_4, grammarAccess.getGenerationTaskAccess().getMetamodelKeyword_3_0_0()); + } + otherlv_5='=' + { + newLeafNode(otherlv_5, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_0_1()); + } + ( + ( + { + newCompositeNode(grammarAccess.getGenerationTaskAccess().getMetamodelMetamodelParserRuleCall_3_0_2_0()); + } + lv_metamodel_6_0=ruleMetamodel + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); + } + set( + $current, + "metamodel", + lv_metamodel_6_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Metamodel"); + afterParserOrEnumRuleCall(); + } + ) + ) + )) + { + getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); + } + ) + )| + ( + {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 1)}?=>( + { + getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 1); + } + ({true}?=>(otherlv_7='partial-model' + { + newLeafNode(otherlv_7, grammarAccess.getGenerationTaskAccess().getPartialModelKeyword_3_1_0()); + } + otherlv_8='=' + { + newLeafNode(otherlv_8, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_1_1()); + } + ( + ( + { + newCompositeNode(grammarAccess.getGenerationTaskAccess().getPartialModelPartialModelParserRuleCall_3_1_2_0()); + } + lv_partialModel_9_0=rulePartialModel + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); + } + set( + $current, + "partialModel", + lv_partialModel_9_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.PartialModel"); + afterParserOrEnumRuleCall(); + } + ) + ) + )) + { + getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); + } + ) + )| + ( + {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 2)}?=>( + { + getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 2); + } + ({true}?=>(otherlv_10='constraints' + { + newLeafNode(otherlv_10, grammarAccess.getGenerationTaskAccess().getConstraintsKeyword_3_2_0()); + } + otherlv_11='=' + { + newLeafNode(otherlv_11, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_2_1()); + } + ( + ( + { + newCompositeNode(grammarAccess.getGenerationTaskAccess().getPatternsGraphPatternParserRuleCall_3_2_2_0()); + } + lv_patterns_12_0=ruleGraphPattern + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); + } + set( + $current, + "patterns", + lv_patterns_12_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.GraphPattern"); + afterParserOrEnumRuleCall(); + } + ) + ) + )) + { + getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); + } + ) + )| + ( + {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 3)}?=>( + { + getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 3); + } + ({true}?=>(otherlv_13='objectives' + { + newLeafNode(otherlv_13, grammarAccess.getGenerationTaskAccess().getObjectivesKeyword_3_3_0()); + } + otherlv_14='=' + { + newLeafNode(otherlv_14, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_3_1()); + } + ( + ( + { + newCompositeNode(grammarAccess.getGenerationTaskAccess().getObjectivesObjectiveParserRuleCall_3_3_2_0()); + } + lv_objectives_15_0=ruleObjective + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); + } + set( + $current, + "objectives", + lv_objectives_15_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Objective"); + afterParserOrEnumRuleCall(); + } + ) + ) + )) + { + getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); + } + ) + )| + ( + {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 4)}?=>( + { + getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 4); + } + ({true}?=>(otherlv_16='scope' + { + newLeafNode(otherlv_16, grammarAccess.getGenerationTaskAccess().getScopeKeyword_3_4_0()); + } + otherlv_17='=' + { + newLeafNode(otherlv_17, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_4_1()); + } + ( + ( + { + newCompositeNode(grammarAccess.getGenerationTaskAccess().getScopeScopeParserRuleCall_3_4_2_0()); + } + lv_scope_18_0=ruleScope + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); + } + set( + $current, + "scope", + lv_scope_18_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Scope"); + afterParserOrEnumRuleCall(); + } + ) + ) + )) + { + getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); + } + ) + )| + ( + {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 5)}?=>( + { + getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 5); + } + ({true}?=>(( + ( + lv_numberSpecified_19_0='number' + { + newLeafNode(lv_numberSpecified_19_0, grammarAccess.getGenerationTaskAccess().getNumberSpecifiedNumberKeyword_3_5_0_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getGenerationTaskRule()); + } + setWithLastConsumed($current, "numberSpecified", true, "number"); + } + ) + ) + otherlv_20='=' + { + newLeafNode(otherlv_20, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_5_1()); + } + ( + ( + lv_number_21_0=RULE_INT + { + newLeafNode(lv_number_21_0, grammarAccess.getGenerationTaskAccess().getNumberINTTerminalRuleCall_3_5_2_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getGenerationTaskRule()); + } + setWithLastConsumed( + $current, + "number", + lv_number_21_0, + "org.eclipse.xtext.common.Terminals.INT"); + } + ) + ) + )) + { + getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); + } + ) + )| + ( + {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 6)}?=>( + { + getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 6); + } + ({true}?=>(( + ( + lv_runSpecified_22_0='runs' + { + newLeafNode(lv_runSpecified_22_0, grammarAccess.getGenerationTaskAccess().getRunSpecifiedRunsKeyword_3_6_0_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getGenerationTaskRule()); + } + setWithLastConsumed($current, "runSpecified", true, "runs"); + } + ) + ) + otherlv_23='=' + { + newLeafNode(otherlv_23, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_6_1()); + } + ( + ( + lv_runs_24_0=RULE_INT + { + newLeafNode(lv_runs_24_0, grammarAccess.getGenerationTaskAccess().getRunsINTTerminalRuleCall_3_6_2_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getGenerationTaskRule()); + } + setWithLastConsumed( + $current, + "runs", + lv_runs_24_0, + "org.eclipse.xtext.common.Terminals.INT"); + } + ) + ) + )) + { + getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); + } + ) + )| + ( + {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 7)}?=>( + { + getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 7); + } + ({true}?=>(otherlv_25='solver' + { + newLeafNode(otherlv_25, grammarAccess.getGenerationTaskAccess().getSolverKeyword_3_7_0()); + } + otherlv_26='=' + { + newLeafNode(otherlv_26, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_7_1()); + } + ( + ( + { + newCompositeNode(grammarAccess.getGenerationTaskAccess().getSolverSolverEnumRuleCall_3_7_2_0()); + } + lv_solver_27_0=ruleSolver + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); + } + set( + $current, + "solver", + lv_solver_27_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Solver"); + afterParserOrEnumRuleCall(); + } + ) + ) + )) + { + getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); + } + ) + )| + ( + {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 8)}?=>( + { + getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 8); + } + ({true}?=>(otherlv_28='config' + { + newLeafNode(otherlv_28, grammarAccess.getGenerationTaskAccess().getConfigKeyword_3_8_0()); + } + otherlv_29='=' + { + newLeafNode(otherlv_29, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_8_1()); + } + ( + ( + { + newCompositeNode(grammarAccess.getGenerationTaskAccess().getConfigConfigParserRuleCall_3_8_2_0()); + } + lv_config_30_0=ruleConfig + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); + } + set( + $current, + "config", + lv_config_30_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Config"); + afterParserOrEnumRuleCall(); + } + ) + ) + )) + { + getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); + } + ) + )| + ( + {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 9)}?=>( + { + getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 9); + } + ({true}?=>(otherlv_31='debug' + { + newLeafNode(otherlv_31, grammarAccess.getGenerationTaskAccess().getDebugKeyword_3_9_0()); + } + otherlv_32='=' + { + newLeafNode(otherlv_32, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_9_1()); + } + ( + ( + { + newCompositeNode(grammarAccess.getGenerationTaskAccess().getDebugFolderFileParserRuleCall_3_9_2_0()); + } + lv_debugFolder_33_0=ruleFile + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); + } + set( + $current, + "debugFolder", + lv_debugFolder_33_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); + afterParserOrEnumRuleCall(); + } + ) + ) + )) + { + getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); + } + ) + )| + ( + {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 10)}?=>( + { + getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 10); + } + ({true}?=>(otherlv_34='log' + { + newLeafNode(otherlv_34, grammarAccess.getGenerationTaskAccess().getLogKeyword_3_10_0()); + } + otherlv_35='=' + { + newLeafNode(otherlv_35, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_10_1()); + } + ( + ( + { + newCompositeNode(grammarAccess.getGenerationTaskAccess().getTargetLogFileFileParserRuleCall_3_10_2_0()); + } + lv_targetLogFile_36_0=ruleFile + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); + } + set( + $current, + "targetLogFile", + lv_targetLogFile_36_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); + afterParserOrEnumRuleCall(); + } + ) + ) + )) + { + getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); + } + ) + )| + ( + {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 11)}?=>( + { + getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 11); + } + ({true}?=>(otherlv_37='statistics' + { + newLeafNode(otherlv_37, grammarAccess.getGenerationTaskAccess().getStatisticsKeyword_3_11_0()); + } + otherlv_38='=' + { + newLeafNode(otherlv_38, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_11_1()); + } + ( + ( + { + newCompositeNode(grammarAccess.getGenerationTaskAccess().getTargetStatisticsFileFileParserRuleCall_3_11_2_0()); + } + lv_targetStatisticsFile_39_0=ruleFile + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); + } + set( + $current, + "targetStatisticsFile", + lv_targetStatisticsFile_39_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); + afterParserOrEnumRuleCall(); + } + ) + ) + )) + { + getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); + } + ) + )| + ( + {getUnorderedGroupHelper().canSelect(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 12)}?=>( + { + getUnorderedGroupHelper().select(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3(), 12); + } + ({true}?=>(otherlv_40='output' + { + newLeafNode(otherlv_40, grammarAccess.getGenerationTaskAccess().getOutputKeyword_3_12_0()); + } + otherlv_41='=' + { + newLeafNode(otherlv_41, grammarAccess.getGenerationTaskAccess().getEqualsSignKeyword_3_12_1()); + } + ( + ( + { + newCompositeNode(grammarAccess.getGenerationTaskAccess().getTagetFolderFileParserRuleCall_3_12_2_0()); + } + lv_tagetFolder_42_0=ruleFile + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getGenerationTaskRule()); + } + set( + $current, + "tagetFolder", + lv_tagetFolder_42_0, + "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.File"); + afterParserOrEnumRuleCall(); + } + ) + ) + )) + { + getUnorderedGroupHelper().returnFromSelection(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); + } + ) + ) + )* + ) + ) + { + getUnorderedGroupHelper().leave(grammarAccess.getGenerationTaskAccess().getUnorderedGroup_3()); + } + ) + otherlv_43='}' + { + newLeafNode(otherlv_43, grammarAccess.getGenerationTaskAccess().getRightCurlyBracketKeyword_4()); + } + ) +; + +// Rule OptimizationDirection +ruleOptimizationDirection returns [Enumerator current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + enumLiteral_0='minimize' + { + $current = grammarAccess.getOptimizationDirectionAccess().getMINIMIZEEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_0, grammarAccess.getOptimizationDirectionAccess().getMINIMIZEEnumLiteralDeclaration_0()); + } + ) + | + ( + enumLiteral_1='maximize' + { + $current = grammarAccess.getOptimizationDirectionAccess().getMAXIMIZEEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_1, grammarAccess.getOptimizationDirectionAccess().getMAXIMIZEEnumLiteralDeclaration_1()); + } + ) + ) +; + +// Rule ComparisonOperator +ruleComparisonOperator returns [Enumerator current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + enumLiteral_0='<=' + { + $current = grammarAccess.getComparisonOperatorAccess().getLESS_EQUALSEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_0, grammarAccess.getComparisonOperatorAccess().getLESS_EQUALSEnumLiteralDeclaration_0()); + } + ) + | + ( + enumLiteral_1='>=' + { + $current = grammarAccess.getComparisonOperatorAccess().getGREATER_EQUALSEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_1, grammarAccess.getComparisonOperatorAccess().getGREATER_EQUALSEnumLiteralDeclaration_1()); + } + ) + ) +; + +// Rule DocumentLevelSpecification +ruleDocumentLevelSpecification returns [Enumerator current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + enumLiteral_0='none' + { + $current = grammarAccess.getDocumentLevelSpecificationAccess().getNoneEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_0, grammarAccess.getDocumentLevelSpecificationAccess().getNoneEnumLiteralDeclaration_0()); + } + ) + | + ( + enumLiteral_1='normal' + { + $current = grammarAccess.getDocumentLevelSpecificationAccess().getNormalEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_1, grammarAccess.getDocumentLevelSpecificationAccess().getNormalEnumLiteralDeclaration_1()); + } + ) + | + ( + enumLiteral_2='full' + { + $current = grammarAccess.getDocumentLevelSpecificationAccess().getFullEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_2, grammarAccess.getDocumentLevelSpecificationAccess().getFullEnumLiteralDeclaration_2()); + } + ) + ) +; + +// Rule Solver +ruleSolver returns [Enumerator current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + enumLiteral_0='SMTSolver' + { + $current = grammarAccess.getSolverAccess().getSMTSolverEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_0, grammarAccess.getSolverAccess().getSMTSolverEnumLiteralDeclaration_0()); + } + ) + | + ( + enumLiteral_1='AlloySolver' + { + $current = grammarAccess.getSolverAccess().getAlloySolverEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_1, grammarAccess.getSolverAccess().getAlloySolverEnumLiteralDeclaration_1()); + } + ) + | + ( + enumLiteral_2='ViatraSolver' + { + $current = grammarAccess.getSolverAccess().getViatraSolverEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_2, grammarAccess.getSolverAccess().getViatraSolverEnumLiteralDeclaration_2()); + } + ) + ) +; + +RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; + +RULE_INT : ('0'..'9')+; + +RULE_STRING : ('"' ('\\' .|~(('\\'|'"')))* '"'|'\'' ('\\' .|~(('\\'|'\'')))* '\''); + +RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/'; + +RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?; + +RULE_WS : (' '|'\t'|'\r'|'\n')+; + +RULE_ANY_OTHER : .; -- cgit v1.2.3-70-g09d2