From 6636b18597946aa71f774f02809c1dda3c902cbc Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Tue, 29 Jun 2021 14:06:14 +0200 Subject: Remove xtext-gen generated files They are regenerated on each build --- .../language/AbstractProblemRuntimeModule.java | 194 - .../viatra/solver/language/Problem.xtextbin | Bin 7566 -> 0 bytes .../language/ProblemStandaloneSetupGenerated.java | 37 - .../antlr/ProblemAntlrTokenFileProvider.java | 16 - .../language/parser/antlr/ProblemParser.java | 40 - .../parser/antlr/internal/InternalProblem.g | 2390 ------- .../parser/antlr/internal/InternalProblem.tokens | 77 - .../antlr/internal/InternalProblemLexer.java | 1940 ------ .../antlr/internal/InternalProblemParser.java | 6752 -------------------- .../scoping/AbstractProblemScopeProvider.java | 9 - .../serializer/ProblemSemanticSequencer.java | 534 -- .../serializer/ProblemSyntacticSequencer.java | 139 - .../language/services/ProblemGrammarAccess.java | 2071 ------ .../validation/AbstractProblemValidator.java | 19 - .../ProblemConfigurableIssueCodesProvider.java | 22 - .../language/tests/ProblemInjectorProvider.java | 69 - 16 files changed, 14309 deletions(-) delete mode 100644 language/src/main/xtext-gen/org/eclipse/viatra/solver/language/AbstractProblemRuntimeModule.java delete mode 100644 language/src/main/xtext-gen/org/eclipse/viatra/solver/language/Problem.xtextbin delete mode 100644 language/src/main/xtext-gen/org/eclipse/viatra/solver/language/ProblemStandaloneSetupGenerated.java delete mode 100644 language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/ProblemAntlrTokenFileProvider.java delete mode 100644 language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/ProblemParser.java delete mode 100644 language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblem.g delete mode 100644 language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblem.tokens delete mode 100644 language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblemLexer.java delete mode 100644 language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblemParser.java delete mode 100644 language/src/main/xtext-gen/org/eclipse/viatra/solver/language/scoping/AbstractProblemScopeProvider.java delete mode 100644 language/src/main/xtext-gen/org/eclipse/viatra/solver/language/serializer/ProblemSemanticSequencer.java delete mode 100644 language/src/main/xtext-gen/org/eclipse/viatra/solver/language/serializer/ProblemSyntacticSequencer.java delete mode 100644 language/src/main/xtext-gen/org/eclipse/viatra/solver/language/services/ProblemGrammarAccess.java delete mode 100644 language/src/main/xtext-gen/org/eclipse/viatra/solver/language/validation/AbstractProblemValidator.java delete mode 100644 language/src/main/xtext-gen/org/eclipse/viatra/solver/language/validation/ProblemConfigurableIssueCodesProvider.java delete mode 100644 language/src/test/xtext-gen/org/eclipse/viatra/solver/language/tests/ProblemInjectorProvider.java (limited to 'language') diff --git a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/AbstractProblemRuntimeModule.java b/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/AbstractProblemRuntimeModule.java deleted file mode 100644 index 24bed771..00000000 --- a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/AbstractProblemRuntimeModule.java +++ /dev/null @@ -1,194 +0,0 @@ -/* - * generated by Xtext 2.26.0.M1 - */ -package org.eclipse.viatra.solver.language; - -import com.google.inject.Binder; -import com.google.inject.Provider; -import com.google.inject.name.Names; -import java.util.Properties; -import org.eclipse.viatra.solver.language.parser.antlr.ProblemAntlrTokenFileProvider; -import org.eclipse.viatra.solver.language.parser.antlr.ProblemParser; -import org.eclipse.viatra.solver.language.parser.antlr.internal.InternalProblemLexer; -import org.eclipse.viatra.solver.language.scoping.ProblemScopeProvider; -import org.eclipse.viatra.solver.language.serializer.ProblemSemanticSequencer; -import org.eclipse.viatra.solver.language.serializer.ProblemSyntacticSequencer; -import org.eclipse.viatra.solver.language.services.ProblemGrammarAccess; -import org.eclipse.viatra.solver.language.validation.ProblemConfigurableIssueCodesProvider; -import org.eclipse.viatra.solver.language.validation.ProblemValidator; -import org.eclipse.xtext.Constants; -import org.eclipse.xtext.IGrammarAccess; -import org.eclipse.xtext.naming.DefaultDeclarativeQualifiedNameProvider; -import org.eclipse.xtext.naming.IQualifiedNameProvider; -import org.eclipse.xtext.parser.IParser; -import org.eclipse.xtext.parser.ITokenToStringConverter; -import org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider; -import org.eclipse.xtext.parser.antlr.AntlrTokenToStringConverter; -import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider; -import org.eclipse.xtext.parser.antlr.ITokenDefProvider; -import org.eclipse.xtext.parser.antlr.Lexer; -import org.eclipse.xtext.parser.antlr.LexerBindings; -import org.eclipse.xtext.parser.antlr.LexerProvider; -import org.eclipse.xtext.resource.IContainer; -import org.eclipse.xtext.resource.IResourceDescriptions; -import org.eclipse.xtext.resource.containers.IAllContainersState; -import org.eclipse.xtext.resource.containers.ResourceSetBasedAllContainersStateProvider; -import org.eclipse.xtext.resource.containers.StateBasedContainerManager; -import org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider; -import org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions; -import org.eclipse.xtext.scoping.IGlobalScopeProvider; -import org.eclipse.xtext.scoping.IScopeProvider; -import org.eclipse.xtext.scoping.IgnoreCaseLinking; -import org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider; -import org.eclipse.xtext.scoping.impl.DefaultGlobalScopeProvider; -import org.eclipse.xtext.scoping.impl.ImportedNamespaceAwareLocalScopeProvider; -import org.eclipse.xtext.serializer.ISerializer; -import org.eclipse.xtext.serializer.impl.Serializer; -import org.eclipse.xtext.serializer.sequencer.ISemanticSequencer; -import org.eclipse.xtext.serializer.sequencer.ISyntacticSequencer; -import org.eclipse.xtext.service.DefaultRuntimeModule; -import org.eclipse.xtext.service.SingletonBinding; -import org.eclipse.xtext.validation.ConfigurableIssueCodesProvider; - -/** - * Manual modifications go to {@link ProblemRuntimeModule}. - */ -@SuppressWarnings("all") -public abstract class AbstractProblemRuntimeModule extends DefaultRuntimeModule { - - protected Properties properties = null; - - @Override - public void configure(Binder binder) { - properties = tryBindProperties(binder, "org/eclipse/viatra/solver/language/Problem.properties"); - super.configure(binder); - } - - public void configureLanguageName(Binder binder) { - binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("org.eclipse.viatra.solver.language.Problem"); - } - - public void configureFileExtensions(Binder binder) { - if (properties == null || properties.getProperty(Constants.FILE_EXTENSIONS) == null) - binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("problem"); - } - - // contributed by org.eclipse.xtext.xtext.generator.grammarAccess.GrammarAccessFragment2 - public ClassLoader bindClassLoaderToInstance() { - return getClass().getClassLoader(); - } - - // contributed by org.eclipse.xtext.xtext.generator.grammarAccess.GrammarAccessFragment2 - public Class bindIGrammarAccess() { - return ProblemGrammarAccess.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2 - public Class bindISemanticSequencer() { - return ProblemSemanticSequencer.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2 - public Class bindISyntacticSequencer() { - return ProblemSyntacticSequencer.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2 - public Class bindISerializer() { - return Serializer.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Class bindIParser() { - return ProblemParser.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Class bindITokenToStringConverter() { - return AntlrTokenToStringConverter.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Class bindIAntlrTokenFileProvider() { - return ProblemAntlrTokenFileProvider.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Class bindLexer() { - return InternalProblemLexer.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Class bindITokenDefProvider() { - return AntlrTokenDefProvider.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Provider provideInternalProblemLexer() { - return LexerProvider.create(InternalProblemLexer.class); - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public void configureRuntimeLexer(Binder binder) { - binder.bind(Lexer.class) - .annotatedWith(Names.named(LexerBindings.RUNTIME)) - .to(InternalProblemLexer.class); - } - - // contributed by org.eclipse.xtext.xtext.generator.validation.ValidatorFragment2 - @SingletonBinding(eager=true) - public Class bindProblemValidator() { - return ProblemValidator.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.validation.ValidatorFragment2 - public Class bindConfigurableIssueCodesProvider() { - return ProblemConfigurableIssueCodesProvider.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 - public Class bindIScopeProvider() { - return ProblemScopeProvider.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 - public void configureIScopeProviderDelegate(Binder binder) { - binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class); - } - - // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 - public Class bindIGlobalScopeProvider() { - return DefaultGlobalScopeProvider.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 - public void configureIgnoreCaseLinking(Binder binder) { - binder.bindConstant().annotatedWith(IgnoreCaseLinking.class).to(false); - } - - // contributed by org.eclipse.xtext.xtext.generator.exporting.QualifiedNamesFragment2 - public Class bindIQualifiedNameProvider() { - return DefaultDeclarativeQualifiedNameProvider.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 - public Class bindIContainer$Manager() { - return StateBasedContainerManager.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 - public Class bindIAllContainersState$Provider() { - return ResourceSetBasedAllContainersStateProvider.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 - public void configureIResourceDescriptions(Binder binder) { - binder.bind(IResourceDescriptions.class).to(ResourceSetBasedResourceDescriptions.class); - } - - // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 - public void configureIResourceDescriptionsPersisted(Binder binder) { - binder.bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)).to(ResourceSetBasedResourceDescriptions.class); - } - -} diff --git a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/Problem.xtextbin b/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/Problem.xtextbin deleted file mode 100644 index 0b613873..00000000 Binary files a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/Problem.xtextbin and /dev/null differ diff --git a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/ProblemStandaloneSetupGenerated.java b/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/ProblemStandaloneSetupGenerated.java deleted file mode 100644 index 0366f9cd..00000000 --- a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/ProblemStandaloneSetupGenerated.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * generated by Xtext 2.26.0.M1 - */ -package org.eclipse.viatra.solver.language; - -import com.google.inject.Guice; -import com.google.inject.Injector; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.xtext.ISetup; -import org.eclipse.xtext.common.TerminalsStandaloneSetup; -import org.eclipse.xtext.resource.IResourceFactory; -import org.eclipse.xtext.resource.IResourceServiceProvider; - -@SuppressWarnings("all") -public class ProblemStandaloneSetupGenerated implements ISetup { - - @Override - public Injector createInjectorAndDoEMFRegistration() { - TerminalsStandaloneSetup.doSetup(); - - Injector injector = createInjector(); - register(injector); - return injector; - } - - public Injector createInjector() { - return Guice.createInjector(new ProblemRuntimeModule()); - } - - public void register(Injector injector) { - IResourceFactory resourceFactory = injector.getInstance(IResourceFactory.class); - IResourceServiceProvider serviceProvider = injector.getInstance(IResourceServiceProvider.class); - - Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("problem", resourceFactory); - IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("problem", serviceProvider); - } -} diff --git a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/ProblemAntlrTokenFileProvider.java b/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/ProblemAntlrTokenFileProvider.java deleted file mode 100644 index b7ecf3f6..00000000 --- a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/ProblemAntlrTokenFileProvider.java +++ /dev/null @@ -1,16 +0,0 @@ -/* - * generated by Xtext 2.26.0.M1 - */ -package org.eclipse.viatra.solver.language.parser.antlr; - -import java.io.InputStream; -import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider; - -public class ProblemAntlrTokenFileProvider implements IAntlrTokenFileProvider { - - @Override - public InputStream getAntlrTokenFile() { - ClassLoader classLoader = getClass().getClassLoader(); - return classLoader.getResourceAsStream("org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblem.tokens"); - } -} diff --git a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/ProblemParser.java b/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/ProblemParser.java deleted file mode 100644 index 3af86cab..00000000 --- a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/ProblemParser.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * generated by Xtext 2.26.0.M1 - */ -package org.eclipse.viatra.solver.language.parser.antlr; - -import com.google.inject.Inject; -import org.eclipse.viatra.solver.language.parser.antlr.internal.InternalProblemParser; -import org.eclipse.viatra.solver.language.services.ProblemGrammarAccess; -import org.eclipse.xtext.parser.antlr.AbstractAntlrParser; -import org.eclipse.xtext.parser.antlr.XtextTokenStream; - -public class ProblemParser extends AbstractAntlrParser { - - @Inject - private ProblemGrammarAccess grammarAccess; - - @Override - protected void setInitialHiddenTokens(XtextTokenStream tokenStream) { - tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT"); - } - - - @Override - protected InternalProblemParser createParser(XtextTokenStream stream) { - return new InternalProblemParser(stream, getGrammarAccess()); - } - - @Override - protected String getDefaultRuleName() { - return "Problem"; - } - - public ProblemGrammarAccess getGrammarAccess() { - return this.grammarAccess; - } - - public void setGrammarAccess(ProblemGrammarAccess grammarAccess) { - this.grammarAccess = grammarAccess; - } -} diff --git a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblem.g b/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblem.g deleted file mode 100644 index 583f8c1c..00000000 --- a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblem.g +++ /dev/null @@ -1,2390 +0,0 @@ -/* - * generated by Xtext 2.26.0.M1 - */ -grammar InternalProblem; - -options { - superClass=AbstractInternalAntlrParser; -} - -@lexer::header { -package org.eclipse.viatra.solver.language.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 org.eclipse.viatra.solver.language.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 org.eclipse.viatra.solver.language.services.ProblemGrammarAccess; - -} - -@parser::members { - - private ProblemGrammarAccess grammarAccess; - - public InternalProblemParser(TokenStream input, ProblemGrammarAccess grammarAccess) { - this(input); - this.grammarAccess = grammarAccess; - registerRules(grammarAccess.getGrammar()); - } - - @Override - protected String getFirstRuleName() { - return "Problem"; - } - - @Override - protected ProblemGrammarAccess getGrammarAccess() { - return grammarAccess; - } - -} - -@rulecatch { - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } -} - -// Entry rule entryRuleProblem -entryRuleProblem returns [EObject current=null]: - { newCompositeNode(grammarAccess.getProblemRule()); } - iv_ruleProblem=ruleProblem - { $current=$iv_ruleProblem.current; } - EOF; - -// Rule Problem -ruleProblem returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - otherlv_0='problem' - { - newLeafNode(otherlv_0, grammarAccess.getProblemAccess().getProblemKeyword_0_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getProblemAccess().getNameIdentifierParserRuleCall_0_1_0()); - } - lv_name_1_0=ruleIdentifier - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getProblemRule()); - } - set( - $current, - "name", - lv_name_1_0, - "org.eclipse.viatra.solver.language.Problem.Identifier"); - afterParserOrEnumRuleCall(); - } - ) - ) - otherlv_2='.' - { - newLeafNode(otherlv_2, grammarAccess.getProblemAccess().getFullStopKeyword_0_2()); - } - )? - ( - ( - { - newCompositeNode(grammarAccess.getProblemAccess().getStatementsStatementParserRuleCall_1_0()); - } - lv_statements_3_0=ruleStatement - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getProblemRule()); - } - add( - $current, - "statements", - lv_statements_3_0, - "org.eclipse.viatra.solver.language.Problem.Statement"); - afterParserOrEnumRuleCall(); - } - ) - )* - ) -; - -// Entry rule entryRuleStatement -entryRuleStatement returns [EObject current=null]: - { newCompositeNode(grammarAccess.getStatementRule()); } - iv_ruleStatement=ruleStatement - { $current=$iv_ruleStatement.current; } - EOF; - -// Rule Statement -ruleStatement returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getStatementAccess().getClassDeclarationParserRuleCall_0()); - } - this_ClassDeclaration_0=ruleClassDeclaration - { - $current = $this_ClassDeclaration_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getStatementAccess().getEnumDeclarationParserRuleCall_1()); - } - this_EnumDeclaration_1=ruleEnumDeclaration - { - $current = $this_EnumDeclaration_1.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getStatementAccess().getPredicateDefinitionParserRuleCall_2()); - } - this_PredicateDefinition_2=rulePredicateDefinition - { - $current = $this_PredicateDefinition_2.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getStatementAccess().getAssertionParserRuleCall_3()); - } - this_Assertion_3=ruleAssertion - { - $current = $this_Assertion_3.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getStatementAccess().getNodeValueAssertionParserRuleCall_4()); - } - this_NodeValueAssertion_4=ruleNodeValueAssertion - { - $current = $this_NodeValueAssertion_4.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getStatementAccess().getScopeDeclarationParserRuleCall_5()); - } - this_ScopeDeclaration_5=ruleScopeDeclaration - { - $current = $this_ScopeDeclaration_5.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRuleClassDeclaration -entryRuleClassDeclaration returns [EObject current=null]: - { newCompositeNode(grammarAccess.getClassDeclarationRule()); } - iv_ruleClassDeclaration=ruleClassDeclaration - { $current=$iv_ruleClassDeclaration.current; } - EOF; - -// Rule ClassDeclaration -ruleClassDeclaration returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - lv_abstract_0_0='abstract' - { - newLeafNode(lv_abstract_0_0, grammarAccess.getClassDeclarationAccess().getAbstractAbstractKeyword_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getClassDeclarationRule()); - } - setWithLastConsumed($current, "abstract", lv_abstract_0_0 != null, "abstract"); - } - ) - )? - otherlv_1='class' - { - newLeafNode(otherlv_1, grammarAccess.getClassDeclarationAccess().getClassKeyword_1()); - } - ( - ( - { - newCompositeNode(grammarAccess.getClassDeclarationAccess().getNameIdentifierParserRuleCall_2_0()); - } - lv_name_2_0=ruleIdentifier - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getClassDeclarationRule()); - } - set( - $current, - "name", - lv_name_2_0, - "org.eclipse.viatra.solver.language.Problem.Identifier"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_3='extends' - { - newLeafNode(otherlv_3, grammarAccess.getClassDeclarationAccess().getExtendsKeyword_3_0()); - } - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getClassDeclarationRule()); - } - } - { - newCompositeNode(grammarAccess.getClassDeclarationAccess().getSuperTypesRelationCrossReference_3_1_0()); - } - ruleQualifiedName - { - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_5=',' - { - newLeafNode(otherlv_5, grammarAccess.getClassDeclarationAccess().getCommaKeyword_3_2_0()); - } - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getClassDeclarationRule()); - } - } - { - newCompositeNode(grammarAccess.getClassDeclarationAccess().getSuperTypesRelationCrossReference_3_2_1_0()); - } - ruleQualifiedName - { - afterParserOrEnumRuleCall(); - } - ) - ) - )* - )? - ( - ( - otherlv_7='{' - { - newLeafNode(otherlv_7, grammarAccess.getClassDeclarationAccess().getLeftCurlyBracketKeyword_4_0_0()); - } - ( - ( - ( - { - newCompositeNode(grammarAccess.getClassDeclarationAccess().getReferenceDeclarationsReferenceDeclarationParserRuleCall_4_0_1_0_0()); - } - lv_referenceDeclarations_8_0=ruleReferenceDeclaration - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getClassDeclarationRule()); - } - add( - $current, - "referenceDeclarations", - lv_referenceDeclarations_8_0, - "org.eclipse.viatra.solver.language.Problem.ReferenceDeclaration"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_9=';' - { - newLeafNode(otherlv_9, grammarAccess.getClassDeclarationAccess().getSemicolonKeyword_4_0_1_1()); - } - )? - )* - otherlv_10='}' - { - newLeafNode(otherlv_10, grammarAccess.getClassDeclarationAccess().getRightCurlyBracketKeyword_4_0_2()); - } - ) - | - otherlv_11='.' - { - newLeafNode(otherlv_11, grammarAccess.getClassDeclarationAccess().getFullStopKeyword_4_1()); - } - ) - ) -; - -// Entry rule entryRuleEnumDeclaration -entryRuleEnumDeclaration returns [EObject current=null]: - { newCompositeNode(grammarAccess.getEnumDeclarationRule()); } - iv_ruleEnumDeclaration=ruleEnumDeclaration - { $current=$iv_ruleEnumDeclaration.current; } - EOF; - -// Rule EnumDeclaration -ruleEnumDeclaration returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='enum' - { - newLeafNode(otherlv_0, grammarAccess.getEnumDeclarationAccess().getEnumKeyword_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getEnumDeclarationAccess().getNameIdentifierParserRuleCall_1_0()); - } - lv_name_1_0=ruleIdentifier - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getEnumDeclarationRule()); - } - set( - $current, - "name", - lv_name_1_0, - "org.eclipse.viatra.solver.language.Problem.Identifier"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - ( - otherlv_2='{' - { - newLeafNode(otherlv_2, grammarAccess.getEnumDeclarationAccess().getLeftCurlyBracketKeyword_2_0_0()); - } - ( - ( - ( - { - newCompositeNode(grammarAccess.getEnumDeclarationAccess().getLiteralsEnumLiteralParserRuleCall_2_0_1_0_0()); - } - lv_literals_3_0=ruleEnumLiteral - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getEnumDeclarationRule()); - } - add( - $current, - "literals", - lv_literals_3_0, - "org.eclipse.viatra.solver.language.Problem.EnumLiteral"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_4=',' - { - newLeafNode(otherlv_4, grammarAccess.getEnumDeclarationAccess().getCommaKeyword_2_0_1_1_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getEnumDeclarationAccess().getLiteralsEnumLiteralParserRuleCall_2_0_1_1_1_0()); - } - lv_literals_5_0=ruleEnumLiteral - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getEnumDeclarationRule()); - } - add( - $current, - "literals", - lv_literals_5_0, - "org.eclipse.viatra.solver.language.Problem.EnumLiteral"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - ( - otherlv_6=',' - { - newLeafNode(otherlv_6, grammarAccess.getEnumDeclarationAccess().getCommaKeyword_2_0_1_2_0()); - } - | - otherlv_7=';' - { - newLeafNode(otherlv_7, grammarAccess.getEnumDeclarationAccess().getSemicolonKeyword_2_0_1_2_1()); - } - )? - )? - otherlv_8='}' - { - newLeafNode(otherlv_8, grammarAccess.getEnumDeclarationAccess().getRightCurlyBracketKeyword_2_0_2()); - } - ) - | - otherlv_9='.' - { - newLeafNode(otherlv_9, grammarAccess.getEnumDeclarationAccess().getFullStopKeyword_2_1()); - } - ) - ) -; - -// Entry rule entryRuleEnumLiteral -entryRuleEnumLiteral returns [EObject current=null]: - { newCompositeNode(grammarAccess.getEnumLiteralRule()); } - iv_ruleEnumLiteral=ruleEnumLiteral - { $current=$iv_ruleEnumLiteral.current; } - EOF; - -// Rule EnumLiteral -ruleEnumLiteral returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - newCompositeNode(grammarAccess.getEnumLiteralAccess().getNameIdentifierParserRuleCall_0()); - } - lv_name_0_0=ruleIdentifier - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getEnumLiteralRule()); - } - set( - $current, - "name", - lv_name_0_0, - "org.eclipse.viatra.solver.language.Problem.Identifier"); - afterParserOrEnumRuleCall(); - } - ) - ) -; - -// Entry rule entryRuleReferenceDeclaration -entryRuleReferenceDeclaration returns [EObject current=null]: - { newCompositeNode(grammarAccess.getReferenceDeclarationRule()); } - iv_ruleReferenceDeclaration=ruleReferenceDeclaration - { $current=$iv_ruleReferenceDeclaration.current; } - EOF; - -// Rule ReferenceDeclaration -ruleReferenceDeclaration returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - ( - lv_containment_0_0='contains' - { - newLeafNode(lv_containment_0_0, grammarAccess.getReferenceDeclarationAccess().getContainmentContainsKeyword_0_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getReferenceDeclarationRule()); - } - setWithLastConsumed($current, "containment", lv_containment_0_0 != null, "contains"); - } - ) - ) - | - otherlv_1='refers' - { - newLeafNode(otherlv_1, grammarAccess.getReferenceDeclarationAccess().getRefersKeyword_0_1()); - } - )? - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getReferenceDeclarationRule()); - } - } - { - newCompositeNode(grammarAccess.getReferenceDeclarationAccess().getReferenceTypeRelationCrossReference_1_0()); - } - ruleQualifiedName - { - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_3='[' - { - newLeafNode(otherlv_3, grammarAccess.getReferenceDeclarationAccess().getLeftSquareBracketKeyword_2_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getReferenceDeclarationAccess().getMultiplicityMultiplicityParserRuleCall_2_1_0()); - } - lv_multiplicity_4_0=ruleMultiplicity - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getReferenceDeclarationRule()); - } - set( - $current, - "multiplicity", - lv_multiplicity_4_0, - "org.eclipse.viatra.solver.language.Problem.Multiplicity"); - afterParserOrEnumRuleCall(); - } - ) - ) - otherlv_5=']' - { - newLeafNode(otherlv_5, grammarAccess.getReferenceDeclarationAccess().getRightSquareBracketKeyword_2_2()); - } - )? - ( - ( - { - newCompositeNode(grammarAccess.getReferenceDeclarationAccess().getNameIdentifierParserRuleCall_3_0()); - } - lv_name_6_0=ruleIdentifier - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getReferenceDeclarationRule()); - } - set( - $current, - "name", - lv_name_6_0, - "org.eclipse.viatra.solver.language.Problem.Identifier"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_7='opposite' - { - newLeafNode(otherlv_7, grammarAccess.getReferenceDeclarationAccess().getOppositeKeyword_4_0()); - } - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getReferenceDeclarationRule()); - } - } - { - newCompositeNode(grammarAccess.getReferenceDeclarationAccess().getOppositeReferenceDeclarationCrossReference_4_1_0()); - } - ruleQualifiedName - { - afterParserOrEnumRuleCall(); - } - ) - ) - )? - ) -; - -// Entry rule entryRulePredicateDefinition -entryRulePredicateDefinition returns [EObject current=null]: - { newCompositeNode(grammarAccess.getPredicateDefinitionRule()); } - iv_rulePredicateDefinition=rulePredicateDefinition - { $current=$iv_rulePredicateDefinition.current; } - EOF; - -// Rule PredicateDefinition -rulePredicateDefinition returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - ( - ( - lv_error_0_0='error' - { - newLeafNode(lv_error_0_0, grammarAccess.getPredicateDefinitionAccess().getErrorErrorKeyword_0_0_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getPredicateDefinitionRule()); - } - setWithLastConsumed($current, "error", lv_error_0_0 != null, "error"); - } - ) - ) - ( - otherlv_1='pred' - { - newLeafNode(otherlv_1, grammarAccess.getPredicateDefinitionAccess().getPredKeyword_0_0_1()); - } - )? - ) - | - otherlv_2='pred' - { - newLeafNode(otherlv_2, grammarAccess.getPredicateDefinitionAccess().getPredKeyword_0_1()); - } - ) - ( - ( - { - newCompositeNode(grammarAccess.getPredicateDefinitionAccess().getNameIdentifierParserRuleCall_1_0()); - } - lv_name_3_0=ruleIdentifier - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getPredicateDefinitionRule()); - } - set( - $current, - "name", - lv_name_3_0, - "org.eclipse.viatra.solver.language.Problem.Identifier"); - afterParserOrEnumRuleCall(); - } - ) - ) - otherlv_4='(' - { - newLeafNode(otherlv_4, grammarAccess.getPredicateDefinitionAccess().getLeftParenthesisKeyword_2()); - } - ( - ( - ( - { - newCompositeNode(grammarAccess.getPredicateDefinitionAccess().getParametersParameterParserRuleCall_3_0_0()); - } - lv_parameters_5_0=ruleParameter - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getPredicateDefinitionRule()); - } - add( - $current, - "parameters", - lv_parameters_5_0, - "org.eclipse.viatra.solver.language.Problem.Parameter"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_6=',' - { - newLeafNode(otherlv_6, grammarAccess.getPredicateDefinitionAccess().getCommaKeyword_3_1_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getPredicateDefinitionAccess().getParametersParameterParserRuleCall_3_1_1_0()); - } - lv_parameters_7_0=ruleParameter - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getPredicateDefinitionRule()); - } - add( - $current, - "parameters", - lv_parameters_7_0, - "org.eclipse.viatra.solver.language.Problem.Parameter"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - )? - otherlv_8=')' - { - newLeafNode(otherlv_8, grammarAccess.getPredicateDefinitionAccess().getRightParenthesisKeyword_4()); - } - ( - otherlv_9=':-' - { - newLeafNode(otherlv_9, grammarAccess.getPredicateDefinitionAccess().getColonHyphenMinusKeyword_5_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getPredicateDefinitionAccess().getBodiesConjunctionParserRuleCall_5_1_0()); - } - lv_bodies_10_0=ruleConjunction - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getPredicateDefinitionRule()); - } - add( - $current, - "bodies", - lv_bodies_10_0, - "org.eclipse.viatra.solver.language.Problem.Conjunction"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_11=';' - { - newLeafNode(otherlv_11, grammarAccess.getPredicateDefinitionAccess().getSemicolonKeyword_5_2_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getPredicateDefinitionAccess().getBodiesConjunctionParserRuleCall_5_2_1_0()); - } - lv_bodies_12_0=ruleConjunction - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getPredicateDefinitionRule()); - } - add( - $current, - "bodies", - lv_bodies_12_0, - "org.eclipse.viatra.solver.language.Problem.Conjunction"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - )? - otherlv_13='.' - { - newLeafNode(otherlv_13, grammarAccess.getPredicateDefinitionAccess().getFullStopKeyword_6()); - } - ) -; - -// Entry rule entryRuleParameter -entryRuleParameter returns [EObject current=null]: - { newCompositeNode(grammarAccess.getParameterRule()); } - iv_ruleParameter=ruleParameter - { $current=$iv_ruleParameter.current; } - EOF; - -// Rule Parameter -ruleParameter returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getParameterRule()); - } - } - { - newCompositeNode(grammarAccess.getParameterAccess().getParameterTypeRelationCrossReference_0_0()); - } - ruleQualifiedName - { - afterParserOrEnumRuleCall(); - } - ) - )? - ( - ( - { - newCompositeNode(grammarAccess.getParameterAccess().getNameIdentifierParserRuleCall_1_0()); - } - lv_name_1_0=ruleIdentifier - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getParameterRule()); - } - set( - $current, - "name", - lv_name_1_0, - "org.eclipse.viatra.solver.language.Problem.Identifier"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRuleConjunction -entryRuleConjunction returns [EObject current=null]: - { newCompositeNode(grammarAccess.getConjunctionRule()); } - iv_ruleConjunction=ruleConjunction - { $current=$iv_ruleConjunction.current; } - EOF; - -// Rule Conjunction -ruleConjunction returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - { - newCompositeNode(grammarAccess.getConjunctionAccess().getLiteralsLiteralParserRuleCall_0_0()); - } - lv_literals_0_0=ruleLiteral - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getConjunctionRule()); - } - add( - $current, - "literals", - lv_literals_0_0, - "org.eclipse.viatra.solver.language.Problem.Literal"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_1=',' - { - newLeafNode(otherlv_1, grammarAccess.getConjunctionAccess().getCommaKeyword_1_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getConjunctionAccess().getLiteralsLiteralParserRuleCall_1_1_0()); - } - lv_literals_2_0=ruleLiteral - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getConjunctionRule()); - } - add( - $current, - "literals", - lv_literals_2_0, - "org.eclipse.viatra.solver.language.Problem.Literal"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - ) -; - -// Entry rule entryRuleLiteral -entryRuleLiteral returns [EObject current=null]: - { newCompositeNode(grammarAccess.getLiteralRule()); } - iv_ruleLiteral=ruleLiteral - { $current=$iv_ruleLiteral.current; } - EOF; - -// Rule Literal -ruleLiteral returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getLiteralAccess().getAtomParserRuleCall_0()); - } - this_Atom_0=ruleAtom - { - $current = $this_Atom_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getLiteralAccess().getNegativeLiteralParserRuleCall_1()); - } - this_NegativeLiteral_1=ruleNegativeLiteral - { - $current = $this_NegativeLiteral_1.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRuleNegativeLiteral -entryRuleNegativeLiteral returns [EObject current=null]: - { newCompositeNode(grammarAccess.getNegativeLiteralRule()); } - iv_ruleNegativeLiteral=ruleNegativeLiteral - { $current=$iv_ruleNegativeLiteral.current; } - EOF; - -// Rule NegativeLiteral -ruleNegativeLiteral returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='!' - { - newLeafNode(otherlv_0, grammarAccess.getNegativeLiteralAccess().getExclamationMarkKeyword_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getNegativeLiteralAccess().getAtomAtomParserRuleCall_1_0()); - } - lv_atom_1_0=ruleAtom - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getNegativeLiteralRule()); - } - set( - $current, - "atom", - lv_atom_1_0, - "org.eclipse.viatra.solver.language.Problem.Atom"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRuleAtom -entryRuleAtom returns [EObject current=null]: - { newCompositeNode(grammarAccess.getAtomRule()); } - iv_ruleAtom=ruleAtom - { $current=$iv_ruleAtom.current; } - EOF; - -// Rule Atom -ruleAtom returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getAtomRule()); - } - } - { - newCompositeNode(grammarAccess.getAtomAccess().getRelationRelationCrossReference_0_0()); - } - ruleQualifiedName - { - afterParserOrEnumRuleCall(); - } - ) - ) - ( - ( - lv_transitiveClosure_1_0='+' - { - newLeafNode(lv_transitiveClosure_1_0, grammarAccess.getAtomAccess().getTransitiveClosurePlusSignKeyword_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getAtomRule()); - } - setWithLastConsumed($current, "transitiveClosure", lv_transitiveClosure_1_0 != null, "+"); - } - ) - )? - otherlv_2='(' - { - newLeafNode(otherlv_2, grammarAccess.getAtomAccess().getLeftParenthesisKeyword_2()); - } - ( - ( - ( - { - newCompositeNode(grammarAccess.getAtomAccess().getArgumentsArgumentParserRuleCall_3_0_0()); - } - lv_arguments_3_0=ruleArgument - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getAtomRule()); - } - add( - $current, - "arguments", - lv_arguments_3_0, - "org.eclipse.viatra.solver.language.Problem.Argument"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_4=',' - { - newLeafNode(otherlv_4, grammarAccess.getAtomAccess().getCommaKeyword_3_1_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getAtomAccess().getArgumentsArgumentParserRuleCall_3_1_1_0()); - } - lv_arguments_5_0=ruleArgument - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getAtomRule()); - } - add( - $current, - "arguments", - lv_arguments_5_0, - "org.eclipse.viatra.solver.language.Problem.Argument"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - )? - otherlv_6=')' - { - newLeafNode(otherlv_6, grammarAccess.getAtomAccess().getRightParenthesisKeyword_4()); - } - ) -; - -// Entry rule entryRuleArgument -entryRuleArgument returns [EObject current=null]: - { newCompositeNode(grammarAccess.getArgumentRule()); } - iv_ruleArgument=ruleArgument - { $current=$iv_ruleArgument.current; } - EOF; - -// Rule Argument -ruleArgument returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getArgumentAccess().getVariableOrNodeArgumentParserRuleCall_0()); - } - this_VariableOrNodeArgument_0=ruleVariableOrNodeArgument - { - $current = $this_VariableOrNodeArgument_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getArgumentAccess().getConstantArgumentParserRuleCall_1()); - } - this_ConstantArgument_1=ruleConstantArgument - { - $current = $this_ConstantArgument_1.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRuleVariableOrNodeArgument -entryRuleVariableOrNodeArgument returns [EObject current=null]: - { newCompositeNode(grammarAccess.getVariableOrNodeArgumentRule()); } - iv_ruleVariableOrNodeArgument=ruleVariableOrNodeArgument - { $current=$iv_ruleVariableOrNodeArgument.current; } - EOF; - -// Rule VariableOrNodeArgument -ruleVariableOrNodeArgument returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getVariableOrNodeArgumentRule()); - } - } - { - newCompositeNode(grammarAccess.getVariableOrNodeArgumentAccess().getVariableOrNodeVariableOrNodeCrossReference_0()); - } - ruleQualifiedName - { - afterParserOrEnumRuleCall(); - } - ) - ) -; - -// Entry rule entryRuleConstantArgument -entryRuleConstantArgument returns [EObject current=null]: - { newCompositeNode(grammarAccess.getConstantArgumentRule()); } - iv_ruleConstantArgument=ruleConstantArgument - { $current=$iv_ruleConstantArgument.current; } - EOF; - -// Rule ConstantArgument -ruleConstantArgument returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - newCompositeNode(grammarAccess.getConstantArgumentAccess().getConstantConstantParserRuleCall_0()); - } - lv_constant_0_0=ruleConstant - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getConstantArgumentRule()); - } - set( - $current, - "constant", - lv_constant_0_0, - "org.eclipse.viatra.solver.language.Problem.Constant"); - afterParserOrEnumRuleCall(); - } - ) - ) -; - -// Entry rule entryRuleAssertion -entryRuleAssertion returns [EObject current=null]: - { newCompositeNode(grammarAccess.getAssertionRule()); } - iv_ruleAssertion=ruleAssertion - { $current=$iv_ruleAssertion.current; } - EOF; - -// Rule Assertion -ruleAssertion returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getAssertionRule()); - } - } - { - newCompositeNode(grammarAccess.getAssertionAccess().getRelationRelationCrossReference_0_0_0_0()); - } - ruleQualifiedName - { - afterParserOrEnumRuleCall(); - } - ) - ) - otherlv_1='(' - { - newLeafNode(otherlv_1, grammarAccess.getAssertionAccess().getLeftParenthesisKeyword_0_0_1()); - } - ( - ( - ( - { - newCompositeNode(grammarAccess.getAssertionAccess().getArgumentsAssertionArgumentParserRuleCall_0_0_2_0_0()); - } - lv_arguments_2_0=ruleAssertionArgument - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getAssertionRule()); - } - add( - $current, - "arguments", - lv_arguments_2_0, - "org.eclipse.viatra.solver.language.Problem.AssertionArgument"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_3=',' - { - newLeafNode(otherlv_3, grammarAccess.getAssertionAccess().getCommaKeyword_0_0_2_1_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getAssertionAccess().getArgumentsAssertionArgumentParserRuleCall_0_0_2_1_1_0()); - } - lv_arguments_4_0=ruleAssertionArgument - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getAssertionRule()); - } - add( - $current, - "arguments", - lv_arguments_4_0, - "org.eclipse.viatra.solver.language.Problem.AssertionArgument"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - )? - otherlv_5=')' - { - newLeafNode(otherlv_5, grammarAccess.getAssertionAccess().getRightParenthesisKeyword_0_0_3()); - } - otherlv_6=':' - { - newLeafNode(otherlv_6, grammarAccess.getAssertionAccess().getColonKeyword_0_0_4()); - } - ( - ( - { - newCompositeNode(grammarAccess.getAssertionAccess().getValueLogicValueEnumRuleCall_0_0_5_0()); - } - lv_value_7_0=ruleLogicValue - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getAssertionRule()); - } - set( - $current, - "value", - lv_value_7_0, - "org.eclipse.viatra.solver.language.Problem.LogicValue"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) - | - ( - ( - ( - { - newCompositeNode(grammarAccess.getAssertionAccess().getValueShortLogicValueEnumRuleCall_0_1_0_0()); - } - lv_value_8_0=ruleShortLogicValue - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getAssertionRule()); - } - set( - $current, - "value", - lv_value_8_0, - "org.eclipse.viatra.solver.language.Problem.ShortLogicValue"); - afterParserOrEnumRuleCall(); - } - ) - )? - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getAssertionRule()); - } - } - { - newCompositeNode(grammarAccess.getAssertionAccess().getRelationRelationCrossReference_0_1_1_0()); - } - ruleQualifiedName - { - afterParserOrEnumRuleCall(); - } - ) - ) - otherlv_10='(' - { - newLeafNode(otherlv_10, grammarAccess.getAssertionAccess().getLeftParenthesisKeyword_0_1_2()); - } - ( - ( - ( - { - newCompositeNode(grammarAccess.getAssertionAccess().getArgumentsAssertionArgumentParserRuleCall_0_1_3_0_0()); - } - lv_arguments_11_0=ruleAssertionArgument - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getAssertionRule()); - } - add( - $current, - "arguments", - lv_arguments_11_0, - "org.eclipse.viatra.solver.language.Problem.AssertionArgument"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_12=',' - { - newLeafNode(otherlv_12, grammarAccess.getAssertionAccess().getCommaKeyword_0_1_3_1_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getAssertionAccess().getArgumentsAssertionArgumentParserRuleCall_0_1_3_1_1_0()); - } - lv_arguments_13_0=ruleAssertionArgument - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getAssertionRule()); - } - add( - $current, - "arguments", - lv_arguments_13_0, - "org.eclipse.viatra.solver.language.Problem.AssertionArgument"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - )? - otherlv_14=')' - { - newLeafNode(otherlv_14, grammarAccess.getAssertionAccess().getRightParenthesisKeyword_0_1_4()); - } - ) - ) - otherlv_15='.' - { - newLeafNode(otherlv_15, grammarAccess.getAssertionAccess().getFullStopKeyword_1()); - } - ) -; - -// Entry rule entryRuleAssertionArgument -entryRuleAssertionArgument returns [EObject current=null]: - { newCompositeNode(grammarAccess.getAssertionArgumentRule()); } - iv_ruleAssertionArgument=ruleAssertionArgument - { $current=$iv_ruleAssertionArgument.current; } - EOF; - -// Rule AssertionArgument -ruleAssertionArgument returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getAssertionArgumentAccess().getNodeAssertionArgumentParserRuleCall_0()); - } - this_NodeAssertionArgument_0=ruleNodeAssertionArgument - { - $current = $this_NodeAssertionArgument_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getAssertionArgumentAccess().getConstantAssertionArgumentParserRuleCall_1()); - } - this_ConstantAssertionArgument_1=ruleConstantAssertionArgument - { - $current = $this_ConstantAssertionArgument_1.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRuleNodeAssertionArgument -entryRuleNodeAssertionArgument returns [EObject current=null]: - { newCompositeNode(grammarAccess.getNodeAssertionArgumentRule()); } - iv_ruleNodeAssertionArgument=ruleNodeAssertionArgument - { $current=$iv_ruleNodeAssertionArgument.current; } - EOF; - -// Rule NodeAssertionArgument -ruleNodeAssertionArgument returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getNodeAssertionArgumentRule()); - } - } - { - newCompositeNode(grammarAccess.getNodeAssertionArgumentAccess().getNodeNodeCrossReference_0()); - } - ruleQualifiedName - { - afterParserOrEnumRuleCall(); - } - ) - ) -; - -// Entry rule entryRuleConstantAssertionArgument -entryRuleConstantAssertionArgument returns [EObject current=null]: - { newCompositeNode(grammarAccess.getConstantAssertionArgumentRule()); } - iv_ruleConstantAssertionArgument=ruleConstantAssertionArgument - { $current=$iv_ruleConstantAssertionArgument.current; } - EOF; - -// Rule ConstantAssertionArgument -ruleConstantAssertionArgument returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - newCompositeNode(grammarAccess.getConstantAssertionArgumentAccess().getConstantConstantParserRuleCall_0()); - } - lv_constant_0_0=ruleConstant - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getConstantAssertionArgumentRule()); - } - set( - $current, - "constant", - lv_constant_0_0, - "org.eclipse.viatra.solver.language.Problem.Constant"); - afterParserOrEnumRuleCall(); - } - ) - ) -; - -// Entry rule entryRuleNodeValueAssertion -entryRuleNodeValueAssertion returns [EObject current=null]: - { newCompositeNode(grammarAccess.getNodeValueAssertionRule()); } - iv_ruleNodeValueAssertion=ruleNodeValueAssertion - { $current=$iv_ruleNodeValueAssertion.current; } - EOF; - -// Rule NodeValueAssertion -ruleNodeValueAssertion returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getNodeValueAssertionRule()); - } - } - { - newCompositeNode(grammarAccess.getNodeValueAssertionAccess().getNodeNodeCrossReference_0_0()); - } - ruleQualifiedName - { - afterParserOrEnumRuleCall(); - } - ) - ) - otherlv_1=':' - { - newLeafNode(otherlv_1, grammarAccess.getNodeValueAssertionAccess().getColonKeyword_1()); - } - ( - ( - { - newCompositeNode(grammarAccess.getNodeValueAssertionAccess().getValueConstantParserRuleCall_2_0()); - } - lv_value_2_0=ruleConstant - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getNodeValueAssertionRule()); - } - set( - $current, - "value", - lv_value_2_0, - "org.eclipse.viatra.solver.language.Problem.Constant"); - afterParserOrEnumRuleCall(); - } - ) - ) - otherlv_3='.' - { - newLeafNode(otherlv_3, grammarAccess.getNodeValueAssertionAccess().getFullStopKeyword_3()); - } - ) -; - -// Entry rule entryRuleConstant -entryRuleConstant returns [EObject current=null]: - { newCompositeNode(grammarAccess.getConstantRule()); } - iv_ruleConstant=ruleConstant - { $current=$iv_ruleConstant.current; } - EOF; - -// Rule Constant -ruleConstant returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getConstantAccess().getRealConstantParserRuleCall_0()); - } - this_RealConstant_0=ruleRealConstant - { - $current = $this_RealConstant_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getConstantAccess().getIntConstantParserRuleCall_1()); - } - this_IntConstant_1=ruleIntConstant - { - $current = $this_IntConstant_1.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getConstantAccess().getStringConstantParserRuleCall_2()); - } - this_StringConstant_2=ruleStringConstant - { - $current = $this_StringConstant_2.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRuleIntConstant -entryRuleIntConstant returns [EObject current=null]: - { newCompositeNode(grammarAccess.getIntConstantRule()); } - iv_ruleIntConstant=ruleIntConstant - { $current=$iv_ruleIntConstant.current; } - EOF; - -// Rule IntConstant -ruleIntConstant returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - newCompositeNode(grammarAccess.getIntConstantAccess().getIntValueIntegerParserRuleCall_0()); - } - lv_intValue_0_0=ruleInteger - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getIntConstantRule()); - } - set( - $current, - "intValue", - lv_intValue_0_0, - "org.eclipse.viatra.solver.language.Problem.Integer"); - afterParserOrEnumRuleCall(); - } - ) - ) -; - -// Entry rule entryRuleRealConstant -entryRuleRealConstant returns [EObject current=null]: - { newCompositeNode(grammarAccess.getRealConstantRule()); } - iv_ruleRealConstant=ruleRealConstant - { $current=$iv_ruleRealConstant.current; } - EOF; - -// Rule RealConstant -ruleRealConstant returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - newCompositeNode(grammarAccess.getRealConstantAccess().getRealValueRealParserRuleCall_0()); - } - lv_realValue_0_0=ruleReal - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getRealConstantRule()); - } - set( - $current, - "realValue", - lv_realValue_0_0, - "org.eclipse.viatra.solver.language.Problem.Real"); - afterParserOrEnumRuleCall(); - } - ) - ) -; - -// Entry rule entryRuleStringConstant -entryRuleStringConstant returns [EObject current=null]: - { newCompositeNode(grammarAccess.getStringConstantRule()); } - iv_ruleStringConstant=ruleStringConstant - { $current=$iv_ruleStringConstant.current; } - EOF; - -// Rule StringConstant -ruleStringConstant returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - lv_stringValue_0_0=RULE_STRING - { - newLeafNode(lv_stringValue_0_0, grammarAccess.getStringConstantAccess().getStringValueSTRINGTerminalRuleCall_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getStringConstantRule()); - } - setWithLastConsumed( - $current, - "stringValue", - lv_stringValue_0_0, - "org.eclipse.viatra.solver.language.Problem.STRING"); - } - ) - ) -; - -// 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()); - } - ( - ( - { - newCompositeNode(grammarAccess.getScopeDeclarationAccess().getTypeScopesTypeScopeParserRuleCall_1_0()); - } - lv_typeScopes_1_0=ruleTypeScope - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getScopeDeclarationRule()); - } - add( - $current, - "typeScopes", - lv_typeScopes_1_0, - "org.eclipse.viatra.solver.language.Problem.TypeScope"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_2=',' - { - newLeafNode(otherlv_2, grammarAccess.getScopeDeclarationAccess().getCommaKeyword_2_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getScopeDeclarationAccess().getTypeScopesTypeScopeParserRuleCall_2_1_0()); - } - lv_typeScopes_3_0=ruleTypeScope - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getScopeDeclarationRule()); - } - add( - $current, - "typeScopes", - lv_typeScopes_3_0, - "org.eclipse.viatra.solver.language.Problem.TypeScope"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - otherlv_4='.' - { - newLeafNode(otherlv_4, grammarAccess.getScopeDeclarationAccess().getFullStopKeyword_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(); -}: - ( - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getTypeScopeRule()); - } - } - otherlv_0=RULE_ID - { - newLeafNode(otherlv_0, grammarAccess.getTypeScopeAccess().getTargetTypeClassDeclarationCrossReference_0_0()); - } - ) - ) - ( - ( - ( - lv_increment_1_0='+=' - { - newLeafNode(lv_increment_1_0, grammarAccess.getTypeScopeAccess().getIncrementPlusSignEqualsSignKeyword_1_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getTypeScopeRule()); - } - setWithLastConsumed($current, "increment", lv_increment_1_0 != null, "+="); - } - ) - ) - | - otherlv_2='=' - { - newLeafNode(otherlv_2, grammarAccess.getTypeScopeAccess().getEqualsSignKeyword_1_1()); - } - ) - ( - ( - { - newCompositeNode(grammarAccess.getTypeScopeAccess().getMultiplicityDefiniteMultiplicityParserRuleCall_2_0()); - } - lv_multiplicity_3_0=ruleDefiniteMultiplicity - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getTypeScopeRule()); - } - set( - $current, - "multiplicity", - lv_multiplicity_3_0, - "org.eclipse.viatra.solver.language.Problem.DefiniteMultiplicity"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRuleMultiplicity -entryRuleMultiplicity returns [EObject current=null]: - { newCompositeNode(grammarAccess.getMultiplicityRule()); } - iv_ruleMultiplicity=ruleMultiplicity - { $current=$iv_ruleMultiplicity.current; } - EOF; - -// Rule Multiplicity -ruleMultiplicity returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getMultiplicityAccess().getUnboundedMultiplicityParserRuleCall_0()); - } - this_UnboundedMultiplicity_0=ruleUnboundedMultiplicity - { - $current = $this_UnboundedMultiplicity_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getMultiplicityAccess().getDefiniteMultiplicityParserRuleCall_1()); - } - this_DefiniteMultiplicity_1=ruleDefiniteMultiplicity - { - $current = $this_DefiniteMultiplicity_1.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRuleDefiniteMultiplicity -entryRuleDefiniteMultiplicity returns [EObject current=null]: - { newCompositeNode(grammarAccess.getDefiniteMultiplicityRule()); } - iv_ruleDefiniteMultiplicity=ruleDefiniteMultiplicity - { $current=$iv_ruleDefiniteMultiplicity.current; } - EOF; - -// Rule DefiniteMultiplicity -ruleDefiniteMultiplicity returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getDefiniteMultiplicityAccess().getRangeMultiplicityParserRuleCall_0()); - } - this_RangeMultiplicity_0=ruleRangeMultiplicity - { - $current = $this_RangeMultiplicity_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getDefiniteMultiplicityAccess().getExactMultiplicityParserRuleCall_1()); - } - this_ExactMultiplicity_1=ruleExactMultiplicity - { - $current = $this_ExactMultiplicity_1.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRuleUnboundedMultiplicity -entryRuleUnboundedMultiplicity returns [EObject current=null]: - { newCompositeNode(grammarAccess.getUnboundedMultiplicityRule()); } - iv_ruleUnboundedMultiplicity=ruleUnboundedMultiplicity - { $current=$iv_ruleUnboundedMultiplicity.current; } - EOF; - -// Rule UnboundedMultiplicity -ruleUnboundedMultiplicity returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - $current = forceCreateModelElement( - grammarAccess.getUnboundedMultiplicityAccess().getUnboundedMultiplicityAction(), - $current); - } - ) -; - -// Entry rule entryRuleRangeMultiplicity -entryRuleRangeMultiplicity returns [EObject current=null]: - { newCompositeNode(grammarAccess.getRangeMultiplicityRule()); } - iv_ruleRangeMultiplicity=ruleRangeMultiplicity - { $current=$iv_ruleRangeMultiplicity.current; } - EOF; - -// Rule RangeMultiplicity -ruleRangeMultiplicity returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - lv_lowerBound_0_0=RULE_INT - { - newLeafNode(lv_lowerBound_0_0, grammarAccess.getRangeMultiplicityAccess().getLowerBoundINTTerminalRuleCall_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getRangeMultiplicityRule()); - } - setWithLastConsumed( - $current, - "lowerBound", - lv_lowerBound_0_0, - "org.eclipse.xtext.common.Terminals.INT"); - } - ) - ) - otherlv_1='..' - { - newLeafNode(otherlv_1, grammarAccess.getRangeMultiplicityAccess().getFullStopFullStopKeyword_1()); - } - ( - ( - { - newCompositeNode(grammarAccess.getRangeMultiplicityAccess().getUpperBoundUpperBoundParserRuleCall_2_0()); - } - lv_upperBound_2_0=ruleUpperBound - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getRangeMultiplicityRule()); - } - set( - $current, - "upperBound", - lv_upperBound_2_0, - "org.eclipse.viatra.solver.language.Problem.UpperBound"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRuleExactMultiplicity -entryRuleExactMultiplicity returns [EObject current=null]: - { newCompositeNode(grammarAccess.getExactMultiplicityRule()); } - iv_ruleExactMultiplicity=ruleExactMultiplicity - { $current=$iv_ruleExactMultiplicity.current; } - EOF; - -// Rule ExactMultiplicity -ruleExactMultiplicity returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - lv_exactValue_0_0=RULE_INT - { - newLeafNode(lv_exactValue_0_0, grammarAccess.getExactMultiplicityAccess().getExactValueINTTerminalRuleCall_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getExactMultiplicityRule()); - } - setWithLastConsumed( - $current, - "exactValue", - lv_exactValue_0_0, - "org.eclipse.xtext.common.Terminals.INT"); - } - ) - ) -; - -// Entry rule entryRuleUpperBound -entryRuleUpperBound returns [String current=null]: - { newCompositeNode(grammarAccess.getUpperBoundRule()); } - iv_ruleUpperBound=ruleUpperBound - { $current=$iv_ruleUpperBound.current.getText(); } - EOF; - -// Rule UpperBound -ruleUpperBound returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - this_INT_0=RULE_INT - { - $current.merge(this_INT_0); - } - { - newLeafNode(this_INT_0, grammarAccess.getUpperBoundAccess().getINTTerminalRuleCall_0()); - } - | - kw='*' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getUpperBoundAccess().getAsteriskKeyword_1()); - } - ) -; - -// Entry rule entryRuleQualifiedName -entryRuleQualifiedName returns [String current=null]@init { - HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); -}: - { newCompositeNode(grammarAccess.getQualifiedNameRule()); } - iv_ruleQualifiedName=ruleQualifiedName - { $current=$iv_ruleQualifiedName.current.getText(); } - EOF; -finally { - myHiddenTokenState.restore(); -} - -// Rule QualifiedName -ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); - HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); -} -@after { - leaveRule(); -}: - ( - this_QUOTED_ID_0=RULE_QUOTED_ID - { - $current.merge(this_QUOTED_ID_0); - } - { - newLeafNode(this_QUOTED_ID_0, grammarAccess.getQualifiedNameAccess().getQUOTED_IDTerminalRuleCall_0()); - } - | - ( - { - newCompositeNode(grammarAccess.getQualifiedNameAccess().getIdentifierParserRuleCall_1_0()); - } - this_Identifier_1=ruleIdentifier - { - $current.merge(this_Identifier_1); - } - { - afterParserOrEnumRuleCall(); - } - ( - kw='::' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1_1_0()); - } - { - newCompositeNode(grammarAccess.getQualifiedNameAccess().getIdentifierParserRuleCall_1_1_1()); - } - this_Identifier_3=ruleIdentifier - { - $current.merge(this_Identifier_3); - } - { - afterParserOrEnumRuleCall(); - } - )* - ) - ) -; -finally { - myHiddenTokenState.restore(); -} - -// Entry rule entryRuleIdentifier -entryRuleIdentifier returns [String current=null]: - { newCompositeNode(grammarAccess.getIdentifierRule()); } - iv_ruleIdentifier=ruleIdentifier - { $current=$iv_ruleIdentifier.current.getText(); } - EOF; - -// Rule Identifier -ruleIdentifier returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - this_ID_0=RULE_ID - { - $current.merge(this_ID_0); - } - { - newLeafNode(this_ID_0, grammarAccess.getIdentifierAccess().getIDTerminalRuleCall_0()); - } - | - kw='true' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getIdentifierAccess().getTrueKeyword_1()); - } - | - kw='false' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getIdentifierAccess().getFalseKeyword_2()); - } - ) -; - -// Entry rule entryRuleInteger -entryRuleInteger returns [String current=null]@init { - HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); -}: - { newCompositeNode(grammarAccess.getIntegerRule()); } - iv_ruleInteger=ruleInteger - { $current=$iv_ruleInteger.current.getText(); } - EOF; -finally { - myHiddenTokenState.restore(); -} - -// Rule Integer -ruleInteger returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); - HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); -} -@after { - leaveRule(); -}: - ( - ( - kw='-' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getIntegerAccess().getHyphenMinusKeyword_0()); - } - )? - this_INT_1=RULE_INT - { - $current.merge(this_INT_1); - } - { - newLeafNode(this_INT_1, grammarAccess.getIntegerAccess().getINTTerminalRuleCall_1()); - } - ) -; -finally { - myHiddenTokenState.restore(); -} - -// Entry rule entryRuleReal -entryRuleReal returns [String current=null]: - { newCompositeNode(grammarAccess.getRealRule()); } - iv_ruleReal=ruleReal - { $current=$iv_ruleReal.current.getText(); } - EOF; - -// Rule Real -ruleReal returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - kw='-' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getRealAccess().getHyphenMinusKeyword_0()); - } - )? - ( - this_EXPONENTIAL_1=RULE_EXPONENTIAL - { - $current.merge(this_EXPONENTIAL_1); - } - { - newLeafNode(this_EXPONENTIAL_1, grammarAccess.getRealAccess().getEXPONENTIALTerminalRuleCall_1_0()); - } - | - ( - this_INT_2=RULE_INT - { - $current.merge(this_INT_2); - } - { - newLeafNode(this_INT_2, grammarAccess.getRealAccess().getINTTerminalRuleCall_1_1_0()); - } - kw='.' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getRealAccess().getFullStopKeyword_1_1_1()); - } - ( - this_INT_4=RULE_INT - { - $current.merge(this_INT_4); - } - { - newLeafNode(this_INT_4, grammarAccess.getRealAccess().getINTTerminalRuleCall_1_1_2_0()); - } - | - this_EXPONENTIAL_5=RULE_EXPONENTIAL - { - $current.merge(this_EXPONENTIAL_5); - } - { - newLeafNode(this_EXPONENTIAL_5, grammarAccess.getRealAccess().getEXPONENTIALTerminalRuleCall_1_1_2_1()); - } - ) - ) - ) - ) -; - -// Rule LogicValue -ruleLogicValue returns [Enumerator current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - enumLiteral_0='true' - { - $current = grammarAccess.getLogicValueAccess().getTRUEEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_0, grammarAccess.getLogicValueAccess().getTRUEEnumLiteralDeclaration_0()); - } - ) - | - ( - enumLiteral_1='false' - { - $current = grammarAccess.getLogicValueAccess().getFALSEEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_1, grammarAccess.getLogicValueAccess().getFALSEEnumLiteralDeclaration_1()); - } - ) - | - ( - enumLiteral_2='unknown' - { - $current = grammarAccess.getLogicValueAccess().getUNKNOWNEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_2, grammarAccess.getLogicValueAccess().getUNKNOWNEnumLiteralDeclaration_2()); - } - ) - ) -; - -// Rule ShortLogicValue -ruleShortLogicValue returns [Enumerator current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - enumLiteral_0='!' - { - $current = grammarAccess.getShortLogicValueAccess().getFALSEEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_0, grammarAccess.getShortLogicValueAccess().getFALSEEnumLiteralDeclaration_0()); - } - ) - | - ( - enumLiteral_1='?' - { - $current = grammarAccess.getShortLogicValueAccess().getUNKNOWNEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_1, grammarAccess.getShortLogicValueAccess().getUNKNOWNEnumLiteralDeclaration_1()); - } - ) - ) -; - -RULE_ID : ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; - -RULE_EXPONENTIAL : RULE_INT ('e'|'E') ('+'|'-')? RULE_INT; - -RULE_STRING : '"' ('\\' .|~(('\\'|'"')))* '"'; - -RULE_QUOTED_ID : '\'' ('\\' .|~(('\\'|'\'')))* '\''; - -RULE_SL_COMMENT : ('%'|'//') ~(('\n'|'\r'))* ('\r'? '\n')?; - -RULE_INT : ('0'..'9')+; - -RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/'; - -RULE_WS : (' '|'\t'|'\r'|'\n')+; - -RULE_ANY_OTHER : .; diff --git a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblem.tokens b/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblem.tokens deleted file mode 100644 index 7ceb60d6..00000000 --- a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblem.tokens +++ /dev/null @@ -1,77 +0,0 @@ -'!'=33 -'('=30 -')'=31 -'*'=40 -'+'=34 -'+='=37 -','=18 -'-'=44 -'.'=14 -'..'=39 -':'=35 -':-'=32 -'::'=41 -';'=20 -'='=38 -'?'=46 -'['=25 -']'=26 -'abstract'=15 -'class'=16 -'contains'=23 -'enum'=22 -'error'=28 -'extends'=17 -'false'=43 -'opposite'=27 -'pred'=29 -'problem'=13 -'refers'=24 -'scope'=36 -'true'=42 -'unknown'=45 -'{'=19 -'}'=21 -RULE_ANY_OTHER=12 -RULE_EXPONENTIAL=8 -RULE_ID=5 -RULE_INT=6 -RULE_ML_COMMENT=10 -RULE_QUOTED_ID=7 -RULE_SL_COMMENT=9 -RULE_STRING=4 -RULE_WS=11 -T__13=13 -T__14=14 -T__15=15 -T__16=16 -T__17=17 -T__18=18 -T__19=19 -T__20=20 -T__21=21 -T__22=22 -T__23=23 -T__24=24 -T__25=25 -T__26=26 -T__27=27 -T__28=28 -T__29=29 -T__30=30 -T__31=31 -T__32=32 -T__33=33 -T__34=34 -T__35=35 -T__36=36 -T__37=37 -T__38=38 -T__39=39 -T__40=40 -T__41=41 -T__42=42 -T__43=43 -T__44=44 -T__45=45 -T__46=46 diff --git a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblemLexer.java b/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblemLexer.java deleted file mode 100644 index cc9b39b6..00000000 --- a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblemLexer.java +++ /dev/null @@ -1,1940 +0,0 @@ -package org.eclipse.viatra.solver.language.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; - - -import org.antlr.runtime.*; -import java.util.Stack; -import java.util.List; -import java.util.ArrayList; - -@SuppressWarnings("all") -public class InternalProblemLexer extends Lexer { - public static final int T__19=19; - public static final int T__15=15; - public static final int T__16=16; - public static final int T__17=17; - public static final int T__18=18; - public static final int T__13=13; - public static final int T__14=14; - public static final int RULE_EXPONENTIAL=8; - public static final int RULE_ID=5; - public static final int RULE_QUOTED_ID=7; - public static final int T__26=26; - public static final int T__27=27; - public static final int T__28=28; - public static final int RULE_INT=6; - public static final int T__29=29; - public static final int T__22=22; - public static final int RULE_ML_COMMENT=10; - public static final int T__23=23; - public static final int T__24=24; - public static final int T__25=25; - public static final int T__20=20; - public static final int T__21=21; - public static final int RULE_STRING=4; - public static final int RULE_SL_COMMENT=9; - public static final int T__37=37; - public static final int T__38=38; - public static final int T__39=39; - public static final int T__33=33; - public static final int T__34=34; - public static final int T__35=35; - public static final int T__36=36; - public static final int EOF=-1; - public static final int T__30=30; - public static final int T__31=31; - public static final int T__32=32; - public static final int RULE_WS=11; - public static final int RULE_ANY_OTHER=12; - public static final int T__44=44; - public static final int T__45=45; - public static final int T__46=46; - public static final int T__40=40; - public static final int T__41=41; - public static final int T__42=42; - public static final int T__43=43; - - // delegates - // delegators - - public InternalProblemLexer() {;} - public InternalProblemLexer(CharStream input) { - this(input, new RecognizerSharedState()); - } - public InternalProblemLexer(CharStream input, RecognizerSharedState state) { - super(input,state); - - } - public String getGrammarFileName() { return "InternalProblem.g"; } - - // $ANTLR start "T__13" - public final void mT__13() throws RecognitionException { - try { - int _type = T__13; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:11:7: ( 'problem' ) - // InternalProblem.g:11:9: 'problem' - { - match("problem"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__13" - - // $ANTLR start "T__14" - public final void mT__14() throws RecognitionException { - try { - int _type = T__14; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:12:7: ( '.' ) - // InternalProblem.g:12:9: '.' - { - match('.'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__14" - - // $ANTLR start "T__15" - public final void mT__15() throws RecognitionException { - try { - int _type = T__15; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:13:7: ( 'abstract' ) - // InternalProblem.g:13:9: 'abstract' - { - match("abstract"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__15" - - // $ANTLR start "T__16" - public final void mT__16() throws RecognitionException { - try { - int _type = T__16; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:14:7: ( 'class' ) - // InternalProblem.g:14:9: 'class' - { - match("class"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__16" - - // $ANTLR start "T__17" - public final void mT__17() throws RecognitionException { - try { - int _type = T__17; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:15:7: ( 'extends' ) - // InternalProblem.g:15:9: 'extends' - { - match("extends"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__17" - - // $ANTLR start "T__18" - public final void mT__18() throws RecognitionException { - try { - int _type = T__18; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:16:7: ( ',' ) - // InternalProblem.g:16:9: ',' - { - match(','); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__18" - - // $ANTLR start "T__19" - public final void mT__19() throws RecognitionException { - try { - int _type = T__19; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:17:7: ( '{' ) - // InternalProblem.g:17:9: '{' - { - match('{'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__19" - - // $ANTLR start "T__20" - public final void mT__20() throws RecognitionException { - try { - int _type = T__20; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:18:7: ( ';' ) - // InternalProblem.g:18:9: ';' - { - match(';'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__20" - - // $ANTLR start "T__21" - public final void mT__21() throws RecognitionException { - try { - int _type = T__21; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:19:7: ( '}' ) - // InternalProblem.g:19:9: '}' - { - match('}'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__21" - - // $ANTLR start "T__22" - public final void mT__22() throws RecognitionException { - try { - int _type = T__22; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:20:7: ( 'enum' ) - // InternalProblem.g:20:9: 'enum' - { - match("enum"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__22" - - // $ANTLR start "T__23" - public final void mT__23() throws RecognitionException { - try { - int _type = T__23; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:21:7: ( 'contains' ) - // InternalProblem.g:21:9: 'contains' - { - match("contains"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__23" - - // $ANTLR start "T__24" - public final void mT__24() throws RecognitionException { - try { - int _type = T__24; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:22:7: ( 'refers' ) - // InternalProblem.g:22:9: 'refers' - { - match("refers"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__24" - - // $ANTLR start "T__25" - public final void mT__25() throws RecognitionException { - try { - int _type = T__25; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:23:7: ( '[' ) - // InternalProblem.g:23:9: '[' - { - match('['); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__25" - - // $ANTLR start "T__26" - public final void mT__26() throws RecognitionException { - try { - int _type = T__26; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:24:7: ( ']' ) - // InternalProblem.g:24:9: ']' - { - match(']'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__26" - - // $ANTLR start "T__27" - public final void mT__27() throws RecognitionException { - try { - int _type = T__27; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:25:7: ( 'opposite' ) - // InternalProblem.g:25:9: 'opposite' - { - match("opposite"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__27" - - // $ANTLR start "T__28" - public final void mT__28() throws RecognitionException { - try { - int _type = T__28; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:26:7: ( 'error' ) - // InternalProblem.g:26:9: 'error' - { - match("error"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__28" - - // $ANTLR start "T__29" - public final void mT__29() throws RecognitionException { - try { - int _type = T__29; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:27:7: ( 'pred' ) - // InternalProblem.g:27:9: 'pred' - { - match("pred"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__29" - - // $ANTLR start "T__30" - public final void mT__30() throws RecognitionException { - try { - int _type = T__30; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:28:7: ( '(' ) - // InternalProblem.g:28:9: '(' - { - match('('); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__30" - - // $ANTLR start "T__31" - public final void mT__31() throws RecognitionException { - try { - int _type = T__31; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:29:7: ( ')' ) - // InternalProblem.g:29:9: ')' - { - match(')'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__31" - - // $ANTLR start "T__32" - public final void mT__32() throws RecognitionException { - try { - int _type = T__32; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:30:7: ( ':-' ) - // InternalProblem.g:30:9: ':-' - { - match(":-"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__32" - - // $ANTLR start "T__33" - public final void mT__33() throws RecognitionException { - try { - int _type = T__33; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:31:7: ( '!' ) - // InternalProblem.g:31:9: '!' - { - match('!'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__33" - - // $ANTLR start "T__34" - public final void mT__34() throws RecognitionException { - try { - int _type = T__34; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:32:7: ( '+' ) - // InternalProblem.g:32:9: '+' - { - match('+'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__34" - - // $ANTLR start "T__35" - public final void mT__35() throws RecognitionException { - try { - int _type = T__35; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:33:7: ( ':' ) - // InternalProblem.g:33:9: ':' - { - match(':'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__35" - - // $ANTLR start "T__36" - public final void mT__36() throws RecognitionException { - try { - int _type = T__36; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:34:7: ( 'scope' ) - // InternalProblem.g:34:9: 'scope' - { - match("scope"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__36" - - // $ANTLR start "T__37" - public final void mT__37() throws RecognitionException { - try { - int _type = T__37; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:35:7: ( '+=' ) - // InternalProblem.g:35:9: '+=' - { - match("+="); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__37" - - // $ANTLR start "T__38" - public final void mT__38() throws RecognitionException { - try { - int _type = T__38; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:36:7: ( '=' ) - // InternalProblem.g:36:9: '=' - { - match('='); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__38" - - // $ANTLR start "T__39" - public final void mT__39() throws RecognitionException { - try { - int _type = T__39; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:37:7: ( '..' ) - // InternalProblem.g:37:9: '..' - { - match(".."); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__39" - - // $ANTLR start "T__40" - public final void mT__40() throws RecognitionException { - try { - int _type = T__40; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:38:7: ( '*' ) - // InternalProblem.g:38:9: '*' - { - match('*'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__40" - - // $ANTLR start "T__41" - public final void mT__41() throws RecognitionException { - try { - int _type = T__41; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:39:7: ( '::' ) - // InternalProblem.g:39:9: '::' - { - match("::"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__41" - - // $ANTLR start "T__42" - public final void mT__42() throws RecognitionException { - try { - int _type = T__42; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:40:7: ( 'true' ) - // InternalProblem.g:40:9: 'true' - { - match("true"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__42" - - // $ANTLR start "T__43" - public final void mT__43() throws RecognitionException { - try { - int _type = T__43; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:41:7: ( 'false' ) - // InternalProblem.g:41:9: 'false' - { - match("false"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__43" - - // $ANTLR start "T__44" - public final void mT__44() throws RecognitionException { - try { - int _type = T__44; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:42:7: ( '-' ) - // InternalProblem.g:42:9: '-' - { - match('-'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__44" - - // $ANTLR start "T__45" - public final void mT__45() throws RecognitionException { - try { - int _type = T__45; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:43:7: ( 'unknown' ) - // InternalProblem.g:43:9: 'unknown' - { - match("unknown"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__45" - - // $ANTLR start "T__46" - public final void mT__46() throws RecognitionException { - try { - int _type = T__46; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:44:7: ( '?' ) - // InternalProblem.g:44:9: '?' - { - match('?'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__46" - - // $ANTLR start "RULE_ID" - public final void mRULE_ID() throws RecognitionException { - try { - int _type = RULE_ID; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:2374:9: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) - // InternalProblem.g:2374:11: ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* - { - if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - // InternalProblem.g:2374:35: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* - loop1: - do { - int alt1=2; - int LA1_0 = input.LA(1); - - if ( ((LA1_0>='0' && LA1_0<='9')||(LA1_0>='A' && LA1_0<='Z')||LA1_0=='_'||(LA1_0>='a' && LA1_0<='z')) ) { - alt1=1; - } - - - switch (alt1) { - case 1 : - // InternalProblem.g: - { - if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - break loop1; - } - } while (true); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_ID" - - // $ANTLR start "RULE_EXPONENTIAL" - public final void mRULE_EXPONENTIAL() throws RecognitionException { - try { - int _type = RULE_EXPONENTIAL; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:2376:18: ( RULE_INT ( 'e' | 'E' ) ( '+' | '-' )? RULE_INT ) - // InternalProblem.g:2376:20: RULE_INT ( 'e' | 'E' ) ( '+' | '-' )? RULE_INT - { - mRULE_INT(); - if ( input.LA(1)=='E'||input.LA(1)=='e' ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - // InternalProblem.g:2376:39: ( '+' | '-' )? - int alt2=2; - int LA2_0 = input.LA(1); - - if ( (LA2_0=='+'||LA2_0=='-') ) { - alt2=1; - } - switch (alt2) { - case 1 : - // InternalProblem.g: - { - if ( input.LA(1)=='+'||input.LA(1)=='-' ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - } - - mRULE_INT(); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_EXPONENTIAL" - - // $ANTLR start "RULE_STRING" - public final void mRULE_STRING() throws RecognitionException { - try { - int _type = RULE_STRING; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:2378:13: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' ) - // InternalProblem.g:2378:15: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' - { - match('\"'); - // InternalProblem.g:2378:19: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* - loop3: - do { - int alt3=3; - int LA3_0 = input.LA(1); - - if ( (LA3_0=='\\') ) { - alt3=1; - } - else if ( ((LA3_0>='\u0000' && LA3_0<='!')||(LA3_0>='#' && LA3_0<='[')||(LA3_0>=']' && LA3_0<='\uFFFF')) ) { - alt3=2; - } - - - switch (alt3) { - case 1 : - // InternalProblem.g:2378:20: '\\\\' . - { - match('\\'); - matchAny(); - - } - break; - case 2 : - // InternalProblem.g:2378:27: ~ ( ( '\\\\' | '\"' ) ) - { - if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - break loop3; - } - } while (true); - - match('\"'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_STRING" - - // $ANTLR start "RULE_QUOTED_ID" - public final void mRULE_QUOTED_ID() throws RecognitionException { - try { - int _type = RULE_QUOTED_ID; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:2380:16: ( '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) - // InternalProblem.g:2380:18: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' - { - match('\''); - // InternalProblem.g:2380:23: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* - loop4: - do { - int alt4=3; - int LA4_0 = input.LA(1); - - if ( (LA4_0=='\\') ) { - alt4=1; - } - else if ( ((LA4_0>='\u0000' && LA4_0<='&')||(LA4_0>='(' && LA4_0<='[')||(LA4_0>=']' && LA4_0<='\uFFFF')) ) { - alt4=2; - } - - - switch (alt4) { - case 1 : - // InternalProblem.g:2380:24: '\\\\' . - { - match('\\'); - matchAny(); - - } - break; - case 2 : - // InternalProblem.g:2380:31: ~ ( ( '\\\\' | '\\'' ) ) - { - if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - break loop4; - } - } while (true); - - match('\''); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_QUOTED_ID" - - // $ANTLR start "RULE_SL_COMMENT" - public final void mRULE_SL_COMMENT() throws RecognitionException { - try { - int _type = RULE_SL_COMMENT; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:2382:17: ( ( '%' | '//' ) (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) - // InternalProblem.g:2382:19: ( '%' | '//' ) (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? - { - // InternalProblem.g:2382:19: ( '%' | '//' ) - int alt5=2; - int LA5_0 = input.LA(1); - - if ( (LA5_0=='%') ) { - alt5=1; - } - else if ( (LA5_0=='/') ) { - alt5=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 5, 0, input); - - throw nvae; - } - switch (alt5) { - case 1 : - // InternalProblem.g:2382:20: '%' - { - match('%'); - - } - break; - case 2 : - // InternalProblem.g:2382:24: '//' - { - match("//"); - - - } - break; - - } - - // InternalProblem.g:2382:30: (~ ( ( '\\n' | '\\r' ) ) )* - loop6: - do { - int alt6=2; - int LA6_0 = input.LA(1); - - if ( ((LA6_0>='\u0000' && LA6_0<='\t')||(LA6_0>='\u000B' && LA6_0<='\f')||(LA6_0>='\u000E' && LA6_0<='\uFFFF')) ) { - alt6=1; - } - - - switch (alt6) { - case 1 : - // InternalProblem.g:2382:30: ~ ( ( '\\n' | '\\r' ) ) - { - if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - break loop6; - } - } while (true); - - // InternalProblem.g:2382:46: ( ( '\\r' )? '\\n' )? - int alt8=2; - int LA8_0 = input.LA(1); - - if ( (LA8_0=='\n'||LA8_0=='\r') ) { - alt8=1; - } - switch (alt8) { - case 1 : - // InternalProblem.g:2382:47: ( '\\r' )? '\\n' - { - // InternalProblem.g:2382:47: ( '\\r' )? - int alt7=2; - int LA7_0 = input.LA(1); - - if ( (LA7_0=='\r') ) { - alt7=1; - } - switch (alt7) { - case 1 : - // InternalProblem.g:2382:47: '\\r' - { - match('\r'); - - } - break; - - } - - match('\n'); - - } - break; - - } - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_SL_COMMENT" - - // $ANTLR start "RULE_INT" - public final void mRULE_INT() throws RecognitionException { - try { - int _type = RULE_INT; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:2384:10: ( ( '0' .. '9' )+ ) - // InternalProblem.g:2384:12: ( '0' .. '9' )+ - { - // InternalProblem.g:2384:12: ( '0' .. '9' )+ - int cnt9=0; - loop9: - do { - int alt9=2; - int LA9_0 = input.LA(1); - - if ( ((LA9_0>='0' && LA9_0<='9')) ) { - alt9=1; - } - - - switch (alt9) { - case 1 : - // InternalProblem.g:2384:13: '0' .. '9' - { - matchRange('0','9'); - - } - break; - - default : - if ( cnt9 >= 1 ) break loop9; - EarlyExitException eee = - new EarlyExitException(9, input); - throw eee; - } - cnt9++; - } while (true); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_INT" - - // $ANTLR start "RULE_ML_COMMENT" - public final void mRULE_ML_COMMENT() throws RecognitionException { - try { - int _type = RULE_ML_COMMENT; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:2386:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) - // InternalProblem.g:2386:19: '/*' ( options {greedy=false; } : . )* '*/' - { - match("/*"); - - // InternalProblem.g:2386:24: ( options {greedy=false; } : . )* - loop10: - do { - int alt10=2; - int LA10_0 = input.LA(1); - - if ( (LA10_0=='*') ) { - int LA10_1 = input.LA(2); - - if ( (LA10_1=='/') ) { - alt10=2; - } - else if ( ((LA10_1>='\u0000' && LA10_1<='.')||(LA10_1>='0' && LA10_1<='\uFFFF')) ) { - alt10=1; - } - - - } - else if ( ((LA10_0>='\u0000' && LA10_0<=')')||(LA10_0>='+' && LA10_0<='\uFFFF')) ) { - alt10=1; - } - - - switch (alt10) { - case 1 : - // InternalProblem.g:2386:52: . - { - matchAny(); - - } - break; - - default : - break loop10; - } - } while (true); - - match("*/"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_ML_COMMENT" - - // $ANTLR start "RULE_WS" - public final void mRULE_WS() throws RecognitionException { - try { - int _type = RULE_WS; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:2388:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) - // InternalProblem.g:2388:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ - { - // InternalProblem.g:2388:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ - int cnt11=0; - loop11: - do { - int alt11=2; - int LA11_0 = input.LA(1); - - if ( ((LA11_0>='\t' && LA11_0<='\n')||LA11_0=='\r'||LA11_0==' ') ) { - alt11=1; - } - - - switch (alt11) { - case 1 : - // InternalProblem.g: - { - if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - if ( cnt11 >= 1 ) break loop11; - EarlyExitException eee = - new EarlyExitException(11, input); - throw eee; - } - cnt11++; - } while (true); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_WS" - - // $ANTLR start "RULE_ANY_OTHER" - public final void mRULE_ANY_OTHER() throws RecognitionException { - try { - int _type = RULE_ANY_OTHER; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalProblem.g:2390:16: ( . ) - // InternalProblem.g:2390:18: . - { - matchAny(); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_ANY_OTHER" - - public void mTokens() throws RecognitionException { - // InternalProblem.g:1:8: ( T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | T__44 | T__45 | T__46 | RULE_ID | RULE_EXPONENTIAL | RULE_STRING | RULE_QUOTED_ID | RULE_SL_COMMENT | RULE_INT | RULE_ML_COMMENT | RULE_WS | RULE_ANY_OTHER ) - int alt12=43; - alt12 = dfa12.predict(input); - switch (alt12) { - case 1 : - // InternalProblem.g:1:10: T__13 - { - mT__13(); - - } - break; - case 2 : - // InternalProblem.g:1:16: T__14 - { - mT__14(); - - } - break; - case 3 : - // InternalProblem.g:1:22: T__15 - { - mT__15(); - - } - break; - case 4 : - // InternalProblem.g:1:28: T__16 - { - mT__16(); - - } - break; - case 5 : - // InternalProblem.g:1:34: T__17 - { - mT__17(); - - } - break; - case 6 : - // InternalProblem.g:1:40: T__18 - { - mT__18(); - - } - break; - case 7 : - // InternalProblem.g:1:46: T__19 - { - mT__19(); - - } - break; - case 8 : - // InternalProblem.g:1:52: T__20 - { - mT__20(); - - } - break; - case 9 : - // InternalProblem.g:1:58: T__21 - { - mT__21(); - - } - break; - case 10 : - // InternalProblem.g:1:64: T__22 - { - mT__22(); - - } - break; - case 11 : - // InternalProblem.g:1:70: T__23 - { - mT__23(); - - } - break; - case 12 : - // InternalProblem.g:1:76: T__24 - { - mT__24(); - - } - break; - case 13 : - // InternalProblem.g:1:82: T__25 - { - mT__25(); - - } - break; - case 14 : - // InternalProblem.g:1:88: T__26 - { - mT__26(); - - } - break; - case 15 : - // InternalProblem.g:1:94: T__27 - { - mT__27(); - - } - break; - case 16 : - // InternalProblem.g:1:100: T__28 - { - mT__28(); - - } - break; - case 17 : - // InternalProblem.g:1:106: T__29 - { - mT__29(); - - } - break; - case 18 : - // InternalProblem.g:1:112: T__30 - { - mT__30(); - - } - break; - case 19 : - // InternalProblem.g:1:118: T__31 - { - mT__31(); - - } - break; - case 20 : - // InternalProblem.g:1:124: T__32 - { - mT__32(); - - } - break; - case 21 : - // InternalProblem.g:1:130: T__33 - { - mT__33(); - - } - break; - case 22 : - // InternalProblem.g:1:136: T__34 - { - mT__34(); - - } - break; - case 23 : - // InternalProblem.g:1:142: T__35 - { - mT__35(); - - } - break; - case 24 : - // InternalProblem.g:1:148: T__36 - { - mT__36(); - - } - break; - case 25 : - // InternalProblem.g:1:154: T__37 - { - mT__37(); - - } - break; - case 26 : - // InternalProblem.g:1:160: T__38 - { - mT__38(); - - } - break; - case 27 : - // InternalProblem.g:1:166: T__39 - { - mT__39(); - - } - break; - case 28 : - // InternalProblem.g:1:172: T__40 - { - mT__40(); - - } - break; - case 29 : - // InternalProblem.g:1:178: T__41 - { - mT__41(); - - } - break; - case 30 : - // InternalProblem.g:1:184: T__42 - { - mT__42(); - - } - break; - case 31 : - // InternalProblem.g:1:190: T__43 - { - mT__43(); - - } - break; - case 32 : - // InternalProblem.g:1:196: T__44 - { - mT__44(); - - } - break; - case 33 : - // InternalProblem.g:1:202: T__45 - { - mT__45(); - - } - break; - case 34 : - // InternalProblem.g:1:208: T__46 - { - mT__46(); - - } - break; - case 35 : - // InternalProblem.g:1:214: RULE_ID - { - mRULE_ID(); - - } - break; - case 36 : - // InternalProblem.g:1:222: RULE_EXPONENTIAL - { - mRULE_EXPONENTIAL(); - - } - break; - case 37 : - // InternalProblem.g:1:239: RULE_STRING - { - mRULE_STRING(); - - } - break; - case 38 : - // InternalProblem.g:1:251: RULE_QUOTED_ID - { - mRULE_QUOTED_ID(); - - } - break; - case 39 : - // InternalProblem.g:1:266: RULE_SL_COMMENT - { - mRULE_SL_COMMENT(); - - } - break; - case 40 : - // InternalProblem.g:1:282: RULE_INT - { - mRULE_INT(); - - } - break; - case 41 : - // InternalProblem.g:1:291: RULE_ML_COMMENT - { - mRULE_ML_COMMENT(); - - } - break; - case 42 : - // InternalProblem.g:1:307: RULE_WS - { - mRULE_WS(); - - } - break; - case 43 : - // InternalProblem.g:1:315: RULE_ANY_OTHER - { - mRULE_ANY_OTHER(); - - } - break; - - } - - } - - - protected DFA12 dfa12 = new DFA12(this); - static final String DFA12_eotS = - "\1\uffff\1\44\1\46\3\44\4\uffff\1\44\2\uffff\1\44\2\uffff\1\71\1\uffff\1\74\1\44\2\uffff\2\44\1\uffff\1\44\2\uffff\1\105\2\42\1\uffff\1\42\2\uffff\1\44\3\uffff\6\44\4\uffff\1\44\2\uffff\1\44\10\uffff\1\44\2\uffff\2\44\1\uffff\1\44\2\uffff\1\105\6\uffff\17\44\1\152\4\44\1\157\4\44\1\164\3\44\1\uffff\1\44\1\171\2\44\1\uffff\1\174\2\44\1\177\1\uffff\1\u0080\3\44\1\uffff\2\44\1\uffff\1\u0086\1\44\2\uffff\1\44\1\u0089\2\44\1\u008c\1\uffff\1\44\1\u008e\1\uffff\1\u008f\1\u0090\1\uffff\1\u0091\4\uffff"; - static final String DFA12_eofS = - "\u0092\uffff"; - static final String DFA12_minS = - "\1\0\1\162\1\56\1\142\1\154\1\156\4\uffff\1\145\2\uffff\1\160\2\uffff\1\55\1\uffff\1\75\1\143\2\uffff\1\162\1\141\1\uffff\1\156\2\uffff\1\60\2\0\1\uffff\1\52\2\uffff\1\145\3\uffff\1\163\1\141\1\156\1\164\1\165\1\162\4\uffff\1\146\2\uffff\1\160\10\uffff\1\157\2\uffff\1\165\1\154\1\uffff\1\153\2\uffff\1\60\6\uffff\1\142\1\144\1\164\1\163\1\164\1\145\1\155\1\157\1\145\1\157\1\160\1\145\1\163\1\156\1\154\1\60\1\162\1\163\1\141\1\156\1\60\2\162\1\163\1\145\1\60\1\145\1\157\1\145\1\uffff\1\141\1\60\1\151\1\144\1\uffff\1\60\1\163\1\151\1\60\1\uffff\1\60\1\167\1\155\1\143\1\uffff\1\156\1\163\1\uffff\1\60\1\164\2\uffff\1\156\1\60\1\164\1\163\1\60\1\uffff\1\145\1\60\1\uffff\2\60\1\uffff\1\60\4\uffff"; - static final String DFA12_maxS = - "\1\uffff\1\162\1\56\1\142\1\157\1\170\4\uffff\1\145\2\uffff\1\160\2\uffff\1\72\1\uffff\1\75\1\143\2\uffff\1\162\1\141\1\uffff\1\156\2\uffff\1\145\2\uffff\1\uffff\1\57\2\uffff\1\157\3\uffff\1\163\1\141\1\156\1\164\1\165\1\162\4\uffff\1\146\2\uffff\1\160\10\uffff\1\157\2\uffff\1\165\1\154\1\uffff\1\153\2\uffff\1\145\6\uffff\1\142\1\144\1\164\1\163\1\164\1\145\1\155\1\157\1\145\1\157\1\160\1\145\1\163\1\156\1\154\1\172\1\162\1\163\1\141\1\156\1\172\2\162\1\163\1\145\1\172\1\145\1\157\1\145\1\uffff\1\141\1\172\1\151\1\144\1\uffff\1\172\1\163\1\151\1\172\1\uffff\1\172\1\167\1\155\1\143\1\uffff\1\156\1\163\1\uffff\1\172\1\164\2\uffff\1\156\1\172\1\164\1\163\1\172\1\uffff\1\145\1\172\1\uffff\2\172\1\uffff\1\172\4\uffff"; - static final String DFA12_acceptS = - "\6\uffff\1\6\1\7\1\10\1\11\1\uffff\1\15\1\16\1\uffff\1\22\1\23\1\uffff\1\25\2\uffff\1\32\1\34\2\uffff\1\40\1\uffff\1\42\1\43\3\uffff\1\47\1\uffff\1\52\1\53\1\uffff\1\43\1\33\1\2\6\uffff\1\6\1\7\1\10\1\11\1\uffff\1\15\1\16\1\uffff\1\22\1\23\1\24\1\35\1\27\1\25\1\31\1\26\1\uffff\1\32\1\34\2\uffff\1\40\1\uffff\1\42\1\50\1\uffff\1\44\1\45\1\46\1\47\1\51\1\52\35\uffff\1\21\4\uffff\1\12\4\uffff\1\36\4\uffff\1\4\2\uffff\1\20\2\uffff\1\30\1\37\5\uffff\1\14\2\uffff\1\1\2\uffff\1\5\1\uffff\1\41\1\3\1\13\1\17"; - static final String DFA12_specialS = - "\1\2\34\uffff\1\0\1\1\163\uffff}>"; - static final String[] DFA12_transitionS = { - "\11\42\2\41\2\42\1\41\22\42\1\41\1\21\1\35\2\42\1\37\1\42\1\36\1\16\1\17\1\25\1\22\1\6\1\30\1\2\1\40\12\34\1\20\1\10\1\42\1\24\1\42\1\32\1\42\32\33\1\13\1\42\1\14\1\42\1\33\1\42\1\3\1\33\1\4\1\33\1\5\1\27\10\33\1\15\1\1\1\33\1\12\1\23\1\26\1\31\5\33\1\7\1\42\1\11\uff82\42", - "\1\43", - "\1\45", - "\1\47", - "\1\50\2\uffff\1\51", - "\1\53\3\uffff\1\54\5\uffff\1\52", - "", - "", - "", - "", - "\1\61", - "", - "", - "\1\64", - "", - "", - "\1\67\14\uffff\1\70", - "", - "\1\73", - "\1\75", - "", - "", - "\1\100", - "\1\101", - "", - "\1\103", - "", - "", - "\12\106\13\uffff\1\107\37\uffff\1\107", - "\0\110", - "\0\111", - "", - "\1\113\4\uffff\1\112", - "", - "", - "\1\116\11\uffff\1\115", - "", - "", - "", - "\1\117", - "\1\120", - "\1\121", - "\1\122", - "\1\123", - "\1\124", - "", - "", - "", - "", - "\1\125", - "", - "", - "\1\126", - "", - "", - "", - "", - "", - "", - "", - "", - "\1\127", - "", - "", - "\1\130", - "\1\131", - "", - "\1\132", - "", - "", - "\12\106\13\uffff\1\107\37\uffff\1\107", - "", - "", - "", - "", - "", - "", - "\1\133", - "\1\134", - "\1\135", - "\1\136", - "\1\137", - "\1\140", - "\1\141", - "\1\142", - "\1\143", - "\1\144", - "\1\145", - "\1\146", - "\1\147", - "\1\150", - "\1\151", - "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44", - "\1\153", - "\1\154", - "\1\155", - "\1\156", - "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44", - "\1\160", - "\1\161", - "\1\162", - "\1\163", - "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44", - "\1\165", - "\1\166", - "\1\167", - "", - "\1\170", - "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44", - "\1\172", - "\1\173", - "", - "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44", - "\1\175", - "\1\176", - "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44", - "", - "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44", - "\1\u0081", - "\1\u0082", - "\1\u0083", - "", - "\1\u0084", - "\1\u0085", - "", - "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44", - "\1\u0087", - "", - "", - "\1\u0088", - "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44", - "\1\u008a", - "\1\u008b", - "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44", - "", - "\1\u008d", - "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44", - "", - "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44", - "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44", - "", - "\12\44\7\uffff\32\44\4\uffff\1\44\1\uffff\32\44", - "", - "", - "", - "" - }; - - static final short[] DFA12_eot = DFA.unpackEncodedString(DFA12_eotS); - static final short[] DFA12_eof = DFA.unpackEncodedString(DFA12_eofS); - static final char[] DFA12_min = DFA.unpackEncodedStringToUnsignedChars(DFA12_minS); - static final char[] DFA12_max = DFA.unpackEncodedStringToUnsignedChars(DFA12_maxS); - static final short[] DFA12_accept = DFA.unpackEncodedString(DFA12_acceptS); - static final short[] DFA12_special = DFA.unpackEncodedString(DFA12_specialS); - static final short[][] DFA12_transition; - - static { - int numStates = DFA12_transitionS.length; - DFA12_transition = new short[numStates][]; - for (int i=0; i='\u0000' && LA12_29<='\uFFFF')) ) {s = 72;} - - else s = 34; - - if ( s>=0 ) return s; - break; - case 1 : - int LA12_30 = input.LA(1); - - s = -1; - if ( ((LA12_30>='\u0000' && LA12_30<='\uFFFF')) ) {s = 73;} - - else s = 34; - - if ( s>=0 ) return s; - break; - case 2 : - int LA12_0 = input.LA(1); - - s = -1; - if ( (LA12_0=='p') ) {s = 1;} - - else if ( (LA12_0=='.') ) {s = 2;} - - else if ( (LA12_0=='a') ) {s = 3;} - - else if ( (LA12_0=='c') ) {s = 4;} - - else if ( (LA12_0=='e') ) {s = 5;} - - else if ( (LA12_0==',') ) {s = 6;} - - else if ( (LA12_0=='{') ) {s = 7;} - - else if ( (LA12_0==';') ) {s = 8;} - - else if ( (LA12_0=='}') ) {s = 9;} - - else if ( (LA12_0=='r') ) {s = 10;} - - else if ( (LA12_0=='[') ) {s = 11;} - - else if ( (LA12_0==']') ) {s = 12;} - - else if ( (LA12_0=='o') ) {s = 13;} - - else if ( (LA12_0=='(') ) {s = 14;} - - else if ( (LA12_0==')') ) {s = 15;} - - else if ( (LA12_0==':') ) {s = 16;} - - else if ( (LA12_0=='!') ) {s = 17;} - - else if ( (LA12_0=='+') ) {s = 18;} - - else if ( (LA12_0=='s') ) {s = 19;} - - else if ( (LA12_0=='=') ) {s = 20;} - - else if ( (LA12_0=='*') ) {s = 21;} - - else if ( (LA12_0=='t') ) {s = 22;} - - else if ( (LA12_0=='f') ) {s = 23;} - - else if ( (LA12_0=='-') ) {s = 24;} - - else if ( (LA12_0=='u') ) {s = 25;} - - else if ( (LA12_0=='?') ) {s = 26;} - - else if ( ((LA12_0>='A' && LA12_0<='Z')||LA12_0=='_'||LA12_0=='b'||LA12_0=='d'||(LA12_0>='g' && LA12_0<='n')||LA12_0=='q'||(LA12_0>='v' && LA12_0<='z')) ) {s = 27;} - - else if ( ((LA12_0>='0' && LA12_0<='9')) ) {s = 28;} - - else if ( (LA12_0=='\"') ) {s = 29;} - - else if ( (LA12_0=='\'') ) {s = 30;} - - else if ( (LA12_0=='%') ) {s = 31;} - - else if ( (LA12_0=='/') ) {s = 32;} - - else if ( ((LA12_0>='\t' && LA12_0<='\n')||LA12_0=='\r'||LA12_0==' ') ) {s = 33;} - - else if ( ((LA12_0>='\u0000' && LA12_0<='\b')||(LA12_0>='\u000B' && LA12_0<='\f')||(LA12_0>='\u000E' && LA12_0<='\u001F')||(LA12_0>='#' && LA12_0<='$')||LA12_0=='&'||LA12_0=='<'||LA12_0=='>'||LA12_0=='@'||LA12_0=='\\'||LA12_0=='^'||LA12_0=='`'||LA12_0=='|'||(LA12_0>='~' && LA12_0<='\uFFFF')) ) {s = 34;} - - if ( s>=0 ) return s; - break; - } - NoViableAltException nvae = - new NoViableAltException(getDescription(), 12, _s, input); - error(nvae); - throw nvae; - } - } - - -} \ No newline at end of file diff --git a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblemParser.java b/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblemParser.java deleted file mode 100644 index cddaa9c1..00000000 --- a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/parser/antlr/internal/InternalProblemParser.java +++ /dev/null @@ -1,6752 +0,0 @@ -package org.eclipse.viatra.solver.language.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 org.eclipse.viatra.solver.language.services.ProblemGrammarAccess; - - - -import org.antlr.runtime.*; -import java.util.Stack; -import java.util.List; -import java.util.ArrayList; - -@SuppressWarnings("all") -public class InternalProblemParser extends AbstractInternalAntlrParser { - public static final String[] tokenNames = new String[] { - "", "", "", "", "RULE_STRING", "RULE_ID", "RULE_INT", "RULE_QUOTED_ID", "RULE_EXPONENTIAL", "RULE_SL_COMMENT", "RULE_ML_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'problem'", "'.'", "'abstract'", "'class'", "'extends'", "','", "'{'", "';'", "'}'", "'enum'", "'contains'", "'refers'", "'['", "']'", "'opposite'", "'error'", "'pred'", "'('", "')'", "':-'", "'!'", "'+'", "':'", "'scope'", "'+='", "'='", "'..'", "'*'", "'::'", "'true'", "'false'", "'-'", "'unknown'", "'?'" - }; - public static final int T__19=19; - public static final int T__15=15; - public static final int T__16=16; - public static final int T__17=17; - public static final int T__18=18; - public static final int T__13=13; - public static final int T__14=14; - public static final int RULE_EXPONENTIAL=8; - public static final int RULE_ID=5; - public static final int RULE_QUOTED_ID=7; - public static final int T__26=26; - public static final int T__27=27; - public static final int T__28=28; - public static final int RULE_INT=6; - public static final int T__29=29; - public static final int T__22=22; - public static final int RULE_ML_COMMENT=10; - public static final int T__23=23; - public static final int T__24=24; - public static final int T__25=25; - public static final int T__20=20; - public static final int T__21=21; - public static final int RULE_STRING=4; - public static final int RULE_SL_COMMENT=9; - public static final int T__37=37; - public static final int T__38=38; - public static final int T__39=39; - public static final int T__33=33; - public static final int T__34=34; - public static final int T__35=35; - public static final int T__36=36; - public static final int EOF=-1; - public static final int T__30=30; - public static final int T__31=31; - public static final int T__32=32; - public static final int RULE_WS=11; - public static final int RULE_ANY_OTHER=12; - public static final int T__44=44; - public static final int T__45=45; - public static final int T__46=46; - public static final int T__40=40; - public static final int T__41=41; - public static final int T__42=42; - public static final int T__43=43; - - // delegates - // delegators - - - public InternalProblemParser(TokenStream input) { - this(input, new RecognizerSharedState()); - } - public InternalProblemParser(TokenStream input, RecognizerSharedState state) { - super(input, state); - - } - - - public String[] getTokenNames() { return InternalProblemParser.tokenNames; } - public String getGrammarFileName() { return "InternalProblem.g"; } - - - - private ProblemGrammarAccess grammarAccess; - - public InternalProblemParser(TokenStream input, ProblemGrammarAccess grammarAccess) { - this(input); - this.grammarAccess = grammarAccess; - registerRules(grammarAccess.getGrammar()); - } - - @Override - protected String getFirstRuleName() { - return "Problem"; - } - - @Override - protected ProblemGrammarAccess getGrammarAccess() { - return grammarAccess; - } - - - - - // $ANTLR start "entryRuleProblem" - // InternalProblem.g:65:1: entryRuleProblem returns [EObject current=null] : iv_ruleProblem= ruleProblem EOF ; - public final EObject entryRuleProblem() throws RecognitionException { - EObject current = null; - - EObject iv_ruleProblem = null; - - - try { - // InternalProblem.g:65:48: (iv_ruleProblem= ruleProblem EOF ) - // InternalProblem.g:66:2: iv_ruleProblem= ruleProblem EOF - { - newCompositeNode(grammarAccess.getProblemRule()); - pushFollow(FOLLOW_1); - iv_ruleProblem=ruleProblem(); - - state._fsp--; - - current =iv_ruleProblem; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleProblem" - - - // $ANTLR start "ruleProblem" - // InternalProblem.g:72:1: ruleProblem returns [EObject current=null] : ( (otherlv_0= 'problem' ( (lv_name_1_0= ruleIdentifier ) ) otherlv_2= '.' )? ( (lv_statements_3_0= ruleStatement ) )* ) ; - public final EObject ruleProblem() throws RecognitionException { - EObject current = null; - - Token otherlv_0=null; - Token otherlv_2=null; - AntlrDatatypeRuleToken lv_name_1_0 = null; - - EObject lv_statements_3_0 = null; - - - - enterRule(); - - try { - // InternalProblem.g:78:2: ( ( (otherlv_0= 'problem' ( (lv_name_1_0= ruleIdentifier ) ) otherlv_2= '.' )? ( (lv_statements_3_0= ruleStatement ) )* ) ) - // InternalProblem.g:79:2: ( (otherlv_0= 'problem' ( (lv_name_1_0= ruleIdentifier ) ) otherlv_2= '.' )? ( (lv_statements_3_0= ruleStatement ) )* ) - { - // InternalProblem.g:79:2: ( (otherlv_0= 'problem' ( (lv_name_1_0= ruleIdentifier ) ) otherlv_2= '.' )? ( (lv_statements_3_0= ruleStatement ) )* ) - // InternalProblem.g:80:3: (otherlv_0= 'problem' ( (lv_name_1_0= ruleIdentifier ) ) otherlv_2= '.' )? ( (lv_statements_3_0= ruleStatement ) )* - { - // InternalProblem.g:80:3: (otherlv_0= 'problem' ( (lv_name_1_0= ruleIdentifier ) ) otherlv_2= '.' )? - int alt1=2; - int LA1_0 = input.LA(1); - - if ( (LA1_0==13) ) { - alt1=1; - } - switch (alt1) { - case 1 : - // InternalProblem.g:81:4: otherlv_0= 'problem' ( (lv_name_1_0= ruleIdentifier ) ) otherlv_2= '.' - { - otherlv_0=(Token)match(input,13,FOLLOW_3); - - newLeafNode(otherlv_0, grammarAccess.getProblemAccess().getProblemKeyword_0_0()); - - // InternalProblem.g:85:4: ( (lv_name_1_0= ruleIdentifier ) ) - // InternalProblem.g:86:5: (lv_name_1_0= ruleIdentifier ) - { - // InternalProblem.g:86:5: (lv_name_1_0= ruleIdentifier ) - // InternalProblem.g:87:6: lv_name_1_0= ruleIdentifier - { - - newCompositeNode(grammarAccess.getProblemAccess().getNameIdentifierParserRuleCall_0_1_0()); - - pushFollow(FOLLOW_4); - lv_name_1_0=ruleIdentifier(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getProblemRule()); - } - set( - current, - "name", - lv_name_1_0, - "org.eclipse.viatra.solver.language.Problem.Identifier"); - afterParserOrEnumRuleCall(); - - - } - - - } - - otherlv_2=(Token)match(input,14,FOLLOW_5); - - newLeafNode(otherlv_2, grammarAccess.getProblemAccess().getFullStopKeyword_0_2()); - - - } - break; - - } - - // InternalProblem.g:109:3: ( (lv_statements_3_0= ruleStatement ) )* - loop2: - do { - int alt2=2; - int LA2_0 = input.LA(1); - - if ( (LA2_0==RULE_ID||LA2_0==RULE_QUOTED_ID||(LA2_0>=15 && LA2_0<=16)||LA2_0==22||(LA2_0>=28 && LA2_0<=29)||LA2_0==33||LA2_0==36||(LA2_0>=42 && LA2_0<=43)||LA2_0==46) ) { - alt2=1; - } - - - switch (alt2) { - case 1 : - // InternalProblem.g:110:4: (lv_statements_3_0= ruleStatement ) - { - // InternalProblem.g:110:4: (lv_statements_3_0= ruleStatement ) - // InternalProblem.g:111:5: lv_statements_3_0= ruleStatement - { - - newCompositeNode(grammarAccess.getProblemAccess().getStatementsStatementParserRuleCall_1_0()); - - pushFollow(FOLLOW_5); - lv_statements_3_0=ruleStatement(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getProblemRule()); - } - add( - current, - "statements", - lv_statements_3_0, - "org.eclipse.viatra.solver.language.Problem.Statement"); - afterParserOrEnumRuleCall(); - - - } - - - } - break; - - default : - break loop2; - } - } while (true); - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleProblem" - - - // $ANTLR start "entryRuleStatement" - // InternalProblem.g:132:1: entryRuleStatement returns [EObject current=null] : iv_ruleStatement= ruleStatement EOF ; - public final EObject entryRuleStatement() throws RecognitionException { - EObject current = null; - - EObject iv_ruleStatement = null; - - - try { - // InternalProblem.g:132:50: (iv_ruleStatement= ruleStatement EOF ) - // InternalProblem.g:133:2: iv_ruleStatement= ruleStatement EOF - { - newCompositeNode(grammarAccess.getStatementRule()); - pushFollow(FOLLOW_1); - iv_ruleStatement=ruleStatement(); - - state._fsp--; - - current =iv_ruleStatement; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleStatement" - - - // $ANTLR start "ruleStatement" - // InternalProblem.g:139:1: ruleStatement returns [EObject current=null] : (this_ClassDeclaration_0= ruleClassDeclaration | this_EnumDeclaration_1= ruleEnumDeclaration | this_PredicateDefinition_2= rulePredicateDefinition | this_Assertion_3= ruleAssertion | this_NodeValueAssertion_4= ruleNodeValueAssertion | this_ScopeDeclaration_5= ruleScopeDeclaration ) ; - public final EObject ruleStatement() throws RecognitionException { - EObject current = null; - - EObject this_ClassDeclaration_0 = null; - - EObject this_EnumDeclaration_1 = null; - - EObject this_PredicateDefinition_2 = null; - - EObject this_Assertion_3 = null; - - EObject this_NodeValueAssertion_4 = null; - - EObject this_ScopeDeclaration_5 = null; - - - - enterRule(); - - try { - // InternalProblem.g:145:2: ( (this_ClassDeclaration_0= ruleClassDeclaration | this_EnumDeclaration_1= ruleEnumDeclaration | this_PredicateDefinition_2= rulePredicateDefinition | this_Assertion_3= ruleAssertion | this_NodeValueAssertion_4= ruleNodeValueAssertion | this_ScopeDeclaration_5= ruleScopeDeclaration ) ) - // InternalProblem.g:146:2: (this_ClassDeclaration_0= ruleClassDeclaration | this_EnumDeclaration_1= ruleEnumDeclaration | this_PredicateDefinition_2= rulePredicateDefinition | this_Assertion_3= ruleAssertion | this_NodeValueAssertion_4= ruleNodeValueAssertion | this_ScopeDeclaration_5= ruleScopeDeclaration ) - { - // InternalProblem.g:146:2: (this_ClassDeclaration_0= ruleClassDeclaration | this_EnumDeclaration_1= ruleEnumDeclaration | this_PredicateDefinition_2= rulePredicateDefinition | this_Assertion_3= ruleAssertion | this_NodeValueAssertion_4= ruleNodeValueAssertion | this_ScopeDeclaration_5= ruleScopeDeclaration ) - int alt3=6; - alt3 = dfa3.predict(input); - switch (alt3) { - case 1 : - // InternalProblem.g:147:3: this_ClassDeclaration_0= ruleClassDeclaration - { - - newCompositeNode(grammarAccess.getStatementAccess().getClassDeclarationParserRuleCall_0()); - - pushFollow(FOLLOW_2); - this_ClassDeclaration_0=ruleClassDeclaration(); - - state._fsp--; - - - current = this_ClassDeclaration_0; - afterParserOrEnumRuleCall(); - - - } - break; - case 2 : - // InternalProblem.g:156:3: this_EnumDeclaration_1= ruleEnumDeclaration - { - - newCompositeNode(grammarAccess.getStatementAccess().getEnumDeclarationParserRuleCall_1()); - - pushFollow(FOLLOW_2); - this_EnumDeclaration_1=ruleEnumDeclaration(); - - state._fsp--; - - - current = this_EnumDeclaration_1; - afterParserOrEnumRuleCall(); - - - } - break; - case 3 : - // InternalProblem.g:165:3: this_PredicateDefinition_2= rulePredicateDefinition - { - - newCompositeNode(grammarAccess.getStatementAccess().getPredicateDefinitionParserRuleCall_2()); - - pushFollow(FOLLOW_2); - this_PredicateDefinition_2=rulePredicateDefinition(); - - state._fsp--; - - - current = this_PredicateDefinition_2; - afterParserOrEnumRuleCall(); - - - } - break; - case 4 : - // InternalProblem.g:174:3: this_Assertion_3= ruleAssertion - { - - newCompositeNode(grammarAccess.getStatementAccess().getAssertionParserRuleCall_3()); - - pushFollow(FOLLOW_2); - this_Assertion_3=ruleAssertion(); - - state._fsp--; - - - current = this_Assertion_3; - afterParserOrEnumRuleCall(); - - - } - break; - case 5 : - // InternalProblem.g:183:3: this_NodeValueAssertion_4= ruleNodeValueAssertion - { - - newCompositeNode(grammarAccess.getStatementAccess().getNodeValueAssertionParserRuleCall_4()); - - pushFollow(FOLLOW_2); - this_NodeValueAssertion_4=ruleNodeValueAssertion(); - - state._fsp--; - - - current = this_NodeValueAssertion_4; - afterParserOrEnumRuleCall(); - - - } - break; - case 6 : - // InternalProblem.g:192:3: this_ScopeDeclaration_5= ruleScopeDeclaration - { - - newCompositeNode(grammarAccess.getStatementAccess().getScopeDeclarationParserRuleCall_5()); - - pushFollow(FOLLOW_2); - this_ScopeDeclaration_5=ruleScopeDeclaration(); - - state._fsp--; - - - current = this_ScopeDeclaration_5; - afterParserOrEnumRuleCall(); - - - } - break; - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleStatement" - - - // $ANTLR start "entryRuleClassDeclaration" - // InternalProblem.g:204:1: entryRuleClassDeclaration returns [EObject current=null] : iv_ruleClassDeclaration= ruleClassDeclaration EOF ; - public final EObject entryRuleClassDeclaration() throws RecognitionException { - EObject current = null; - - EObject iv_ruleClassDeclaration = null; - - - try { - // InternalProblem.g:204:57: (iv_ruleClassDeclaration= ruleClassDeclaration EOF ) - // InternalProblem.g:205:2: iv_ruleClassDeclaration= ruleClassDeclaration EOF - { - newCompositeNode(grammarAccess.getClassDeclarationRule()); - pushFollow(FOLLOW_1); - iv_ruleClassDeclaration=ruleClassDeclaration(); - - state._fsp--; - - current =iv_ruleClassDeclaration; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleClassDeclaration" - - - // $ANTLR start "ruleClassDeclaration" - // InternalProblem.g:211:1: ruleClassDeclaration returns [EObject current=null] : ( ( (lv_abstract_0_0= 'abstract' ) )? otherlv_1= 'class' ( (lv_name_2_0= ruleIdentifier ) ) (otherlv_3= 'extends' ( ( ruleQualifiedName ) ) (otherlv_5= ',' ( ( ruleQualifiedName ) ) )* )? ( (otherlv_7= '{' ( ( (lv_referenceDeclarations_8_0= ruleReferenceDeclaration ) ) (otherlv_9= ';' )? )* otherlv_10= '}' ) | otherlv_11= '.' ) ) ; - public final EObject ruleClassDeclaration() throws RecognitionException { - EObject current = null; - - Token lv_abstract_0_0=null; - Token otherlv_1=null; - Token otherlv_3=null; - Token otherlv_5=null; - Token otherlv_7=null; - Token otherlv_9=null; - Token otherlv_10=null; - Token otherlv_11=null; - AntlrDatatypeRuleToken lv_name_2_0 = null; - - EObject lv_referenceDeclarations_8_0 = null; - - - - enterRule(); - - try { - // InternalProblem.g:217:2: ( ( ( (lv_abstract_0_0= 'abstract' ) )? otherlv_1= 'class' ( (lv_name_2_0= ruleIdentifier ) ) (otherlv_3= 'extends' ( ( ruleQualifiedName ) ) (otherlv_5= ',' ( ( ruleQualifiedName ) ) )* )? ( (otherlv_7= '{' ( ( (lv_referenceDeclarations_8_0= ruleReferenceDeclaration ) ) (otherlv_9= ';' )? )* otherlv_10= '}' ) | otherlv_11= '.' ) ) ) - // InternalProblem.g:218:2: ( ( (lv_abstract_0_0= 'abstract' ) )? otherlv_1= 'class' ( (lv_name_2_0= ruleIdentifier ) ) (otherlv_3= 'extends' ( ( ruleQualifiedName ) ) (otherlv_5= ',' ( ( ruleQualifiedName ) ) )* )? ( (otherlv_7= '{' ( ( (lv_referenceDeclarations_8_0= ruleReferenceDeclaration ) ) (otherlv_9= ';' )? )* otherlv_10= '}' ) | otherlv_11= '.' ) ) - { - // InternalProblem.g:218:2: ( ( (lv_abstract_0_0= 'abstract' ) )? otherlv_1= 'class' ( (lv_name_2_0= ruleIdentifier ) ) (otherlv_3= 'extends' ( ( ruleQualifiedName ) ) (otherlv_5= ',' ( ( ruleQualifiedName ) ) )* )? ( (otherlv_7= '{' ( ( (lv_referenceDeclarations_8_0= ruleReferenceDeclaration ) ) (otherlv_9= ';' )? )* otherlv_10= '}' ) | otherlv_11= '.' ) ) - // InternalProblem.g:219:3: ( (lv_abstract_0_0= 'abstract' ) )? otherlv_1= 'class' ( (lv_name_2_0= ruleIdentifier ) ) (otherlv_3= 'extends' ( ( ruleQualifiedName ) ) (otherlv_5= ',' ( ( ruleQualifiedName ) ) )* )? ( (otherlv_7= '{' ( ( (lv_referenceDeclarations_8_0= ruleReferenceDeclaration ) ) (otherlv_9= ';' )? )* otherlv_10= '}' ) | otherlv_11= '.' ) - { - // InternalProblem.g:219:3: ( (lv_abstract_0_0= 'abstract' ) )? - int alt4=2; - int LA4_0 = input.LA(1); - - if ( (LA4_0==15) ) { - alt4=1; - } - switch (alt4) { - case 1 : - // InternalProblem.g:220:4: (lv_abstract_0_0= 'abstract' ) - { - // InternalProblem.g:220:4: (lv_abstract_0_0= 'abstract' ) - // InternalProblem.g:221:5: lv_abstract_0_0= 'abstract' - { - lv_abstract_0_0=(Token)match(input,15,FOLLOW_6); - - newLeafNode(lv_abstract_0_0, grammarAccess.getClassDeclarationAccess().getAbstractAbstractKeyword_0_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getClassDeclarationRule()); - } - setWithLastConsumed(current, "abstract", lv_abstract_0_0 != null, "abstract"); - - - } - - - } - break; - - } - - otherlv_1=(Token)match(input,16,FOLLOW_3); - - newLeafNode(otherlv_1, grammarAccess.getClassDeclarationAccess().getClassKeyword_1()); - - // InternalProblem.g:237:3: ( (lv_name_2_0= ruleIdentifier ) ) - // InternalProblem.g:238:4: (lv_name_2_0= ruleIdentifier ) - { - // InternalProblem.g:238:4: (lv_name_2_0= ruleIdentifier ) - // InternalProblem.g:239:5: lv_name_2_0= ruleIdentifier - { - - newCompositeNode(grammarAccess.getClassDeclarationAccess().getNameIdentifierParserRuleCall_2_0()); - - pushFollow(FOLLOW_7); - lv_name_2_0=ruleIdentifier(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getClassDeclarationRule()); - } - set( - current, - "name", - lv_name_2_0, - "org.eclipse.viatra.solver.language.Problem.Identifier"); - afterParserOrEnumRuleCall(); - - - } - - - } - - // InternalProblem.g:256:3: (otherlv_3= 'extends' ( ( ruleQualifiedName ) ) (otherlv_5= ',' ( ( ruleQualifiedName ) ) )* )? - int alt6=2; - int LA6_0 = input.LA(1); - - if ( (LA6_0==17) ) { - alt6=1; - } - switch (alt6) { - case 1 : - // InternalProblem.g:257:4: otherlv_3= 'extends' ( ( ruleQualifiedName ) ) (otherlv_5= ',' ( ( ruleQualifiedName ) ) )* - { - otherlv_3=(Token)match(input,17,FOLLOW_8); - - newLeafNode(otherlv_3, grammarAccess.getClassDeclarationAccess().getExtendsKeyword_3_0()); - - // InternalProblem.g:261:4: ( ( ruleQualifiedName ) ) - // InternalProblem.g:262:5: ( ruleQualifiedName ) - { - // InternalProblem.g:262:5: ( ruleQualifiedName ) - // InternalProblem.g:263:6: ruleQualifiedName - { - - if (current==null) { - current = createModelElement(grammarAccess.getClassDeclarationRule()); - } - - - newCompositeNode(grammarAccess.getClassDeclarationAccess().getSuperTypesRelationCrossReference_3_1_0()); - - pushFollow(FOLLOW_9); - ruleQualifiedName(); - - state._fsp--; - - - afterParserOrEnumRuleCall(); - - - } - - - } - - // InternalProblem.g:277:4: (otherlv_5= ',' ( ( ruleQualifiedName ) ) )* - loop5: - do { - int alt5=2; - int LA5_0 = input.LA(1); - - if ( (LA5_0==18) ) { - alt5=1; - } - - - switch (alt5) { - case 1 : - // InternalProblem.g:278:5: otherlv_5= ',' ( ( ruleQualifiedName ) ) - { - otherlv_5=(Token)match(input,18,FOLLOW_8); - - newLeafNode(otherlv_5, grammarAccess.getClassDeclarationAccess().getCommaKeyword_3_2_0()); - - // InternalProblem.g:282:5: ( ( ruleQualifiedName ) ) - // InternalProblem.g:283:6: ( ruleQualifiedName ) - { - // InternalProblem.g:283:6: ( ruleQualifiedName ) - // InternalProblem.g:284:7: ruleQualifiedName - { - - if (current==null) { - current = createModelElement(grammarAccess.getClassDeclarationRule()); - } - - - newCompositeNode(grammarAccess.getClassDeclarationAccess().getSuperTypesRelationCrossReference_3_2_1_0()); - - pushFollow(FOLLOW_9); - ruleQualifiedName(); - - state._fsp--; - - - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - break; - - default : - break loop5; - } - } while (true); - - - } - break; - - } - - // InternalProblem.g:300:3: ( (otherlv_7= '{' ( ( (lv_referenceDeclarations_8_0= ruleReferenceDeclaration ) ) (otherlv_9= ';' )? )* otherlv_10= '}' ) | otherlv_11= '.' ) - int alt9=2; - int LA9_0 = input.LA(1); - - if ( (LA9_0==19) ) { - alt9=1; - } - else if ( (LA9_0==14) ) { - alt9=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 9, 0, input); - - throw nvae; - } - switch (alt9) { - case 1 : - // InternalProblem.g:301:4: (otherlv_7= '{' ( ( (lv_referenceDeclarations_8_0= ruleReferenceDeclaration ) ) (otherlv_9= ';' )? )* otherlv_10= '}' ) - { - // InternalProblem.g:301:4: (otherlv_7= '{' ( ( (lv_referenceDeclarations_8_0= ruleReferenceDeclaration ) ) (otherlv_9= ';' )? )* otherlv_10= '}' ) - // InternalProblem.g:302:5: otherlv_7= '{' ( ( (lv_referenceDeclarations_8_0= ruleReferenceDeclaration ) ) (otherlv_9= ';' )? )* otherlv_10= '}' - { - otherlv_7=(Token)match(input,19,FOLLOW_10); - - newLeafNode(otherlv_7, grammarAccess.getClassDeclarationAccess().getLeftCurlyBracketKeyword_4_0_0()); - - // InternalProblem.g:306:5: ( ( (lv_referenceDeclarations_8_0= ruleReferenceDeclaration ) ) (otherlv_9= ';' )? )* - loop8: - do { - int alt8=2; - int LA8_0 = input.LA(1); - - if ( (LA8_0==RULE_ID||LA8_0==RULE_QUOTED_ID||(LA8_0>=23 && LA8_0<=24)||(LA8_0>=42 && LA8_0<=43)) ) { - alt8=1; - } - - - switch (alt8) { - case 1 : - // InternalProblem.g:307:6: ( (lv_referenceDeclarations_8_0= ruleReferenceDeclaration ) ) (otherlv_9= ';' )? - { - // InternalProblem.g:307:6: ( (lv_referenceDeclarations_8_0= ruleReferenceDeclaration ) ) - // InternalProblem.g:308:7: (lv_referenceDeclarations_8_0= ruleReferenceDeclaration ) - { - // InternalProblem.g:308:7: (lv_referenceDeclarations_8_0= ruleReferenceDeclaration ) - // InternalProblem.g:309:8: lv_referenceDeclarations_8_0= ruleReferenceDeclaration - { - - newCompositeNode(grammarAccess.getClassDeclarationAccess().getReferenceDeclarationsReferenceDeclarationParserRuleCall_4_0_1_0_0()); - - pushFollow(FOLLOW_11); - lv_referenceDeclarations_8_0=ruleReferenceDeclaration(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getClassDeclarationRule()); - } - add( - current, - "referenceDeclarations", - lv_referenceDeclarations_8_0, - "org.eclipse.viatra.solver.language.Problem.ReferenceDeclaration"); - afterParserOrEnumRuleCall(); - - - } - - - } - - // InternalProblem.g:326:6: (otherlv_9= ';' )? - int alt7=2; - int LA7_0 = input.LA(1); - - if ( (LA7_0==20) ) { - alt7=1; - } - switch (alt7) { - case 1 : - // InternalProblem.g:327:7: otherlv_9= ';' - { - otherlv_9=(Token)match(input,20,FOLLOW_10); - - newLeafNode(otherlv_9, grammarAccess.getClassDeclarationAccess().getSemicolonKeyword_4_0_1_1()); - - - } - break; - - } - - - } - break; - - default : - break loop8; - } - } while (true); - - otherlv_10=(Token)match(input,21,FOLLOW_2); - - newLeafNode(otherlv_10, grammarAccess.getClassDeclarationAccess().getRightCurlyBracketKeyword_4_0_2()); - - - } - - - } - break; - case 2 : - // InternalProblem.g:339:4: otherlv_11= '.' - { - otherlv_11=(Token)match(input,14,FOLLOW_2); - - newLeafNode(otherlv_11, grammarAccess.getClassDeclarationAccess().getFullStopKeyword_4_1()); - - - } - break; - - } - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleClassDeclaration" - - - // $ANTLR start "entryRuleEnumDeclaration" - // InternalProblem.g:348:1: entryRuleEnumDeclaration returns [EObject current=null] : iv_ruleEnumDeclaration= ruleEnumDeclaration EOF ; - public final EObject entryRuleEnumDeclaration() throws RecognitionException { - EObject current = null; - - EObject iv_ruleEnumDeclaration = null; - - - try { - // InternalProblem.g:348:56: (iv_ruleEnumDeclaration= ruleEnumDeclaration EOF ) - // InternalProblem.g:349:2: iv_ruleEnumDeclaration= ruleEnumDeclaration EOF - { - newCompositeNode(grammarAccess.getEnumDeclarationRule()); - pushFollow(FOLLOW_1); - iv_ruleEnumDeclaration=ruleEnumDeclaration(); - - state._fsp--; - - current =iv_ruleEnumDeclaration; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleEnumDeclaration" - - - // $ANTLR start "ruleEnumDeclaration" - // InternalProblem.g:355:1: ruleEnumDeclaration returns [EObject current=null] : (otherlv_0= 'enum' ( (lv_name_1_0= ruleIdentifier ) ) ( (otherlv_2= '{' ( ( (lv_literals_3_0= ruleEnumLiteral ) ) (otherlv_4= ',' ( (lv_literals_5_0= ruleEnumLiteral ) ) )* (otherlv_6= ',' | otherlv_7= ';' )? )? otherlv_8= '}' ) | otherlv_9= '.' ) ) ; - public final EObject ruleEnumDeclaration() throws RecognitionException { - EObject current = null; - - Token otherlv_0=null; - Token otherlv_2=null; - Token otherlv_4=null; - Token otherlv_6=null; - Token otherlv_7=null; - Token otherlv_8=null; - Token otherlv_9=null; - AntlrDatatypeRuleToken lv_name_1_0 = null; - - EObject lv_literals_3_0 = null; - - EObject lv_literals_5_0 = null; - - - - enterRule(); - - try { - // InternalProblem.g:361:2: ( (otherlv_0= 'enum' ( (lv_name_1_0= ruleIdentifier ) ) ( (otherlv_2= '{' ( ( (lv_literals_3_0= ruleEnumLiteral ) ) (otherlv_4= ',' ( (lv_literals_5_0= ruleEnumLiteral ) ) )* (otherlv_6= ',' | otherlv_7= ';' )? )? otherlv_8= '}' ) | otherlv_9= '.' ) ) ) - // InternalProblem.g:362:2: (otherlv_0= 'enum' ( (lv_name_1_0= ruleIdentifier ) ) ( (otherlv_2= '{' ( ( (lv_literals_3_0= ruleEnumLiteral ) ) (otherlv_4= ',' ( (lv_literals_5_0= ruleEnumLiteral ) ) )* (otherlv_6= ',' | otherlv_7= ';' )? )? otherlv_8= '}' ) | otherlv_9= '.' ) ) - { - // InternalProblem.g:362:2: (otherlv_0= 'enum' ( (lv_name_1_0= ruleIdentifier ) ) ( (otherlv_2= '{' ( ( (lv_literals_3_0= ruleEnumLiteral ) ) (otherlv_4= ',' ( (lv_literals_5_0= ruleEnumLiteral ) ) )* (otherlv_6= ',' | otherlv_7= ';' )? )? otherlv_8= '}' ) | otherlv_9= '.' ) ) - // InternalProblem.g:363:3: otherlv_0= 'enum' ( (lv_name_1_0= ruleIdentifier ) ) ( (otherlv_2= '{' ( ( (lv_literals_3_0= ruleEnumLiteral ) ) (otherlv_4= ',' ( (lv_literals_5_0= ruleEnumLiteral ) ) )* (otherlv_6= ',' | otherlv_7= ';' )? )? otherlv_8= '}' ) | otherlv_9= '.' ) - { - otherlv_0=(Token)match(input,22,FOLLOW_3); - - newLeafNode(otherlv_0, grammarAccess.getEnumDeclarationAccess().getEnumKeyword_0()); - - // InternalProblem.g:367:3: ( (lv_name_1_0= ruleIdentifier ) ) - // InternalProblem.g:368:4: (lv_name_1_0= ruleIdentifier ) - { - // InternalProblem.g:368:4: (lv_name_1_0= ruleIdentifier ) - // InternalProblem.g:369:5: lv_name_1_0= ruleIdentifier - { - - newCompositeNode(grammarAccess.getEnumDeclarationAccess().getNameIdentifierParserRuleCall_1_0()); - - pushFollow(FOLLOW_12); - lv_name_1_0=ruleIdentifier(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getEnumDeclarationRule()); - } - set( - current, - "name", - lv_name_1_0, - "org.eclipse.viatra.solver.language.Problem.Identifier"); - afterParserOrEnumRuleCall(); - - - } - - - } - - // InternalProblem.g:386:3: ( (otherlv_2= '{' ( ( (lv_literals_3_0= ruleEnumLiteral ) ) (otherlv_4= ',' ( (lv_literals_5_0= ruleEnumLiteral ) ) )* (otherlv_6= ',' | otherlv_7= ';' )? )? otherlv_8= '}' ) | otherlv_9= '.' ) - int alt13=2; - int LA13_0 = input.LA(1); - - if ( (LA13_0==19) ) { - alt13=1; - } - else if ( (LA13_0==14) ) { - alt13=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 13, 0, input); - - throw nvae; - } - switch (alt13) { - case 1 : - // InternalProblem.g:387:4: (otherlv_2= '{' ( ( (lv_literals_3_0= ruleEnumLiteral ) ) (otherlv_4= ',' ( (lv_literals_5_0= ruleEnumLiteral ) ) )* (otherlv_6= ',' | otherlv_7= ';' )? )? otherlv_8= '}' ) - { - // InternalProblem.g:387:4: (otherlv_2= '{' ( ( (lv_literals_3_0= ruleEnumLiteral ) ) (otherlv_4= ',' ( (lv_literals_5_0= ruleEnumLiteral ) ) )* (otherlv_6= ',' | otherlv_7= ';' )? )? otherlv_8= '}' ) - // InternalProblem.g:388:5: otherlv_2= '{' ( ( (lv_literals_3_0= ruleEnumLiteral ) ) (otherlv_4= ',' ( (lv_literals_5_0= ruleEnumLiteral ) ) )* (otherlv_6= ',' | otherlv_7= ';' )? )? otherlv_8= '}' - { - otherlv_2=(Token)match(input,19,FOLLOW_13); - - newLeafNode(otherlv_2, grammarAccess.getEnumDeclarationAccess().getLeftCurlyBracketKeyword_2_0_0()); - - // InternalProblem.g:392:5: ( ( (lv_literals_3_0= ruleEnumLiteral ) ) (otherlv_4= ',' ( (lv_literals_5_0= ruleEnumLiteral ) ) )* (otherlv_6= ',' | otherlv_7= ';' )? )? - int alt12=2; - int LA12_0 = input.LA(1); - - if ( (LA12_0==RULE_ID||(LA12_0>=42 && LA12_0<=43)) ) { - alt12=1; - } - switch (alt12) { - case 1 : - // InternalProblem.g:393:6: ( (lv_literals_3_0= ruleEnumLiteral ) ) (otherlv_4= ',' ( (lv_literals_5_0= ruleEnumLiteral ) ) )* (otherlv_6= ',' | otherlv_7= ';' )? - { - // InternalProblem.g:393:6: ( (lv_literals_3_0= ruleEnumLiteral ) ) - // InternalProblem.g:394:7: (lv_literals_3_0= ruleEnumLiteral ) - { - // InternalProblem.g:394:7: (lv_literals_3_0= ruleEnumLiteral ) - // InternalProblem.g:395:8: lv_literals_3_0= ruleEnumLiteral - { - - newCompositeNode(grammarAccess.getEnumDeclarationAccess().getLiteralsEnumLiteralParserRuleCall_2_0_1_0_0()); - - pushFollow(FOLLOW_14); - lv_literals_3_0=ruleEnumLiteral(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getEnumDeclarationRule()); - } - add( - current, - "literals", - lv_literals_3_0, - "org.eclipse.viatra.solver.language.Problem.EnumLiteral"); - afterParserOrEnumRuleCall(); - - - } - - - } - - // InternalProblem.g:412:6: (otherlv_4= ',' ( (lv_literals_5_0= ruleEnumLiteral ) ) )* - loop10: - do { - int alt10=2; - int LA10_0 = input.LA(1); - - if ( (LA10_0==18) ) { - int LA10_1 = input.LA(2); - - if ( (LA10_1==RULE_ID||(LA10_1>=42 && LA10_1<=43)) ) { - alt10=1; - } - - - } - - - switch (alt10) { - case 1 : - // InternalProblem.g:413:7: otherlv_4= ',' ( (lv_literals_5_0= ruleEnumLiteral ) ) - { - otherlv_4=(Token)match(input,18,FOLLOW_3); - - newLeafNode(otherlv_4, grammarAccess.getEnumDeclarationAccess().getCommaKeyword_2_0_1_1_0()); - - // InternalProblem.g:417:7: ( (lv_literals_5_0= ruleEnumLiteral ) ) - // InternalProblem.g:418:8: (lv_literals_5_0= ruleEnumLiteral ) - { - // InternalProblem.g:418:8: (lv_literals_5_0= ruleEnumLiteral ) - // InternalProblem.g:419:9: lv_literals_5_0= ruleEnumLiteral - { - - newCompositeNode(grammarAccess.getEnumDeclarationAccess().getLiteralsEnumLiteralParserRuleCall_2_0_1_1_1_0()); - - pushFollow(FOLLOW_14); - lv_literals_5_0=ruleEnumLiteral(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getEnumDeclarationRule()); - } - add( - current, - "literals", - lv_literals_5_0, - "org.eclipse.viatra.solver.language.Problem.EnumLiteral"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - break; - - default : - break loop10; - } - } while (true); - - // InternalProblem.g:437:6: (otherlv_6= ',' | otherlv_7= ';' )? - int alt11=3; - int LA11_0 = input.LA(1); - - if ( (LA11_0==18) ) { - alt11=1; - } - else if ( (LA11_0==20) ) { - alt11=2; - } - switch (alt11) { - case 1 : - // InternalProblem.g:438:7: otherlv_6= ',' - { - otherlv_6=(Token)match(input,18,FOLLOW_15); - - newLeafNode(otherlv_6, grammarAccess.getEnumDeclarationAccess().getCommaKeyword_2_0_1_2_0()); - - - } - break; - case 2 : - // InternalProblem.g:443:7: otherlv_7= ';' - { - otherlv_7=(Token)match(input,20,FOLLOW_15); - - newLeafNode(otherlv_7, grammarAccess.getEnumDeclarationAccess().getSemicolonKeyword_2_0_1_2_1()); - - - } - break; - - } - - - } - break; - - } - - otherlv_8=(Token)match(input,21,FOLLOW_2); - - newLeafNode(otherlv_8, grammarAccess.getEnumDeclarationAccess().getRightCurlyBracketKeyword_2_0_2()); - - - } - - - } - break; - case 2 : - // InternalProblem.g:455:4: otherlv_9= '.' - { - otherlv_9=(Token)match(input,14,FOLLOW_2); - - newLeafNode(otherlv_9, grammarAccess.getEnumDeclarationAccess().getFullStopKeyword_2_1()); - - - } - break; - - } - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleEnumDeclaration" - - - // $ANTLR start "entryRuleEnumLiteral" - // InternalProblem.g:464:1: entryRuleEnumLiteral returns [EObject current=null] : iv_ruleEnumLiteral= ruleEnumLiteral EOF ; - public final EObject entryRuleEnumLiteral() throws RecognitionException { - EObject current = null; - - EObject iv_ruleEnumLiteral = null; - - - try { - // InternalProblem.g:464:52: (iv_ruleEnumLiteral= ruleEnumLiteral EOF ) - // InternalProblem.g:465:2: iv_ruleEnumLiteral= ruleEnumLiteral EOF - { - newCompositeNode(grammarAccess.getEnumLiteralRule()); - pushFollow(FOLLOW_1); - iv_ruleEnumLiteral=ruleEnumLiteral(); - - state._fsp--; - - current =iv_ruleEnumLiteral; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleEnumLiteral" - - - // $ANTLR start "ruleEnumLiteral" - // InternalProblem.g:471:1: ruleEnumLiteral returns [EObject current=null] : ( (lv_name_0_0= ruleIdentifier ) ) ; - public final EObject ruleEnumLiteral() throws RecognitionException { - EObject current = null; - - AntlrDatatypeRuleToken lv_name_0_0 = null; - - - - enterRule(); - - try { - // InternalProblem.g:477:2: ( ( (lv_name_0_0= ruleIdentifier ) ) ) - // InternalProblem.g:478:2: ( (lv_name_0_0= ruleIdentifier ) ) - { - // InternalProblem.g:478:2: ( (lv_name_0_0= ruleIdentifier ) ) - // InternalProblem.g:479:3: (lv_name_0_0= ruleIdentifier ) - { - // InternalProblem.g:479:3: (lv_name_0_0= ruleIdentifier ) - // InternalProblem.g:480:4: lv_name_0_0= ruleIdentifier - { - - newCompositeNode(grammarAccess.getEnumLiteralAccess().getNameIdentifierParserRuleCall_0()); - - pushFollow(FOLLOW_2); - lv_name_0_0=ruleIdentifier(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getEnumLiteralRule()); - } - set( - current, - "name", - lv_name_0_0, - "org.eclipse.viatra.solver.language.Problem.Identifier"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleEnumLiteral" - - - // $ANTLR start "entryRuleReferenceDeclaration" - // InternalProblem.g:500:1: entryRuleReferenceDeclaration returns [EObject current=null] : iv_ruleReferenceDeclaration= ruleReferenceDeclaration EOF ; - public final EObject entryRuleReferenceDeclaration() throws RecognitionException { - EObject current = null; - - EObject iv_ruleReferenceDeclaration = null; - - - try { - // InternalProblem.g:500:61: (iv_ruleReferenceDeclaration= ruleReferenceDeclaration EOF ) - // InternalProblem.g:501:2: iv_ruleReferenceDeclaration= ruleReferenceDeclaration EOF - { - newCompositeNode(grammarAccess.getReferenceDeclarationRule()); - pushFollow(FOLLOW_1); - iv_ruleReferenceDeclaration=ruleReferenceDeclaration(); - - state._fsp--; - - current =iv_ruleReferenceDeclaration; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleReferenceDeclaration" - - - // $ANTLR start "ruleReferenceDeclaration" - // InternalProblem.g:507:1: ruleReferenceDeclaration returns [EObject current=null] : ( ( ( (lv_containment_0_0= 'contains' ) ) | otherlv_1= 'refers' )? ( ( ruleQualifiedName ) ) (otherlv_3= '[' ( (lv_multiplicity_4_0= ruleMultiplicity ) ) otherlv_5= ']' )? ( (lv_name_6_0= ruleIdentifier ) ) (otherlv_7= 'opposite' ( ( ruleQualifiedName ) ) )? ) ; - public final EObject ruleReferenceDeclaration() throws RecognitionException { - EObject current = null; - - Token lv_containment_0_0=null; - Token otherlv_1=null; - Token otherlv_3=null; - Token otherlv_5=null; - Token otherlv_7=null; - EObject lv_multiplicity_4_0 = null; - - AntlrDatatypeRuleToken lv_name_6_0 = null; - - - - enterRule(); - - try { - // InternalProblem.g:513:2: ( ( ( ( (lv_containment_0_0= 'contains' ) ) | otherlv_1= 'refers' )? ( ( ruleQualifiedName ) ) (otherlv_3= '[' ( (lv_multiplicity_4_0= ruleMultiplicity ) ) otherlv_5= ']' )? ( (lv_name_6_0= ruleIdentifier ) ) (otherlv_7= 'opposite' ( ( ruleQualifiedName ) ) )? ) ) - // InternalProblem.g:514:2: ( ( ( (lv_containment_0_0= 'contains' ) ) | otherlv_1= 'refers' )? ( ( ruleQualifiedName ) ) (otherlv_3= '[' ( (lv_multiplicity_4_0= ruleMultiplicity ) ) otherlv_5= ']' )? ( (lv_name_6_0= ruleIdentifier ) ) (otherlv_7= 'opposite' ( ( ruleQualifiedName ) ) )? ) - { - // InternalProblem.g:514:2: ( ( ( (lv_containment_0_0= 'contains' ) ) | otherlv_1= 'refers' )? ( ( ruleQualifiedName ) ) (otherlv_3= '[' ( (lv_multiplicity_4_0= ruleMultiplicity ) ) otherlv_5= ']' )? ( (lv_name_6_0= ruleIdentifier ) ) (otherlv_7= 'opposite' ( ( ruleQualifiedName ) ) )? ) - // InternalProblem.g:515:3: ( ( (lv_containment_0_0= 'contains' ) ) | otherlv_1= 'refers' )? ( ( ruleQualifiedName ) ) (otherlv_3= '[' ( (lv_multiplicity_4_0= ruleMultiplicity ) ) otherlv_5= ']' )? ( (lv_name_6_0= ruleIdentifier ) ) (otherlv_7= 'opposite' ( ( ruleQualifiedName ) ) )? - { - // InternalProblem.g:515:3: ( ( (lv_containment_0_0= 'contains' ) ) | otherlv_1= 'refers' )? - int alt14=3; - int LA14_0 = input.LA(1); - - if ( (LA14_0==23) ) { - alt14=1; - } - else if ( (LA14_0==24) ) { - alt14=2; - } - switch (alt14) { - case 1 : - // InternalProblem.g:516:4: ( (lv_containment_0_0= 'contains' ) ) - { - // InternalProblem.g:516:4: ( (lv_containment_0_0= 'contains' ) ) - // InternalProblem.g:517:5: (lv_containment_0_0= 'contains' ) - { - // InternalProblem.g:517:5: (lv_containment_0_0= 'contains' ) - // InternalProblem.g:518:6: lv_containment_0_0= 'contains' - { - lv_containment_0_0=(Token)match(input,23,FOLLOW_8); - - newLeafNode(lv_containment_0_0, grammarAccess.getReferenceDeclarationAccess().getContainmentContainsKeyword_0_0_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getReferenceDeclarationRule()); - } - setWithLastConsumed(current, "containment", lv_containment_0_0 != null, "contains"); - - - } - - - } - - - } - break; - case 2 : - // InternalProblem.g:531:4: otherlv_1= 'refers' - { - otherlv_1=(Token)match(input,24,FOLLOW_8); - - newLeafNode(otherlv_1, grammarAccess.getReferenceDeclarationAccess().getRefersKeyword_0_1()); - - - } - break; - - } - - // InternalProblem.g:536:3: ( ( ruleQualifiedName ) ) - // InternalProblem.g:537:4: ( ruleQualifiedName ) - { - // InternalProblem.g:537:4: ( ruleQualifiedName ) - // InternalProblem.g:538:5: ruleQualifiedName - { - - if (current==null) { - current = createModelElement(grammarAccess.getReferenceDeclarationRule()); - } - - - newCompositeNode(grammarAccess.getReferenceDeclarationAccess().getReferenceTypeRelationCrossReference_1_0()); - - pushFollow(FOLLOW_16); - ruleQualifiedName(); - - state._fsp--; - - - afterParserOrEnumRuleCall(); - - - } - - - } - - // InternalProblem.g:552:3: (otherlv_3= '[' ( (lv_multiplicity_4_0= ruleMultiplicity ) ) otherlv_5= ']' )? - int alt15=2; - int LA15_0 = input.LA(1); - - if ( (LA15_0==25) ) { - alt15=1; - } - switch (alt15) { - case 1 : - // InternalProblem.g:553:4: otherlv_3= '[' ( (lv_multiplicity_4_0= ruleMultiplicity ) ) otherlv_5= ']' - { - otherlv_3=(Token)match(input,25,FOLLOW_17); - - newLeafNode(otherlv_3, grammarAccess.getReferenceDeclarationAccess().getLeftSquareBracketKeyword_2_0()); - - // InternalProblem.g:557:4: ( (lv_multiplicity_4_0= ruleMultiplicity ) ) - // InternalProblem.g:558:5: (lv_multiplicity_4_0= ruleMultiplicity ) - { - // InternalProblem.g:558:5: (lv_multiplicity_4_0= ruleMultiplicity ) - // InternalProblem.g:559:6: lv_multiplicity_4_0= ruleMultiplicity - { - - newCompositeNode(grammarAccess.getReferenceDeclarationAccess().getMultiplicityMultiplicityParserRuleCall_2_1_0()); - - pushFollow(FOLLOW_18); - lv_multiplicity_4_0=ruleMultiplicity(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getReferenceDeclarationRule()); - } - set( - current, - "multiplicity", - lv_multiplicity_4_0, - "org.eclipse.viatra.solver.language.Problem.Multiplicity"); - afterParserOrEnumRuleCall(); - - - } - - - } - - otherlv_5=(Token)match(input,26,FOLLOW_3); - - newLeafNode(otherlv_5, grammarAccess.getReferenceDeclarationAccess().getRightSquareBracketKeyword_2_2()); - - - } - break; - - } - - // InternalProblem.g:581:3: ( (lv_name_6_0= ruleIdentifier ) ) - // InternalProblem.g:582:4: (lv_name_6_0= ruleIdentifier ) - { - // InternalProblem.g:582:4: (lv_name_6_0= ruleIdentifier ) - // InternalProblem.g:583:5: lv_name_6_0= ruleIdentifier - { - - newCompositeNode(grammarAccess.getReferenceDeclarationAccess().getNameIdentifierParserRuleCall_3_0()); - - pushFollow(FOLLOW_19); - lv_name_6_0=ruleIdentifier(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getReferenceDeclarationRule()); - } - set( - current, - "name", - lv_name_6_0, - "org.eclipse.viatra.solver.language.Problem.Identifier"); - afterParserOrEnumRuleCall(); - - - } - - - } - - // InternalProblem.g:600:3: (otherlv_7= 'opposite' ( ( ruleQualifiedName ) ) )? - int alt16=2; - int LA16_0 = input.LA(1); - - if ( (LA16_0==27) ) { - alt16=1; - } - switch (alt16) { - case 1 : - // InternalProblem.g:601:4: otherlv_7= 'opposite' ( ( ruleQualifiedName ) ) - { - otherlv_7=(Token)match(input,27,FOLLOW_8); - - newLeafNode(otherlv_7, grammarAccess.getReferenceDeclarationAccess().getOppositeKeyword_4_0()); - - // InternalProblem.g:605:4: ( ( ruleQualifiedName ) ) - // InternalProblem.g:606:5: ( ruleQualifiedName ) - { - // InternalProblem.g:606:5: ( ruleQualifiedName ) - // InternalProblem.g:607:6: ruleQualifiedName - { - - if (current==null) { - current = createModelElement(grammarAccess.getReferenceDeclarationRule()); - } - - - newCompositeNode(grammarAccess.getReferenceDeclarationAccess().getOppositeReferenceDeclarationCrossReference_4_1_0()); - - pushFollow(FOLLOW_2); - ruleQualifiedName(); - - state._fsp--; - - - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - break; - - } - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleReferenceDeclaration" - - - // $ANTLR start "entryRulePredicateDefinition" - // InternalProblem.g:626:1: entryRulePredicateDefinition returns [EObject current=null] : iv_rulePredicateDefinition= rulePredicateDefinition EOF ; - public final EObject entryRulePredicateDefinition() throws RecognitionException { - EObject current = null; - - EObject iv_rulePredicateDefinition = null; - - - try { - // InternalProblem.g:626:60: (iv_rulePredicateDefinition= rulePredicateDefinition EOF ) - // InternalProblem.g:627:2: iv_rulePredicateDefinition= rulePredicateDefinition EOF - { - newCompositeNode(grammarAccess.getPredicateDefinitionRule()); - pushFollow(FOLLOW_1); - iv_rulePredicateDefinition=rulePredicateDefinition(); - - state._fsp--; - - current =iv_rulePredicateDefinition; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRulePredicateDefinition" - - - // $ANTLR start "rulePredicateDefinition" - // InternalProblem.g:633:1: rulePredicateDefinition returns [EObject current=null] : ( ( ( ( (lv_error_0_0= 'error' ) ) (otherlv_1= 'pred' )? ) | otherlv_2= 'pred' ) ( (lv_name_3_0= ruleIdentifier ) ) otherlv_4= '(' ( ( (lv_parameters_5_0= ruleParameter ) ) (otherlv_6= ',' ( (lv_parameters_7_0= ruleParameter ) ) )* )? otherlv_8= ')' (otherlv_9= ':-' ( (lv_bodies_10_0= ruleConjunction ) ) (otherlv_11= ';' ( (lv_bodies_12_0= ruleConjunction ) ) )* )? otherlv_13= '.' ) ; - public final EObject rulePredicateDefinition() throws RecognitionException { - EObject current = null; - - Token lv_error_0_0=null; - Token otherlv_1=null; - Token otherlv_2=null; - Token otherlv_4=null; - Token otherlv_6=null; - Token otherlv_8=null; - Token otherlv_9=null; - Token otherlv_11=null; - Token otherlv_13=null; - AntlrDatatypeRuleToken lv_name_3_0 = null; - - EObject lv_parameters_5_0 = null; - - EObject lv_parameters_7_0 = null; - - EObject lv_bodies_10_0 = null; - - EObject lv_bodies_12_0 = null; - - - - enterRule(); - - try { - // InternalProblem.g:639:2: ( ( ( ( ( (lv_error_0_0= 'error' ) ) (otherlv_1= 'pred' )? ) | otherlv_2= 'pred' ) ( (lv_name_3_0= ruleIdentifier ) ) otherlv_4= '(' ( ( (lv_parameters_5_0= ruleParameter ) ) (otherlv_6= ',' ( (lv_parameters_7_0= ruleParameter ) ) )* )? otherlv_8= ')' (otherlv_9= ':-' ( (lv_bodies_10_0= ruleConjunction ) ) (otherlv_11= ';' ( (lv_bodies_12_0= ruleConjunction ) ) )* )? otherlv_13= '.' ) ) - // InternalProblem.g:640:2: ( ( ( ( (lv_error_0_0= 'error' ) ) (otherlv_1= 'pred' )? ) | otherlv_2= 'pred' ) ( (lv_name_3_0= ruleIdentifier ) ) otherlv_4= '(' ( ( (lv_parameters_5_0= ruleParameter ) ) (otherlv_6= ',' ( (lv_parameters_7_0= ruleParameter ) ) )* )? otherlv_8= ')' (otherlv_9= ':-' ( (lv_bodies_10_0= ruleConjunction ) ) (otherlv_11= ';' ( (lv_bodies_12_0= ruleConjunction ) ) )* )? otherlv_13= '.' ) - { - // InternalProblem.g:640:2: ( ( ( ( (lv_error_0_0= 'error' ) ) (otherlv_1= 'pred' )? ) | otherlv_2= 'pred' ) ( (lv_name_3_0= ruleIdentifier ) ) otherlv_4= '(' ( ( (lv_parameters_5_0= ruleParameter ) ) (otherlv_6= ',' ( (lv_parameters_7_0= ruleParameter ) ) )* )? otherlv_8= ')' (otherlv_9= ':-' ( (lv_bodies_10_0= ruleConjunction ) ) (otherlv_11= ';' ( (lv_bodies_12_0= ruleConjunction ) ) )* )? otherlv_13= '.' ) - // InternalProblem.g:641:3: ( ( ( (lv_error_0_0= 'error' ) ) (otherlv_1= 'pred' )? ) | otherlv_2= 'pred' ) ( (lv_name_3_0= ruleIdentifier ) ) otherlv_4= '(' ( ( (lv_parameters_5_0= ruleParameter ) ) (otherlv_6= ',' ( (lv_parameters_7_0= ruleParameter ) ) )* )? otherlv_8= ')' (otherlv_9= ':-' ( (lv_bodies_10_0= ruleConjunction ) ) (otherlv_11= ';' ( (lv_bodies_12_0= ruleConjunction ) ) )* )? otherlv_13= '.' - { - // InternalProblem.g:641:3: ( ( ( (lv_error_0_0= 'error' ) ) (otherlv_1= 'pred' )? ) | otherlv_2= 'pred' ) - int alt18=2; - int LA18_0 = input.LA(1); - - if ( (LA18_0==28) ) { - alt18=1; - } - else if ( (LA18_0==29) ) { - alt18=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 18, 0, input); - - throw nvae; - } - switch (alt18) { - case 1 : - // InternalProblem.g:642:4: ( ( (lv_error_0_0= 'error' ) ) (otherlv_1= 'pred' )? ) - { - // InternalProblem.g:642:4: ( ( (lv_error_0_0= 'error' ) ) (otherlv_1= 'pred' )? ) - // InternalProblem.g:643:5: ( (lv_error_0_0= 'error' ) ) (otherlv_1= 'pred' )? - { - // InternalProblem.g:643:5: ( (lv_error_0_0= 'error' ) ) - // InternalProblem.g:644:6: (lv_error_0_0= 'error' ) - { - // InternalProblem.g:644:6: (lv_error_0_0= 'error' ) - // InternalProblem.g:645:7: lv_error_0_0= 'error' - { - lv_error_0_0=(Token)match(input,28,FOLLOW_20); - - newLeafNode(lv_error_0_0, grammarAccess.getPredicateDefinitionAccess().getErrorErrorKeyword_0_0_0_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getPredicateDefinitionRule()); - } - setWithLastConsumed(current, "error", lv_error_0_0 != null, "error"); - - - } - - - } - - // InternalProblem.g:657:5: (otherlv_1= 'pred' )? - int alt17=2; - int LA17_0 = input.LA(1); - - if ( (LA17_0==29) ) { - alt17=1; - } - switch (alt17) { - case 1 : - // InternalProblem.g:658:6: otherlv_1= 'pred' - { - otherlv_1=(Token)match(input,29,FOLLOW_3); - - newLeafNode(otherlv_1, grammarAccess.getPredicateDefinitionAccess().getPredKeyword_0_0_1()); - - - } - break; - - } - - - } - - - } - break; - case 2 : - // InternalProblem.g:665:4: otherlv_2= 'pred' - { - otherlv_2=(Token)match(input,29,FOLLOW_3); - - newLeafNode(otherlv_2, grammarAccess.getPredicateDefinitionAccess().getPredKeyword_0_1()); - - - } - break; - - } - - // InternalProblem.g:670:3: ( (lv_name_3_0= ruleIdentifier ) ) - // InternalProblem.g:671:4: (lv_name_3_0= ruleIdentifier ) - { - // InternalProblem.g:671:4: (lv_name_3_0= ruleIdentifier ) - // InternalProblem.g:672:5: lv_name_3_0= ruleIdentifier - { - - newCompositeNode(grammarAccess.getPredicateDefinitionAccess().getNameIdentifierParserRuleCall_1_0()); - - pushFollow(FOLLOW_21); - lv_name_3_0=ruleIdentifier(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getPredicateDefinitionRule()); - } - set( - current, - "name", - lv_name_3_0, - "org.eclipse.viatra.solver.language.Problem.Identifier"); - afterParserOrEnumRuleCall(); - - - } - - - } - - otherlv_4=(Token)match(input,30,FOLLOW_22); - - newLeafNode(otherlv_4, grammarAccess.getPredicateDefinitionAccess().getLeftParenthesisKeyword_2()); - - // InternalProblem.g:693:3: ( ( (lv_parameters_5_0= ruleParameter ) ) (otherlv_6= ',' ( (lv_parameters_7_0= ruleParameter ) ) )* )? - int alt20=2; - int LA20_0 = input.LA(1); - - if ( (LA20_0==RULE_ID||LA20_0==RULE_QUOTED_ID||(LA20_0>=42 && LA20_0<=43)) ) { - alt20=1; - } - switch (alt20) { - case 1 : - // InternalProblem.g:694:4: ( (lv_parameters_5_0= ruleParameter ) ) (otherlv_6= ',' ( (lv_parameters_7_0= ruleParameter ) ) )* - { - // InternalProblem.g:694:4: ( (lv_parameters_5_0= ruleParameter ) ) - // InternalProblem.g:695:5: (lv_parameters_5_0= ruleParameter ) - { - // InternalProblem.g:695:5: (lv_parameters_5_0= ruleParameter ) - // InternalProblem.g:696:6: lv_parameters_5_0= ruleParameter - { - - newCompositeNode(grammarAccess.getPredicateDefinitionAccess().getParametersParameterParserRuleCall_3_0_0()); - - pushFollow(FOLLOW_23); - lv_parameters_5_0=ruleParameter(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getPredicateDefinitionRule()); - } - add( - current, - "parameters", - lv_parameters_5_0, - "org.eclipse.viatra.solver.language.Problem.Parameter"); - afterParserOrEnumRuleCall(); - - - } - - - } - - // InternalProblem.g:713:4: (otherlv_6= ',' ( (lv_parameters_7_0= ruleParameter ) ) )* - loop19: - do { - int alt19=2; - int LA19_0 = input.LA(1); - - if ( (LA19_0==18) ) { - alt19=1; - } - - - switch (alt19) { - case 1 : - // InternalProblem.g:714:5: otherlv_6= ',' ( (lv_parameters_7_0= ruleParameter ) ) - { - otherlv_6=(Token)match(input,18,FOLLOW_8); - - newLeafNode(otherlv_6, grammarAccess.getPredicateDefinitionAccess().getCommaKeyword_3_1_0()); - - // InternalProblem.g:718:5: ( (lv_parameters_7_0= ruleParameter ) ) - // InternalProblem.g:719:6: (lv_parameters_7_0= ruleParameter ) - { - // InternalProblem.g:719:6: (lv_parameters_7_0= ruleParameter ) - // InternalProblem.g:720:7: lv_parameters_7_0= ruleParameter - { - - newCompositeNode(grammarAccess.getPredicateDefinitionAccess().getParametersParameterParserRuleCall_3_1_1_0()); - - pushFollow(FOLLOW_23); - lv_parameters_7_0=ruleParameter(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getPredicateDefinitionRule()); - } - add( - current, - "parameters", - lv_parameters_7_0, - "org.eclipse.viatra.solver.language.Problem.Parameter"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - break; - - default : - break loop19; - } - } while (true); - - - } - break; - - } - - otherlv_8=(Token)match(input,31,FOLLOW_24); - - newLeafNode(otherlv_8, grammarAccess.getPredicateDefinitionAccess().getRightParenthesisKeyword_4()); - - // InternalProblem.g:743:3: (otherlv_9= ':-' ( (lv_bodies_10_0= ruleConjunction ) ) (otherlv_11= ';' ( (lv_bodies_12_0= ruleConjunction ) ) )* )? - int alt22=2; - int LA22_0 = input.LA(1); - - if ( (LA22_0==32) ) { - alt22=1; - } - switch (alt22) { - case 1 : - // InternalProblem.g:744:4: otherlv_9= ':-' ( (lv_bodies_10_0= ruleConjunction ) ) (otherlv_11= ';' ( (lv_bodies_12_0= ruleConjunction ) ) )* - { - otherlv_9=(Token)match(input,32,FOLLOW_25); - - newLeafNode(otherlv_9, grammarAccess.getPredicateDefinitionAccess().getColonHyphenMinusKeyword_5_0()); - - // InternalProblem.g:748:4: ( (lv_bodies_10_0= ruleConjunction ) ) - // InternalProblem.g:749:5: (lv_bodies_10_0= ruleConjunction ) - { - // InternalProblem.g:749:5: (lv_bodies_10_0= ruleConjunction ) - // InternalProblem.g:750:6: lv_bodies_10_0= ruleConjunction - { - - newCompositeNode(grammarAccess.getPredicateDefinitionAccess().getBodiesConjunctionParserRuleCall_5_1_0()); - - pushFollow(FOLLOW_26); - lv_bodies_10_0=ruleConjunction(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getPredicateDefinitionRule()); - } - add( - current, - "bodies", - lv_bodies_10_0, - "org.eclipse.viatra.solver.language.Problem.Conjunction"); - afterParserOrEnumRuleCall(); - - - } - - - } - - // InternalProblem.g:767:4: (otherlv_11= ';' ( (lv_bodies_12_0= ruleConjunction ) ) )* - loop21: - do { - int alt21=2; - int LA21_0 = input.LA(1); - - if ( (LA21_0==20) ) { - alt21=1; - } - - - switch (alt21) { - case 1 : - // InternalProblem.g:768:5: otherlv_11= ';' ( (lv_bodies_12_0= ruleConjunction ) ) - { - otherlv_11=(Token)match(input,20,FOLLOW_25); - - newLeafNode(otherlv_11, grammarAccess.getPredicateDefinitionAccess().getSemicolonKeyword_5_2_0()); - - // InternalProblem.g:772:5: ( (lv_bodies_12_0= ruleConjunction ) ) - // InternalProblem.g:773:6: (lv_bodies_12_0= ruleConjunction ) - { - // InternalProblem.g:773:6: (lv_bodies_12_0= ruleConjunction ) - // InternalProblem.g:774:7: lv_bodies_12_0= ruleConjunction - { - - newCompositeNode(grammarAccess.getPredicateDefinitionAccess().getBodiesConjunctionParserRuleCall_5_2_1_0()); - - pushFollow(FOLLOW_26); - lv_bodies_12_0=ruleConjunction(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getPredicateDefinitionRule()); - } - add( - current, - "bodies", - lv_bodies_12_0, - "org.eclipse.viatra.solver.language.Problem.Conjunction"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - break; - - default : - break loop21; - } - } while (true); - - - } - break; - - } - - otherlv_13=(Token)match(input,14,FOLLOW_2); - - newLeafNode(otherlv_13, grammarAccess.getPredicateDefinitionAccess().getFullStopKeyword_6()); - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "rulePredicateDefinition" - - - // $ANTLR start "entryRuleParameter" - // InternalProblem.g:801:1: entryRuleParameter returns [EObject current=null] : iv_ruleParameter= ruleParameter EOF ; - public final EObject entryRuleParameter() throws RecognitionException { - EObject current = null; - - EObject iv_ruleParameter = null; - - - try { - // InternalProblem.g:801:50: (iv_ruleParameter= ruleParameter EOF ) - // InternalProblem.g:802:2: iv_ruleParameter= ruleParameter EOF - { - newCompositeNode(grammarAccess.getParameterRule()); - pushFollow(FOLLOW_1); - iv_ruleParameter=ruleParameter(); - - state._fsp--; - - current =iv_ruleParameter; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleParameter" - - - // $ANTLR start "ruleParameter" - // InternalProblem.g:808:1: ruleParameter returns [EObject current=null] : ( ( ( ruleQualifiedName ) )? ( (lv_name_1_0= ruleIdentifier ) ) ) ; - public final EObject ruleParameter() throws RecognitionException { - EObject current = null; - - AntlrDatatypeRuleToken lv_name_1_0 = null; - - - - enterRule(); - - try { - // InternalProblem.g:814:2: ( ( ( ( ruleQualifiedName ) )? ( (lv_name_1_0= ruleIdentifier ) ) ) ) - // InternalProblem.g:815:2: ( ( ( ruleQualifiedName ) )? ( (lv_name_1_0= ruleIdentifier ) ) ) - { - // InternalProblem.g:815:2: ( ( ( ruleQualifiedName ) )? ( (lv_name_1_0= ruleIdentifier ) ) ) - // InternalProblem.g:816:3: ( ( ruleQualifiedName ) )? ( (lv_name_1_0= ruleIdentifier ) ) - { - // InternalProblem.g:816:3: ( ( ruleQualifiedName ) )? - int alt23=2; - switch ( input.LA(1) ) { - case RULE_QUOTED_ID: - { - alt23=1; - } - break; - case RULE_ID: - { - int LA23_2 = input.LA(2); - - if ( (LA23_2==RULE_ID||(LA23_2>=41 && LA23_2<=43)) ) { - alt23=1; - } - } - break; - case 42: - { - int LA23_3 = input.LA(2); - - if ( (LA23_3==RULE_ID||(LA23_3>=41 && LA23_3<=43)) ) { - alt23=1; - } - } - break; - case 43: - { - int LA23_4 = input.LA(2); - - if ( (LA23_4==RULE_ID||(LA23_4>=41 && LA23_4<=43)) ) { - alt23=1; - } - } - break; - } - - switch (alt23) { - case 1 : - // InternalProblem.g:817:4: ( ruleQualifiedName ) - { - // InternalProblem.g:817:4: ( ruleQualifiedName ) - // InternalProblem.g:818:5: ruleQualifiedName - { - - if (current==null) { - current = createModelElement(grammarAccess.getParameterRule()); - } - - - newCompositeNode(grammarAccess.getParameterAccess().getParameterTypeRelationCrossReference_0_0()); - - pushFollow(FOLLOW_3); - ruleQualifiedName(); - - state._fsp--; - - - afterParserOrEnumRuleCall(); - - - } - - - } - break; - - } - - // InternalProblem.g:832:3: ( (lv_name_1_0= ruleIdentifier ) ) - // InternalProblem.g:833:4: (lv_name_1_0= ruleIdentifier ) - { - // InternalProblem.g:833:4: (lv_name_1_0= ruleIdentifier ) - // InternalProblem.g:834:5: lv_name_1_0= ruleIdentifier - { - - newCompositeNode(grammarAccess.getParameterAccess().getNameIdentifierParserRuleCall_1_0()); - - pushFollow(FOLLOW_2); - lv_name_1_0=ruleIdentifier(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getParameterRule()); - } - set( - current, - "name", - lv_name_1_0, - "org.eclipse.viatra.solver.language.Problem.Identifier"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleParameter" - - - // $ANTLR start "entryRuleConjunction" - // InternalProblem.g:855:1: entryRuleConjunction returns [EObject current=null] : iv_ruleConjunction= ruleConjunction EOF ; - public final EObject entryRuleConjunction() throws RecognitionException { - EObject current = null; - - EObject iv_ruleConjunction = null; - - - try { - // InternalProblem.g:855:52: (iv_ruleConjunction= ruleConjunction EOF ) - // InternalProblem.g:856:2: iv_ruleConjunction= ruleConjunction EOF - { - newCompositeNode(grammarAccess.getConjunctionRule()); - pushFollow(FOLLOW_1); - iv_ruleConjunction=ruleConjunction(); - - state._fsp--; - - current =iv_ruleConjunction; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleConjunction" - - - // $ANTLR start "ruleConjunction" - // InternalProblem.g:862:1: ruleConjunction returns [EObject current=null] : ( ( (lv_literals_0_0= ruleLiteral ) ) (otherlv_1= ',' ( (lv_literals_2_0= ruleLiteral ) ) )* ) ; - public final EObject ruleConjunction() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - EObject lv_literals_0_0 = null; - - EObject lv_literals_2_0 = null; - - - - enterRule(); - - try { - // InternalProblem.g:868:2: ( ( ( (lv_literals_0_0= ruleLiteral ) ) (otherlv_1= ',' ( (lv_literals_2_0= ruleLiteral ) ) )* ) ) - // InternalProblem.g:869:2: ( ( (lv_literals_0_0= ruleLiteral ) ) (otherlv_1= ',' ( (lv_literals_2_0= ruleLiteral ) ) )* ) - { - // InternalProblem.g:869:2: ( ( (lv_literals_0_0= ruleLiteral ) ) (otherlv_1= ',' ( (lv_literals_2_0= ruleLiteral ) ) )* ) - // InternalProblem.g:870:3: ( (lv_literals_0_0= ruleLiteral ) ) (otherlv_1= ',' ( (lv_literals_2_0= ruleLiteral ) ) )* - { - // InternalProblem.g:870:3: ( (lv_literals_0_0= ruleLiteral ) ) - // InternalProblem.g:871:4: (lv_literals_0_0= ruleLiteral ) - { - // InternalProblem.g:871:4: (lv_literals_0_0= ruleLiteral ) - // InternalProblem.g:872:5: lv_literals_0_0= ruleLiteral - { - - newCompositeNode(grammarAccess.getConjunctionAccess().getLiteralsLiteralParserRuleCall_0_0()); - - pushFollow(FOLLOW_27); - lv_literals_0_0=ruleLiteral(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getConjunctionRule()); - } - add( - current, - "literals", - lv_literals_0_0, - "org.eclipse.viatra.solver.language.Problem.Literal"); - afterParserOrEnumRuleCall(); - - - } - - - } - - // InternalProblem.g:889:3: (otherlv_1= ',' ( (lv_literals_2_0= ruleLiteral ) ) )* - loop24: - do { - int alt24=2; - int LA24_0 = input.LA(1); - - if ( (LA24_0==18) ) { - alt24=1; - } - - - switch (alt24) { - case 1 : - // InternalProblem.g:890:4: otherlv_1= ',' ( (lv_literals_2_0= ruleLiteral ) ) - { - otherlv_1=(Token)match(input,18,FOLLOW_25); - - newLeafNode(otherlv_1, grammarAccess.getConjunctionAccess().getCommaKeyword_1_0()); - - // InternalProblem.g:894:4: ( (lv_literals_2_0= ruleLiteral ) ) - // InternalProblem.g:895:5: (lv_literals_2_0= ruleLiteral ) - { - // InternalProblem.g:895:5: (lv_literals_2_0= ruleLiteral ) - // InternalProblem.g:896:6: lv_literals_2_0= ruleLiteral - { - - newCompositeNode(grammarAccess.getConjunctionAccess().getLiteralsLiteralParserRuleCall_1_1_0()); - - pushFollow(FOLLOW_27); - lv_literals_2_0=ruleLiteral(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getConjunctionRule()); - } - add( - current, - "literals", - lv_literals_2_0, - "org.eclipse.viatra.solver.language.Problem.Literal"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - break; - - default : - break loop24; - } - } while (true); - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleConjunction" - - - // $ANTLR start "entryRuleLiteral" - // InternalProblem.g:918:1: entryRuleLiteral returns [EObject current=null] : iv_ruleLiteral= ruleLiteral EOF ; - public final EObject entryRuleLiteral() throws RecognitionException { - EObject current = null; - - EObject iv_ruleLiteral = null; - - - try { - // InternalProblem.g:918:48: (iv_ruleLiteral= ruleLiteral EOF ) - // InternalProblem.g:919:2: iv_ruleLiteral= ruleLiteral EOF - { - newCompositeNode(grammarAccess.getLiteralRule()); - pushFollow(FOLLOW_1); - iv_ruleLiteral=ruleLiteral(); - - state._fsp--; - - current =iv_ruleLiteral; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleLiteral" - - - // $ANTLR start "ruleLiteral" - // InternalProblem.g:925:1: ruleLiteral returns [EObject current=null] : (this_Atom_0= ruleAtom | this_NegativeLiteral_1= ruleNegativeLiteral ) ; - public final EObject ruleLiteral() throws RecognitionException { - EObject current = null; - - EObject this_Atom_0 = null; - - EObject this_NegativeLiteral_1 = null; - - - - enterRule(); - - try { - // InternalProblem.g:931:2: ( (this_Atom_0= ruleAtom | this_NegativeLiteral_1= ruleNegativeLiteral ) ) - // InternalProblem.g:932:2: (this_Atom_0= ruleAtom | this_NegativeLiteral_1= ruleNegativeLiteral ) - { - // InternalProblem.g:932:2: (this_Atom_0= ruleAtom | this_NegativeLiteral_1= ruleNegativeLiteral ) - int alt25=2; - int LA25_0 = input.LA(1); - - if ( (LA25_0==RULE_ID||LA25_0==RULE_QUOTED_ID||(LA25_0>=42 && LA25_0<=43)) ) { - alt25=1; - } - else if ( (LA25_0==33) ) { - alt25=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 25, 0, input); - - throw nvae; - } - switch (alt25) { - case 1 : - // InternalProblem.g:933:3: this_Atom_0= ruleAtom - { - - newCompositeNode(grammarAccess.getLiteralAccess().getAtomParserRuleCall_0()); - - pushFollow(FOLLOW_2); - this_Atom_0=ruleAtom(); - - state._fsp--; - - - current = this_Atom_0; - afterParserOrEnumRuleCall(); - - - } - break; - case 2 : - // InternalProblem.g:942:3: this_NegativeLiteral_1= ruleNegativeLiteral - { - - newCompositeNode(grammarAccess.getLiteralAccess().getNegativeLiteralParserRuleCall_1()); - - pushFollow(FOLLOW_2); - this_NegativeLiteral_1=ruleNegativeLiteral(); - - state._fsp--; - - - current = this_NegativeLiteral_1; - afterParserOrEnumRuleCall(); - - - } - break; - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleLiteral" - - - // $ANTLR start "entryRuleNegativeLiteral" - // InternalProblem.g:954:1: entryRuleNegativeLiteral returns [EObject current=null] : iv_ruleNegativeLiteral= ruleNegativeLiteral EOF ; - public final EObject entryRuleNegativeLiteral() throws RecognitionException { - EObject current = null; - - EObject iv_ruleNegativeLiteral = null; - - - try { - // InternalProblem.g:954:56: (iv_ruleNegativeLiteral= ruleNegativeLiteral EOF ) - // InternalProblem.g:955:2: iv_ruleNegativeLiteral= ruleNegativeLiteral EOF - { - newCompositeNode(grammarAccess.getNegativeLiteralRule()); - pushFollow(FOLLOW_1); - iv_ruleNegativeLiteral=ruleNegativeLiteral(); - - state._fsp--; - - current =iv_ruleNegativeLiteral; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleNegativeLiteral" - - - // $ANTLR start "ruleNegativeLiteral" - // InternalProblem.g:961:1: ruleNegativeLiteral returns [EObject current=null] : (otherlv_0= '!' ( (lv_atom_1_0= ruleAtom ) ) ) ; - public final EObject ruleNegativeLiteral() throws RecognitionException { - EObject current = null; - - Token otherlv_0=null; - EObject lv_atom_1_0 = null; - - - - enterRule(); - - try { - // InternalProblem.g:967:2: ( (otherlv_0= '!' ( (lv_atom_1_0= ruleAtom ) ) ) ) - // InternalProblem.g:968:2: (otherlv_0= '!' ( (lv_atom_1_0= ruleAtom ) ) ) - { - // InternalProblem.g:968:2: (otherlv_0= '!' ( (lv_atom_1_0= ruleAtom ) ) ) - // InternalProblem.g:969:3: otherlv_0= '!' ( (lv_atom_1_0= ruleAtom ) ) - { - otherlv_0=(Token)match(input,33,FOLLOW_8); - - newLeafNode(otherlv_0, grammarAccess.getNegativeLiteralAccess().getExclamationMarkKeyword_0()); - - // InternalProblem.g:973:3: ( (lv_atom_1_0= ruleAtom ) ) - // InternalProblem.g:974:4: (lv_atom_1_0= ruleAtom ) - { - // InternalProblem.g:974:4: (lv_atom_1_0= ruleAtom ) - // InternalProblem.g:975:5: lv_atom_1_0= ruleAtom - { - - newCompositeNode(grammarAccess.getNegativeLiteralAccess().getAtomAtomParserRuleCall_1_0()); - - pushFollow(FOLLOW_2); - lv_atom_1_0=ruleAtom(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getNegativeLiteralRule()); - } - set( - current, - "atom", - lv_atom_1_0, - "org.eclipse.viatra.solver.language.Problem.Atom"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleNegativeLiteral" - - - // $ANTLR start "entryRuleAtom" - // InternalProblem.g:996:1: entryRuleAtom returns [EObject current=null] : iv_ruleAtom= ruleAtom EOF ; - public final EObject entryRuleAtom() throws RecognitionException { - EObject current = null; - - EObject iv_ruleAtom = null; - - - try { - // InternalProblem.g:996:45: (iv_ruleAtom= ruleAtom EOF ) - // InternalProblem.g:997:2: iv_ruleAtom= ruleAtom EOF - { - newCompositeNode(grammarAccess.getAtomRule()); - pushFollow(FOLLOW_1); - iv_ruleAtom=ruleAtom(); - - state._fsp--; - - current =iv_ruleAtom; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleAtom" - - - // $ANTLR start "ruleAtom" - // InternalProblem.g:1003:1: ruleAtom returns [EObject current=null] : ( ( ( ruleQualifiedName ) ) ( (lv_transitiveClosure_1_0= '+' ) )? otherlv_2= '(' ( ( (lv_arguments_3_0= ruleArgument ) ) (otherlv_4= ',' ( (lv_arguments_5_0= ruleArgument ) ) )* )? otherlv_6= ')' ) ; - public final EObject ruleAtom() throws RecognitionException { - EObject current = null; - - Token lv_transitiveClosure_1_0=null; - Token otherlv_2=null; - Token otherlv_4=null; - Token otherlv_6=null; - EObject lv_arguments_3_0 = null; - - EObject lv_arguments_5_0 = null; - - - - enterRule(); - - try { - // InternalProblem.g:1009:2: ( ( ( ( ruleQualifiedName ) ) ( (lv_transitiveClosure_1_0= '+' ) )? otherlv_2= '(' ( ( (lv_arguments_3_0= ruleArgument ) ) (otherlv_4= ',' ( (lv_arguments_5_0= ruleArgument ) ) )* )? otherlv_6= ')' ) ) - // InternalProblem.g:1010:2: ( ( ( ruleQualifiedName ) ) ( (lv_transitiveClosure_1_0= '+' ) )? otherlv_2= '(' ( ( (lv_arguments_3_0= ruleArgument ) ) (otherlv_4= ',' ( (lv_arguments_5_0= ruleArgument ) ) )* )? otherlv_6= ')' ) - { - // InternalProblem.g:1010:2: ( ( ( ruleQualifiedName ) ) ( (lv_transitiveClosure_1_0= '+' ) )? otherlv_2= '(' ( ( (lv_arguments_3_0= ruleArgument ) ) (otherlv_4= ',' ( (lv_arguments_5_0= ruleArgument ) ) )* )? otherlv_6= ')' ) - // InternalProblem.g:1011:3: ( ( ruleQualifiedName ) ) ( (lv_transitiveClosure_1_0= '+' ) )? otherlv_2= '(' ( ( (lv_arguments_3_0= ruleArgument ) ) (otherlv_4= ',' ( (lv_arguments_5_0= ruleArgument ) ) )* )? otherlv_6= ')' - { - // InternalProblem.g:1011:3: ( ( ruleQualifiedName ) ) - // InternalProblem.g:1012:4: ( ruleQualifiedName ) - { - // InternalProblem.g:1012:4: ( ruleQualifiedName ) - // InternalProblem.g:1013:5: ruleQualifiedName - { - - if (current==null) { - current = createModelElement(grammarAccess.getAtomRule()); - } - - - newCompositeNode(grammarAccess.getAtomAccess().getRelationRelationCrossReference_0_0()); - - pushFollow(FOLLOW_28); - ruleQualifiedName(); - - state._fsp--; - - - afterParserOrEnumRuleCall(); - - - } - - - } - - // InternalProblem.g:1027:3: ( (lv_transitiveClosure_1_0= '+' ) )? - int alt26=2; - int LA26_0 = input.LA(1); - - if ( (LA26_0==34) ) { - alt26=1; - } - switch (alt26) { - case 1 : - // InternalProblem.g:1028:4: (lv_transitiveClosure_1_0= '+' ) - { - // InternalProblem.g:1028:4: (lv_transitiveClosure_1_0= '+' ) - // InternalProblem.g:1029:5: lv_transitiveClosure_1_0= '+' - { - lv_transitiveClosure_1_0=(Token)match(input,34,FOLLOW_21); - - newLeafNode(lv_transitiveClosure_1_0, grammarAccess.getAtomAccess().getTransitiveClosurePlusSignKeyword_1_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getAtomRule()); - } - setWithLastConsumed(current, "transitiveClosure", lv_transitiveClosure_1_0 != null, "+"); - - - } - - - } - break; - - } - - otherlv_2=(Token)match(input,30,FOLLOW_29); - - newLeafNode(otherlv_2, grammarAccess.getAtomAccess().getLeftParenthesisKeyword_2()); - - // InternalProblem.g:1045:3: ( ( (lv_arguments_3_0= ruleArgument ) ) (otherlv_4= ',' ( (lv_arguments_5_0= ruleArgument ) ) )* )? - int alt28=2; - int LA28_0 = input.LA(1); - - if ( ((LA28_0>=RULE_STRING && LA28_0<=RULE_EXPONENTIAL)||(LA28_0>=42 && LA28_0<=44)) ) { - alt28=1; - } - switch (alt28) { - case 1 : - // InternalProblem.g:1046:4: ( (lv_arguments_3_0= ruleArgument ) ) (otherlv_4= ',' ( (lv_arguments_5_0= ruleArgument ) ) )* - { - // InternalProblem.g:1046:4: ( (lv_arguments_3_0= ruleArgument ) ) - // InternalProblem.g:1047:5: (lv_arguments_3_0= ruleArgument ) - { - // InternalProblem.g:1047:5: (lv_arguments_3_0= ruleArgument ) - // InternalProblem.g:1048:6: lv_arguments_3_0= ruleArgument - { - - newCompositeNode(grammarAccess.getAtomAccess().getArgumentsArgumentParserRuleCall_3_0_0()); - - pushFollow(FOLLOW_23); - lv_arguments_3_0=ruleArgument(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getAtomRule()); - } - add( - current, - "arguments", - lv_arguments_3_0, - "org.eclipse.viatra.solver.language.Problem.Argument"); - afterParserOrEnumRuleCall(); - - - } - - - } - - // InternalProblem.g:1065:4: (otherlv_4= ',' ( (lv_arguments_5_0= ruleArgument ) ) )* - loop27: - do { - int alt27=2; - int LA27_0 = input.LA(1); - - if ( (LA27_0==18) ) { - alt27=1; - } - - - switch (alt27) { - case 1 : - // InternalProblem.g:1066:5: otherlv_4= ',' ( (lv_arguments_5_0= ruleArgument ) ) - { - otherlv_4=(Token)match(input,18,FOLLOW_30); - - newLeafNode(otherlv_4, grammarAccess.getAtomAccess().getCommaKeyword_3_1_0()); - - // InternalProblem.g:1070:5: ( (lv_arguments_5_0= ruleArgument ) ) - // InternalProblem.g:1071:6: (lv_arguments_5_0= ruleArgument ) - { - // InternalProblem.g:1071:6: (lv_arguments_5_0= ruleArgument ) - // InternalProblem.g:1072:7: lv_arguments_5_0= ruleArgument - { - - newCompositeNode(grammarAccess.getAtomAccess().getArgumentsArgumentParserRuleCall_3_1_1_0()); - - pushFollow(FOLLOW_23); - lv_arguments_5_0=ruleArgument(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getAtomRule()); - } - add( - current, - "arguments", - lv_arguments_5_0, - "org.eclipse.viatra.solver.language.Problem.Argument"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - break; - - default : - break loop27; - } - } while (true); - - - } - break; - - } - - otherlv_6=(Token)match(input,31,FOLLOW_2); - - newLeafNode(otherlv_6, grammarAccess.getAtomAccess().getRightParenthesisKeyword_4()); - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleAtom" - - - // $ANTLR start "entryRuleArgument" - // InternalProblem.g:1099:1: entryRuleArgument returns [EObject current=null] : iv_ruleArgument= ruleArgument EOF ; - public final EObject entryRuleArgument() throws RecognitionException { - EObject current = null; - - EObject iv_ruleArgument = null; - - - try { - // InternalProblem.g:1099:49: (iv_ruleArgument= ruleArgument EOF ) - // InternalProblem.g:1100:2: iv_ruleArgument= ruleArgument EOF - { - newCompositeNode(grammarAccess.getArgumentRule()); - pushFollow(FOLLOW_1); - iv_ruleArgument=ruleArgument(); - - state._fsp--; - - current =iv_ruleArgument; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleArgument" - - - // $ANTLR start "ruleArgument" - // InternalProblem.g:1106:1: ruleArgument returns [EObject current=null] : (this_VariableOrNodeArgument_0= ruleVariableOrNodeArgument | this_ConstantArgument_1= ruleConstantArgument ) ; - public final EObject ruleArgument() throws RecognitionException { - EObject current = null; - - EObject this_VariableOrNodeArgument_0 = null; - - EObject this_ConstantArgument_1 = null; - - - - enterRule(); - - try { - // InternalProblem.g:1112:2: ( (this_VariableOrNodeArgument_0= ruleVariableOrNodeArgument | this_ConstantArgument_1= ruleConstantArgument ) ) - // InternalProblem.g:1113:2: (this_VariableOrNodeArgument_0= ruleVariableOrNodeArgument | this_ConstantArgument_1= ruleConstantArgument ) - { - // InternalProblem.g:1113:2: (this_VariableOrNodeArgument_0= ruleVariableOrNodeArgument | this_ConstantArgument_1= ruleConstantArgument ) - int alt29=2; - int LA29_0 = input.LA(1); - - if ( (LA29_0==RULE_ID||LA29_0==RULE_QUOTED_ID||(LA29_0>=42 && LA29_0<=43)) ) { - alt29=1; - } - else if ( (LA29_0==RULE_STRING||LA29_0==RULE_INT||LA29_0==RULE_EXPONENTIAL||LA29_0==44) ) { - alt29=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 29, 0, input); - - throw nvae; - } - switch (alt29) { - case 1 : - // InternalProblem.g:1114:3: this_VariableOrNodeArgument_0= ruleVariableOrNodeArgument - { - - newCompositeNode(grammarAccess.getArgumentAccess().getVariableOrNodeArgumentParserRuleCall_0()); - - pushFollow(FOLLOW_2); - this_VariableOrNodeArgument_0=ruleVariableOrNodeArgument(); - - state._fsp--; - - - current = this_VariableOrNodeArgument_0; - afterParserOrEnumRuleCall(); - - - } - break; - case 2 : - // InternalProblem.g:1123:3: this_ConstantArgument_1= ruleConstantArgument - { - - newCompositeNode(grammarAccess.getArgumentAccess().getConstantArgumentParserRuleCall_1()); - - pushFollow(FOLLOW_2); - this_ConstantArgument_1=ruleConstantArgument(); - - state._fsp--; - - - current = this_ConstantArgument_1; - afterParserOrEnumRuleCall(); - - - } - break; - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleArgument" - - - // $ANTLR start "entryRuleVariableOrNodeArgument" - // InternalProblem.g:1135:1: entryRuleVariableOrNodeArgument returns [EObject current=null] : iv_ruleVariableOrNodeArgument= ruleVariableOrNodeArgument EOF ; - public final EObject entryRuleVariableOrNodeArgument() throws RecognitionException { - EObject current = null; - - EObject iv_ruleVariableOrNodeArgument = null; - - - try { - // InternalProblem.g:1135:63: (iv_ruleVariableOrNodeArgument= ruleVariableOrNodeArgument EOF ) - // InternalProblem.g:1136:2: iv_ruleVariableOrNodeArgument= ruleVariableOrNodeArgument EOF - { - newCompositeNode(grammarAccess.getVariableOrNodeArgumentRule()); - pushFollow(FOLLOW_1); - iv_ruleVariableOrNodeArgument=ruleVariableOrNodeArgument(); - - state._fsp--; - - current =iv_ruleVariableOrNodeArgument; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleVariableOrNodeArgument" - - - // $ANTLR start "ruleVariableOrNodeArgument" - // InternalProblem.g:1142:1: ruleVariableOrNodeArgument returns [EObject current=null] : ( ( ruleQualifiedName ) ) ; - public final EObject ruleVariableOrNodeArgument() throws RecognitionException { - EObject current = null; - - - enterRule(); - - try { - // InternalProblem.g:1148:2: ( ( ( ruleQualifiedName ) ) ) - // InternalProblem.g:1149:2: ( ( ruleQualifiedName ) ) - { - // InternalProblem.g:1149:2: ( ( ruleQualifiedName ) ) - // InternalProblem.g:1150:3: ( ruleQualifiedName ) - { - // InternalProblem.g:1150:3: ( ruleQualifiedName ) - // InternalProblem.g:1151:4: ruleQualifiedName - { - - if (current==null) { - current = createModelElement(grammarAccess.getVariableOrNodeArgumentRule()); - } - - - newCompositeNode(grammarAccess.getVariableOrNodeArgumentAccess().getVariableOrNodeVariableOrNodeCrossReference_0()); - - pushFollow(FOLLOW_2); - ruleQualifiedName(); - - state._fsp--; - - - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleVariableOrNodeArgument" - - - // $ANTLR start "entryRuleConstantArgument" - // InternalProblem.g:1168:1: entryRuleConstantArgument returns [EObject current=null] : iv_ruleConstantArgument= ruleConstantArgument EOF ; - public final EObject entryRuleConstantArgument() throws RecognitionException { - EObject current = null; - - EObject iv_ruleConstantArgument = null; - - - try { - // InternalProblem.g:1168:57: (iv_ruleConstantArgument= ruleConstantArgument EOF ) - // InternalProblem.g:1169:2: iv_ruleConstantArgument= ruleConstantArgument EOF - { - newCompositeNode(grammarAccess.getConstantArgumentRule()); - pushFollow(FOLLOW_1); - iv_ruleConstantArgument=ruleConstantArgument(); - - state._fsp--; - - current =iv_ruleConstantArgument; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleConstantArgument" - - - // $ANTLR start "ruleConstantArgument" - // InternalProblem.g:1175:1: ruleConstantArgument returns [EObject current=null] : ( (lv_constant_0_0= ruleConstant ) ) ; - public final EObject ruleConstantArgument() throws RecognitionException { - EObject current = null; - - EObject lv_constant_0_0 = null; - - - - enterRule(); - - try { - // InternalProblem.g:1181:2: ( ( (lv_constant_0_0= ruleConstant ) ) ) - // InternalProblem.g:1182:2: ( (lv_constant_0_0= ruleConstant ) ) - { - // InternalProblem.g:1182:2: ( (lv_constant_0_0= ruleConstant ) ) - // InternalProblem.g:1183:3: (lv_constant_0_0= ruleConstant ) - { - // InternalProblem.g:1183:3: (lv_constant_0_0= ruleConstant ) - // InternalProblem.g:1184:4: lv_constant_0_0= ruleConstant - { - - newCompositeNode(grammarAccess.getConstantArgumentAccess().getConstantConstantParserRuleCall_0()); - - pushFollow(FOLLOW_2); - lv_constant_0_0=ruleConstant(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getConstantArgumentRule()); - } - set( - current, - "constant", - lv_constant_0_0, - "org.eclipse.viatra.solver.language.Problem.Constant"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleConstantArgument" - - - // $ANTLR start "entryRuleAssertion" - // InternalProblem.g:1204:1: entryRuleAssertion returns [EObject current=null] : iv_ruleAssertion= ruleAssertion EOF ; - public final EObject entryRuleAssertion() throws RecognitionException { - EObject current = null; - - EObject iv_ruleAssertion = null; - - - try { - // InternalProblem.g:1204:50: (iv_ruleAssertion= ruleAssertion EOF ) - // InternalProblem.g:1205:2: iv_ruleAssertion= ruleAssertion EOF - { - newCompositeNode(grammarAccess.getAssertionRule()); - pushFollow(FOLLOW_1); - iv_ruleAssertion=ruleAssertion(); - - state._fsp--; - - current =iv_ruleAssertion; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleAssertion" - - - // $ANTLR start "ruleAssertion" - // InternalProblem.g:1211:1: ruleAssertion returns [EObject current=null] : ( ( ( ( ( ruleQualifiedName ) ) otherlv_1= '(' ( ( (lv_arguments_2_0= ruleAssertionArgument ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleAssertionArgument ) ) )* )? otherlv_5= ')' otherlv_6= ':' ( (lv_value_7_0= ruleLogicValue ) ) ) | ( ( (lv_value_8_0= ruleShortLogicValue ) )? ( ( ruleQualifiedName ) ) otherlv_10= '(' ( ( (lv_arguments_11_0= ruleAssertionArgument ) ) (otherlv_12= ',' ( (lv_arguments_13_0= ruleAssertionArgument ) ) )* )? otherlv_14= ')' ) ) otherlv_15= '.' ) ; - public final EObject ruleAssertion() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - Token otherlv_3=null; - Token otherlv_5=null; - Token otherlv_6=null; - Token otherlv_10=null; - Token otherlv_12=null; - Token otherlv_14=null; - Token otherlv_15=null; - EObject lv_arguments_2_0 = null; - - EObject lv_arguments_4_0 = null; - - Enumerator lv_value_7_0 = null; - - Enumerator lv_value_8_0 = null; - - EObject lv_arguments_11_0 = null; - - EObject lv_arguments_13_0 = null; - - - - enterRule(); - - try { - // InternalProblem.g:1217:2: ( ( ( ( ( ( ruleQualifiedName ) ) otherlv_1= '(' ( ( (lv_arguments_2_0= ruleAssertionArgument ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleAssertionArgument ) ) )* )? otherlv_5= ')' otherlv_6= ':' ( (lv_value_7_0= ruleLogicValue ) ) ) | ( ( (lv_value_8_0= ruleShortLogicValue ) )? ( ( ruleQualifiedName ) ) otherlv_10= '(' ( ( (lv_arguments_11_0= ruleAssertionArgument ) ) (otherlv_12= ',' ( (lv_arguments_13_0= ruleAssertionArgument ) ) )* )? otherlv_14= ')' ) ) otherlv_15= '.' ) ) - // InternalProblem.g:1218:2: ( ( ( ( ( ruleQualifiedName ) ) otherlv_1= '(' ( ( (lv_arguments_2_0= ruleAssertionArgument ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleAssertionArgument ) ) )* )? otherlv_5= ')' otherlv_6= ':' ( (lv_value_7_0= ruleLogicValue ) ) ) | ( ( (lv_value_8_0= ruleShortLogicValue ) )? ( ( ruleQualifiedName ) ) otherlv_10= '(' ( ( (lv_arguments_11_0= ruleAssertionArgument ) ) (otherlv_12= ',' ( (lv_arguments_13_0= ruleAssertionArgument ) ) )* )? otherlv_14= ')' ) ) otherlv_15= '.' ) - { - // InternalProblem.g:1218:2: ( ( ( ( ( ruleQualifiedName ) ) otherlv_1= '(' ( ( (lv_arguments_2_0= ruleAssertionArgument ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleAssertionArgument ) ) )* )? otherlv_5= ')' otherlv_6= ':' ( (lv_value_7_0= ruleLogicValue ) ) ) | ( ( (lv_value_8_0= ruleShortLogicValue ) )? ( ( ruleQualifiedName ) ) otherlv_10= '(' ( ( (lv_arguments_11_0= ruleAssertionArgument ) ) (otherlv_12= ',' ( (lv_arguments_13_0= ruleAssertionArgument ) ) )* )? otherlv_14= ')' ) ) otherlv_15= '.' ) - // InternalProblem.g:1219:3: ( ( ( ( ruleQualifiedName ) ) otherlv_1= '(' ( ( (lv_arguments_2_0= ruleAssertionArgument ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleAssertionArgument ) ) )* )? otherlv_5= ')' otherlv_6= ':' ( (lv_value_7_0= ruleLogicValue ) ) ) | ( ( (lv_value_8_0= ruleShortLogicValue ) )? ( ( ruleQualifiedName ) ) otherlv_10= '(' ( ( (lv_arguments_11_0= ruleAssertionArgument ) ) (otherlv_12= ',' ( (lv_arguments_13_0= ruleAssertionArgument ) ) )* )? otherlv_14= ')' ) ) otherlv_15= '.' - { - // InternalProblem.g:1219:3: ( ( ( ( ruleQualifiedName ) ) otherlv_1= '(' ( ( (lv_arguments_2_0= ruleAssertionArgument ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleAssertionArgument ) ) )* )? otherlv_5= ')' otherlv_6= ':' ( (lv_value_7_0= ruleLogicValue ) ) ) | ( ( (lv_value_8_0= ruleShortLogicValue ) )? ( ( ruleQualifiedName ) ) otherlv_10= '(' ( ( (lv_arguments_11_0= ruleAssertionArgument ) ) (otherlv_12= ',' ( (lv_arguments_13_0= ruleAssertionArgument ) ) )* )? otherlv_14= ')' ) ) - int alt35=2; - alt35 = dfa35.predict(input); - switch (alt35) { - case 1 : - // InternalProblem.g:1220:4: ( ( ( ruleQualifiedName ) ) otherlv_1= '(' ( ( (lv_arguments_2_0= ruleAssertionArgument ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleAssertionArgument ) ) )* )? otherlv_5= ')' otherlv_6= ':' ( (lv_value_7_0= ruleLogicValue ) ) ) - { - // InternalProblem.g:1220:4: ( ( ( ruleQualifiedName ) ) otherlv_1= '(' ( ( (lv_arguments_2_0= ruleAssertionArgument ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleAssertionArgument ) ) )* )? otherlv_5= ')' otherlv_6= ':' ( (lv_value_7_0= ruleLogicValue ) ) ) - // InternalProblem.g:1221:5: ( ( ruleQualifiedName ) ) otherlv_1= '(' ( ( (lv_arguments_2_0= ruleAssertionArgument ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleAssertionArgument ) ) )* )? otherlv_5= ')' otherlv_6= ':' ( (lv_value_7_0= ruleLogicValue ) ) - { - // InternalProblem.g:1221:5: ( ( ruleQualifiedName ) ) - // InternalProblem.g:1222:6: ( ruleQualifiedName ) - { - // InternalProblem.g:1222:6: ( ruleQualifiedName ) - // InternalProblem.g:1223:7: ruleQualifiedName - { - - if (current==null) { - current = createModelElement(grammarAccess.getAssertionRule()); - } - - - newCompositeNode(grammarAccess.getAssertionAccess().getRelationRelationCrossReference_0_0_0_0()); - - pushFollow(FOLLOW_21); - ruleQualifiedName(); - - state._fsp--; - - - afterParserOrEnumRuleCall(); - - - } - - - } - - otherlv_1=(Token)match(input,30,FOLLOW_29); - - newLeafNode(otherlv_1, grammarAccess.getAssertionAccess().getLeftParenthesisKeyword_0_0_1()); - - // InternalProblem.g:1241:5: ( ( (lv_arguments_2_0= ruleAssertionArgument ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleAssertionArgument ) ) )* )? - int alt31=2; - int LA31_0 = input.LA(1); - - if ( ((LA31_0>=RULE_STRING && LA31_0<=RULE_EXPONENTIAL)||(LA31_0>=42 && LA31_0<=44)) ) { - alt31=1; - } - switch (alt31) { - case 1 : - // InternalProblem.g:1242:6: ( (lv_arguments_2_0= ruleAssertionArgument ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleAssertionArgument ) ) )* - { - // InternalProblem.g:1242:6: ( (lv_arguments_2_0= ruleAssertionArgument ) ) - // InternalProblem.g:1243:7: (lv_arguments_2_0= ruleAssertionArgument ) - { - // InternalProblem.g:1243:7: (lv_arguments_2_0= ruleAssertionArgument ) - // InternalProblem.g:1244:8: lv_arguments_2_0= ruleAssertionArgument - { - - newCompositeNode(grammarAccess.getAssertionAccess().getArgumentsAssertionArgumentParserRuleCall_0_0_2_0_0()); - - pushFollow(FOLLOW_23); - lv_arguments_2_0=ruleAssertionArgument(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getAssertionRule()); - } - add( - current, - "arguments", - lv_arguments_2_0, - "org.eclipse.viatra.solver.language.Problem.AssertionArgument"); - afterParserOrEnumRuleCall(); - - - } - - - } - - // InternalProblem.g:1261:6: (otherlv_3= ',' ( (lv_arguments_4_0= ruleAssertionArgument ) ) )* - loop30: - do { - int alt30=2; - int LA30_0 = input.LA(1); - - if ( (LA30_0==18) ) { - alt30=1; - } - - - switch (alt30) { - case 1 : - // InternalProblem.g:1262:7: otherlv_3= ',' ( (lv_arguments_4_0= ruleAssertionArgument ) ) - { - otherlv_3=(Token)match(input,18,FOLLOW_30); - - newLeafNode(otherlv_3, grammarAccess.getAssertionAccess().getCommaKeyword_0_0_2_1_0()); - - // InternalProblem.g:1266:7: ( (lv_arguments_4_0= ruleAssertionArgument ) ) - // InternalProblem.g:1267:8: (lv_arguments_4_0= ruleAssertionArgument ) - { - // InternalProblem.g:1267:8: (lv_arguments_4_0= ruleAssertionArgument ) - // InternalProblem.g:1268:9: lv_arguments_4_0= ruleAssertionArgument - { - - newCompositeNode(grammarAccess.getAssertionAccess().getArgumentsAssertionArgumentParserRuleCall_0_0_2_1_1_0()); - - pushFollow(FOLLOW_23); - lv_arguments_4_0=ruleAssertionArgument(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getAssertionRule()); - } - add( - current, - "arguments", - lv_arguments_4_0, - "org.eclipse.viatra.solver.language.Problem.AssertionArgument"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - break; - - default : - break loop30; - } - } while (true); - - - } - break; - - } - - otherlv_5=(Token)match(input,31,FOLLOW_31); - - newLeafNode(otherlv_5, grammarAccess.getAssertionAccess().getRightParenthesisKeyword_0_0_3()); - - otherlv_6=(Token)match(input,35,FOLLOW_32); - - newLeafNode(otherlv_6, grammarAccess.getAssertionAccess().getColonKeyword_0_0_4()); - - // InternalProblem.g:1295:5: ( (lv_value_7_0= ruleLogicValue ) ) - // InternalProblem.g:1296:6: (lv_value_7_0= ruleLogicValue ) - { - // InternalProblem.g:1296:6: (lv_value_7_0= ruleLogicValue ) - // InternalProblem.g:1297:7: lv_value_7_0= ruleLogicValue - { - - newCompositeNode(grammarAccess.getAssertionAccess().getValueLogicValueEnumRuleCall_0_0_5_0()); - - pushFollow(FOLLOW_4); - lv_value_7_0=ruleLogicValue(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getAssertionRule()); - } - set( - current, - "value", - lv_value_7_0, - "org.eclipse.viatra.solver.language.Problem.LogicValue"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - - - } - break; - case 2 : - // InternalProblem.g:1316:4: ( ( (lv_value_8_0= ruleShortLogicValue ) )? ( ( ruleQualifiedName ) ) otherlv_10= '(' ( ( (lv_arguments_11_0= ruleAssertionArgument ) ) (otherlv_12= ',' ( (lv_arguments_13_0= ruleAssertionArgument ) ) )* )? otherlv_14= ')' ) - { - // InternalProblem.g:1316:4: ( ( (lv_value_8_0= ruleShortLogicValue ) )? ( ( ruleQualifiedName ) ) otherlv_10= '(' ( ( (lv_arguments_11_0= ruleAssertionArgument ) ) (otherlv_12= ',' ( (lv_arguments_13_0= ruleAssertionArgument ) ) )* )? otherlv_14= ')' ) - // InternalProblem.g:1317:5: ( (lv_value_8_0= ruleShortLogicValue ) )? ( ( ruleQualifiedName ) ) otherlv_10= '(' ( ( (lv_arguments_11_0= ruleAssertionArgument ) ) (otherlv_12= ',' ( (lv_arguments_13_0= ruleAssertionArgument ) ) )* )? otherlv_14= ')' - { - // InternalProblem.g:1317:5: ( (lv_value_8_0= ruleShortLogicValue ) )? - int alt32=2; - int LA32_0 = input.LA(1); - - if ( (LA32_0==33||LA32_0==46) ) { - alt32=1; - } - switch (alt32) { - case 1 : - // InternalProblem.g:1318:6: (lv_value_8_0= ruleShortLogicValue ) - { - // InternalProblem.g:1318:6: (lv_value_8_0= ruleShortLogicValue ) - // InternalProblem.g:1319:7: lv_value_8_0= ruleShortLogicValue - { - - newCompositeNode(grammarAccess.getAssertionAccess().getValueShortLogicValueEnumRuleCall_0_1_0_0()); - - pushFollow(FOLLOW_8); - lv_value_8_0=ruleShortLogicValue(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getAssertionRule()); - } - set( - current, - "value", - lv_value_8_0, - "org.eclipse.viatra.solver.language.Problem.ShortLogicValue"); - afterParserOrEnumRuleCall(); - - - } - - - } - break; - - } - - // InternalProblem.g:1336:5: ( ( ruleQualifiedName ) ) - // InternalProblem.g:1337:6: ( ruleQualifiedName ) - { - // InternalProblem.g:1337:6: ( ruleQualifiedName ) - // InternalProblem.g:1338:7: ruleQualifiedName - { - - if (current==null) { - current = createModelElement(grammarAccess.getAssertionRule()); - } - - - newCompositeNode(grammarAccess.getAssertionAccess().getRelationRelationCrossReference_0_1_1_0()); - - pushFollow(FOLLOW_21); - ruleQualifiedName(); - - state._fsp--; - - - afterParserOrEnumRuleCall(); - - - } - - - } - - otherlv_10=(Token)match(input,30,FOLLOW_29); - - newLeafNode(otherlv_10, grammarAccess.getAssertionAccess().getLeftParenthesisKeyword_0_1_2()); - - // InternalProblem.g:1356:5: ( ( (lv_arguments_11_0= ruleAssertionArgument ) ) (otherlv_12= ',' ( (lv_arguments_13_0= ruleAssertionArgument ) ) )* )? - int alt34=2; - int LA34_0 = input.LA(1); - - if ( ((LA34_0>=RULE_STRING && LA34_0<=RULE_EXPONENTIAL)||(LA34_0>=42 && LA34_0<=44)) ) { - alt34=1; - } - switch (alt34) { - case 1 : - // InternalProblem.g:1357:6: ( (lv_arguments_11_0= ruleAssertionArgument ) ) (otherlv_12= ',' ( (lv_arguments_13_0= ruleAssertionArgument ) ) )* - { - // InternalProblem.g:1357:6: ( (lv_arguments_11_0= ruleAssertionArgument ) ) - // InternalProblem.g:1358:7: (lv_arguments_11_0= ruleAssertionArgument ) - { - // InternalProblem.g:1358:7: (lv_arguments_11_0= ruleAssertionArgument ) - // InternalProblem.g:1359:8: lv_arguments_11_0= ruleAssertionArgument - { - - newCompositeNode(grammarAccess.getAssertionAccess().getArgumentsAssertionArgumentParserRuleCall_0_1_3_0_0()); - - pushFollow(FOLLOW_23); - lv_arguments_11_0=ruleAssertionArgument(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getAssertionRule()); - } - add( - current, - "arguments", - lv_arguments_11_0, - "org.eclipse.viatra.solver.language.Problem.AssertionArgument"); - afterParserOrEnumRuleCall(); - - - } - - - } - - // InternalProblem.g:1376:6: (otherlv_12= ',' ( (lv_arguments_13_0= ruleAssertionArgument ) ) )* - loop33: - do { - int alt33=2; - int LA33_0 = input.LA(1); - - if ( (LA33_0==18) ) { - alt33=1; - } - - - switch (alt33) { - case 1 : - // InternalProblem.g:1377:7: otherlv_12= ',' ( (lv_arguments_13_0= ruleAssertionArgument ) ) - { - otherlv_12=(Token)match(input,18,FOLLOW_30); - - newLeafNode(otherlv_12, grammarAccess.getAssertionAccess().getCommaKeyword_0_1_3_1_0()); - - // InternalProblem.g:1381:7: ( (lv_arguments_13_0= ruleAssertionArgument ) ) - // InternalProblem.g:1382:8: (lv_arguments_13_0= ruleAssertionArgument ) - { - // InternalProblem.g:1382:8: (lv_arguments_13_0= ruleAssertionArgument ) - // InternalProblem.g:1383:9: lv_arguments_13_0= ruleAssertionArgument - { - - newCompositeNode(grammarAccess.getAssertionAccess().getArgumentsAssertionArgumentParserRuleCall_0_1_3_1_1_0()); - - pushFollow(FOLLOW_23); - lv_arguments_13_0=ruleAssertionArgument(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getAssertionRule()); - } - add( - current, - "arguments", - lv_arguments_13_0, - "org.eclipse.viatra.solver.language.Problem.AssertionArgument"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - break; - - default : - break loop33; - } - } while (true); - - - } - break; - - } - - otherlv_14=(Token)match(input,31,FOLLOW_4); - - newLeafNode(otherlv_14, grammarAccess.getAssertionAccess().getRightParenthesisKeyword_0_1_4()); - - - } - - - } - break; - - } - - otherlv_15=(Token)match(input,14,FOLLOW_2); - - newLeafNode(otherlv_15, grammarAccess.getAssertionAccess().getFullStopKeyword_1()); - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleAssertion" - - - // $ANTLR start "entryRuleAssertionArgument" - // InternalProblem.g:1416:1: entryRuleAssertionArgument returns [EObject current=null] : iv_ruleAssertionArgument= ruleAssertionArgument EOF ; - public final EObject entryRuleAssertionArgument() throws RecognitionException { - EObject current = null; - - EObject iv_ruleAssertionArgument = null; - - - try { - // InternalProblem.g:1416:58: (iv_ruleAssertionArgument= ruleAssertionArgument EOF ) - // InternalProblem.g:1417:2: iv_ruleAssertionArgument= ruleAssertionArgument EOF - { - newCompositeNode(grammarAccess.getAssertionArgumentRule()); - pushFollow(FOLLOW_1); - iv_ruleAssertionArgument=ruleAssertionArgument(); - - state._fsp--; - - current =iv_ruleAssertionArgument; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleAssertionArgument" - - - // $ANTLR start "ruleAssertionArgument" - // InternalProblem.g:1423:1: ruleAssertionArgument returns [EObject current=null] : (this_NodeAssertionArgument_0= ruleNodeAssertionArgument | this_ConstantAssertionArgument_1= ruleConstantAssertionArgument ) ; - public final EObject ruleAssertionArgument() throws RecognitionException { - EObject current = null; - - EObject this_NodeAssertionArgument_0 = null; - - EObject this_ConstantAssertionArgument_1 = null; - - - - enterRule(); - - try { - // InternalProblem.g:1429:2: ( (this_NodeAssertionArgument_0= ruleNodeAssertionArgument | this_ConstantAssertionArgument_1= ruleConstantAssertionArgument ) ) - // InternalProblem.g:1430:2: (this_NodeAssertionArgument_0= ruleNodeAssertionArgument | this_ConstantAssertionArgument_1= ruleConstantAssertionArgument ) - { - // InternalProblem.g:1430:2: (this_NodeAssertionArgument_0= ruleNodeAssertionArgument | this_ConstantAssertionArgument_1= ruleConstantAssertionArgument ) - int alt36=2; - int LA36_0 = input.LA(1); - - if ( (LA36_0==RULE_ID||LA36_0==RULE_QUOTED_ID||(LA36_0>=42 && LA36_0<=43)) ) { - alt36=1; - } - else if ( (LA36_0==RULE_STRING||LA36_0==RULE_INT||LA36_0==RULE_EXPONENTIAL||LA36_0==44) ) { - alt36=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 36, 0, input); - - throw nvae; - } - switch (alt36) { - case 1 : - // InternalProblem.g:1431:3: this_NodeAssertionArgument_0= ruleNodeAssertionArgument - { - - newCompositeNode(grammarAccess.getAssertionArgumentAccess().getNodeAssertionArgumentParserRuleCall_0()); - - pushFollow(FOLLOW_2); - this_NodeAssertionArgument_0=ruleNodeAssertionArgument(); - - state._fsp--; - - - current = this_NodeAssertionArgument_0; - afterParserOrEnumRuleCall(); - - - } - break; - case 2 : - // InternalProblem.g:1440:3: this_ConstantAssertionArgument_1= ruleConstantAssertionArgument - { - - newCompositeNode(grammarAccess.getAssertionArgumentAccess().getConstantAssertionArgumentParserRuleCall_1()); - - pushFollow(FOLLOW_2); - this_ConstantAssertionArgument_1=ruleConstantAssertionArgument(); - - state._fsp--; - - - current = this_ConstantAssertionArgument_1; - afterParserOrEnumRuleCall(); - - - } - break; - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleAssertionArgument" - - - // $ANTLR start "entryRuleNodeAssertionArgument" - // InternalProblem.g:1452:1: entryRuleNodeAssertionArgument returns [EObject current=null] : iv_ruleNodeAssertionArgument= ruleNodeAssertionArgument EOF ; - public final EObject entryRuleNodeAssertionArgument() throws RecognitionException { - EObject current = null; - - EObject iv_ruleNodeAssertionArgument = null; - - - try { - // InternalProblem.g:1452:62: (iv_ruleNodeAssertionArgument= ruleNodeAssertionArgument EOF ) - // InternalProblem.g:1453:2: iv_ruleNodeAssertionArgument= ruleNodeAssertionArgument EOF - { - newCompositeNode(grammarAccess.getNodeAssertionArgumentRule()); - pushFollow(FOLLOW_1); - iv_ruleNodeAssertionArgument=ruleNodeAssertionArgument(); - - state._fsp--; - - current =iv_ruleNodeAssertionArgument; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleNodeAssertionArgument" - - - // $ANTLR start "ruleNodeAssertionArgument" - // InternalProblem.g:1459:1: ruleNodeAssertionArgument returns [EObject current=null] : ( ( ruleQualifiedName ) ) ; - public final EObject ruleNodeAssertionArgument() throws RecognitionException { - EObject current = null; - - - enterRule(); - - try { - // InternalProblem.g:1465:2: ( ( ( ruleQualifiedName ) ) ) - // InternalProblem.g:1466:2: ( ( ruleQualifiedName ) ) - { - // InternalProblem.g:1466:2: ( ( ruleQualifiedName ) ) - // InternalProblem.g:1467:3: ( ruleQualifiedName ) - { - // InternalProblem.g:1467:3: ( ruleQualifiedName ) - // InternalProblem.g:1468:4: ruleQualifiedName - { - - if (current==null) { - current = createModelElement(grammarAccess.getNodeAssertionArgumentRule()); - } - - - newCompositeNode(grammarAccess.getNodeAssertionArgumentAccess().getNodeNodeCrossReference_0()); - - pushFollow(FOLLOW_2); - ruleQualifiedName(); - - state._fsp--; - - - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleNodeAssertionArgument" - - - // $ANTLR start "entryRuleConstantAssertionArgument" - // InternalProblem.g:1485:1: entryRuleConstantAssertionArgument returns [EObject current=null] : iv_ruleConstantAssertionArgument= ruleConstantAssertionArgument EOF ; - public final EObject entryRuleConstantAssertionArgument() throws RecognitionException { - EObject current = null; - - EObject iv_ruleConstantAssertionArgument = null; - - - try { - // InternalProblem.g:1485:66: (iv_ruleConstantAssertionArgument= ruleConstantAssertionArgument EOF ) - // InternalProblem.g:1486:2: iv_ruleConstantAssertionArgument= ruleConstantAssertionArgument EOF - { - newCompositeNode(grammarAccess.getConstantAssertionArgumentRule()); - pushFollow(FOLLOW_1); - iv_ruleConstantAssertionArgument=ruleConstantAssertionArgument(); - - state._fsp--; - - current =iv_ruleConstantAssertionArgument; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleConstantAssertionArgument" - - - // $ANTLR start "ruleConstantAssertionArgument" - // InternalProblem.g:1492:1: ruleConstantAssertionArgument returns [EObject current=null] : ( (lv_constant_0_0= ruleConstant ) ) ; - public final EObject ruleConstantAssertionArgument() throws RecognitionException { - EObject current = null; - - EObject lv_constant_0_0 = null; - - - - enterRule(); - - try { - // InternalProblem.g:1498:2: ( ( (lv_constant_0_0= ruleConstant ) ) ) - // InternalProblem.g:1499:2: ( (lv_constant_0_0= ruleConstant ) ) - { - // InternalProblem.g:1499:2: ( (lv_constant_0_0= ruleConstant ) ) - // InternalProblem.g:1500:3: (lv_constant_0_0= ruleConstant ) - { - // InternalProblem.g:1500:3: (lv_constant_0_0= ruleConstant ) - // InternalProblem.g:1501:4: lv_constant_0_0= ruleConstant - { - - newCompositeNode(grammarAccess.getConstantAssertionArgumentAccess().getConstantConstantParserRuleCall_0()); - - pushFollow(FOLLOW_2); - lv_constant_0_0=ruleConstant(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getConstantAssertionArgumentRule()); - } - set( - current, - "constant", - lv_constant_0_0, - "org.eclipse.viatra.solver.language.Problem.Constant"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleConstantAssertionArgument" - - - // $ANTLR start "entryRuleNodeValueAssertion" - // InternalProblem.g:1521:1: entryRuleNodeValueAssertion returns [EObject current=null] : iv_ruleNodeValueAssertion= ruleNodeValueAssertion EOF ; - public final EObject entryRuleNodeValueAssertion() throws RecognitionException { - EObject current = null; - - EObject iv_ruleNodeValueAssertion = null; - - - try { - // InternalProblem.g:1521:59: (iv_ruleNodeValueAssertion= ruleNodeValueAssertion EOF ) - // InternalProblem.g:1522:2: iv_ruleNodeValueAssertion= ruleNodeValueAssertion EOF - { - newCompositeNode(grammarAccess.getNodeValueAssertionRule()); - pushFollow(FOLLOW_1); - iv_ruleNodeValueAssertion=ruleNodeValueAssertion(); - - state._fsp--; - - current =iv_ruleNodeValueAssertion; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleNodeValueAssertion" - - - // $ANTLR start "ruleNodeValueAssertion" - // InternalProblem.g:1528:1: ruleNodeValueAssertion returns [EObject current=null] : ( ( ( ruleQualifiedName ) ) otherlv_1= ':' ( (lv_value_2_0= ruleConstant ) ) otherlv_3= '.' ) ; - public final EObject ruleNodeValueAssertion() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - Token otherlv_3=null; - EObject lv_value_2_0 = null; - - - - enterRule(); - - try { - // InternalProblem.g:1534:2: ( ( ( ( ruleQualifiedName ) ) otherlv_1= ':' ( (lv_value_2_0= ruleConstant ) ) otherlv_3= '.' ) ) - // InternalProblem.g:1535:2: ( ( ( ruleQualifiedName ) ) otherlv_1= ':' ( (lv_value_2_0= ruleConstant ) ) otherlv_3= '.' ) - { - // InternalProblem.g:1535:2: ( ( ( ruleQualifiedName ) ) otherlv_1= ':' ( (lv_value_2_0= ruleConstant ) ) otherlv_3= '.' ) - // InternalProblem.g:1536:3: ( ( ruleQualifiedName ) ) otherlv_1= ':' ( (lv_value_2_0= ruleConstant ) ) otherlv_3= '.' - { - // InternalProblem.g:1536:3: ( ( ruleQualifiedName ) ) - // InternalProblem.g:1537:4: ( ruleQualifiedName ) - { - // InternalProblem.g:1537:4: ( ruleQualifiedName ) - // InternalProblem.g:1538:5: ruleQualifiedName - { - - if (current==null) { - current = createModelElement(grammarAccess.getNodeValueAssertionRule()); - } - - - newCompositeNode(grammarAccess.getNodeValueAssertionAccess().getNodeNodeCrossReference_0_0()); - - pushFollow(FOLLOW_31); - ruleQualifiedName(); - - state._fsp--; - - - afterParserOrEnumRuleCall(); - - - } - - - } - - otherlv_1=(Token)match(input,35,FOLLOW_30); - - newLeafNode(otherlv_1, grammarAccess.getNodeValueAssertionAccess().getColonKeyword_1()); - - // InternalProblem.g:1556:3: ( (lv_value_2_0= ruleConstant ) ) - // InternalProblem.g:1557:4: (lv_value_2_0= ruleConstant ) - { - // InternalProblem.g:1557:4: (lv_value_2_0= ruleConstant ) - // InternalProblem.g:1558:5: lv_value_2_0= ruleConstant - { - - newCompositeNode(grammarAccess.getNodeValueAssertionAccess().getValueConstantParserRuleCall_2_0()); - - pushFollow(FOLLOW_4); - lv_value_2_0=ruleConstant(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getNodeValueAssertionRule()); - } - set( - current, - "value", - lv_value_2_0, - "org.eclipse.viatra.solver.language.Problem.Constant"); - afterParserOrEnumRuleCall(); - - - } - - - } - - otherlv_3=(Token)match(input,14,FOLLOW_2); - - newLeafNode(otherlv_3, grammarAccess.getNodeValueAssertionAccess().getFullStopKeyword_3()); - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleNodeValueAssertion" - - - // $ANTLR start "entryRuleConstant" - // InternalProblem.g:1583:1: entryRuleConstant returns [EObject current=null] : iv_ruleConstant= ruleConstant EOF ; - public final EObject entryRuleConstant() throws RecognitionException { - EObject current = null; - - EObject iv_ruleConstant = null; - - - try { - // InternalProblem.g:1583:49: (iv_ruleConstant= ruleConstant EOF ) - // InternalProblem.g:1584:2: iv_ruleConstant= ruleConstant EOF - { - newCompositeNode(grammarAccess.getConstantRule()); - pushFollow(FOLLOW_1); - iv_ruleConstant=ruleConstant(); - - state._fsp--; - - current =iv_ruleConstant; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleConstant" - - - // $ANTLR start "ruleConstant" - // InternalProblem.g:1590:1: ruleConstant returns [EObject current=null] : (this_RealConstant_0= ruleRealConstant | this_IntConstant_1= ruleIntConstant | this_StringConstant_2= ruleStringConstant ) ; - public final EObject ruleConstant() throws RecognitionException { - EObject current = null; - - EObject this_RealConstant_0 = null; - - EObject this_IntConstant_1 = null; - - EObject this_StringConstant_2 = null; - - - - enterRule(); - - try { - // InternalProblem.g:1596:2: ( (this_RealConstant_0= ruleRealConstant | this_IntConstant_1= ruleIntConstant | this_StringConstant_2= ruleStringConstant ) ) - // InternalProblem.g:1597:2: (this_RealConstant_0= ruleRealConstant | this_IntConstant_1= ruleIntConstant | this_StringConstant_2= ruleStringConstant ) - { - // InternalProblem.g:1597:2: (this_RealConstant_0= ruleRealConstant | this_IntConstant_1= ruleIntConstant | this_StringConstant_2= ruleStringConstant ) - int alt37=3; - switch ( input.LA(1) ) { - case 44: - { - int LA37_1 = input.LA(2); - - if ( (LA37_1==RULE_INT) ) { - int LA37_3 = input.LA(3); - - if ( (LA37_3==14) ) { - int LA37_5 = input.LA(4); - - if ( (LA37_5==EOF||LA37_5==RULE_ID||LA37_5==RULE_QUOTED_ID||(LA37_5>=15 && LA37_5<=16)||LA37_5==22||(LA37_5>=28 && LA37_5<=29)||LA37_5==33||LA37_5==36||(LA37_5>=42 && LA37_5<=43)||LA37_5==46) ) { - alt37=2; - } - else if ( (LA37_5==RULE_INT||LA37_5==RULE_EXPONENTIAL) ) { - alt37=1; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 37, 5, input); - - throw nvae; - } - } - else if ( (LA37_3==EOF||LA37_3==18||LA37_3==31) ) { - alt37=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 37, 3, input); - - throw nvae; - } - } - else if ( (LA37_1==RULE_EXPONENTIAL) ) { - alt37=1; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 37, 1, input); - - throw nvae; - } - } - break; - case RULE_EXPONENTIAL: - { - alt37=1; - } - break; - case RULE_INT: - { - int LA37_3 = input.LA(2); - - if ( (LA37_3==14) ) { - int LA37_5 = input.LA(3); - - if ( (LA37_5==EOF||LA37_5==RULE_ID||LA37_5==RULE_QUOTED_ID||(LA37_5>=15 && LA37_5<=16)||LA37_5==22||(LA37_5>=28 && LA37_5<=29)||LA37_5==33||LA37_5==36||(LA37_5>=42 && LA37_5<=43)||LA37_5==46) ) { - alt37=2; - } - else if ( (LA37_5==RULE_INT||LA37_5==RULE_EXPONENTIAL) ) { - alt37=1; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 37, 5, input); - - throw nvae; - } - } - else if ( (LA37_3==EOF||LA37_3==18||LA37_3==31) ) { - alt37=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 37, 3, input); - - throw nvae; - } - } - break; - case RULE_STRING: - { - alt37=3; - } - break; - default: - NoViableAltException nvae = - new NoViableAltException("", 37, 0, input); - - throw nvae; - } - - switch (alt37) { - case 1 : - // InternalProblem.g:1598:3: this_RealConstant_0= ruleRealConstant - { - - newCompositeNode(grammarAccess.getConstantAccess().getRealConstantParserRuleCall_0()); - - pushFollow(FOLLOW_2); - this_RealConstant_0=ruleRealConstant(); - - state._fsp--; - - - current = this_RealConstant_0; - afterParserOrEnumRuleCall(); - - - } - break; - case 2 : - // InternalProblem.g:1607:3: this_IntConstant_1= ruleIntConstant - { - - newCompositeNode(grammarAccess.getConstantAccess().getIntConstantParserRuleCall_1()); - - pushFollow(FOLLOW_2); - this_IntConstant_1=ruleIntConstant(); - - state._fsp--; - - - current = this_IntConstant_1; - afterParserOrEnumRuleCall(); - - - } - break; - case 3 : - // InternalProblem.g:1616:3: this_StringConstant_2= ruleStringConstant - { - - newCompositeNode(grammarAccess.getConstantAccess().getStringConstantParserRuleCall_2()); - - pushFollow(FOLLOW_2); - this_StringConstant_2=ruleStringConstant(); - - state._fsp--; - - - current = this_StringConstant_2; - afterParserOrEnumRuleCall(); - - - } - break; - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleConstant" - - - // $ANTLR start "entryRuleIntConstant" - // InternalProblem.g:1628:1: entryRuleIntConstant returns [EObject current=null] : iv_ruleIntConstant= ruleIntConstant EOF ; - public final EObject entryRuleIntConstant() throws RecognitionException { - EObject current = null; - - EObject iv_ruleIntConstant = null; - - - try { - // InternalProblem.g:1628:52: (iv_ruleIntConstant= ruleIntConstant EOF ) - // InternalProblem.g:1629:2: iv_ruleIntConstant= ruleIntConstant EOF - { - newCompositeNode(grammarAccess.getIntConstantRule()); - pushFollow(FOLLOW_1); - iv_ruleIntConstant=ruleIntConstant(); - - state._fsp--; - - current =iv_ruleIntConstant; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleIntConstant" - - - // $ANTLR start "ruleIntConstant" - // InternalProblem.g:1635:1: ruleIntConstant returns [EObject current=null] : ( (lv_intValue_0_0= ruleInteger ) ) ; - public final EObject ruleIntConstant() throws RecognitionException { - EObject current = null; - - AntlrDatatypeRuleToken lv_intValue_0_0 = null; - - - - enterRule(); - - try { - // InternalProblem.g:1641:2: ( ( (lv_intValue_0_0= ruleInteger ) ) ) - // InternalProblem.g:1642:2: ( (lv_intValue_0_0= ruleInteger ) ) - { - // InternalProblem.g:1642:2: ( (lv_intValue_0_0= ruleInteger ) ) - // InternalProblem.g:1643:3: (lv_intValue_0_0= ruleInteger ) - { - // InternalProblem.g:1643:3: (lv_intValue_0_0= ruleInteger ) - // InternalProblem.g:1644:4: lv_intValue_0_0= ruleInteger - { - - newCompositeNode(grammarAccess.getIntConstantAccess().getIntValueIntegerParserRuleCall_0()); - - pushFollow(FOLLOW_2); - lv_intValue_0_0=ruleInteger(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getIntConstantRule()); - } - set( - current, - "intValue", - lv_intValue_0_0, - "org.eclipse.viatra.solver.language.Problem.Integer"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleIntConstant" - - - // $ANTLR start "entryRuleRealConstant" - // InternalProblem.g:1664:1: entryRuleRealConstant returns [EObject current=null] : iv_ruleRealConstant= ruleRealConstant EOF ; - public final EObject entryRuleRealConstant() throws RecognitionException { - EObject current = null; - - EObject iv_ruleRealConstant = null; - - - try { - // InternalProblem.g:1664:53: (iv_ruleRealConstant= ruleRealConstant EOF ) - // InternalProblem.g:1665:2: iv_ruleRealConstant= ruleRealConstant EOF - { - newCompositeNode(grammarAccess.getRealConstantRule()); - pushFollow(FOLLOW_1); - iv_ruleRealConstant=ruleRealConstant(); - - state._fsp--; - - current =iv_ruleRealConstant; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleRealConstant" - - - // $ANTLR start "ruleRealConstant" - // InternalProblem.g:1671:1: ruleRealConstant returns [EObject current=null] : ( (lv_realValue_0_0= ruleReal ) ) ; - public final EObject ruleRealConstant() throws RecognitionException { - EObject current = null; - - AntlrDatatypeRuleToken lv_realValue_0_0 = null; - - - - enterRule(); - - try { - // InternalProblem.g:1677:2: ( ( (lv_realValue_0_0= ruleReal ) ) ) - // InternalProblem.g:1678:2: ( (lv_realValue_0_0= ruleReal ) ) - { - // InternalProblem.g:1678:2: ( (lv_realValue_0_0= ruleReal ) ) - // InternalProblem.g:1679:3: (lv_realValue_0_0= ruleReal ) - { - // InternalProblem.g:1679:3: (lv_realValue_0_0= ruleReal ) - // InternalProblem.g:1680:4: lv_realValue_0_0= ruleReal - { - - newCompositeNode(grammarAccess.getRealConstantAccess().getRealValueRealParserRuleCall_0()); - - pushFollow(FOLLOW_2); - lv_realValue_0_0=ruleReal(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getRealConstantRule()); - } - set( - current, - "realValue", - lv_realValue_0_0, - "org.eclipse.viatra.solver.language.Problem.Real"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleRealConstant" - - - // $ANTLR start "entryRuleStringConstant" - // InternalProblem.g:1700:1: entryRuleStringConstant returns [EObject current=null] : iv_ruleStringConstant= ruleStringConstant EOF ; - public final EObject entryRuleStringConstant() throws RecognitionException { - EObject current = null; - - EObject iv_ruleStringConstant = null; - - - try { - // InternalProblem.g:1700:55: (iv_ruleStringConstant= ruleStringConstant EOF ) - // InternalProblem.g:1701:2: iv_ruleStringConstant= ruleStringConstant EOF - { - newCompositeNode(grammarAccess.getStringConstantRule()); - pushFollow(FOLLOW_1); - iv_ruleStringConstant=ruleStringConstant(); - - state._fsp--; - - current =iv_ruleStringConstant; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleStringConstant" - - - // $ANTLR start "ruleStringConstant" - // InternalProblem.g:1707:1: ruleStringConstant returns [EObject current=null] : ( (lv_stringValue_0_0= RULE_STRING ) ) ; - public final EObject ruleStringConstant() throws RecognitionException { - EObject current = null; - - Token lv_stringValue_0_0=null; - - - enterRule(); - - try { - // InternalProblem.g:1713:2: ( ( (lv_stringValue_0_0= RULE_STRING ) ) ) - // InternalProblem.g:1714:2: ( (lv_stringValue_0_0= RULE_STRING ) ) - { - // InternalProblem.g:1714:2: ( (lv_stringValue_0_0= RULE_STRING ) ) - // InternalProblem.g:1715:3: (lv_stringValue_0_0= RULE_STRING ) - { - // InternalProblem.g:1715:3: (lv_stringValue_0_0= RULE_STRING ) - // InternalProblem.g:1716:4: lv_stringValue_0_0= RULE_STRING - { - lv_stringValue_0_0=(Token)match(input,RULE_STRING,FOLLOW_2); - - newLeafNode(lv_stringValue_0_0, grammarAccess.getStringConstantAccess().getStringValueSTRINGTerminalRuleCall_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getStringConstantRule()); - } - setWithLastConsumed( - current, - "stringValue", - lv_stringValue_0_0, - "org.eclipse.viatra.solver.language.Problem.STRING"); - - - } - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleStringConstant" - - - // $ANTLR start "entryRuleScopeDeclaration" - // InternalProblem.g:1735:1: entryRuleScopeDeclaration returns [EObject current=null] : iv_ruleScopeDeclaration= ruleScopeDeclaration EOF ; - public final EObject entryRuleScopeDeclaration() throws RecognitionException { - EObject current = null; - - EObject iv_ruleScopeDeclaration = null; - - - try { - // InternalProblem.g:1735:57: (iv_ruleScopeDeclaration= ruleScopeDeclaration EOF ) - // InternalProblem.g:1736:2: iv_ruleScopeDeclaration= ruleScopeDeclaration EOF - { - newCompositeNode(grammarAccess.getScopeDeclarationRule()); - pushFollow(FOLLOW_1); - iv_ruleScopeDeclaration=ruleScopeDeclaration(); - - state._fsp--; - - current =iv_ruleScopeDeclaration; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleScopeDeclaration" - - - // $ANTLR start "ruleScopeDeclaration" - // InternalProblem.g:1742:1: ruleScopeDeclaration returns [EObject current=null] : (otherlv_0= 'scope' ( (lv_typeScopes_1_0= ruleTypeScope ) ) (otherlv_2= ',' ( (lv_typeScopes_3_0= ruleTypeScope ) ) )* otherlv_4= '.' ) ; - public final EObject ruleScopeDeclaration() throws RecognitionException { - EObject current = null; - - Token otherlv_0=null; - Token otherlv_2=null; - Token otherlv_4=null; - EObject lv_typeScopes_1_0 = null; - - EObject lv_typeScopes_3_0 = null; - - - - enterRule(); - - try { - // InternalProblem.g:1748:2: ( (otherlv_0= 'scope' ( (lv_typeScopes_1_0= ruleTypeScope ) ) (otherlv_2= ',' ( (lv_typeScopes_3_0= ruleTypeScope ) ) )* otherlv_4= '.' ) ) - // InternalProblem.g:1749:2: (otherlv_0= 'scope' ( (lv_typeScopes_1_0= ruleTypeScope ) ) (otherlv_2= ',' ( (lv_typeScopes_3_0= ruleTypeScope ) ) )* otherlv_4= '.' ) - { - // InternalProblem.g:1749:2: (otherlv_0= 'scope' ( (lv_typeScopes_1_0= ruleTypeScope ) ) (otherlv_2= ',' ( (lv_typeScopes_3_0= ruleTypeScope ) ) )* otherlv_4= '.' ) - // InternalProblem.g:1750:3: otherlv_0= 'scope' ( (lv_typeScopes_1_0= ruleTypeScope ) ) (otherlv_2= ',' ( (lv_typeScopes_3_0= ruleTypeScope ) ) )* otherlv_4= '.' - { - otherlv_0=(Token)match(input,36,FOLLOW_33); - - newLeafNode(otherlv_0, grammarAccess.getScopeDeclarationAccess().getScopeKeyword_0()); - - // InternalProblem.g:1754:3: ( (lv_typeScopes_1_0= ruleTypeScope ) ) - // InternalProblem.g:1755:4: (lv_typeScopes_1_0= ruleTypeScope ) - { - // InternalProblem.g:1755:4: (lv_typeScopes_1_0= ruleTypeScope ) - // InternalProblem.g:1756:5: lv_typeScopes_1_0= ruleTypeScope - { - - newCompositeNode(grammarAccess.getScopeDeclarationAccess().getTypeScopesTypeScopeParserRuleCall_1_0()); - - pushFollow(FOLLOW_34); - lv_typeScopes_1_0=ruleTypeScope(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getScopeDeclarationRule()); - } - add( - current, - "typeScopes", - lv_typeScopes_1_0, - "org.eclipse.viatra.solver.language.Problem.TypeScope"); - afterParserOrEnumRuleCall(); - - - } - - - } - - // InternalProblem.g:1773:3: (otherlv_2= ',' ( (lv_typeScopes_3_0= ruleTypeScope ) ) )* - loop38: - do { - int alt38=2; - int LA38_0 = input.LA(1); - - if ( (LA38_0==18) ) { - alt38=1; - } - - - switch (alt38) { - case 1 : - // InternalProblem.g:1774:4: otherlv_2= ',' ( (lv_typeScopes_3_0= ruleTypeScope ) ) - { - otherlv_2=(Token)match(input,18,FOLLOW_33); - - newLeafNode(otherlv_2, grammarAccess.getScopeDeclarationAccess().getCommaKeyword_2_0()); - - // InternalProblem.g:1778:4: ( (lv_typeScopes_3_0= ruleTypeScope ) ) - // InternalProblem.g:1779:5: (lv_typeScopes_3_0= ruleTypeScope ) - { - // InternalProblem.g:1779:5: (lv_typeScopes_3_0= ruleTypeScope ) - // InternalProblem.g:1780:6: lv_typeScopes_3_0= ruleTypeScope - { - - newCompositeNode(grammarAccess.getScopeDeclarationAccess().getTypeScopesTypeScopeParserRuleCall_2_1_0()); - - pushFollow(FOLLOW_34); - lv_typeScopes_3_0=ruleTypeScope(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getScopeDeclarationRule()); - } - add( - current, - "typeScopes", - lv_typeScopes_3_0, - "org.eclipse.viatra.solver.language.Problem.TypeScope"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - break; - - default : - break loop38; - } - } while (true); - - otherlv_4=(Token)match(input,14,FOLLOW_2); - - newLeafNode(otherlv_4, grammarAccess.getScopeDeclarationAccess().getFullStopKeyword_3()); - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleScopeDeclaration" - - - // $ANTLR start "entryRuleTypeScope" - // InternalProblem.g:1806:1: entryRuleTypeScope returns [EObject current=null] : iv_ruleTypeScope= ruleTypeScope EOF ; - public final EObject entryRuleTypeScope() throws RecognitionException { - EObject current = null; - - EObject iv_ruleTypeScope = null; - - - try { - // InternalProblem.g:1806:50: (iv_ruleTypeScope= ruleTypeScope EOF ) - // InternalProblem.g:1807:2: iv_ruleTypeScope= ruleTypeScope EOF - { - newCompositeNode(grammarAccess.getTypeScopeRule()); - pushFollow(FOLLOW_1); - iv_ruleTypeScope=ruleTypeScope(); - - state._fsp--; - - current =iv_ruleTypeScope; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleTypeScope" - - - // $ANTLR start "ruleTypeScope" - // InternalProblem.g:1813:1: ruleTypeScope returns [EObject current=null] : ( ( (otherlv_0= RULE_ID ) ) ( ( (lv_increment_1_0= '+=' ) ) | otherlv_2= '=' ) ( (lv_multiplicity_3_0= ruleDefiniteMultiplicity ) ) ) ; - public final EObject ruleTypeScope() throws RecognitionException { - EObject current = null; - - Token otherlv_0=null; - Token lv_increment_1_0=null; - Token otherlv_2=null; - EObject lv_multiplicity_3_0 = null; - - - - enterRule(); - - try { - // InternalProblem.g:1819:2: ( ( ( (otherlv_0= RULE_ID ) ) ( ( (lv_increment_1_0= '+=' ) ) | otherlv_2= '=' ) ( (lv_multiplicity_3_0= ruleDefiniteMultiplicity ) ) ) ) - // InternalProblem.g:1820:2: ( ( (otherlv_0= RULE_ID ) ) ( ( (lv_increment_1_0= '+=' ) ) | otherlv_2= '=' ) ( (lv_multiplicity_3_0= ruleDefiniteMultiplicity ) ) ) - { - // InternalProblem.g:1820:2: ( ( (otherlv_0= RULE_ID ) ) ( ( (lv_increment_1_0= '+=' ) ) | otherlv_2= '=' ) ( (lv_multiplicity_3_0= ruleDefiniteMultiplicity ) ) ) - // InternalProblem.g:1821:3: ( (otherlv_0= RULE_ID ) ) ( ( (lv_increment_1_0= '+=' ) ) | otherlv_2= '=' ) ( (lv_multiplicity_3_0= ruleDefiniteMultiplicity ) ) - { - // InternalProblem.g:1821:3: ( (otherlv_0= RULE_ID ) ) - // InternalProblem.g:1822:4: (otherlv_0= RULE_ID ) - { - // InternalProblem.g:1822:4: (otherlv_0= RULE_ID ) - // InternalProblem.g:1823:5: otherlv_0= RULE_ID - { - - if (current==null) { - current = createModelElement(grammarAccess.getTypeScopeRule()); - } - - otherlv_0=(Token)match(input,RULE_ID,FOLLOW_35); - - newLeafNode(otherlv_0, grammarAccess.getTypeScopeAccess().getTargetTypeClassDeclarationCrossReference_0_0()); - - - } - - - } - - // InternalProblem.g:1834:3: ( ( (lv_increment_1_0= '+=' ) ) | otherlv_2= '=' ) - int alt39=2; - int LA39_0 = input.LA(1); - - if ( (LA39_0==37) ) { - alt39=1; - } - else if ( (LA39_0==38) ) { - alt39=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 39, 0, input); - - throw nvae; - } - switch (alt39) { - case 1 : - // InternalProblem.g:1835:4: ( (lv_increment_1_0= '+=' ) ) - { - // InternalProblem.g:1835:4: ( (lv_increment_1_0= '+=' ) ) - // InternalProblem.g:1836:5: (lv_increment_1_0= '+=' ) - { - // InternalProblem.g:1836:5: (lv_increment_1_0= '+=' ) - // InternalProblem.g:1837:6: lv_increment_1_0= '+=' - { - lv_increment_1_0=(Token)match(input,37,FOLLOW_17); - - newLeafNode(lv_increment_1_0, grammarAccess.getTypeScopeAccess().getIncrementPlusSignEqualsSignKeyword_1_0_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getTypeScopeRule()); - } - setWithLastConsumed(current, "increment", lv_increment_1_0 != null, "+="); - - - } - - - } - - - } - break; - case 2 : - // InternalProblem.g:1850:4: otherlv_2= '=' - { - otherlv_2=(Token)match(input,38,FOLLOW_17); - - newLeafNode(otherlv_2, grammarAccess.getTypeScopeAccess().getEqualsSignKeyword_1_1()); - - - } - break; - - } - - // InternalProblem.g:1855:3: ( (lv_multiplicity_3_0= ruleDefiniteMultiplicity ) ) - // InternalProblem.g:1856:4: (lv_multiplicity_3_0= ruleDefiniteMultiplicity ) - { - // InternalProblem.g:1856:4: (lv_multiplicity_3_0= ruleDefiniteMultiplicity ) - // InternalProblem.g:1857:5: lv_multiplicity_3_0= ruleDefiniteMultiplicity - { - - newCompositeNode(grammarAccess.getTypeScopeAccess().getMultiplicityDefiniteMultiplicityParserRuleCall_2_0()); - - pushFollow(FOLLOW_2); - lv_multiplicity_3_0=ruleDefiniteMultiplicity(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getTypeScopeRule()); - } - set( - current, - "multiplicity", - lv_multiplicity_3_0, - "org.eclipse.viatra.solver.language.Problem.DefiniteMultiplicity"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleTypeScope" - - - // $ANTLR start "entryRuleMultiplicity" - // InternalProblem.g:1878:1: entryRuleMultiplicity returns [EObject current=null] : iv_ruleMultiplicity= ruleMultiplicity EOF ; - public final EObject entryRuleMultiplicity() throws RecognitionException { - EObject current = null; - - EObject iv_ruleMultiplicity = null; - - - try { - // InternalProblem.g:1878:53: (iv_ruleMultiplicity= ruleMultiplicity EOF ) - // InternalProblem.g:1879:2: iv_ruleMultiplicity= ruleMultiplicity EOF - { - newCompositeNode(grammarAccess.getMultiplicityRule()); - pushFollow(FOLLOW_1); - iv_ruleMultiplicity=ruleMultiplicity(); - - state._fsp--; - - current =iv_ruleMultiplicity; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleMultiplicity" - - - // $ANTLR start "ruleMultiplicity" - // InternalProblem.g:1885:1: ruleMultiplicity returns [EObject current=null] : (this_UnboundedMultiplicity_0= ruleUnboundedMultiplicity | this_DefiniteMultiplicity_1= ruleDefiniteMultiplicity ) ; - public final EObject ruleMultiplicity() throws RecognitionException { - EObject current = null; - - EObject this_UnboundedMultiplicity_0 = null; - - EObject this_DefiniteMultiplicity_1 = null; - - - - enterRule(); - - try { - // InternalProblem.g:1891:2: ( (this_UnboundedMultiplicity_0= ruleUnboundedMultiplicity | this_DefiniteMultiplicity_1= ruleDefiniteMultiplicity ) ) - // InternalProblem.g:1892:2: (this_UnboundedMultiplicity_0= ruleUnboundedMultiplicity | this_DefiniteMultiplicity_1= ruleDefiniteMultiplicity ) - { - // InternalProblem.g:1892:2: (this_UnboundedMultiplicity_0= ruleUnboundedMultiplicity | this_DefiniteMultiplicity_1= ruleDefiniteMultiplicity ) - int alt40=2; - int LA40_0 = input.LA(1); - - if ( (LA40_0==EOF||LA40_0==26) ) { - alt40=1; - } - else if ( (LA40_0==RULE_INT) ) { - alt40=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 40, 0, input); - - throw nvae; - } - switch (alt40) { - case 1 : - // InternalProblem.g:1893:3: this_UnboundedMultiplicity_0= ruleUnboundedMultiplicity - { - - newCompositeNode(grammarAccess.getMultiplicityAccess().getUnboundedMultiplicityParserRuleCall_0()); - - pushFollow(FOLLOW_2); - this_UnboundedMultiplicity_0=ruleUnboundedMultiplicity(); - - state._fsp--; - - - current = this_UnboundedMultiplicity_0; - afterParserOrEnumRuleCall(); - - - } - break; - case 2 : - // InternalProblem.g:1902:3: this_DefiniteMultiplicity_1= ruleDefiniteMultiplicity - { - - newCompositeNode(grammarAccess.getMultiplicityAccess().getDefiniteMultiplicityParserRuleCall_1()); - - pushFollow(FOLLOW_2); - this_DefiniteMultiplicity_1=ruleDefiniteMultiplicity(); - - state._fsp--; - - - current = this_DefiniteMultiplicity_1; - afterParserOrEnumRuleCall(); - - - } - break; - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleMultiplicity" - - - // $ANTLR start "entryRuleDefiniteMultiplicity" - // InternalProblem.g:1914:1: entryRuleDefiniteMultiplicity returns [EObject current=null] : iv_ruleDefiniteMultiplicity= ruleDefiniteMultiplicity EOF ; - public final EObject entryRuleDefiniteMultiplicity() throws RecognitionException { - EObject current = null; - - EObject iv_ruleDefiniteMultiplicity = null; - - - try { - // InternalProblem.g:1914:61: (iv_ruleDefiniteMultiplicity= ruleDefiniteMultiplicity EOF ) - // InternalProblem.g:1915:2: iv_ruleDefiniteMultiplicity= ruleDefiniteMultiplicity EOF - { - newCompositeNode(grammarAccess.getDefiniteMultiplicityRule()); - pushFollow(FOLLOW_1); - iv_ruleDefiniteMultiplicity=ruleDefiniteMultiplicity(); - - state._fsp--; - - current =iv_ruleDefiniteMultiplicity; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleDefiniteMultiplicity" - - - // $ANTLR start "ruleDefiniteMultiplicity" - // InternalProblem.g:1921:1: ruleDefiniteMultiplicity returns [EObject current=null] : (this_RangeMultiplicity_0= ruleRangeMultiplicity | this_ExactMultiplicity_1= ruleExactMultiplicity ) ; - public final EObject ruleDefiniteMultiplicity() throws RecognitionException { - EObject current = null; - - EObject this_RangeMultiplicity_0 = null; - - EObject this_ExactMultiplicity_1 = null; - - - - enterRule(); - - try { - // InternalProblem.g:1927:2: ( (this_RangeMultiplicity_0= ruleRangeMultiplicity | this_ExactMultiplicity_1= ruleExactMultiplicity ) ) - // InternalProblem.g:1928:2: (this_RangeMultiplicity_0= ruleRangeMultiplicity | this_ExactMultiplicity_1= ruleExactMultiplicity ) - { - // InternalProblem.g:1928:2: (this_RangeMultiplicity_0= ruleRangeMultiplicity | this_ExactMultiplicity_1= ruleExactMultiplicity ) - int alt41=2; - int LA41_0 = input.LA(1); - - if ( (LA41_0==RULE_INT) ) { - int LA41_1 = input.LA(2); - - if ( (LA41_1==39) ) { - alt41=1; - } - else if ( (LA41_1==EOF||LA41_1==14||LA41_1==18||LA41_1==26) ) { - alt41=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 41, 1, input); - - throw nvae; - } - } - else { - NoViableAltException nvae = - new NoViableAltException("", 41, 0, input); - - throw nvae; - } - switch (alt41) { - case 1 : - // InternalProblem.g:1929:3: this_RangeMultiplicity_0= ruleRangeMultiplicity - { - - newCompositeNode(grammarAccess.getDefiniteMultiplicityAccess().getRangeMultiplicityParserRuleCall_0()); - - pushFollow(FOLLOW_2); - this_RangeMultiplicity_0=ruleRangeMultiplicity(); - - state._fsp--; - - - current = this_RangeMultiplicity_0; - afterParserOrEnumRuleCall(); - - - } - break; - case 2 : - // InternalProblem.g:1938:3: this_ExactMultiplicity_1= ruleExactMultiplicity - { - - newCompositeNode(grammarAccess.getDefiniteMultiplicityAccess().getExactMultiplicityParserRuleCall_1()); - - pushFollow(FOLLOW_2); - this_ExactMultiplicity_1=ruleExactMultiplicity(); - - state._fsp--; - - - current = this_ExactMultiplicity_1; - afterParserOrEnumRuleCall(); - - - } - break; - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleDefiniteMultiplicity" - - - // $ANTLR start "entryRuleUnboundedMultiplicity" - // InternalProblem.g:1950:1: entryRuleUnboundedMultiplicity returns [EObject current=null] : iv_ruleUnboundedMultiplicity= ruleUnboundedMultiplicity EOF ; - public final EObject entryRuleUnboundedMultiplicity() throws RecognitionException { - EObject current = null; - - EObject iv_ruleUnboundedMultiplicity = null; - - - try { - // InternalProblem.g:1950:62: (iv_ruleUnboundedMultiplicity= ruleUnboundedMultiplicity EOF ) - // InternalProblem.g:1951:2: iv_ruleUnboundedMultiplicity= ruleUnboundedMultiplicity EOF - { - newCompositeNode(grammarAccess.getUnboundedMultiplicityRule()); - pushFollow(FOLLOW_1); - iv_ruleUnboundedMultiplicity=ruleUnboundedMultiplicity(); - - state._fsp--; - - current =iv_ruleUnboundedMultiplicity; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleUnboundedMultiplicity" - - - // $ANTLR start "ruleUnboundedMultiplicity" - // InternalProblem.g:1957:1: ruleUnboundedMultiplicity returns [EObject current=null] : () ; - public final EObject ruleUnboundedMultiplicity() throws RecognitionException { - EObject current = null; - - - enterRule(); - - try { - // InternalProblem.g:1963:2: ( () ) - // InternalProblem.g:1964:2: () - { - // InternalProblem.g:1964:2: () - // InternalProblem.g:1965:3: - { - - current = forceCreateModelElement( - grammarAccess.getUnboundedMultiplicityAccess().getUnboundedMultiplicityAction(), - current); - - - } - - - } - - - leaveRule(); - - } - finally { - } - return current; - } - // $ANTLR end "ruleUnboundedMultiplicity" - - - // $ANTLR start "entryRuleRangeMultiplicity" - // InternalProblem.g:1974:1: entryRuleRangeMultiplicity returns [EObject current=null] : iv_ruleRangeMultiplicity= ruleRangeMultiplicity EOF ; - public final EObject entryRuleRangeMultiplicity() throws RecognitionException { - EObject current = null; - - EObject iv_ruleRangeMultiplicity = null; - - - try { - // InternalProblem.g:1974:58: (iv_ruleRangeMultiplicity= ruleRangeMultiplicity EOF ) - // InternalProblem.g:1975:2: iv_ruleRangeMultiplicity= ruleRangeMultiplicity EOF - { - newCompositeNode(grammarAccess.getRangeMultiplicityRule()); - pushFollow(FOLLOW_1); - iv_ruleRangeMultiplicity=ruleRangeMultiplicity(); - - state._fsp--; - - current =iv_ruleRangeMultiplicity; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleRangeMultiplicity" - - - // $ANTLR start "ruleRangeMultiplicity" - // InternalProblem.g:1981:1: ruleRangeMultiplicity returns [EObject current=null] : ( ( (lv_lowerBound_0_0= RULE_INT ) ) otherlv_1= '..' ( (lv_upperBound_2_0= ruleUpperBound ) ) ) ; - public final EObject ruleRangeMultiplicity() throws RecognitionException { - EObject current = null; - - Token lv_lowerBound_0_0=null; - Token otherlv_1=null; - AntlrDatatypeRuleToken lv_upperBound_2_0 = null; - - - - enterRule(); - - try { - // InternalProblem.g:1987:2: ( ( ( (lv_lowerBound_0_0= RULE_INT ) ) otherlv_1= '..' ( (lv_upperBound_2_0= ruleUpperBound ) ) ) ) - // InternalProblem.g:1988:2: ( ( (lv_lowerBound_0_0= RULE_INT ) ) otherlv_1= '..' ( (lv_upperBound_2_0= ruleUpperBound ) ) ) - { - // InternalProblem.g:1988:2: ( ( (lv_lowerBound_0_0= RULE_INT ) ) otherlv_1= '..' ( (lv_upperBound_2_0= ruleUpperBound ) ) ) - // InternalProblem.g:1989:3: ( (lv_lowerBound_0_0= RULE_INT ) ) otherlv_1= '..' ( (lv_upperBound_2_0= ruleUpperBound ) ) - { - // InternalProblem.g:1989:3: ( (lv_lowerBound_0_0= RULE_INT ) ) - // InternalProblem.g:1990:4: (lv_lowerBound_0_0= RULE_INT ) - { - // InternalProblem.g:1990:4: (lv_lowerBound_0_0= RULE_INT ) - // InternalProblem.g:1991:5: lv_lowerBound_0_0= RULE_INT - { - lv_lowerBound_0_0=(Token)match(input,RULE_INT,FOLLOW_36); - - newLeafNode(lv_lowerBound_0_0, grammarAccess.getRangeMultiplicityAccess().getLowerBoundINTTerminalRuleCall_0_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getRangeMultiplicityRule()); - } - setWithLastConsumed( - current, - "lowerBound", - lv_lowerBound_0_0, - "org.eclipse.xtext.common.Terminals.INT"); - - - } - - - } - - otherlv_1=(Token)match(input,39,FOLLOW_37); - - newLeafNode(otherlv_1, grammarAccess.getRangeMultiplicityAccess().getFullStopFullStopKeyword_1()); - - // InternalProblem.g:2011:3: ( (lv_upperBound_2_0= ruleUpperBound ) ) - // InternalProblem.g:2012:4: (lv_upperBound_2_0= ruleUpperBound ) - { - // InternalProblem.g:2012:4: (lv_upperBound_2_0= ruleUpperBound ) - // InternalProblem.g:2013:5: lv_upperBound_2_0= ruleUpperBound - { - - newCompositeNode(grammarAccess.getRangeMultiplicityAccess().getUpperBoundUpperBoundParserRuleCall_2_0()); - - pushFollow(FOLLOW_2); - lv_upperBound_2_0=ruleUpperBound(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getRangeMultiplicityRule()); - } - set( - current, - "upperBound", - lv_upperBound_2_0, - "org.eclipse.viatra.solver.language.Problem.UpperBound"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleRangeMultiplicity" - - - // $ANTLR start "entryRuleExactMultiplicity" - // InternalProblem.g:2034:1: entryRuleExactMultiplicity returns [EObject current=null] : iv_ruleExactMultiplicity= ruleExactMultiplicity EOF ; - public final EObject entryRuleExactMultiplicity() throws RecognitionException { - EObject current = null; - - EObject iv_ruleExactMultiplicity = null; - - - try { - // InternalProblem.g:2034:58: (iv_ruleExactMultiplicity= ruleExactMultiplicity EOF ) - // InternalProblem.g:2035:2: iv_ruleExactMultiplicity= ruleExactMultiplicity EOF - { - newCompositeNode(grammarAccess.getExactMultiplicityRule()); - pushFollow(FOLLOW_1); - iv_ruleExactMultiplicity=ruleExactMultiplicity(); - - state._fsp--; - - current =iv_ruleExactMultiplicity; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleExactMultiplicity" - - - // $ANTLR start "ruleExactMultiplicity" - // InternalProblem.g:2041:1: ruleExactMultiplicity returns [EObject current=null] : ( (lv_exactValue_0_0= RULE_INT ) ) ; - public final EObject ruleExactMultiplicity() throws RecognitionException { - EObject current = null; - - Token lv_exactValue_0_0=null; - - - enterRule(); - - try { - // InternalProblem.g:2047:2: ( ( (lv_exactValue_0_0= RULE_INT ) ) ) - // InternalProblem.g:2048:2: ( (lv_exactValue_0_0= RULE_INT ) ) - { - // InternalProblem.g:2048:2: ( (lv_exactValue_0_0= RULE_INT ) ) - // InternalProblem.g:2049:3: (lv_exactValue_0_0= RULE_INT ) - { - // InternalProblem.g:2049:3: (lv_exactValue_0_0= RULE_INT ) - // InternalProblem.g:2050:4: lv_exactValue_0_0= RULE_INT - { - lv_exactValue_0_0=(Token)match(input,RULE_INT,FOLLOW_2); - - newLeafNode(lv_exactValue_0_0, grammarAccess.getExactMultiplicityAccess().getExactValueINTTerminalRuleCall_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getExactMultiplicityRule()); - } - setWithLastConsumed( - current, - "exactValue", - lv_exactValue_0_0, - "org.eclipse.xtext.common.Terminals.INT"); - - - } - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleExactMultiplicity" - - - // $ANTLR start "entryRuleUpperBound" - // InternalProblem.g:2069:1: entryRuleUpperBound returns [String current=null] : iv_ruleUpperBound= ruleUpperBound EOF ; - public final String entryRuleUpperBound() throws RecognitionException { - String current = null; - - AntlrDatatypeRuleToken iv_ruleUpperBound = null; - - - try { - // InternalProblem.g:2069:50: (iv_ruleUpperBound= ruleUpperBound EOF ) - // InternalProblem.g:2070:2: iv_ruleUpperBound= ruleUpperBound EOF - { - newCompositeNode(grammarAccess.getUpperBoundRule()); - pushFollow(FOLLOW_1); - iv_ruleUpperBound=ruleUpperBound(); - - state._fsp--; - - current =iv_ruleUpperBound.getText(); - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleUpperBound" - - - // $ANTLR start "ruleUpperBound" - // InternalProblem.g:2076:1: ruleUpperBound returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_INT_0= RULE_INT | kw= '*' ) ; - public final AntlrDatatypeRuleToken ruleUpperBound() throws RecognitionException { - AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); - - Token this_INT_0=null; - Token kw=null; - - - enterRule(); - - try { - // InternalProblem.g:2082:2: ( (this_INT_0= RULE_INT | kw= '*' ) ) - // InternalProblem.g:2083:2: (this_INT_0= RULE_INT | kw= '*' ) - { - // InternalProblem.g:2083:2: (this_INT_0= RULE_INT | kw= '*' ) - int alt42=2; - int LA42_0 = input.LA(1); - - if ( (LA42_0==RULE_INT) ) { - alt42=1; - } - else if ( (LA42_0==40) ) { - alt42=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 42, 0, input); - - throw nvae; - } - switch (alt42) { - case 1 : - // InternalProblem.g:2084:3: this_INT_0= RULE_INT - { - this_INT_0=(Token)match(input,RULE_INT,FOLLOW_2); - - current.merge(this_INT_0); - - - newLeafNode(this_INT_0, grammarAccess.getUpperBoundAccess().getINTTerminalRuleCall_0()); - - - } - break; - case 2 : - // InternalProblem.g:2092:3: kw= '*' - { - kw=(Token)match(input,40,FOLLOW_2); - - current.merge(kw); - newLeafNode(kw, grammarAccess.getUpperBoundAccess().getAsteriskKeyword_1()); - - - } - break; - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleUpperBound" - - - // $ANTLR start "entryRuleQualifiedName" - // InternalProblem.g:2101:1: entryRuleQualifiedName returns [String current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ; - public final String entryRuleQualifiedName() throws RecognitionException { - String current = null; - - AntlrDatatypeRuleToken iv_ruleQualifiedName = null; - - - - HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); - - try { - // InternalProblem.g:2103:2: (iv_ruleQualifiedName= ruleQualifiedName EOF ) - // InternalProblem.g:2104:2: iv_ruleQualifiedName= ruleQualifiedName EOF - { - newCompositeNode(grammarAccess.getQualifiedNameRule()); - pushFollow(FOLLOW_1); - iv_ruleQualifiedName=ruleQualifiedName(); - - state._fsp--; - - current =iv_ruleQualifiedName.getText(); - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - - myHiddenTokenState.restore(); - - } - return current; - } - // $ANTLR end "entryRuleQualifiedName" - - - // $ANTLR start "ruleQualifiedName" - // InternalProblem.g:2113:1: ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_QUOTED_ID_0= RULE_QUOTED_ID | (this_Identifier_1= ruleIdentifier (kw= '::' this_Identifier_3= ruleIdentifier )* ) ) ; - public final AntlrDatatypeRuleToken ruleQualifiedName() throws RecognitionException { - AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); - - Token this_QUOTED_ID_0=null; - Token kw=null; - AntlrDatatypeRuleToken this_Identifier_1 = null; - - AntlrDatatypeRuleToken this_Identifier_3 = null; - - - - enterRule(); - HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); - - try { - // InternalProblem.g:2120:2: ( (this_QUOTED_ID_0= RULE_QUOTED_ID | (this_Identifier_1= ruleIdentifier (kw= '::' this_Identifier_3= ruleIdentifier )* ) ) ) - // InternalProblem.g:2121:2: (this_QUOTED_ID_0= RULE_QUOTED_ID | (this_Identifier_1= ruleIdentifier (kw= '::' this_Identifier_3= ruleIdentifier )* ) ) - { - // InternalProblem.g:2121:2: (this_QUOTED_ID_0= RULE_QUOTED_ID | (this_Identifier_1= ruleIdentifier (kw= '::' this_Identifier_3= ruleIdentifier )* ) ) - int alt44=2; - int LA44_0 = input.LA(1); - - if ( (LA44_0==RULE_QUOTED_ID) ) { - alt44=1; - } - else if ( (LA44_0==RULE_ID||(LA44_0>=42 && LA44_0<=43)) ) { - alt44=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 44, 0, input); - - throw nvae; - } - switch (alt44) { - case 1 : - // InternalProblem.g:2122:3: this_QUOTED_ID_0= RULE_QUOTED_ID - { - this_QUOTED_ID_0=(Token)match(input,RULE_QUOTED_ID,FOLLOW_2); - - current.merge(this_QUOTED_ID_0); - - - newLeafNode(this_QUOTED_ID_0, grammarAccess.getQualifiedNameAccess().getQUOTED_IDTerminalRuleCall_0()); - - - } - break; - case 2 : - // InternalProblem.g:2130:3: (this_Identifier_1= ruleIdentifier (kw= '::' this_Identifier_3= ruleIdentifier )* ) - { - // InternalProblem.g:2130:3: (this_Identifier_1= ruleIdentifier (kw= '::' this_Identifier_3= ruleIdentifier )* ) - // InternalProblem.g:2131:4: this_Identifier_1= ruleIdentifier (kw= '::' this_Identifier_3= ruleIdentifier )* - { - - newCompositeNode(grammarAccess.getQualifiedNameAccess().getIdentifierParserRuleCall_1_0()); - - pushFollow(FOLLOW_38); - this_Identifier_1=ruleIdentifier(); - - state._fsp--; - - - current.merge(this_Identifier_1); - - - afterParserOrEnumRuleCall(); - - // InternalProblem.g:2141:4: (kw= '::' this_Identifier_3= ruleIdentifier )* - loop43: - do { - int alt43=2; - int LA43_0 = input.LA(1); - - if ( (LA43_0==41) ) { - alt43=1; - } - - - switch (alt43) { - case 1 : - // InternalProblem.g:2142:5: kw= '::' this_Identifier_3= ruleIdentifier - { - kw=(Token)match(input,41,FOLLOW_3); - - current.merge(kw); - newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1_1_0()); - - - newCompositeNode(grammarAccess.getQualifiedNameAccess().getIdentifierParserRuleCall_1_1_1()); - - pushFollow(FOLLOW_38); - this_Identifier_3=ruleIdentifier(); - - state._fsp--; - - - current.merge(this_Identifier_3); - - - afterParserOrEnumRuleCall(); - - - } - break; - - default : - break loop43; - } - } while (true); - - - } - - - } - break; - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - - myHiddenTokenState.restore(); - - } - return current; - } - // $ANTLR end "ruleQualifiedName" - - - // $ANTLR start "entryRuleIdentifier" - // InternalProblem.g:2166:1: entryRuleIdentifier returns [String current=null] : iv_ruleIdentifier= ruleIdentifier EOF ; - public final String entryRuleIdentifier() throws RecognitionException { - String current = null; - - AntlrDatatypeRuleToken iv_ruleIdentifier = null; - - - try { - // InternalProblem.g:2166:50: (iv_ruleIdentifier= ruleIdentifier EOF ) - // InternalProblem.g:2167:2: iv_ruleIdentifier= ruleIdentifier EOF - { - newCompositeNode(grammarAccess.getIdentifierRule()); - pushFollow(FOLLOW_1); - iv_ruleIdentifier=ruleIdentifier(); - - state._fsp--; - - current =iv_ruleIdentifier.getText(); - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleIdentifier" - - - // $ANTLR start "ruleIdentifier" - // InternalProblem.g:2173:1: ruleIdentifier returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ID_0= RULE_ID | kw= 'true' | kw= 'false' ) ; - public final AntlrDatatypeRuleToken ruleIdentifier() throws RecognitionException { - AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); - - Token this_ID_0=null; - Token kw=null; - - - enterRule(); - - try { - // InternalProblem.g:2179:2: ( (this_ID_0= RULE_ID | kw= 'true' | kw= 'false' ) ) - // InternalProblem.g:2180:2: (this_ID_0= RULE_ID | kw= 'true' | kw= 'false' ) - { - // InternalProblem.g:2180:2: (this_ID_0= RULE_ID | kw= 'true' | kw= 'false' ) - int alt45=3; - switch ( input.LA(1) ) { - case RULE_ID: - { - alt45=1; - } - break; - case 42: - { - alt45=2; - } - break; - case 43: - { - alt45=3; - } - break; - default: - NoViableAltException nvae = - new NoViableAltException("", 45, 0, input); - - throw nvae; - } - - switch (alt45) { - case 1 : - // InternalProblem.g:2181:3: this_ID_0= RULE_ID - { - this_ID_0=(Token)match(input,RULE_ID,FOLLOW_2); - - current.merge(this_ID_0); - - - newLeafNode(this_ID_0, grammarAccess.getIdentifierAccess().getIDTerminalRuleCall_0()); - - - } - break; - case 2 : - // InternalProblem.g:2189:3: kw= 'true' - { - kw=(Token)match(input,42,FOLLOW_2); - - current.merge(kw); - newLeafNode(kw, grammarAccess.getIdentifierAccess().getTrueKeyword_1()); - - - } - break; - case 3 : - // InternalProblem.g:2195:3: kw= 'false' - { - kw=(Token)match(input,43,FOLLOW_2); - - current.merge(kw); - newLeafNode(kw, grammarAccess.getIdentifierAccess().getFalseKeyword_2()); - - - } - break; - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleIdentifier" - - - // $ANTLR start "entryRuleInteger" - // InternalProblem.g:2204:1: entryRuleInteger returns [String current=null] : iv_ruleInteger= ruleInteger EOF ; - public final String entryRuleInteger() throws RecognitionException { - String current = null; - - AntlrDatatypeRuleToken iv_ruleInteger = null; - - - - HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); - - try { - // InternalProblem.g:2206:2: (iv_ruleInteger= ruleInteger EOF ) - // InternalProblem.g:2207:2: iv_ruleInteger= ruleInteger EOF - { - newCompositeNode(grammarAccess.getIntegerRule()); - pushFollow(FOLLOW_1); - iv_ruleInteger=ruleInteger(); - - state._fsp--; - - current =iv_ruleInteger.getText(); - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - - myHiddenTokenState.restore(); - - } - return current; - } - // $ANTLR end "entryRuleInteger" - - - // $ANTLR start "ruleInteger" - // InternalProblem.g:2216:1: ruleInteger returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= '-' )? this_INT_1= RULE_INT ) ; - public final AntlrDatatypeRuleToken ruleInteger() throws RecognitionException { - AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); - - Token kw=null; - Token this_INT_1=null; - - - enterRule(); - HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); - - try { - // InternalProblem.g:2223:2: ( ( (kw= '-' )? this_INT_1= RULE_INT ) ) - // InternalProblem.g:2224:2: ( (kw= '-' )? this_INT_1= RULE_INT ) - { - // InternalProblem.g:2224:2: ( (kw= '-' )? this_INT_1= RULE_INT ) - // InternalProblem.g:2225:3: (kw= '-' )? this_INT_1= RULE_INT - { - // InternalProblem.g:2225:3: (kw= '-' )? - int alt46=2; - int LA46_0 = input.LA(1); - - if ( (LA46_0==44) ) { - alt46=1; - } - switch (alt46) { - case 1 : - // InternalProblem.g:2226:4: kw= '-' - { - kw=(Token)match(input,44,FOLLOW_17); - - current.merge(kw); - newLeafNode(kw, grammarAccess.getIntegerAccess().getHyphenMinusKeyword_0()); - - - } - break; - - } - - this_INT_1=(Token)match(input,RULE_INT,FOLLOW_2); - - current.merge(this_INT_1); - - - newLeafNode(this_INT_1, grammarAccess.getIntegerAccess().getINTTerminalRuleCall_1()); - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - - myHiddenTokenState.restore(); - - } - return current; - } - // $ANTLR end "ruleInteger" - - - // $ANTLR start "entryRuleReal" - // InternalProblem.g:2246:1: entryRuleReal returns [String current=null] : iv_ruleReal= ruleReal EOF ; - public final String entryRuleReal() throws RecognitionException { - String current = null; - - AntlrDatatypeRuleToken iv_ruleReal = null; - - - try { - // InternalProblem.g:2246:44: (iv_ruleReal= ruleReal EOF ) - // InternalProblem.g:2247:2: iv_ruleReal= ruleReal EOF - { - newCompositeNode(grammarAccess.getRealRule()); - pushFollow(FOLLOW_1); - iv_ruleReal=ruleReal(); - - state._fsp--; - - current =iv_ruleReal.getText(); - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleReal" - - - // $ANTLR start "ruleReal" - // InternalProblem.g:2253:1: ruleReal returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= '-' )? (this_EXPONENTIAL_1= RULE_EXPONENTIAL | (this_INT_2= RULE_INT kw= '.' (this_INT_4= RULE_INT | this_EXPONENTIAL_5= RULE_EXPONENTIAL ) ) ) ) ; - public final AntlrDatatypeRuleToken ruleReal() throws RecognitionException { - AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); - - Token kw=null; - Token this_EXPONENTIAL_1=null; - Token this_INT_2=null; - Token this_INT_4=null; - Token this_EXPONENTIAL_5=null; - - - enterRule(); - - try { - // InternalProblem.g:2259:2: ( ( (kw= '-' )? (this_EXPONENTIAL_1= RULE_EXPONENTIAL | (this_INT_2= RULE_INT kw= '.' (this_INT_4= RULE_INT | this_EXPONENTIAL_5= RULE_EXPONENTIAL ) ) ) ) ) - // InternalProblem.g:2260:2: ( (kw= '-' )? (this_EXPONENTIAL_1= RULE_EXPONENTIAL | (this_INT_2= RULE_INT kw= '.' (this_INT_4= RULE_INT | this_EXPONENTIAL_5= RULE_EXPONENTIAL ) ) ) ) - { - // InternalProblem.g:2260:2: ( (kw= '-' )? (this_EXPONENTIAL_1= RULE_EXPONENTIAL | (this_INT_2= RULE_INT kw= '.' (this_INT_4= RULE_INT | this_EXPONENTIAL_5= RULE_EXPONENTIAL ) ) ) ) - // InternalProblem.g:2261:3: (kw= '-' )? (this_EXPONENTIAL_1= RULE_EXPONENTIAL | (this_INT_2= RULE_INT kw= '.' (this_INT_4= RULE_INT | this_EXPONENTIAL_5= RULE_EXPONENTIAL ) ) ) - { - // InternalProblem.g:2261:3: (kw= '-' )? - int alt47=2; - int LA47_0 = input.LA(1); - - if ( (LA47_0==44) ) { - alt47=1; - } - switch (alt47) { - case 1 : - // InternalProblem.g:2262:4: kw= '-' - { - kw=(Token)match(input,44,FOLLOW_39); - - current.merge(kw); - newLeafNode(kw, grammarAccess.getRealAccess().getHyphenMinusKeyword_0()); - - - } - break; - - } - - // InternalProblem.g:2268:3: (this_EXPONENTIAL_1= RULE_EXPONENTIAL | (this_INT_2= RULE_INT kw= '.' (this_INT_4= RULE_INT | this_EXPONENTIAL_5= RULE_EXPONENTIAL ) ) ) - int alt49=2; - int LA49_0 = input.LA(1); - - if ( (LA49_0==RULE_EXPONENTIAL) ) { - alt49=1; - } - else if ( (LA49_0==RULE_INT) ) { - alt49=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 49, 0, input); - - throw nvae; - } - switch (alt49) { - case 1 : - // InternalProblem.g:2269:4: this_EXPONENTIAL_1= RULE_EXPONENTIAL - { - this_EXPONENTIAL_1=(Token)match(input,RULE_EXPONENTIAL,FOLLOW_2); - - current.merge(this_EXPONENTIAL_1); - - - newLeafNode(this_EXPONENTIAL_1, grammarAccess.getRealAccess().getEXPONENTIALTerminalRuleCall_1_0()); - - - } - break; - case 2 : - // InternalProblem.g:2277:4: (this_INT_2= RULE_INT kw= '.' (this_INT_4= RULE_INT | this_EXPONENTIAL_5= RULE_EXPONENTIAL ) ) - { - // InternalProblem.g:2277:4: (this_INT_2= RULE_INT kw= '.' (this_INT_4= RULE_INT | this_EXPONENTIAL_5= RULE_EXPONENTIAL ) ) - // InternalProblem.g:2278:5: this_INT_2= RULE_INT kw= '.' (this_INT_4= RULE_INT | this_EXPONENTIAL_5= RULE_EXPONENTIAL ) - { - this_INT_2=(Token)match(input,RULE_INT,FOLLOW_4); - - current.merge(this_INT_2); - - - newLeafNode(this_INT_2, grammarAccess.getRealAccess().getINTTerminalRuleCall_1_1_0()); - - kw=(Token)match(input,14,FOLLOW_39); - - current.merge(kw); - newLeafNode(kw, grammarAccess.getRealAccess().getFullStopKeyword_1_1_1()); - - // InternalProblem.g:2290:5: (this_INT_4= RULE_INT | this_EXPONENTIAL_5= RULE_EXPONENTIAL ) - int alt48=2; - int LA48_0 = input.LA(1); - - if ( (LA48_0==RULE_INT) ) { - alt48=1; - } - else if ( (LA48_0==RULE_EXPONENTIAL) ) { - alt48=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 48, 0, input); - - throw nvae; - } - switch (alt48) { - case 1 : - // InternalProblem.g:2291:6: this_INT_4= RULE_INT - { - this_INT_4=(Token)match(input,RULE_INT,FOLLOW_2); - - current.merge(this_INT_4); - - - newLeafNode(this_INT_4, grammarAccess.getRealAccess().getINTTerminalRuleCall_1_1_2_0()); - - - } - break; - case 2 : - // InternalProblem.g:2299:6: this_EXPONENTIAL_5= RULE_EXPONENTIAL - { - this_EXPONENTIAL_5=(Token)match(input,RULE_EXPONENTIAL,FOLLOW_2); - - current.merge(this_EXPONENTIAL_5); - - - newLeafNode(this_EXPONENTIAL_5, grammarAccess.getRealAccess().getEXPONENTIALTerminalRuleCall_1_1_2_1()); - - - } - break; - - } - - - } - - - } - break; - - } - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleReal" - - - // $ANTLR start "ruleLogicValue" - // InternalProblem.g:2313:1: ruleLogicValue returns [Enumerator current=null] : ( (enumLiteral_0= 'true' ) | (enumLiteral_1= 'false' ) | (enumLiteral_2= 'unknown' ) ) ; - public final Enumerator ruleLogicValue() throws RecognitionException { - Enumerator current = null; - - Token enumLiteral_0=null; - Token enumLiteral_1=null; - Token enumLiteral_2=null; - - - enterRule(); - - try { - // InternalProblem.g:2319:2: ( ( (enumLiteral_0= 'true' ) | (enumLiteral_1= 'false' ) | (enumLiteral_2= 'unknown' ) ) ) - // InternalProblem.g:2320:2: ( (enumLiteral_0= 'true' ) | (enumLiteral_1= 'false' ) | (enumLiteral_2= 'unknown' ) ) - { - // InternalProblem.g:2320:2: ( (enumLiteral_0= 'true' ) | (enumLiteral_1= 'false' ) | (enumLiteral_2= 'unknown' ) ) - int alt50=3; - switch ( input.LA(1) ) { - case 42: - { - alt50=1; - } - break; - case 43: - { - alt50=2; - } - break; - case 45: - { - alt50=3; - } - break; - default: - NoViableAltException nvae = - new NoViableAltException("", 50, 0, input); - - throw nvae; - } - - switch (alt50) { - case 1 : - // InternalProblem.g:2321:3: (enumLiteral_0= 'true' ) - { - // InternalProblem.g:2321:3: (enumLiteral_0= 'true' ) - // InternalProblem.g:2322:4: enumLiteral_0= 'true' - { - enumLiteral_0=(Token)match(input,42,FOLLOW_2); - - current = grammarAccess.getLogicValueAccess().getTRUEEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_0, grammarAccess.getLogicValueAccess().getTRUEEnumLiteralDeclaration_0()); - - - } - - - } - break; - case 2 : - // InternalProblem.g:2329:3: (enumLiteral_1= 'false' ) - { - // InternalProblem.g:2329:3: (enumLiteral_1= 'false' ) - // InternalProblem.g:2330:4: enumLiteral_1= 'false' - { - enumLiteral_1=(Token)match(input,43,FOLLOW_2); - - current = grammarAccess.getLogicValueAccess().getFALSEEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_1, grammarAccess.getLogicValueAccess().getFALSEEnumLiteralDeclaration_1()); - - - } - - - } - break; - case 3 : - // InternalProblem.g:2337:3: (enumLiteral_2= 'unknown' ) - { - // InternalProblem.g:2337:3: (enumLiteral_2= 'unknown' ) - // InternalProblem.g:2338:4: enumLiteral_2= 'unknown' - { - enumLiteral_2=(Token)match(input,45,FOLLOW_2); - - current = grammarAccess.getLogicValueAccess().getUNKNOWNEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_2, grammarAccess.getLogicValueAccess().getUNKNOWNEnumLiteralDeclaration_2()); - - - } - - - } - break; - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleLogicValue" - - - // $ANTLR start "ruleShortLogicValue" - // InternalProblem.g:2348:1: ruleShortLogicValue returns [Enumerator current=null] : ( (enumLiteral_0= '!' ) | (enumLiteral_1= '?' ) ) ; - public final Enumerator ruleShortLogicValue() throws RecognitionException { - Enumerator current = null; - - Token enumLiteral_0=null; - Token enumLiteral_1=null; - - - enterRule(); - - try { - // InternalProblem.g:2354:2: ( ( (enumLiteral_0= '!' ) | (enumLiteral_1= '?' ) ) ) - // InternalProblem.g:2355:2: ( (enumLiteral_0= '!' ) | (enumLiteral_1= '?' ) ) - { - // InternalProblem.g:2355:2: ( (enumLiteral_0= '!' ) | (enumLiteral_1= '?' ) ) - int alt51=2; - int LA51_0 = input.LA(1); - - if ( (LA51_0==33) ) { - alt51=1; - } - else if ( (LA51_0==46) ) { - alt51=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 51, 0, input); - - throw nvae; - } - switch (alt51) { - case 1 : - // InternalProblem.g:2356:3: (enumLiteral_0= '!' ) - { - // InternalProblem.g:2356:3: (enumLiteral_0= '!' ) - // InternalProblem.g:2357:4: enumLiteral_0= '!' - { - enumLiteral_0=(Token)match(input,33,FOLLOW_2); - - current = grammarAccess.getShortLogicValueAccess().getFALSEEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_0, grammarAccess.getShortLogicValueAccess().getFALSEEnumLiteralDeclaration_0()); - - - } - - - } - break; - case 2 : - // InternalProblem.g:2364:3: (enumLiteral_1= '?' ) - { - // InternalProblem.g:2364:3: (enumLiteral_1= '?' ) - // InternalProblem.g:2365:4: enumLiteral_1= '?' - { - enumLiteral_1=(Token)match(input,46,FOLLOW_2); - - current = grammarAccess.getShortLogicValueAccess().getUNKNOWNEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_1, grammarAccess.getShortLogicValueAccess().getUNKNOWNEnumLiteralDeclaration_1()); - - - } - - - } - break; - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleShortLogicValue" - - // Delegated rules - - - protected DFA3 dfa3 = new DFA3(this); - protected DFA35 dfa35 = new DFA35(this); - static final String dfa_1s = "\17\uffff"; - static final String dfa_2s = "\1\5\3\uffff\4\36\3\uffff\1\5\3\36"; - static final String dfa_3s = "\1\56\3\uffff\1\43\3\51\3\uffff\1\53\3\51"; - static final String dfa_4s = "\1\uffff\1\1\1\2\1\3\4\uffff\1\4\1\6\1\5\4\uffff"; - static final String dfa_5s = "\17\uffff}>"; - static final String[] dfa_6s = { - "\1\5\1\uffff\1\4\7\uffff\2\1\5\uffff\1\2\5\uffff\2\3\3\uffff\1\10\2\uffff\1\11\5\uffff\1\6\1\7\2\uffff\1\10", - "", - "", - "", - "\1\10\4\uffff\1\12", - "\1\10\4\uffff\1\12\5\uffff\1\13", - "\1\10\4\uffff\1\12\5\uffff\1\13", - "\1\10\4\uffff\1\12\5\uffff\1\13", - "", - "", - "", - "\1\14\44\uffff\1\15\1\16", - "\1\10\4\uffff\1\12\5\uffff\1\13", - "\1\10\4\uffff\1\12\5\uffff\1\13", - "\1\10\4\uffff\1\12\5\uffff\1\13" - }; - - static final short[] dfa_1 = DFA.unpackEncodedString(dfa_1s); - static final char[] dfa_2 = DFA.unpackEncodedStringToUnsignedChars(dfa_2s); - static final char[] dfa_3 = DFA.unpackEncodedStringToUnsignedChars(dfa_3s); - static final short[] dfa_4 = DFA.unpackEncodedString(dfa_4s); - static final short[] dfa_5 = DFA.unpackEncodedString(dfa_5s); - static final short[][] dfa_6 = unpackEncodedStringArray(dfa_6s); - - class DFA3 extends DFA { - - public DFA3(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 3; - this.eot = dfa_1; - this.eof = dfa_1; - this.min = dfa_2; - this.max = dfa_3; - this.accept = dfa_4; - this.special = dfa_5; - this.transition = dfa_6; - } - public String getDescription() { - return "146:2: (this_ClassDeclaration_0= ruleClassDeclaration | this_EnumDeclaration_1= ruleEnumDeclaration | this_PredicateDefinition_2= rulePredicateDefinition | this_Assertion_3= ruleAssertion | this_NodeValueAssertion_4= ruleNodeValueAssertion | this_ScopeDeclaration_5= ruleScopeDeclaration )"; - } - } - static final String dfa_7s = "\54\uffff"; - static final String dfa_8s = "\1\5\4\36\1\uffff\1\4\1\5\4\22\1\6\1\22\1\16\1\22\1\16\3\36\1\4\1\5\1\6\1\uffff\4\22\1\6\1\22\1\16\6\22\1\5\1\6\5\22"; - static final String dfa_9s = "\1\56\1\36\3\51\1\uffff\1\54\1\53\1\37\3\51\1\10\3\37\1\43\3\51\1\54\1\53\1\10\1\uffff\1\37\3\51\1\10\3\37\3\51\2\37\1\53\1\10\3\51\2\37"; - static final String dfa_10s = "\5\uffff\1\2\21\uffff\1\1\24\uffff"; - static final String dfa_11s = "\54\uffff}>"; - static final String[] dfa_12s = { - "\1\2\1\uffff\1\1\31\uffff\1\5\10\uffff\1\3\1\4\2\uffff\1\5", - "\1\6", - "\1\6\12\uffff\1\7", - "\1\6\12\uffff\1\7", - "\1\6\12\uffff\1\7", - "", - "\1\17\1\11\1\16\1\10\1\15\26\uffff\1\20\12\uffff\1\12\1\13\1\14", - "\1\21\44\uffff\1\22\1\23", - "\1\24\14\uffff\1\20", - "\1\24\14\uffff\1\20\11\uffff\1\25", - "\1\24\14\uffff\1\20\11\uffff\1\25", - "\1\24\14\uffff\1\20\11\uffff\1\25", - "\1\16\1\uffff\1\15", - "\1\24\14\uffff\1\20", - "\1\26\3\uffff\1\24\14\uffff\1\20", - "\1\24\14\uffff\1\20", - "\1\5\24\uffff\1\27", - "\1\6\12\uffff\1\7", - "\1\6\12\uffff\1\7", - "\1\6\12\uffff\1\7", - "\1\37\1\31\1\36\1\30\1\35\41\uffff\1\32\1\33\1\34", - "\1\40\44\uffff\1\41\1\42", - "\1\43\1\uffff\1\44", - "", - "\1\24\14\uffff\1\20", - "\1\24\14\uffff\1\20\11\uffff\1\45", - "\1\24\14\uffff\1\20\11\uffff\1\45", - "\1\24\14\uffff\1\20\11\uffff\1\45", - "\1\36\1\uffff\1\35", - "\1\24\14\uffff\1\20", - "\1\46\3\uffff\1\24\14\uffff\1\20", - "\1\24\14\uffff\1\20", - "\1\24\14\uffff\1\20\11\uffff\1\25", - "\1\24\14\uffff\1\20\11\uffff\1\25", - "\1\24\14\uffff\1\20\11\uffff\1\25", - "\1\24\14\uffff\1\20", - "\1\24\14\uffff\1\20", - "\1\47\44\uffff\1\50\1\51", - "\1\52\1\uffff\1\53", - "\1\24\14\uffff\1\20\11\uffff\1\45", - "\1\24\14\uffff\1\20\11\uffff\1\45", - "\1\24\14\uffff\1\20\11\uffff\1\45", - "\1\24\14\uffff\1\20", - "\1\24\14\uffff\1\20" - }; - - static final short[] dfa_7 = DFA.unpackEncodedString(dfa_7s); - static final char[] dfa_8 = DFA.unpackEncodedStringToUnsignedChars(dfa_8s); - static final char[] dfa_9 = DFA.unpackEncodedStringToUnsignedChars(dfa_9s); - static final short[] dfa_10 = DFA.unpackEncodedString(dfa_10s); - static final short[] dfa_11 = DFA.unpackEncodedString(dfa_11s); - static final short[][] dfa_12 = unpackEncodedStringArray(dfa_12s); - - class DFA35 extends DFA { - - public DFA35(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 35; - this.eot = dfa_7; - this.eof = dfa_7; - this.min = dfa_8; - this.max = dfa_9; - this.accept = dfa_10; - this.special = dfa_11; - this.transition = dfa_12; - } - public String getDescription() { - return "1219:3: ( ( ( ( ruleQualifiedName ) ) otherlv_1= '(' ( ( (lv_arguments_2_0= ruleAssertionArgument ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleAssertionArgument ) ) )* )? otherlv_5= ')' otherlv_6= ':' ( (lv_value_7_0= ruleLogicValue ) ) ) | ( ( (lv_value_8_0= ruleShortLogicValue ) )? ( ( ruleQualifiedName ) ) otherlv_10= '(' ( ( (lv_arguments_11_0= ruleAssertionArgument ) ) (otherlv_12= ',' ( (lv_arguments_13_0= ruleAssertionArgument ) ) )* )? otherlv_14= ')' ) )"; - } - } - - - public static final BitSet FOLLOW_1 = new BitSet(new long[]{0x0000000000000000L}); - public static final BitSet FOLLOW_2 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_3 = new BitSet(new long[]{0x00000C0000000020L}); - public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x0000000000004000L}); - public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x00004C12304180A2L}); - public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000000010000L}); - public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x00000000000A4000L}); - public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x00000C00000000A0L}); - public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x00000000000C4000L}); - public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x00000C0001A000A0L}); - public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x00000C0001B000A0L}); - public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000000084000L}); - public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x00000C0000200020L}); - public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000000340000L}); - public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000000200000L}); - public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x00000C0002000020L}); - public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000000000000040L}); - public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000004000000L}); - public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0000000008000002L}); - public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x00000C0020000020L}); - public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000000040000000L}); - public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x00000C00800000A0L}); - public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000000080040000L}); - public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000000100004000L}); - public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x00000C02000000A0L}); - public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000000000104000L}); - public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0000000000040002L}); - public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0000000440000000L}); - public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x00001C00800001F0L}); - public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x00001C00000001F0L}); - public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0000000800000000L}); - public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x00002C0000000000L}); - public static final BitSet FOLLOW_33 = new BitSet(new long[]{0x0000000000000020L}); - public static final BitSet FOLLOW_34 = new BitSet(new long[]{0x0000000000044000L}); - public static final BitSet FOLLOW_35 = new BitSet(new long[]{0x0000006000000000L}); - public static final BitSet FOLLOW_36 = new BitSet(new long[]{0x0000008000000000L}); - public static final BitSet FOLLOW_37 = new BitSet(new long[]{0x0000010000000040L}); - public static final BitSet FOLLOW_38 = new BitSet(new long[]{0x0000020000000002L}); - public static final BitSet FOLLOW_39 = new BitSet(new long[]{0x0000000000000140L}); - -} \ No newline at end of file diff --git a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/scoping/AbstractProblemScopeProvider.java b/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/scoping/AbstractProblemScopeProvider.java deleted file mode 100644 index 5b024d47..00000000 --- a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/scoping/AbstractProblemScopeProvider.java +++ /dev/null @@ -1,9 +0,0 @@ -/* - * generated by Xtext 2.26.0.M1 - */ -package org.eclipse.viatra.solver.language.scoping; - -import org.eclipse.xtext.scoping.impl.DelegatingScopeProvider; - -public abstract class AbstractProblemScopeProvider extends DelegatingScopeProvider { -} diff --git a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/serializer/ProblemSemanticSequencer.java b/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/serializer/ProblemSemanticSequencer.java deleted file mode 100644 index 0aac4924..00000000 --- a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/serializer/ProblemSemanticSequencer.java +++ /dev/null @@ -1,534 +0,0 @@ -/* - * generated by Xtext 2.26.0.M1 - */ -package org.eclipse.viatra.solver.language.serializer; - -import com.google.inject.Inject; -import java.util.Set; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.viatra.solver.language.model.problem.Assertion; -import org.eclipse.viatra.solver.language.model.problem.Atom; -import org.eclipse.viatra.solver.language.model.problem.ClassDeclaration; -import org.eclipse.viatra.solver.language.model.problem.Conjunction; -import org.eclipse.viatra.solver.language.model.problem.ConstantArgument; -import org.eclipse.viatra.solver.language.model.problem.ConstantAssertionArgument; -import org.eclipse.viatra.solver.language.model.problem.EnumDeclaration; -import org.eclipse.viatra.solver.language.model.problem.ExactMultiplicity; -import org.eclipse.viatra.solver.language.model.problem.IntConstant; -import org.eclipse.viatra.solver.language.model.problem.NegativeLiteral; -import org.eclipse.viatra.solver.language.model.problem.Node; -import org.eclipse.viatra.solver.language.model.problem.NodeAssertionArgument; -import org.eclipse.viatra.solver.language.model.problem.NodeValueAssertion; -import org.eclipse.viatra.solver.language.model.problem.PredicateDefinition; -import org.eclipse.viatra.solver.language.model.problem.Problem; -import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; -import org.eclipse.viatra.solver.language.model.problem.RangeMultiplicity; -import org.eclipse.viatra.solver.language.model.problem.RealConstant; -import org.eclipse.viatra.solver.language.model.problem.ReferenceDeclaration; -import org.eclipse.viatra.solver.language.model.problem.ScopeDeclaration; -import org.eclipse.viatra.solver.language.model.problem.StringConstant; -import org.eclipse.viatra.solver.language.model.problem.TypeScope; -import org.eclipse.viatra.solver.language.model.problem.UnboundedMultiplicity; -import org.eclipse.viatra.solver.language.model.problem.VariableOrNodeArgument; -import org.eclipse.viatra.solver.language.services.ProblemGrammarAccess; -import org.eclipse.xtext.Action; -import org.eclipse.xtext.Parameter; -import org.eclipse.xtext.ParserRule; -import org.eclipse.xtext.serializer.ISerializationContext; -import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; -import org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer; -import org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient; - -@SuppressWarnings("all") -public class ProblemSemanticSequencer extends AbstractDelegatingSemanticSequencer { - - @Inject - private ProblemGrammarAccess grammarAccess; - - @Override - public void sequence(ISerializationContext context, EObject semanticObject) { - EPackage epackage = semanticObject.eClass().getEPackage(); - ParserRule rule = context.getParserRule(); - Action action = context.getAssignedAction(); - Set parameters = context.getEnabledBooleanParameters(); - if (epackage == ProblemPackage.eINSTANCE) - switch (semanticObject.eClass().getClassifierID()) { - case ProblemPackage.ASSERTION: - sequence_Assertion(context, (Assertion) semanticObject); - return; - case ProblemPackage.ATOM: - sequence_Atom(context, (Atom) semanticObject); - return; - case ProblemPackage.CLASS_DECLARATION: - sequence_ClassDeclaration(context, (ClassDeclaration) semanticObject); - return; - case ProblemPackage.CONJUNCTION: - sequence_Conjunction(context, (Conjunction) semanticObject); - return; - case ProblemPackage.CONSTANT_ARGUMENT: - sequence_ConstantArgument(context, (ConstantArgument) semanticObject); - return; - case ProblemPackage.CONSTANT_ASSERTION_ARGUMENT: - sequence_ConstantAssertionArgument(context, (ConstantAssertionArgument) semanticObject); - return; - case ProblemPackage.ENUM_DECLARATION: - sequence_EnumDeclaration(context, (EnumDeclaration) semanticObject); - return; - case ProblemPackage.EXACT_MULTIPLICITY: - sequence_ExactMultiplicity(context, (ExactMultiplicity) semanticObject); - return; - case ProblemPackage.INT_CONSTANT: - sequence_IntConstant(context, (IntConstant) semanticObject); - return; - case ProblemPackage.NEGATIVE_LITERAL: - sequence_NegativeLiteral(context, (NegativeLiteral) semanticObject); - return; - case ProblemPackage.NODE: - sequence_EnumLiteral(context, (Node) semanticObject); - return; - case ProblemPackage.NODE_ASSERTION_ARGUMENT: - sequence_NodeAssertionArgument(context, (NodeAssertionArgument) semanticObject); - return; - case ProblemPackage.NODE_VALUE_ASSERTION: - sequence_NodeValueAssertion(context, (NodeValueAssertion) semanticObject); - return; - case ProblemPackage.PARAMETER: - sequence_Parameter(context, (org.eclipse.viatra.solver.language.model.problem.Parameter) semanticObject); - return; - case ProblemPackage.PREDICATE_DEFINITION: - sequence_PredicateDefinition(context, (PredicateDefinition) semanticObject); - return; - case ProblemPackage.PROBLEM: - sequence_Problem(context, (Problem) semanticObject); - return; - case ProblemPackage.RANGE_MULTIPLICITY: - sequence_RangeMultiplicity(context, (RangeMultiplicity) semanticObject); - return; - case ProblemPackage.REAL_CONSTANT: - sequence_RealConstant(context, (RealConstant) semanticObject); - return; - case ProblemPackage.REFERENCE_DECLARATION: - sequence_ReferenceDeclaration(context, (ReferenceDeclaration) semanticObject); - return; - case ProblemPackage.SCOPE_DECLARATION: - sequence_ScopeDeclaration(context, (ScopeDeclaration) semanticObject); - return; - case ProblemPackage.STRING_CONSTANT: - sequence_StringConstant(context, (StringConstant) semanticObject); - return; - case ProblemPackage.TYPE_SCOPE: - sequence_TypeScope(context, (TypeScope) semanticObject); - return; - case ProblemPackage.UNBOUNDED_MULTIPLICITY: - sequence_UnboundedMultiplicity(context, (UnboundedMultiplicity) semanticObject); - return; - case ProblemPackage.VARIABLE_OR_NODE_ARGUMENT: - sequence_VariableOrNodeArgument(context, (VariableOrNodeArgument) semanticObject); - return; - } - if (errorAcceptor != null) - errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); - } - - /** - * Contexts: - * Statement returns Assertion - * Assertion returns Assertion - * - * Constraint: - * ( - * (relation=[Relation|QualifiedName] (arguments+=AssertionArgument arguments+=AssertionArgument*)? value=LogicValue) | - * (value=ShortLogicValue? relation=[Relation|QualifiedName] (arguments+=AssertionArgument arguments+=AssertionArgument*)?) - * ) - */ - protected void sequence_Assertion(ISerializationContext context, Assertion semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - * Contexts: - * Literal returns Atom - * Atom returns Atom - * - * Constraint: - * (relation=[Relation|QualifiedName] transitiveClosure?='+'? (arguments+=Argument arguments+=Argument*)?) - */ - protected void sequence_Atom(ISerializationContext context, Atom semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - * Contexts: - * Statement returns ClassDeclaration - * ClassDeclaration returns ClassDeclaration - * - * Constraint: - * ( - * abstract?='abstract'? - * name=Identifier - * (superTypes+=[Relation|QualifiedName] superTypes+=[Relation|QualifiedName]*)? - * referenceDeclarations+=ReferenceDeclaration* - * ) - */ - protected void sequence_ClassDeclaration(ISerializationContext context, ClassDeclaration semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - * Contexts: - * Conjunction returns Conjunction - * - * Constraint: - * (literals+=Literal literals+=Literal*) - */ - protected void sequence_Conjunction(ISerializationContext context, Conjunction semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - * Contexts: - * Argument returns ConstantArgument - * ConstantArgument returns ConstantArgument - * - * Constraint: - * constant=Constant - */ - protected void sequence_ConstantArgument(ISerializationContext context, ConstantArgument semanticObject) { - if (errorAcceptor != null) { - if (transientValues.isValueTransient(semanticObject, ProblemPackage.Literals.CONSTANT_ARGUMENT__CONSTANT) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ProblemPackage.Literals.CONSTANT_ARGUMENT__CONSTANT)); - } - SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); - feeder.accept(grammarAccess.getConstantArgumentAccess().getConstantConstantParserRuleCall_0(), semanticObject.getConstant()); - feeder.finish(); - } - - - /** - * Contexts: - * AssertionArgument returns ConstantAssertionArgument - * ConstantAssertionArgument returns ConstantAssertionArgument - * - * Constraint: - * constant=Constant - */ - protected void sequence_ConstantAssertionArgument(ISerializationContext context, ConstantAssertionArgument semanticObject) { - if (errorAcceptor != null) { - if (transientValues.isValueTransient(semanticObject, ProblemPackage.Literals.CONSTANT_ASSERTION_ARGUMENT__CONSTANT) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ProblemPackage.Literals.CONSTANT_ASSERTION_ARGUMENT__CONSTANT)); - } - SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); - feeder.accept(grammarAccess.getConstantAssertionArgumentAccess().getConstantConstantParserRuleCall_0(), semanticObject.getConstant()); - feeder.finish(); - } - - - /** - * Contexts: - * Statement returns EnumDeclaration - * EnumDeclaration returns EnumDeclaration - * - * Constraint: - * (name=Identifier (literals+=EnumLiteral literals+=EnumLiteral*)?) - */ - protected void sequence_EnumDeclaration(ISerializationContext context, EnumDeclaration semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - * Contexts: - * EnumLiteral returns Node - * - * Constraint: - * name=Identifier - */ - protected void sequence_EnumLiteral(ISerializationContext context, Node semanticObject) { - if (errorAcceptor != null) { - if (transientValues.isValueTransient(semanticObject, ProblemPackage.Literals.NAMED_ELEMENT__NAME) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ProblemPackage.Literals.NAMED_ELEMENT__NAME)); - } - SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); - feeder.accept(grammarAccess.getEnumLiteralAccess().getNameIdentifierParserRuleCall_0(), semanticObject.getName()); - feeder.finish(); - } - - - /** - * Contexts: - * Multiplicity returns ExactMultiplicity - * DefiniteMultiplicity returns ExactMultiplicity - * ExactMultiplicity returns ExactMultiplicity - * - * Constraint: - * exactValue=INT - */ - protected void sequence_ExactMultiplicity(ISerializationContext context, ExactMultiplicity semanticObject) { - if (errorAcceptor != null) { - if (transientValues.isValueTransient(semanticObject, ProblemPackage.Literals.EXACT_MULTIPLICITY__EXACT_VALUE) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ProblemPackage.Literals.EXACT_MULTIPLICITY__EXACT_VALUE)); - } - SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); - feeder.accept(grammarAccess.getExactMultiplicityAccess().getExactValueINTTerminalRuleCall_0(), semanticObject.getExactValue()); - feeder.finish(); - } - - - /** - * Contexts: - * Constant returns IntConstant - * IntConstant returns IntConstant - * - * Constraint: - * intValue=Integer - */ - protected void sequence_IntConstant(ISerializationContext context, IntConstant semanticObject) { - if (errorAcceptor != null) { - if (transientValues.isValueTransient(semanticObject, ProblemPackage.Literals.INT_CONSTANT__INT_VALUE) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ProblemPackage.Literals.INT_CONSTANT__INT_VALUE)); - } - SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); - feeder.accept(grammarAccess.getIntConstantAccess().getIntValueIntegerParserRuleCall_0(), semanticObject.getIntValue()); - feeder.finish(); - } - - - /** - * Contexts: - * Literal returns NegativeLiteral - * NegativeLiteral returns NegativeLiteral - * - * Constraint: - * atom=Atom - */ - protected void sequence_NegativeLiteral(ISerializationContext context, NegativeLiteral semanticObject) { - if (errorAcceptor != null) { - if (transientValues.isValueTransient(semanticObject, ProblemPackage.Literals.NEGATIVE_LITERAL__ATOM) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ProblemPackage.Literals.NEGATIVE_LITERAL__ATOM)); - } - SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); - feeder.accept(grammarAccess.getNegativeLiteralAccess().getAtomAtomParserRuleCall_1_0(), semanticObject.getAtom()); - feeder.finish(); - } - - - /** - * Contexts: - * AssertionArgument returns NodeAssertionArgument - * NodeAssertionArgument returns NodeAssertionArgument - * - * Constraint: - * node=[Node|QualifiedName] - */ - protected void sequence_NodeAssertionArgument(ISerializationContext context, NodeAssertionArgument semanticObject) { - if (errorAcceptor != null) { - if (transientValues.isValueTransient(semanticObject, ProblemPackage.Literals.NODE_ASSERTION_ARGUMENT__NODE) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ProblemPackage.Literals.NODE_ASSERTION_ARGUMENT__NODE)); - } - SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); - feeder.accept(grammarAccess.getNodeAssertionArgumentAccess().getNodeNodeQualifiedNameParserRuleCall_0_1(), semanticObject.eGet(ProblemPackage.Literals.NODE_ASSERTION_ARGUMENT__NODE, false)); - feeder.finish(); - } - - - /** - * Contexts: - * Statement returns NodeValueAssertion - * NodeValueAssertion returns NodeValueAssertion - * - * Constraint: - * (node=[Node|QualifiedName] value=Constant) - */ - protected void sequence_NodeValueAssertion(ISerializationContext context, NodeValueAssertion semanticObject) { - if (errorAcceptor != null) { - if (transientValues.isValueTransient(semanticObject, ProblemPackage.Literals.NODE_VALUE_ASSERTION__NODE) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ProblemPackage.Literals.NODE_VALUE_ASSERTION__NODE)); - if (transientValues.isValueTransient(semanticObject, ProblemPackage.Literals.NODE_VALUE_ASSERTION__VALUE) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ProblemPackage.Literals.NODE_VALUE_ASSERTION__VALUE)); - } - SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); - feeder.accept(grammarAccess.getNodeValueAssertionAccess().getNodeNodeQualifiedNameParserRuleCall_0_0_1(), semanticObject.eGet(ProblemPackage.Literals.NODE_VALUE_ASSERTION__NODE, false)); - feeder.accept(grammarAccess.getNodeValueAssertionAccess().getValueConstantParserRuleCall_2_0(), semanticObject.getValue()); - feeder.finish(); - } - - - /** - * Contexts: - * Parameter returns Parameter - * - * Constraint: - * (parameterType=[Relation|QualifiedName]? name=Identifier) - */ - protected void sequence_Parameter(ISerializationContext context, org.eclipse.viatra.solver.language.model.problem.Parameter semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - * Contexts: - * Statement returns PredicateDefinition - * PredicateDefinition returns PredicateDefinition - * - * Constraint: - * (error?='error'? name=Identifier (parameters+=Parameter parameters+=Parameter*)? (bodies+=Conjunction bodies+=Conjunction*)?) - */ - protected void sequence_PredicateDefinition(ISerializationContext context, PredicateDefinition semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - * Contexts: - * Problem returns Problem - * - * Constraint: - * ((name=Identifier statements+=Statement+) | statements+=Statement+)? - */ - protected void sequence_Problem(ISerializationContext context, Problem semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - * Contexts: - * Multiplicity returns RangeMultiplicity - * DefiniteMultiplicity returns RangeMultiplicity - * RangeMultiplicity returns RangeMultiplicity - * - * Constraint: - * (lowerBound=INT upperBound=UpperBound) - */ - protected void sequence_RangeMultiplicity(ISerializationContext context, RangeMultiplicity semanticObject) { - if (errorAcceptor != null) { - if (transientValues.isValueTransient(semanticObject, ProblemPackage.Literals.RANGE_MULTIPLICITY__LOWER_BOUND) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ProblemPackage.Literals.RANGE_MULTIPLICITY__LOWER_BOUND)); - if (transientValues.isValueTransient(semanticObject, ProblemPackage.Literals.RANGE_MULTIPLICITY__UPPER_BOUND) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ProblemPackage.Literals.RANGE_MULTIPLICITY__UPPER_BOUND)); - } - SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); - feeder.accept(grammarAccess.getRangeMultiplicityAccess().getLowerBoundINTTerminalRuleCall_0_0(), semanticObject.getLowerBound()); - feeder.accept(grammarAccess.getRangeMultiplicityAccess().getUpperBoundUpperBoundParserRuleCall_2_0(), semanticObject.getUpperBound()); - feeder.finish(); - } - - - /** - * Contexts: - * Constant returns RealConstant - * RealConstant returns RealConstant - * - * Constraint: - * realValue=Real - */ - protected void sequence_RealConstant(ISerializationContext context, RealConstant semanticObject) { - if (errorAcceptor != null) { - if (transientValues.isValueTransient(semanticObject, ProblemPackage.Literals.REAL_CONSTANT__REAL_VALUE) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ProblemPackage.Literals.REAL_CONSTANT__REAL_VALUE)); - } - SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); - feeder.accept(grammarAccess.getRealConstantAccess().getRealValueRealParserRuleCall_0(), semanticObject.getRealValue()); - feeder.finish(); - } - - - /** - * Contexts: - * ReferenceDeclaration returns ReferenceDeclaration - * - * Constraint: - * ( - * containment?='contains'? - * referenceType=[Relation|QualifiedName] - * multiplicity=Multiplicity? - * name=Identifier - * opposite=[ReferenceDeclaration|QualifiedName]? - * ) - */ - protected void sequence_ReferenceDeclaration(ISerializationContext context, ReferenceDeclaration semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - * Contexts: - * Statement returns ScopeDeclaration - * ScopeDeclaration returns ScopeDeclaration - * - * Constraint: - * (typeScopes+=TypeScope typeScopes+=TypeScope*) - */ - protected void sequence_ScopeDeclaration(ISerializationContext context, ScopeDeclaration semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - * Contexts: - * Constant returns StringConstant - * StringConstant returns StringConstant - * - * Constraint: - * stringValue=STRING - */ - protected void sequence_StringConstant(ISerializationContext context, StringConstant semanticObject) { - if (errorAcceptor != null) { - if (transientValues.isValueTransient(semanticObject, ProblemPackage.Literals.STRING_CONSTANT__STRING_VALUE) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ProblemPackage.Literals.STRING_CONSTANT__STRING_VALUE)); - } - SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); - feeder.accept(grammarAccess.getStringConstantAccess().getStringValueSTRINGTerminalRuleCall_0(), semanticObject.getStringValue()); - feeder.finish(); - } - - - /** - * Contexts: - * TypeScope returns TypeScope - * - * Constraint: - * (targetType=[ClassDeclaration|ID] increment?='+='? multiplicity=DefiniteMultiplicity) - */ - protected void sequence_TypeScope(ISerializationContext context, TypeScope semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - * Contexts: - * Multiplicity returns UnboundedMultiplicity - * UnboundedMultiplicity returns UnboundedMultiplicity - * - * Constraint: - * {UnboundedMultiplicity} - */ - protected void sequence_UnboundedMultiplicity(ISerializationContext context, UnboundedMultiplicity semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - * Contexts: - * Argument returns VariableOrNodeArgument - * VariableOrNodeArgument returns VariableOrNodeArgument - * - * Constraint: - * variableOrNode=[VariableOrNode|QualifiedName] - */ - protected void sequence_VariableOrNodeArgument(ISerializationContext context, VariableOrNodeArgument semanticObject) { - if (errorAcceptor != null) { - if (transientValues.isValueTransient(semanticObject, ProblemPackage.Literals.VARIABLE_OR_NODE_ARGUMENT__VARIABLE_OR_NODE) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ProblemPackage.Literals.VARIABLE_OR_NODE_ARGUMENT__VARIABLE_OR_NODE)); - } - SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); - feeder.accept(grammarAccess.getVariableOrNodeArgumentAccess().getVariableOrNodeVariableOrNodeQualifiedNameParserRuleCall_0_1(), semanticObject.eGet(ProblemPackage.Literals.VARIABLE_OR_NODE_ARGUMENT__VARIABLE_OR_NODE, false)); - feeder.finish(); - } - - -} diff --git a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/serializer/ProblemSyntacticSequencer.java b/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/serializer/ProblemSyntacticSequencer.java deleted file mode 100644 index 3f0a3f05..00000000 --- a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/serializer/ProblemSyntacticSequencer.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * generated by Xtext 2.26.0.M1 - */ -package org.eclipse.viatra.solver.language.serializer; - -import com.google.inject.Inject; -import java.util.List; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.viatra.solver.language.services.ProblemGrammarAccess; -import org.eclipse.xtext.IGrammarAccess; -import org.eclipse.xtext.RuleCall; -import org.eclipse.xtext.nodemodel.INode; -import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias; -import org.eclipse.xtext.serializer.analysis.GrammarAlias.AlternativeAlias; -import org.eclipse.xtext.serializer.analysis.GrammarAlias.GroupAlias; -import org.eclipse.xtext.serializer.analysis.GrammarAlias.TokenAlias; -import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable; -import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition; -import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer; - -@SuppressWarnings("all") -public class ProblemSyntacticSequencer extends AbstractSyntacticSequencer { - - protected ProblemGrammarAccess grammarAccess; - protected AbstractElementAlias match_ClassDeclaration_FullStopKeyword_4_1_or___LeftCurlyBracketKeyword_4_0_0_RightCurlyBracketKeyword_4_0_2__; - protected AbstractElementAlias match_ClassDeclaration_SemicolonKeyword_4_0_1_1_q; - protected AbstractElementAlias match_EnumDeclaration_FullStopKeyword_2_1_or___LeftCurlyBracketKeyword_2_0_0_RightCurlyBracketKeyword_2_0_2__; - protected AbstractElementAlias match_EnumDeclaration___CommaKeyword_2_0_1_2_0_or_SemicolonKeyword_2_0_1_2_1__q; - protected AbstractElementAlias match_PredicateDefinition_PredKeyword_0_0_1_q; - protected AbstractElementAlias match_ReferenceDeclaration_RefersKeyword_0_1_q; - - @Inject - protected void init(IGrammarAccess access) { - grammarAccess = (ProblemGrammarAccess) access; - match_ClassDeclaration_FullStopKeyword_4_1_or___LeftCurlyBracketKeyword_4_0_0_RightCurlyBracketKeyword_4_0_2__ = new AlternativeAlias(false, false, new GroupAlias(false, false, new TokenAlias(false, false, grammarAccess.getClassDeclarationAccess().getLeftCurlyBracketKeyword_4_0_0()), new TokenAlias(false, false, grammarAccess.getClassDeclarationAccess().getRightCurlyBracketKeyword_4_0_2())), new TokenAlias(false, false, grammarAccess.getClassDeclarationAccess().getFullStopKeyword_4_1())); - match_ClassDeclaration_SemicolonKeyword_4_0_1_1_q = new TokenAlias(false, true, grammarAccess.getClassDeclarationAccess().getSemicolonKeyword_4_0_1_1()); - match_EnumDeclaration_FullStopKeyword_2_1_or___LeftCurlyBracketKeyword_2_0_0_RightCurlyBracketKeyword_2_0_2__ = new AlternativeAlias(false, false, new GroupAlias(false, false, new TokenAlias(false, false, grammarAccess.getEnumDeclarationAccess().getLeftCurlyBracketKeyword_2_0_0()), new TokenAlias(false, false, grammarAccess.getEnumDeclarationAccess().getRightCurlyBracketKeyword_2_0_2())), new TokenAlias(false, false, grammarAccess.getEnumDeclarationAccess().getFullStopKeyword_2_1())); - match_EnumDeclaration___CommaKeyword_2_0_1_2_0_or_SemicolonKeyword_2_0_1_2_1__q = new AlternativeAlias(false, true, new TokenAlias(false, false, grammarAccess.getEnumDeclarationAccess().getCommaKeyword_2_0_1_2_0()), new TokenAlias(false, false, grammarAccess.getEnumDeclarationAccess().getSemicolonKeyword_2_0_1_2_1())); - match_PredicateDefinition_PredKeyword_0_0_1_q = new TokenAlias(false, true, grammarAccess.getPredicateDefinitionAccess().getPredKeyword_0_0_1()); - match_ReferenceDeclaration_RefersKeyword_0_1_q = new TokenAlias(false, true, grammarAccess.getReferenceDeclarationAccess().getRefersKeyword_0_1()); - } - - @Override - protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) { - return ""; - } - - - @Override - protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) { - if (transition.getAmbiguousSyntaxes().isEmpty()) return; - List transitionNodes = collectNodes(fromNode, toNode); - for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) { - List syntaxNodes = getNodesFor(transitionNodes, syntax); - if (match_ClassDeclaration_FullStopKeyword_4_1_or___LeftCurlyBracketKeyword_4_0_0_RightCurlyBracketKeyword_4_0_2__.equals(syntax)) - emit_ClassDeclaration_FullStopKeyword_4_1_or___LeftCurlyBracketKeyword_4_0_0_RightCurlyBracketKeyword_4_0_2__(semanticObject, getLastNavigableState(), syntaxNodes); - else if (match_ClassDeclaration_SemicolonKeyword_4_0_1_1_q.equals(syntax)) - emit_ClassDeclaration_SemicolonKeyword_4_0_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes); - else if (match_EnumDeclaration_FullStopKeyword_2_1_or___LeftCurlyBracketKeyword_2_0_0_RightCurlyBracketKeyword_2_0_2__.equals(syntax)) - emit_EnumDeclaration_FullStopKeyword_2_1_or___LeftCurlyBracketKeyword_2_0_0_RightCurlyBracketKeyword_2_0_2__(semanticObject, getLastNavigableState(), syntaxNodes); - else if (match_EnumDeclaration___CommaKeyword_2_0_1_2_0_or_SemicolonKeyword_2_0_1_2_1__q.equals(syntax)) - emit_EnumDeclaration___CommaKeyword_2_0_1_2_0_or_SemicolonKeyword_2_0_1_2_1__q(semanticObject, getLastNavigableState(), syntaxNodes); - else if (match_PredicateDefinition_PredKeyword_0_0_1_q.equals(syntax)) - emit_PredicateDefinition_PredKeyword_0_0_1_q(semanticObject, getLastNavigableState(), syntaxNodes); - else if (match_ReferenceDeclaration_RefersKeyword_0_1_q.equals(syntax)) - emit_ReferenceDeclaration_RefersKeyword_0_1_q(semanticObject, getLastNavigableState(), syntaxNodes); - else acceptNodes(getLastNavigableState(), syntaxNodes); - } - } - - /** - * Ambiguous syntax: - * ('{' '}') | '.' - * - * This ambiguous syntax occurs at: - * name=Identifier (ambiguity) (rule end) - * superTypes+=[Relation|QualifiedName] (ambiguity) (rule end) - */ - protected void emit_ClassDeclaration_FullStopKeyword_4_1_or___LeftCurlyBracketKeyword_4_0_0_RightCurlyBracketKeyword_4_0_2__(EObject semanticObject, ISynNavigable transition, List nodes) { - acceptNodes(transition, nodes); - } - - /** - * Ambiguous syntax: - * ';'? - * - * This ambiguous syntax occurs at: - * referenceDeclarations+=ReferenceDeclaration (ambiguity) '}' (rule end) - * referenceDeclarations+=ReferenceDeclaration (ambiguity) referenceDeclarations+=ReferenceDeclaration - */ - protected void emit_ClassDeclaration_SemicolonKeyword_4_0_1_1_q(EObject semanticObject, ISynNavigable transition, List nodes) { - acceptNodes(transition, nodes); - } - - /** - * Ambiguous syntax: - * ('{' '}') | '.' - * - * This ambiguous syntax occurs at: - * name=Identifier (ambiguity) (rule end) - */ - protected void emit_EnumDeclaration_FullStopKeyword_2_1_or___LeftCurlyBracketKeyword_2_0_0_RightCurlyBracketKeyword_2_0_2__(EObject semanticObject, ISynNavigable transition, List nodes) { - acceptNodes(transition, nodes); - } - - /** - * Ambiguous syntax: - * (',' | ';')? - * - * This ambiguous syntax occurs at: - * literals+=EnumLiteral (ambiguity) '}' (rule end) - */ - protected void emit_EnumDeclaration___CommaKeyword_2_0_1_2_0_or_SemicolonKeyword_2_0_1_2_1__q(EObject semanticObject, ISynNavigable transition, List nodes) { - acceptNodes(transition, nodes); - } - - /** - * Ambiguous syntax: - * 'pred'? - * - * This ambiguous syntax occurs at: - * error?='error' (ambiguity) name=Identifier - */ - protected void emit_PredicateDefinition_PredKeyword_0_0_1_q(EObject semanticObject, ISynNavigable transition, List nodes) { - acceptNodes(transition, nodes); - } - - /** - * Ambiguous syntax: - * 'refers'? - * - * This ambiguous syntax occurs at: - * (rule start) (ambiguity) referenceType=[Relation|QualifiedName] - */ - protected void emit_ReferenceDeclaration_RefersKeyword_0_1_q(EObject semanticObject, ISynNavigable transition, List nodes) { - acceptNodes(transition, nodes); - } - -} diff --git a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/services/ProblemGrammarAccess.java b/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/services/ProblemGrammarAccess.java deleted file mode 100644 index 01188c37..00000000 --- a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/services/ProblemGrammarAccess.java +++ /dev/null @@ -1,2071 +0,0 @@ -/* - * generated by Xtext 2.26.0.M1 - */ -package org.eclipse.viatra.solver.language.services; - -import com.google.inject.Inject; -import com.google.inject.Singleton; -import java.util.List; -import org.eclipse.xtext.Action; -import org.eclipse.xtext.Alternatives; -import org.eclipse.xtext.Assignment; -import org.eclipse.xtext.CrossReference; -import org.eclipse.xtext.EnumLiteralDeclaration; -import org.eclipse.xtext.EnumRule; -import org.eclipse.xtext.Grammar; -import org.eclipse.xtext.GrammarUtil; -import org.eclipse.xtext.Group; -import org.eclipse.xtext.Keyword; -import org.eclipse.xtext.ParserRule; -import org.eclipse.xtext.RuleCall; -import org.eclipse.xtext.TerminalRule; -import org.eclipse.xtext.common.services.TerminalsGrammarAccess; -import org.eclipse.xtext.service.AbstractElementFinder; -import org.eclipse.xtext.service.GrammarProvider; - -@Singleton -public class ProblemGrammarAccess extends AbstractElementFinder.AbstractGrammarElementFinder { - - public class ProblemElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.Problem"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Group cGroup_0 = (Group)cGroup.eContents().get(0); - private final Keyword cProblemKeyword_0_0 = (Keyword)cGroup_0.eContents().get(0); - private final Assignment cNameAssignment_0_1 = (Assignment)cGroup_0.eContents().get(1); - private final RuleCall cNameIdentifierParserRuleCall_0_1_0 = (RuleCall)cNameAssignment_0_1.eContents().get(0); - private final Keyword cFullStopKeyword_0_2 = (Keyword)cGroup_0.eContents().get(2); - private final Assignment cStatementsAssignment_1 = (Assignment)cGroup.eContents().get(1); - private final RuleCall cStatementsStatementParserRuleCall_1_0 = (RuleCall)cStatementsAssignment_1.eContents().get(0); - - //Problem: - // ("problem" name=Identifier ".")? - // statements+=Statement*; - @Override public ParserRule getRule() { return rule; } - - //("problem" name=Identifier ".")? - //statements+=Statement* - public Group getGroup() { return cGroup; } - - //("problem" name=Identifier ".")? - public Group getGroup_0() { return cGroup_0; } - - //"problem" - public Keyword getProblemKeyword_0_0() { return cProblemKeyword_0_0; } - - //name=Identifier - public Assignment getNameAssignment_0_1() { return cNameAssignment_0_1; } - - //Identifier - public RuleCall getNameIdentifierParserRuleCall_0_1_0() { return cNameIdentifierParserRuleCall_0_1_0; } - - //"." - public Keyword getFullStopKeyword_0_2() { return cFullStopKeyword_0_2; } - - //statements+=Statement* - public Assignment getStatementsAssignment_1() { return cStatementsAssignment_1; } - - //Statement - public RuleCall getStatementsStatementParserRuleCall_1_0() { return cStatementsStatementParserRuleCall_1_0; } - } - public class StatementElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.Statement"); - private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); - private final RuleCall cClassDeclarationParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); - private final RuleCall cEnumDeclarationParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); - private final RuleCall cPredicateDefinitionParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2); - private final RuleCall cAssertionParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3); - private final RuleCall cNodeValueAssertionParserRuleCall_4 = (RuleCall)cAlternatives.eContents().get(4); - private final RuleCall cScopeDeclarationParserRuleCall_5 = (RuleCall)cAlternatives.eContents().get(5); - - //Statement: - // ClassDeclaration | EnumDeclaration | PredicateDefinition | Assertion | NodeValueAssertion | ScopeDeclaration; - @Override public ParserRule getRule() { return rule; } - - //ClassDeclaration | EnumDeclaration | PredicateDefinition | Assertion | NodeValueAssertion | ScopeDeclaration - public Alternatives getAlternatives() { return cAlternatives; } - - //ClassDeclaration - public RuleCall getClassDeclarationParserRuleCall_0() { return cClassDeclarationParserRuleCall_0; } - - //EnumDeclaration - public RuleCall getEnumDeclarationParserRuleCall_1() { return cEnumDeclarationParserRuleCall_1; } - - //PredicateDefinition - public RuleCall getPredicateDefinitionParserRuleCall_2() { return cPredicateDefinitionParserRuleCall_2; } - - //Assertion - public RuleCall getAssertionParserRuleCall_3() { return cAssertionParserRuleCall_3; } - - //NodeValueAssertion - public RuleCall getNodeValueAssertionParserRuleCall_4() { return cNodeValueAssertionParserRuleCall_4; } - - //ScopeDeclaration - public RuleCall getScopeDeclarationParserRuleCall_5() { return cScopeDeclarationParserRuleCall_5; } - } - public class ClassDeclarationElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.ClassDeclaration"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Assignment cAbstractAssignment_0 = (Assignment)cGroup.eContents().get(0); - private final Keyword cAbstractAbstractKeyword_0_0 = (Keyword)cAbstractAssignment_0.eContents().get(0); - private final Keyword cClassKeyword_1 = (Keyword)cGroup.eContents().get(1); - private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2); - private final RuleCall cNameIdentifierParserRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0); - private final Group cGroup_3 = (Group)cGroup.eContents().get(3); - private final Keyword cExtendsKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0); - private final Assignment cSuperTypesAssignment_3_1 = (Assignment)cGroup_3.eContents().get(1); - private final CrossReference cSuperTypesRelationCrossReference_3_1_0 = (CrossReference)cSuperTypesAssignment_3_1.eContents().get(0); - private final RuleCall cSuperTypesRelationQualifiedNameParserRuleCall_3_1_0_1 = (RuleCall)cSuperTypesRelationCrossReference_3_1_0.eContents().get(1); - private final Group cGroup_3_2 = (Group)cGroup_3.eContents().get(2); - private final Keyword cCommaKeyword_3_2_0 = (Keyword)cGroup_3_2.eContents().get(0); - private final Assignment cSuperTypesAssignment_3_2_1 = (Assignment)cGroup_3_2.eContents().get(1); - private final CrossReference cSuperTypesRelationCrossReference_3_2_1_0 = (CrossReference)cSuperTypesAssignment_3_2_1.eContents().get(0); - private final RuleCall cSuperTypesRelationQualifiedNameParserRuleCall_3_2_1_0_1 = (RuleCall)cSuperTypesRelationCrossReference_3_2_1_0.eContents().get(1); - private final Alternatives cAlternatives_4 = (Alternatives)cGroup.eContents().get(4); - private final Group cGroup_4_0 = (Group)cAlternatives_4.eContents().get(0); - private final Keyword cLeftCurlyBracketKeyword_4_0_0 = (Keyword)cGroup_4_0.eContents().get(0); - private final Group cGroup_4_0_1 = (Group)cGroup_4_0.eContents().get(1); - private final Assignment cReferenceDeclarationsAssignment_4_0_1_0 = (Assignment)cGroup_4_0_1.eContents().get(0); - private final RuleCall cReferenceDeclarationsReferenceDeclarationParserRuleCall_4_0_1_0_0 = (RuleCall)cReferenceDeclarationsAssignment_4_0_1_0.eContents().get(0); - private final Keyword cSemicolonKeyword_4_0_1_1 = (Keyword)cGroup_4_0_1.eContents().get(1); - private final Keyword cRightCurlyBracketKeyword_4_0_2 = (Keyword)cGroup_4_0.eContents().get(2); - private final Keyword cFullStopKeyword_4_1 = (Keyword)cAlternatives_4.eContents().get(1); - - //ClassDeclaration: - // abstract?="abstract"? "class" - // name=Identifier - // ("extends" superTypes+=[Relation|QualifiedName] ("," superTypes+=[Relation|QualifiedName])*)? - // ("{" (referenceDeclarations+=ReferenceDeclaration ";"?)* "}" | "."); - @Override public ParserRule getRule() { return rule; } - - //abstract?="abstract"? "class" - //name=Identifier - //("extends" superTypes+=[Relation|QualifiedName] ("," superTypes+=[Relation|QualifiedName])*)? - //("{" (referenceDeclarations+=ReferenceDeclaration ";"?)* "}" | ".") - public Group getGroup() { return cGroup; } - - //abstract?="abstract"? - public Assignment getAbstractAssignment_0() { return cAbstractAssignment_0; } - - //"abstract" - public Keyword getAbstractAbstractKeyword_0_0() { return cAbstractAbstractKeyword_0_0; } - - //"class" - public Keyword getClassKeyword_1() { return cClassKeyword_1; } - - //name=Identifier - public Assignment getNameAssignment_2() { return cNameAssignment_2; } - - //Identifier - public RuleCall getNameIdentifierParserRuleCall_2_0() { return cNameIdentifierParserRuleCall_2_0; } - - //("extends" superTypes+=[Relation|QualifiedName] ("," superTypes+=[Relation|QualifiedName])*)? - public Group getGroup_3() { return cGroup_3; } - - //"extends" - public Keyword getExtendsKeyword_3_0() { return cExtendsKeyword_3_0; } - - //superTypes+=[Relation|QualifiedName] - public Assignment getSuperTypesAssignment_3_1() { return cSuperTypesAssignment_3_1; } - - //[Relation|QualifiedName] - public CrossReference getSuperTypesRelationCrossReference_3_1_0() { return cSuperTypesRelationCrossReference_3_1_0; } - - //QualifiedName - public RuleCall getSuperTypesRelationQualifiedNameParserRuleCall_3_1_0_1() { return cSuperTypesRelationQualifiedNameParserRuleCall_3_1_0_1; } - - //("," superTypes+=[Relation|QualifiedName])* - public Group getGroup_3_2() { return cGroup_3_2; } - - //"," - public Keyword getCommaKeyword_3_2_0() { return cCommaKeyword_3_2_0; } - - //superTypes+=[Relation|QualifiedName] - public Assignment getSuperTypesAssignment_3_2_1() { return cSuperTypesAssignment_3_2_1; } - - //[Relation|QualifiedName] - public CrossReference getSuperTypesRelationCrossReference_3_2_1_0() { return cSuperTypesRelationCrossReference_3_2_1_0; } - - //QualifiedName - public RuleCall getSuperTypesRelationQualifiedNameParserRuleCall_3_2_1_0_1() { return cSuperTypesRelationQualifiedNameParserRuleCall_3_2_1_0_1; } - - //("{" (referenceDeclarations+=ReferenceDeclaration ";"?)* "}" | ".") - public Alternatives getAlternatives_4() { return cAlternatives_4; } - - //"{" (referenceDeclarations+=ReferenceDeclaration ";"?)* "}" - public Group getGroup_4_0() { return cGroup_4_0; } - - //"{" - public Keyword getLeftCurlyBracketKeyword_4_0_0() { return cLeftCurlyBracketKeyword_4_0_0; } - - //(referenceDeclarations+=ReferenceDeclaration ";"?)* - public Group getGroup_4_0_1() { return cGroup_4_0_1; } - - //referenceDeclarations+=ReferenceDeclaration - public Assignment getReferenceDeclarationsAssignment_4_0_1_0() { return cReferenceDeclarationsAssignment_4_0_1_0; } - - //ReferenceDeclaration - public RuleCall getReferenceDeclarationsReferenceDeclarationParserRuleCall_4_0_1_0_0() { return cReferenceDeclarationsReferenceDeclarationParserRuleCall_4_0_1_0_0; } - - //";"? - public Keyword getSemicolonKeyword_4_0_1_1() { return cSemicolonKeyword_4_0_1_1; } - - //"}" - public Keyword getRightCurlyBracketKeyword_4_0_2() { return cRightCurlyBracketKeyword_4_0_2; } - - //"." - public Keyword getFullStopKeyword_4_1() { return cFullStopKeyword_4_1; } - } - public class EnumDeclarationElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.EnumDeclaration"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Keyword cEnumKeyword_0 = (Keyword)cGroup.eContents().get(0); - private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1); - private final RuleCall cNameIdentifierParserRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0); - private final Alternatives cAlternatives_2 = (Alternatives)cGroup.eContents().get(2); - private final Group cGroup_2_0 = (Group)cAlternatives_2.eContents().get(0); - private final Keyword cLeftCurlyBracketKeyword_2_0_0 = (Keyword)cGroup_2_0.eContents().get(0); - private final Group cGroup_2_0_1 = (Group)cGroup_2_0.eContents().get(1); - private final Assignment cLiteralsAssignment_2_0_1_0 = (Assignment)cGroup_2_0_1.eContents().get(0); - private final RuleCall cLiteralsEnumLiteralParserRuleCall_2_0_1_0_0 = (RuleCall)cLiteralsAssignment_2_0_1_0.eContents().get(0); - private final Group cGroup_2_0_1_1 = (Group)cGroup_2_0_1.eContents().get(1); - private final Keyword cCommaKeyword_2_0_1_1_0 = (Keyword)cGroup_2_0_1_1.eContents().get(0); - private final Assignment cLiteralsAssignment_2_0_1_1_1 = (Assignment)cGroup_2_0_1_1.eContents().get(1); - private final RuleCall cLiteralsEnumLiteralParserRuleCall_2_0_1_1_1_0 = (RuleCall)cLiteralsAssignment_2_0_1_1_1.eContents().get(0); - private final Alternatives cAlternatives_2_0_1_2 = (Alternatives)cGroup_2_0_1.eContents().get(2); - private final Keyword cCommaKeyword_2_0_1_2_0 = (Keyword)cAlternatives_2_0_1_2.eContents().get(0); - private final Keyword cSemicolonKeyword_2_0_1_2_1 = (Keyword)cAlternatives_2_0_1_2.eContents().get(1); - private final Keyword cRightCurlyBracketKeyword_2_0_2 = (Keyword)cGroup_2_0.eContents().get(2); - private final Keyword cFullStopKeyword_2_1 = (Keyword)cAlternatives_2.eContents().get(1); - - //EnumDeclaration: - // "enum" - // name=Identifier - // ("{" (literals+=EnumLiteral ("," literals+=EnumLiteral)* ("," | ";")?)? "}" | "."); - @Override public ParserRule getRule() { return rule; } - - //"enum" - //name=Identifier - //("{" (literals+=EnumLiteral ("," literals+=EnumLiteral)* ("," | ";")?)? "}" | ".") - public Group getGroup() { return cGroup; } - - //"enum" - public Keyword getEnumKeyword_0() { return cEnumKeyword_0; } - - //name=Identifier - public Assignment getNameAssignment_1() { return cNameAssignment_1; } - - //Identifier - public RuleCall getNameIdentifierParserRuleCall_1_0() { return cNameIdentifierParserRuleCall_1_0; } - - //("{" (literals+=EnumLiteral ("," literals+=EnumLiteral)* ("," | ";")?)? "}" | ".") - public Alternatives getAlternatives_2() { return cAlternatives_2; } - - //"{" (literals+=EnumLiteral ("," literals+=EnumLiteral)* ("," | ";")?)? "}" - public Group getGroup_2_0() { return cGroup_2_0; } - - //"{" - public Keyword getLeftCurlyBracketKeyword_2_0_0() { return cLeftCurlyBracketKeyword_2_0_0; } - - //(literals+=EnumLiteral ("," literals+=EnumLiteral)* ("," | ";")?)? - public Group getGroup_2_0_1() { return cGroup_2_0_1; } - - //literals+=EnumLiteral - public Assignment getLiteralsAssignment_2_0_1_0() { return cLiteralsAssignment_2_0_1_0; } - - //EnumLiteral - public RuleCall getLiteralsEnumLiteralParserRuleCall_2_0_1_0_0() { return cLiteralsEnumLiteralParserRuleCall_2_0_1_0_0; } - - //("," literals+=EnumLiteral)* - public Group getGroup_2_0_1_1() { return cGroup_2_0_1_1; } - - //"," - public Keyword getCommaKeyword_2_0_1_1_0() { return cCommaKeyword_2_0_1_1_0; } - - //literals+=EnumLiteral - public Assignment getLiteralsAssignment_2_0_1_1_1() { return cLiteralsAssignment_2_0_1_1_1; } - - //EnumLiteral - public RuleCall getLiteralsEnumLiteralParserRuleCall_2_0_1_1_1_0() { return cLiteralsEnumLiteralParserRuleCall_2_0_1_1_1_0; } - - //("," | ";")? - public Alternatives getAlternatives_2_0_1_2() { return cAlternatives_2_0_1_2; } - - //"," - public Keyword getCommaKeyword_2_0_1_2_0() { return cCommaKeyword_2_0_1_2_0; } - - //";" - public Keyword getSemicolonKeyword_2_0_1_2_1() { return cSemicolonKeyword_2_0_1_2_1; } - - //"}" - public Keyword getRightCurlyBracketKeyword_2_0_2() { return cRightCurlyBracketKeyword_2_0_2; } - - //"." - public Keyword getFullStopKeyword_2_1() { return cFullStopKeyword_2_1; } - } - public class EnumLiteralElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.EnumLiteral"); - private final Assignment cNameAssignment = (Assignment)rule.eContents().get(1); - private final RuleCall cNameIdentifierParserRuleCall_0 = (RuleCall)cNameAssignment.eContents().get(0); - - //EnumLiteral returns Node: - // name=Identifier; - @Override public ParserRule getRule() { return rule; } - - //name=Identifier - public Assignment getNameAssignment() { return cNameAssignment; } - - //Identifier - public RuleCall getNameIdentifierParserRuleCall_0() { return cNameIdentifierParserRuleCall_0; } - } - public class ReferenceDeclarationElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.ReferenceDeclaration"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Alternatives cAlternatives_0 = (Alternatives)cGroup.eContents().get(0); - private final Assignment cContainmentAssignment_0_0 = (Assignment)cAlternatives_0.eContents().get(0); - private final Keyword cContainmentContainsKeyword_0_0_0 = (Keyword)cContainmentAssignment_0_0.eContents().get(0); - private final Keyword cRefersKeyword_0_1 = (Keyword)cAlternatives_0.eContents().get(1); - private final Assignment cReferenceTypeAssignment_1 = (Assignment)cGroup.eContents().get(1); - private final CrossReference cReferenceTypeRelationCrossReference_1_0 = (CrossReference)cReferenceTypeAssignment_1.eContents().get(0); - private final RuleCall cReferenceTypeRelationQualifiedNameParserRuleCall_1_0_1 = (RuleCall)cReferenceTypeRelationCrossReference_1_0.eContents().get(1); - private final Group cGroup_2 = (Group)cGroup.eContents().get(2); - private final Keyword cLeftSquareBracketKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0); - private final Assignment cMultiplicityAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1); - private final RuleCall cMultiplicityMultiplicityParserRuleCall_2_1_0 = (RuleCall)cMultiplicityAssignment_2_1.eContents().get(0); - private final Keyword cRightSquareBracketKeyword_2_2 = (Keyword)cGroup_2.eContents().get(2); - private final Assignment cNameAssignment_3 = (Assignment)cGroup.eContents().get(3); - private final RuleCall cNameIdentifierParserRuleCall_3_0 = (RuleCall)cNameAssignment_3.eContents().get(0); - private final Group cGroup_4 = (Group)cGroup.eContents().get(4); - private final Keyword cOppositeKeyword_4_0 = (Keyword)cGroup_4.eContents().get(0); - private final Assignment cOppositeAssignment_4_1 = (Assignment)cGroup_4.eContents().get(1); - private final CrossReference cOppositeReferenceDeclarationCrossReference_4_1_0 = (CrossReference)cOppositeAssignment_4_1.eContents().get(0); - private final RuleCall cOppositeReferenceDeclarationQualifiedNameParserRuleCall_4_1_0_1 = (RuleCall)cOppositeReferenceDeclarationCrossReference_4_1_0.eContents().get(1); - - //ReferenceDeclaration: - // (containment?="contains" | "refers")? - // referenceType=[Relation|QualifiedName] - // ("[" multiplicity=Multiplicity "]")? - // name=Identifier - // ("opposite" opposite=[ReferenceDeclaration|QualifiedName])?; - @Override public ParserRule getRule() { return rule; } - - //(containment?="contains" | "refers")? - //referenceType=[Relation|QualifiedName] - //("[" multiplicity=Multiplicity "]")? - //name=Identifier - //("opposite" opposite=[ReferenceDeclaration|QualifiedName])? - public Group getGroup() { return cGroup; } - - //(containment?="contains" | "refers")? - public Alternatives getAlternatives_0() { return cAlternatives_0; } - - //containment?="contains" - public Assignment getContainmentAssignment_0_0() { return cContainmentAssignment_0_0; } - - //"contains" - public Keyword getContainmentContainsKeyword_0_0_0() { return cContainmentContainsKeyword_0_0_0; } - - //"refers" - public Keyword getRefersKeyword_0_1() { return cRefersKeyword_0_1; } - - //referenceType=[Relation|QualifiedName] - public Assignment getReferenceTypeAssignment_1() { return cReferenceTypeAssignment_1; } - - //[Relation|QualifiedName] - public CrossReference getReferenceTypeRelationCrossReference_1_0() { return cReferenceTypeRelationCrossReference_1_0; } - - //QualifiedName - public RuleCall getReferenceTypeRelationQualifiedNameParserRuleCall_1_0_1() { return cReferenceTypeRelationQualifiedNameParserRuleCall_1_0_1; } - - //("[" multiplicity=Multiplicity "]")? - public Group getGroup_2() { return cGroup_2; } - - //"[" - public Keyword getLeftSquareBracketKeyword_2_0() { return cLeftSquareBracketKeyword_2_0; } - - //multiplicity=Multiplicity - public Assignment getMultiplicityAssignment_2_1() { return cMultiplicityAssignment_2_1; } - - //Multiplicity - public RuleCall getMultiplicityMultiplicityParserRuleCall_2_1_0() { return cMultiplicityMultiplicityParserRuleCall_2_1_0; } - - //"]" - public Keyword getRightSquareBracketKeyword_2_2() { return cRightSquareBracketKeyword_2_2; } - - //name=Identifier - public Assignment getNameAssignment_3() { return cNameAssignment_3; } - - //Identifier - public RuleCall getNameIdentifierParserRuleCall_3_0() { return cNameIdentifierParserRuleCall_3_0; } - - //("opposite" opposite=[ReferenceDeclaration|QualifiedName])? - public Group getGroup_4() { return cGroup_4; } - - //"opposite" - public Keyword getOppositeKeyword_4_0() { return cOppositeKeyword_4_0; } - - //opposite=[ReferenceDeclaration|QualifiedName] - public Assignment getOppositeAssignment_4_1() { return cOppositeAssignment_4_1; } - - //[ReferenceDeclaration|QualifiedName] - public CrossReference getOppositeReferenceDeclarationCrossReference_4_1_0() { return cOppositeReferenceDeclarationCrossReference_4_1_0; } - - //QualifiedName - public RuleCall getOppositeReferenceDeclarationQualifiedNameParserRuleCall_4_1_0_1() { return cOppositeReferenceDeclarationQualifiedNameParserRuleCall_4_1_0_1; } - } - public class PredicateDefinitionElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.PredicateDefinition"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Alternatives cAlternatives_0 = (Alternatives)cGroup.eContents().get(0); - private final Group cGroup_0_0 = (Group)cAlternatives_0.eContents().get(0); - private final Assignment cErrorAssignment_0_0_0 = (Assignment)cGroup_0_0.eContents().get(0); - private final Keyword cErrorErrorKeyword_0_0_0_0 = (Keyword)cErrorAssignment_0_0_0.eContents().get(0); - private final Keyword cPredKeyword_0_0_1 = (Keyword)cGroup_0_0.eContents().get(1); - private final Keyword cPredKeyword_0_1 = (Keyword)cAlternatives_0.eContents().get(1); - private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1); - private final RuleCall cNameIdentifierParserRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0); - private final Keyword cLeftParenthesisKeyword_2 = (Keyword)cGroup.eContents().get(2); - private final Group cGroup_3 = (Group)cGroup.eContents().get(3); - private final Assignment cParametersAssignment_3_0 = (Assignment)cGroup_3.eContents().get(0); - private final RuleCall cParametersParameterParserRuleCall_3_0_0 = (RuleCall)cParametersAssignment_3_0.eContents().get(0); - private final Group cGroup_3_1 = (Group)cGroup_3.eContents().get(1); - private final Keyword cCommaKeyword_3_1_0 = (Keyword)cGroup_3_1.eContents().get(0); - private final Assignment cParametersAssignment_3_1_1 = (Assignment)cGroup_3_1.eContents().get(1); - private final RuleCall cParametersParameterParserRuleCall_3_1_1_0 = (RuleCall)cParametersAssignment_3_1_1.eContents().get(0); - private final Keyword cRightParenthesisKeyword_4 = (Keyword)cGroup.eContents().get(4); - private final Group cGroup_5 = (Group)cGroup.eContents().get(5); - private final Keyword cColonHyphenMinusKeyword_5_0 = (Keyword)cGroup_5.eContents().get(0); - private final Assignment cBodiesAssignment_5_1 = (Assignment)cGroup_5.eContents().get(1); - private final RuleCall cBodiesConjunctionParserRuleCall_5_1_0 = (RuleCall)cBodiesAssignment_5_1.eContents().get(0); - private final Group cGroup_5_2 = (Group)cGroup_5.eContents().get(2); - private final Keyword cSemicolonKeyword_5_2_0 = (Keyword)cGroup_5_2.eContents().get(0); - private final Assignment cBodiesAssignment_5_2_1 = (Assignment)cGroup_5_2.eContents().get(1); - private final RuleCall cBodiesConjunctionParserRuleCall_5_2_1_0 = (RuleCall)cBodiesAssignment_5_2_1.eContents().get(0); - private final Keyword cFullStopKeyword_6 = (Keyword)cGroup.eContents().get(6); - - //PredicateDefinition: - // (error?="error" "pred"? | "pred") - // name=Identifier - // "(" (parameters+=Parameter ("," parameters+=Parameter)*)? ")" - // (":-" bodies+=Conjunction (";" bodies+=Conjunction)*)? - // "."; - @Override public ParserRule getRule() { return rule; } - - //(error?="error" "pred"? | "pred") - //name=Identifier - //"(" (parameters+=Parameter ("," parameters+=Parameter)*)? ")" - //(":-" bodies+=Conjunction (";" bodies+=Conjunction)*)? - //"." - public Group getGroup() { return cGroup; } - - //(error?="error" "pred"? | "pred") - public Alternatives getAlternatives_0() { return cAlternatives_0; } - - //error?="error" "pred"? - public Group getGroup_0_0() { return cGroup_0_0; } - - //error?="error" - public Assignment getErrorAssignment_0_0_0() { return cErrorAssignment_0_0_0; } - - //"error" - public Keyword getErrorErrorKeyword_0_0_0_0() { return cErrorErrorKeyword_0_0_0_0; } - - //"pred"? - public Keyword getPredKeyword_0_0_1() { return cPredKeyword_0_0_1; } - - //"pred" - public Keyword getPredKeyword_0_1() { return cPredKeyword_0_1; } - - //name=Identifier - public Assignment getNameAssignment_1() { return cNameAssignment_1; } - - //Identifier - public RuleCall getNameIdentifierParserRuleCall_1_0() { return cNameIdentifierParserRuleCall_1_0; } - - //"(" - public Keyword getLeftParenthesisKeyword_2() { return cLeftParenthesisKeyword_2; } - - //(parameters+=Parameter ("," parameters+=Parameter)*)? - public Group getGroup_3() { return cGroup_3; } - - //parameters+=Parameter - public Assignment getParametersAssignment_3_0() { return cParametersAssignment_3_0; } - - //Parameter - public RuleCall getParametersParameterParserRuleCall_3_0_0() { return cParametersParameterParserRuleCall_3_0_0; } - - //("," parameters+=Parameter)* - public Group getGroup_3_1() { return cGroup_3_1; } - - //"," - public Keyword getCommaKeyword_3_1_0() { return cCommaKeyword_3_1_0; } - - //parameters+=Parameter - public Assignment getParametersAssignment_3_1_1() { return cParametersAssignment_3_1_1; } - - //Parameter - public RuleCall getParametersParameterParserRuleCall_3_1_1_0() { return cParametersParameterParserRuleCall_3_1_1_0; } - - //")" - public Keyword getRightParenthesisKeyword_4() { return cRightParenthesisKeyword_4; } - - //(":-" bodies+=Conjunction (";" bodies+=Conjunction)*)? - public Group getGroup_5() { return cGroup_5; } - - //":-" - public Keyword getColonHyphenMinusKeyword_5_0() { return cColonHyphenMinusKeyword_5_0; } - - //bodies+=Conjunction - public Assignment getBodiesAssignment_5_1() { return cBodiesAssignment_5_1; } - - //Conjunction - public RuleCall getBodiesConjunctionParserRuleCall_5_1_0() { return cBodiesConjunctionParserRuleCall_5_1_0; } - - //(";" bodies+=Conjunction)* - public Group getGroup_5_2() { return cGroup_5_2; } - - //";" - public Keyword getSemicolonKeyword_5_2_0() { return cSemicolonKeyword_5_2_0; } - - //bodies+=Conjunction - public Assignment getBodiesAssignment_5_2_1() { return cBodiesAssignment_5_2_1; } - - //Conjunction - public RuleCall getBodiesConjunctionParserRuleCall_5_2_1_0() { return cBodiesConjunctionParserRuleCall_5_2_1_0; } - - //"." - public Keyword getFullStopKeyword_6() { return cFullStopKeyword_6; } - } - public class ParameterElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.Parameter"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Assignment cParameterTypeAssignment_0 = (Assignment)cGroup.eContents().get(0); - private final CrossReference cParameterTypeRelationCrossReference_0_0 = (CrossReference)cParameterTypeAssignment_0.eContents().get(0); - private final RuleCall cParameterTypeRelationQualifiedNameParserRuleCall_0_0_1 = (RuleCall)cParameterTypeRelationCrossReference_0_0.eContents().get(1); - private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1); - private final RuleCall cNameIdentifierParserRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0); - - //Parameter: - // parameterType=[Relation|QualifiedName]? name=Identifier; - @Override public ParserRule getRule() { return rule; } - - //parameterType=[Relation|QualifiedName]? name=Identifier - public Group getGroup() { return cGroup; } - - //parameterType=[Relation|QualifiedName]? - public Assignment getParameterTypeAssignment_0() { return cParameterTypeAssignment_0; } - - //[Relation|QualifiedName] - public CrossReference getParameterTypeRelationCrossReference_0_0() { return cParameterTypeRelationCrossReference_0_0; } - - //QualifiedName - public RuleCall getParameterTypeRelationQualifiedNameParserRuleCall_0_0_1() { return cParameterTypeRelationQualifiedNameParserRuleCall_0_0_1; } - - //name=Identifier - public Assignment getNameAssignment_1() { return cNameAssignment_1; } - - //Identifier - public RuleCall getNameIdentifierParserRuleCall_1_0() { return cNameIdentifierParserRuleCall_1_0; } - } - public class ConjunctionElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.Conjunction"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Assignment cLiteralsAssignment_0 = (Assignment)cGroup.eContents().get(0); - private final RuleCall cLiteralsLiteralParserRuleCall_0_0 = (RuleCall)cLiteralsAssignment_0.eContents().get(0); - private final Group cGroup_1 = (Group)cGroup.eContents().get(1); - private final Keyword cCommaKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0); - private final Assignment cLiteralsAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1); - private final RuleCall cLiteralsLiteralParserRuleCall_1_1_0 = (RuleCall)cLiteralsAssignment_1_1.eContents().get(0); - - //Conjunction: - // literals+=Literal ("," literals+=Literal)*; - @Override public ParserRule getRule() { return rule; } - - //literals+=Literal ("," literals+=Literal)* - public Group getGroup() { return cGroup; } - - //literals+=Literal - public Assignment getLiteralsAssignment_0() { return cLiteralsAssignment_0; } - - //Literal - public RuleCall getLiteralsLiteralParserRuleCall_0_0() { return cLiteralsLiteralParserRuleCall_0_0; } - - //("," literals+=Literal)* - public Group getGroup_1() { return cGroup_1; } - - //"," - public Keyword getCommaKeyword_1_0() { return cCommaKeyword_1_0; } - - //literals+=Literal - public Assignment getLiteralsAssignment_1_1() { return cLiteralsAssignment_1_1; } - - //Literal - public RuleCall getLiteralsLiteralParserRuleCall_1_1_0() { return cLiteralsLiteralParserRuleCall_1_1_0; } - } - public class LiteralElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.Literal"); - private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); - private final RuleCall cAtomParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); - private final RuleCall cNegativeLiteralParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); - - //Literal: - // Atom | NegativeLiteral; - @Override public ParserRule getRule() { return rule; } - - //Atom | NegativeLiteral - public Alternatives getAlternatives() { return cAlternatives; } - - //Atom - public RuleCall getAtomParserRuleCall_0() { return cAtomParserRuleCall_0; } - - //NegativeLiteral - public RuleCall getNegativeLiteralParserRuleCall_1() { return cNegativeLiteralParserRuleCall_1; } - } - public class NegativeLiteralElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.NegativeLiteral"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Keyword cExclamationMarkKeyword_0 = (Keyword)cGroup.eContents().get(0); - private final Assignment cAtomAssignment_1 = (Assignment)cGroup.eContents().get(1); - private final RuleCall cAtomAtomParserRuleCall_1_0 = (RuleCall)cAtomAssignment_1.eContents().get(0); - - //NegativeLiteral: - // "!" atom=Atom; - @Override public ParserRule getRule() { return rule; } - - //"!" atom=Atom - public Group getGroup() { return cGroup; } - - //"!" - public Keyword getExclamationMarkKeyword_0() { return cExclamationMarkKeyword_0; } - - //atom=Atom - public Assignment getAtomAssignment_1() { return cAtomAssignment_1; } - - //Atom - public RuleCall getAtomAtomParserRuleCall_1_0() { return cAtomAtomParserRuleCall_1_0; } - } - public class AtomElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.Atom"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Assignment cRelationAssignment_0 = (Assignment)cGroup.eContents().get(0); - private final CrossReference cRelationRelationCrossReference_0_0 = (CrossReference)cRelationAssignment_0.eContents().get(0); - private final RuleCall cRelationRelationQualifiedNameParserRuleCall_0_0_1 = (RuleCall)cRelationRelationCrossReference_0_0.eContents().get(1); - private final Assignment cTransitiveClosureAssignment_1 = (Assignment)cGroup.eContents().get(1); - private final Keyword cTransitiveClosurePlusSignKeyword_1_0 = (Keyword)cTransitiveClosureAssignment_1.eContents().get(0); - private final Keyword cLeftParenthesisKeyword_2 = (Keyword)cGroup.eContents().get(2); - private final Group cGroup_3 = (Group)cGroup.eContents().get(3); - private final Assignment cArgumentsAssignment_3_0 = (Assignment)cGroup_3.eContents().get(0); - private final RuleCall cArgumentsArgumentParserRuleCall_3_0_0 = (RuleCall)cArgumentsAssignment_3_0.eContents().get(0); - private final Group cGroup_3_1 = (Group)cGroup_3.eContents().get(1); - private final Keyword cCommaKeyword_3_1_0 = (Keyword)cGroup_3_1.eContents().get(0); - private final Assignment cArgumentsAssignment_3_1_1 = (Assignment)cGroup_3_1.eContents().get(1); - private final RuleCall cArgumentsArgumentParserRuleCall_3_1_1_0 = (RuleCall)cArgumentsAssignment_3_1_1.eContents().get(0); - private final Keyword cRightParenthesisKeyword_4 = (Keyword)cGroup.eContents().get(4); - - //Atom: - // relation=[Relation|QualifiedName] - // transitiveClosure?="+"? - // "(" (arguments+=Argument ("," arguments+=Argument)*)? ")"; - @Override public ParserRule getRule() { return rule; } - - //relation=[Relation|QualifiedName] - //transitiveClosure?="+"? - //"(" (arguments+=Argument ("," arguments+=Argument)*)? ")" - public Group getGroup() { return cGroup; } - - //relation=[Relation|QualifiedName] - public Assignment getRelationAssignment_0() { return cRelationAssignment_0; } - - //[Relation|QualifiedName] - public CrossReference getRelationRelationCrossReference_0_0() { return cRelationRelationCrossReference_0_0; } - - //QualifiedName - public RuleCall getRelationRelationQualifiedNameParserRuleCall_0_0_1() { return cRelationRelationQualifiedNameParserRuleCall_0_0_1; } - - //transitiveClosure?="+"? - public Assignment getTransitiveClosureAssignment_1() { return cTransitiveClosureAssignment_1; } - - //"+" - public Keyword getTransitiveClosurePlusSignKeyword_1_0() { return cTransitiveClosurePlusSignKeyword_1_0; } - - //"(" - public Keyword getLeftParenthesisKeyword_2() { return cLeftParenthesisKeyword_2; } - - //(arguments+=Argument ("," arguments+=Argument)*)? - public Group getGroup_3() { return cGroup_3; } - - //arguments+=Argument - public Assignment getArgumentsAssignment_3_0() { return cArgumentsAssignment_3_0; } - - //Argument - public RuleCall getArgumentsArgumentParserRuleCall_3_0_0() { return cArgumentsArgumentParserRuleCall_3_0_0; } - - //("," arguments+=Argument)* - public Group getGroup_3_1() { return cGroup_3_1; } - - //"," - public Keyword getCommaKeyword_3_1_0() { return cCommaKeyword_3_1_0; } - - //arguments+=Argument - public Assignment getArgumentsAssignment_3_1_1() { return cArgumentsAssignment_3_1_1; } - - //Argument - public RuleCall getArgumentsArgumentParserRuleCall_3_1_1_0() { return cArgumentsArgumentParserRuleCall_3_1_1_0; } - - //")" - public Keyword getRightParenthesisKeyword_4() { return cRightParenthesisKeyword_4; } - } - public class ArgumentElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.Argument"); - private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); - private final RuleCall cVariableOrNodeArgumentParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); - private final RuleCall cConstantArgumentParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); - - //Argument: - // VariableOrNodeArgument | ConstantArgument; - @Override public ParserRule getRule() { return rule; } - - //VariableOrNodeArgument | ConstantArgument - public Alternatives getAlternatives() { return cAlternatives; } - - //VariableOrNodeArgument - public RuleCall getVariableOrNodeArgumentParserRuleCall_0() { return cVariableOrNodeArgumentParserRuleCall_0; } - - //ConstantArgument - public RuleCall getConstantArgumentParserRuleCall_1() { return cConstantArgumentParserRuleCall_1; } - } - public class VariableOrNodeArgumentElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.VariableOrNodeArgument"); - private final Assignment cVariableOrNodeAssignment = (Assignment)rule.eContents().get(1); - private final CrossReference cVariableOrNodeVariableOrNodeCrossReference_0 = (CrossReference)cVariableOrNodeAssignment.eContents().get(0); - private final RuleCall cVariableOrNodeVariableOrNodeQualifiedNameParserRuleCall_0_1 = (RuleCall)cVariableOrNodeVariableOrNodeCrossReference_0.eContents().get(1); - - //VariableOrNodeArgument: - // variableOrNode=[VariableOrNode|QualifiedName]; - @Override public ParserRule getRule() { return rule; } - - //variableOrNode=[VariableOrNode|QualifiedName] - public Assignment getVariableOrNodeAssignment() { return cVariableOrNodeAssignment; } - - //[VariableOrNode|QualifiedName] - public CrossReference getVariableOrNodeVariableOrNodeCrossReference_0() { return cVariableOrNodeVariableOrNodeCrossReference_0; } - - //QualifiedName - public RuleCall getVariableOrNodeVariableOrNodeQualifiedNameParserRuleCall_0_1() { return cVariableOrNodeVariableOrNodeQualifiedNameParserRuleCall_0_1; } - } - public class ConstantArgumentElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.ConstantArgument"); - private final Assignment cConstantAssignment = (Assignment)rule.eContents().get(1); - private final RuleCall cConstantConstantParserRuleCall_0 = (RuleCall)cConstantAssignment.eContents().get(0); - - //ConstantArgument: - // constant=Constant; - @Override public ParserRule getRule() { return rule; } - - //constant=Constant - public Assignment getConstantAssignment() { return cConstantAssignment; } - - //Constant - public RuleCall getConstantConstantParserRuleCall_0() { return cConstantConstantParserRuleCall_0; } - } - public class AssertionElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.Assertion"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Alternatives cAlternatives_0 = (Alternatives)cGroup.eContents().get(0); - private final Group cGroup_0_0 = (Group)cAlternatives_0.eContents().get(0); - private final Assignment cRelationAssignment_0_0_0 = (Assignment)cGroup_0_0.eContents().get(0); - private final CrossReference cRelationRelationCrossReference_0_0_0_0 = (CrossReference)cRelationAssignment_0_0_0.eContents().get(0); - private final RuleCall cRelationRelationQualifiedNameParserRuleCall_0_0_0_0_1 = (RuleCall)cRelationRelationCrossReference_0_0_0_0.eContents().get(1); - private final Keyword cLeftParenthesisKeyword_0_0_1 = (Keyword)cGroup_0_0.eContents().get(1); - private final Group cGroup_0_0_2 = (Group)cGroup_0_0.eContents().get(2); - private final Assignment cArgumentsAssignment_0_0_2_0 = (Assignment)cGroup_0_0_2.eContents().get(0); - private final RuleCall cArgumentsAssertionArgumentParserRuleCall_0_0_2_0_0 = (RuleCall)cArgumentsAssignment_0_0_2_0.eContents().get(0); - private final Group cGroup_0_0_2_1 = (Group)cGroup_0_0_2.eContents().get(1); - private final Keyword cCommaKeyword_0_0_2_1_0 = (Keyword)cGroup_0_0_2_1.eContents().get(0); - private final Assignment cArgumentsAssignment_0_0_2_1_1 = (Assignment)cGroup_0_0_2_1.eContents().get(1); - private final RuleCall cArgumentsAssertionArgumentParserRuleCall_0_0_2_1_1_0 = (RuleCall)cArgumentsAssignment_0_0_2_1_1.eContents().get(0); - private final Keyword cRightParenthesisKeyword_0_0_3 = (Keyword)cGroup_0_0.eContents().get(3); - private final Keyword cColonKeyword_0_0_4 = (Keyword)cGroup_0_0.eContents().get(4); - private final Assignment cValueAssignment_0_0_5 = (Assignment)cGroup_0_0.eContents().get(5); - private final RuleCall cValueLogicValueEnumRuleCall_0_0_5_0 = (RuleCall)cValueAssignment_0_0_5.eContents().get(0); - private final Group cGroup_0_1 = (Group)cAlternatives_0.eContents().get(1); - private final Assignment cValueAssignment_0_1_0 = (Assignment)cGroup_0_1.eContents().get(0); - private final RuleCall cValueShortLogicValueEnumRuleCall_0_1_0_0 = (RuleCall)cValueAssignment_0_1_0.eContents().get(0); - private final Assignment cRelationAssignment_0_1_1 = (Assignment)cGroup_0_1.eContents().get(1); - private final CrossReference cRelationRelationCrossReference_0_1_1_0 = (CrossReference)cRelationAssignment_0_1_1.eContents().get(0); - private final RuleCall cRelationRelationQualifiedNameParserRuleCall_0_1_1_0_1 = (RuleCall)cRelationRelationCrossReference_0_1_1_0.eContents().get(1); - private final Keyword cLeftParenthesisKeyword_0_1_2 = (Keyword)cGroup_0_1.eContents().get(2); - private final Group cGroup_0_1_3 = (Group)cGroup_0_1.eContents().get(3); - private final Assignment cArgumentsAssignment_0_1_3_0 = (Assignment)cGroup_0_1_3.eContents().get(0); - private final RuleCall cArgumentsAssertionArgumentParserRuleCall_0_1_3_0_0 = (RuleCall)cArgumentsAssignment_0_1_3_0.eContents().get(0); - private final Group cGroup_0_1_3_1 = (Group)cGroup_0_1_3.eContents().get(1); - private final Keyword cCommaKeyword_0_1_3_1_0 = (Keyword)cGroup_0_1_3_1.eContents().get(0); - private final Assignment cArgumentsAssignment_0_1_3_1_1 = (Assignment)cGroup_0_1_3_1.eContents().get(1); - private final RuleCall cArgumentsAssertionArgumentParserRuleCall_0_1_3_1_1_0 = (RuleCall)cArgumentsAssignment_0_1_3_1_1.eContents().get(0); - private final Keyword cRightParenthesisKeyword_0_1_4 = (Keyword)cGroup_0_1.eContents().get(4); - private final Keyword cFullStopKeyword_1 = (Keyword)cGroup.eContents().get(1); - - //Assertion: - // (relation=[Relation|QualifiedName] - // "(" (arguments+=AssertionArgument ("," arguments+=AssertionArgument)*)? ")" - // ":" value=LogicValue | - // value=ShortLogicValue? - // relation=[Relation|QualifiedName] - // "(" (arguments+=AssertionArgument ("," arguments+=AssertionArgument)*)? ")") - // "."; - @Override public ParserRule getRule() { return rule; } - - //(relation=[Relation|QualifiedName] - //"(" (arguments+=AssertionArgument ("," arguments+=AssertionArgument)*)? ")" - //":" value=LogicValue | - //value=ShortLogicValue? - //relation=[Relation|QualifiedName] - //"(" (arguments+=AssertionArgument ("," arguments+=AssertionArgument)*)? ")") - //"." - public Group getGroup() { return cGroup; } - - //(relation=[Relation|QualifiedName] - //"(" (arguments+=AssertionArgument ("," arguments+=AssertionArgument)*)? ")" - //":" value=LogicValue | - //value=ShortLogicValue? - //relation=[Relation|QualifiedName] - //"(" (arguments+=AssertionArgument ("," arguments+=AssertionArgument)*)? ")") - public Alternatives getAlternatives_0() { return cAlternatives_0; } - - //relation=[Relation|QualifiedName] - // "(" (arguments+=AssertionArgument ("," arguments+=AssertionArgument)*)? ")" - // ":" value=LogicValue - public Group getGroup_0_0() { return cGroup_0_0; } - - //relation=[Relation|QualifiedName] - public Assignment getRelationAssignment_0_0_0() { return cRelationAssignment_0_0_0; } - - //[Relation|QualifiedName] - public CrossReference getRelationRelationCrossReference_0_0_0_0() { return cRelationRelationCrossReference_0_0_0_0; } - - //QualifiedName - public RuleCall getRelationRelationQualifiedNameParserRuleCall_0_0_0_0_1() { return cRelationRelationQualifiedNameParserRuleCall_0_0_0_0_1; } - - //"(" - public Keyword getLeftParenthesisKeyword_0_0_1() { return cLeftParenthesisKeyword_0_0_1; } - - //(arguments+=AssertionArgument ("," arguments+=AssertionArgument)*)? - public Group getGroup_0_0_2() { return cGroup_0_0_2; } - - //arguments+=AssertionArgument - public Assignment getArgumentsAssignment_0_0_2_0() { return cArgumentsAssignment_0_0_2_0; } - - //AssertionArgument - public RuleCall getArgumentsAssertionArgumentParserRuleCall_0_0_2_0_0() { return cArgumentsAssertionArgumentParserRuleCall_0_0_2_0_0; } - - //("," arguments+=AssertionArgument)* - public Group getGroup_0_0_2_1() { return cGroup_0_0_2_1; } - - //"," - public Keyword getCommaKeyword_0_0_2_1_0() { return cCommaKeyword_0_0_2_1_0; } - - //arguments+=AssertionArgument - public Assignment getArgumentsAssignment_0_0_2_1_1() { return cArgumentsAssignment_0_0_2_1_1; } - - //AssertionArgument - public RuleCall getArgumentsAssertionArgumentParserRuleCall_0_0_2_1_1_0() { return cArgumentsAssertionArgumentParserRuleCall_0_0_2_1_1_0; } - - //")" - public Keyword getRightParenthesisKeyword_0_0_3() { return cRightParenthesisKeyword_0_0_3; } - - //":" - public Keyword getColonKeyword_0_0_4() { return cColonKeyword_0_0_4; } - - //value=LogicValue - public Assignment getValueAssignment_0_0_5() { return cValueAssignment_0_0_5; } - - //LogicValue - public RuleCall getValueLogicValueEnumRuleCall_0_0_5_0() { return cValueLogicValueEnumRuleCall_0_0_5_0; } - - //value=ShortLogicValue? - //relation=[Relation|QualifiedName] - //"(" (arguments+=AssertionArgument ("," arguments+=AssertionArgument)*)? ")" - public Group getGroup_0_1() { return cGroup_0_1; } - - //value=ShortLogicValue? - public Assignment getValueAssignment_0_1_0() { return cValueAssignment_0_1_0; } - - //ShortLogicValue - public RuleCall getValueShortLogicValueEnumRuleCall_0_1_0_0() { return cValueShortLogicValueEnumRuleCall_0_1_0_0; } - - //relation=[Relation|QualifiedName] - public Assignment getRelationAssignment_0_1_1() { return cRelationAssignment_0_1_1; } - - //[Relation|QualifiedName] - public CrossReference getRelationRelationCrossReference_0_1_1_0() { return cRelationRelationCrossReference_0_1_1_0; } - - //QualifiedName - public RuleCall getRelationRelationQualifiedNameParserRuleCall_0_1_1_0_1() { return cRelationRelationQualifiedNameParserRuleCall_0_1_1_0_1; } - - //"(" - public Keyword getLeftParenthesisKeyword_0_1_2() { return cLeftParenthesisKeyword_0_1_2; } - - //(arguments+=AssertionArgument ("," arguments+=AssertionArgument)*)? - public Group getGroup_0_1_3() { return cGroup_0_1_3; } - - //arguments+=AssertionArgument - public Assignment getArgumentsAssignment_0_1_3_0() { return cArgumentsAssignment_0_1_3_0; } - - //AssertionArgument - public RuleCall getArgumentsAssertionArgumentParserRuleCall_0_1_3_0_0() { return cArgumentsAssertionArgumentParserRuleCall_0_1_3_0_0; } - - //("," arguments+=AssertionArgument)* - public Group getGroup_0_1_3_1() { return cGroup_0_1_3_1; } - - //"," - public Keyword getCommaKeyword_0_1_3_1_0() { return cCommaKeyword_0_1_3_1_0; } - - //arguments+=AssertionArgument - public Assignment getArgumentsAssignment_0_1_3_1_1() { return cArgumentsAssignment_0_1_3_1_1; } - - //AssertionArgument - public RuleCall getArgumentsAssertionArgumentParserRuleCall_0_1_3_1_1_0() { return cArgumentsAssertionArgumentParserRuleCall_0_1_3_1_1_0; } - - //")" - public Keyword getRightParenthesisKeyword_0_1_4() { return cRightParenthesisKeyword_0_1_4; } - - //"." - public Keyword getFullStopKeyword_1() { return cFullStopKeyword_1; } - } - public class AssertionArgumentElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.AssertionArgument"); - private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); - private final RuleCall cNodeAssertionArgumentParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); - private final RuleCall cConstantAssertionArgumentParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); - - //AssertionArgument: - // NodeAssertionArgument | ConstantAssertionArgument; - @Override public ParserRule getRule() { return rule; } - - //NodeAssertionArgument | ConstantAssertionArgument - public Alternatives getAlternatives() { return cAlternatives; } - - //NodeAssertionArgument - public RuleCall getNodeAssertionArgumentParserRuleCall_0() { return cNodeAssertionArgumentParserRuleCall_0; } - - //ConstantAssertionArgument - public RuleCall getConstantAssertionArgumentParserRuleCall_1() { return cConstantAssertionArgumentParserRuleCall_1; } - } - public class NodeAssertionArgumentElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.NodeAssertionArgument"); - private final Assignment cNodeAssignment = (Assignment)rule.eContents().get(1); - private final CrossReference cNodeNodeCrossReference_0 = (CrossReference)cNodeAssignment.eContents().get(0); - private final RuleCall cNodeNodeQualifiedNameParserRuleCall_0_1 = (RuleCall)cNodeNodeCrossReference_0.eContents().get(1); - - //NodeAssertionArgument: - // node=[Node|QualifiedName]; - @Override public ParserRule getRule() { return rule; } - - //node=[Node|QualifiedName] - public Assignment getNodeAssignment() { return cNodeAssignment; } - - //[Node|QualifiedName] - public CrossReference getNodeNodeCrossReference_0() { return cNodeNodeCrossReference_0; } - - //QualifiedName - public RuleCall getNodeNodeQualifiedNameParserRuleCall_0_1() { return cNodeNodeQualifiedNameParserRuleCall_0_1; } - } - public class ConstantAssertionArgumentElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.ConstantAssertionArgument"); - private final Assignment cConstantAssignment = (Assignment)rule.eContents().get(1); - private final RuleCall cConstantConstantParserRuleCall_0 = (RuleCall)cConstantAssignment.eContents().get(0); - - //ConstantAssertionArgument: - // constant=Constant; - @Override public ParserRule getRule() { return rule; } - - //constant=Constant - public Assignment getConstantAssignment() { return cConstantAssignment; } - - //Constant - public RuleCall getConstantConstantParserRuleCall_0() { return cConstantConstantParserRuleCall_0; } - } - public class NodeValueAssertionElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.NodeValueAssertion"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Assignment cNodeAssignment_0 = (Assignment)cGroup.eContents().get(0); - private final CrossReference cNodeNodeCrossReference_0_0 = (CrossReference)cNodeAssignment_0.eContents().get(0); - private final RuleCall cNodeNodeQualifiedNameParserRuleCall_0_0_1 = (RuleCall)cNodeNodeCrossReference_0_0.eContents().get(1); - private final Keyword cColonKeyword_1 = (Keyword)cGroup.eContents().get(1); - private final Assignment cValueAssignment_2 = (Assignment)cGroup.eContents().get(2); - private final RuleCall cValueConstantParserRuleCall_2_0 = (RuleCall)cValueAssignment_2.eContents().get(0); - private final Keyword cFullStopKeyword_3 = (Keyword)cGroup.eContents().get(3); - - //NodeValueAssertion: - // node=[Node|QualifiedName] ":" value=Constant "."; - @Override public ParserRule getRule() { return rule; } - - //node=[Node|QualifiedName] ":" value=Constant "." - public Group getGroup() { return cGroup; } - - //node=[Node|QualifiedName] - public Assignment getNodeAssignment_0() { return cNodeAssignment_0; } - - //[Node|QualifiedName] - public CrossReference getNodeNodeCrossReference_0_0() { return cNodeNodeCrossReference_0_0; } - - //QualifiedName - public RuleCall getNodeNodeQualifiedNameParserRuleCall_0_0_1() { return cNodeNodeQualifiedNameParserRuleCall_0_0_1; } - - //":" - public Keyword getColonKeyword_1() { return cColonKeyword_1; } - - //value=Constant - public Assignment getValueAssignment_2() { return cValueAssignment_2; } - - //Constant - public RuleCall getValueConstantParserRuleCall_2_0() { return cValueConstantParserRuleCall_2_0; } - - //"." - public Keyword getFullStopKeyword_3() { return cFullStopKeyword_3; } - } - public class ConstantElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.Constant"); - private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); - private final RuleCall cRealConstantParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); - private final RuleCall cIntConstantParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); - private final RuleCall cStringConstantParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2); - - //Constant: - // RealConstant | IntConstant | StringConstant; - @Override public ParserRule getRule() { return rule; } - - //RealConstant | IntConstant | StringConstant - public Alternatives getAlternatives() { return cAlternatives; } - - //RealConstant - public RuleCall getRealConstantParserRuleCall_0() { return cRealConstantParserRuleCall_0; } - - //IntConstant - public RuleCall getIntConstantParserRuleCall_1() { return cIntConstantParserRuleCall_1; } - - //StringConstant - public RuleCall getStringConstantParserRuleCall_2() { return cStringConstantParserRuleCall_2; } - } - public class IntConstantElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.IntConstant"); - private final Assignment cIntValueAssignment = (Assignment)rule.eContents().get(1); - private final RuleCall cIntValueIntegerParserRuleCall_0 = (RuleCall)cIntValueAssignment.eContents().get(0); - - //IntConstant: - // intValue=Integer; - @Override public ParserRule getRule() { return rule; } - - //intValue=Integer - public Assignment getIntValueAssignment() { return cIntValueAssignment; } - - //Integer - public RuleCall getIntValueIntegerParserRuleCall_0() { return cIntValueIntegerParserRuleCall_0; } - } - public class RealConstantElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.RealConstant"); - private final Assignment cRealValueAssignment = (Assignment)rule.eContents().get(1); - private final RuleCall cRealValueRealParserRuleCall_0 = (RuleCall)cRealValueAssignment.eContents().get(0); - - //RealConstant: - // realValue=Real; - @Override public ParserRule getRule() { return rule; } - - //realValue=Real - public Assignment getRealValueAssignment() { return cRealValueAssignment; } - - //Real - public RuleCall getRealValueRealParserRuleCall_0() { return cRealValueRealParserRuleCall_0; } - } - public class StringConstantElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.StringConstant"); - private final Assignment cStringValueAssignment = (Assignment)rule.eContents().get(1); - private final RuleCall cStringValueSTRINGTerminalRuleCall_0 = (RuleCall)cStringValueAssignment.eContents().get(0); - - //StringConstant: - // stringValue=STRING; - @Override public ParserRule getRule() { return rule; } - - //stringValue=STRING - public Assignment getStringValueAssignment() { return cStringValueAssignment; } - - //STRING - public RuleCall getStringValueSTRINGTerminalRuleCall_0() { return cStringValueSTRINGTerminalRuleCall_0; } - } - public class ScopeDeclarationElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.ScopeDeclaration"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Keyword cScopeKeyword_0 = (Keyword)cGroup.eContents().get(0); - private final Assignment cTypeScopesAssignment_1 = (Assignment)cGroup.eContents().get(1); - private final RuleCall cTypeScopesTypeScopeParserRuleCall_1_0 = (RuleCall)cTypeScopesAssignment_1.eContents().get(0); - private final Group cGroup_2 = (Group)cGroup.eContents().get(2); - private final Keyword cCommaKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0); - private final Assignment cTypeScopesAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1); - private final RuleCall cTypeScopesTypeScopeParserRuleCall_2_1_0 = (RuleCall)cTypeScopesAssignment_2_1.eContents().get(0); - private final Keyword cFullStopKeyword_3 = (Keyword)cGroup.eContents().get(3); - - //ScopeDeclaration: - // "scope" typeScopes+=TypeScope ("," typeScopes+=TypeScope)* "."; - @Override public ParserRule getRule() { return rule; } - - //"scope" typeScopes+=TypeScope ("," typeScopes+=TypeScope)* "." - public Group getGroup() { return cGroup; } - - //"scope" - public Keyword getScopeKeyword_0() { return cScopeKeyword_0; } - - //typeScopes+=TypeScope - public Assignment getTypeScopesAssignment_1() { return cTypeScopesAssignment_1; } - - //TypeScope - public RuleCall getTypeScopesTypeScopeParserRuleCall_1_0() { return cTypeScopesTypeScopeParserRuleCall_1_0; } - - //("," typeScopes+=TypeScope)* - public Group getGroup_2() { return cGroup_2; } - - //"," - public Keyword getCommaKeyword_2_0() { return cCommaKeyword_2_0; } - - //typeScopes+=TypeScope - public Assignment getTypeScopesAssignment_2_1() { return cTypeScopesAssignment_2_1; } - - //TypeScope - public RuleCall getTypeScopesTypeScopeParserRuleCall_2_1_0() { return cTypeScopesTypeScopeParserRuleCall_2_1_0; } - - //"." - public Keyword getFullStopKeyword_3() { return cFullStopKeyword_3; } - } - public class TypeScopeElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.TypeScope"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Assignment cTargetTypeAssignment_0 = (Assignment)cGroup.eContents().get(0); - private final CrossReference cTargetTypeClassDeclarationCrossReference_0_0 = (CrossReference)cTargetTypeAssignment_0.eContents().get(0); - private final RuleCall cTargetTypeClassDeclarationIDTerminalRuleCall_0_0_1 = (RuleCall)cTargetTypeClassDeclarationCrossReference_0_0.eContents().get(1); - private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1); - private final Assignment cIncrementAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0); - private final Keyword cIncrementPlusSignEqualsSignKeyword_1_0_0 = (Keyword)cIncrementAssignment_1_0.eContents().get(0); - private final Keyword cEqualsSignKeyword_1_1 = (Keyword)cAlternatives_1.eContents().get(1); - private final Assignment cMultiplicityAssignment_2 = (Assignment)cGroup.eContents().get(2); - private final RuleCall cMultiplicityDefiniteMultiplicityParserRuleCall_2_0 = (RuleCall)cMultiplicityAssignment_2.eContents().get(0); - - //TypeScope: - // targetType=[ClassDeclaration] - // (increment?="+=" | "=") - // multiplicity=DefiniteMultiplicity; - @Override public ParserRule getRule() { return rule; } - - //targetType=[ClassDeclaration] - //(increment?="+=" | "=") - //multiplicity=DefiniteMultiplicity - public Group getGroup() { return cGroup; } - - //targetType=[ClassDeclaration] - public Assignment getTargetTypeAssignment_0() { return cTargetTypeAssignment_0; } - - //[ClassDeclaration] - public CrossReference getTargetTypeClassDeclarationCrossReference_0_0() { return cTargetTypeClassDeclarationCrossReference_0_0; } - - //ID - public RuleCall getTargetTypeClassDeclarationIDTerminalRuleCall_0_0_1() { return cTargetTypeClassDeclarationIDTerminalRuleCall_0_0_1; } - - //(increment?="+=" | "=") - public Alternatives getAlternatives_1() { return cAlternatives_1; } - - //increment?="+=" - public Assignment getIncrementAssignment_1_0() { return cIncrementAssignment_1_0; } - - //"+=" - public Keyword getIncrementPlusSignEqualsSignKeyword_1_0_0() { return cIncrementPlusSignEqualsSignKeyword_1_0_0; } - - //"=" - public Keyword getEqualsSignKeyword_1_1() { return cEqualsSignKeyword_1_1; } - - //multiplicity=DefiniteMultiplicity - public Assignment getMultiplicityAssignment_2() { return cMultiplicityAssignment_2; } - - //DefiniteMultiplicity - public RuleCall getMultiplicityDefiniteMultiplicityParserRuleCall_2_0() { return cMultiplicityDefiniteMultiplicityParserRuleCall_2_0; } - } - public class MultiplicityElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.Multiplicity"); - private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); - private final RuleCall cUnboundedMultiplicityParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); - private final RuleCall cDefiniteMultiplicityParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); - - //Multiplicity: - // UnboundedMultiplicity | DefiniteMultiplicity; - @Override public ParserRule getRule() { return rule; } - - //UnboundedMultiplicity | DefiniteMultiplicity - public Alternatives getAlternatives() { return cAlternatives; } - - //UnboundedMultiplicity - public RuleCall getUnboundedMultiplicityParserRuleCall_0() { return cUnboundedMultiplicityParserRuleCall_0; } - - //DefiniteMultiplicity - public RuleCall getDefiniteMultiplicityParserRuleCall_1() { return cDefiniteMultiplicityParserRuleCall_1; } - } - public class DefiniteMultiplicityElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.DefiniteMultiplicity"); - private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); - private final RuleCall cRangeMultiplicityParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); - private final RuleCall cExactMultiplicityParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); - - //DefiniteMultiplicity returns Multiplicity: - // RangeMultiplicity | ExactMultiplicity; - @Override public ParserRule getRule() { return rule; } - - //RangeMultiplicity | ExactMultiplicity - public Alternatives getAlternatives() { return cAlternatives; } - - //RangeMultiplicity - public RuleCall getRangeMultiplicityParserRuleCall_0() { return cRangeMultiplicityParserRuleCall_0; } - - //ExactMultiplicity - public RuleCall getExactMultiplicityParserRuleCall_1() { return cExactMultiplicityParserRuleCall_1; } - } - public class UnboundedMultiplicityElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.UnboundedMultiplicity"); - private final Action cUnboundedMultiplicityAction = (Action)rule.eContents().get(1); - - //UnboundedMultiplicity: - // {UnboundedMultiplicity}; - @Override public ParserRule getRule() { return rule; } - - //{UnboundedMultiplicity} - public Action getUnboundedMultiplicityAction() { return cUnboundedMultiplicityAction; } - } - public class RangeMultiplicityElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.RangeMultiplicity"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Assignment cLowerBoundAssignment_0 = (Assignment)cGroup.eContents().get(0); - private final RuleCall cLowerBoundINTTerminalRuleCall_0_0 = (RuleCall)cLowerBoundAssignment_0.eContents().get(0); - private final Keyword cFullStopFullStopKeyword_1 = (Keyword)cGroup.eContents().get(1); - private final Assignment cUpperBoundAssignment_2 = (Assignment)cGroup.eContents().get(2); - private final RuleCall cUpperBoundUpperBoundParserRuleCall_2_0 = (RuleCall)cUpperBoundAssignment_2.eContents().get(0); - - //RangeMultiplicity: - // lowerBound=INT ".." upperBound=UpperBound; - @Override public ParserRule getRule() { return rule; } - - //lowerBound=INT ".." upperBound=UpperBound - public Group getGroup() { return cGroup; } - - //lowerBound=INT - public Assignment getLowerBoundAssignment_0() { return cLowerBoundAssignment_0; } - - //INT - public RuleCall getLowerBoundINTTerminalRuleCall_0_0() { return cLowerBoundINTTerminalRuleCall_0_0; } - - //".." - public Keyword getFullStopFullStopKeyword_1() { return cFullStopFullStopKeyword_1; } - - //upperBound=UpperBound - public Assignment getUpperBoundAssignment_2() { return cUpperBoundAssignment_2; } - - //UpperBound - public RuleCall getUpperBoundUpperBoundParserRuleCall_2_0() { return cUpperBoundUpperBoundParserRuleCall_2_0; } - } - public class ExactMultiplicityElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.ExactMultiplicity"); - private final Assignment cExactValueAssignment = (Assignment)rule.eContents().get(1); - private final RuleCall cExactValueINTTerminalRuleCall_0 = (RuleCall)cExactValueAssignment.eContents().get(0); - - //ExactMultiplicity: - // exactValue=INT; - @Override public ParserRule getRule() { return rule; } - - //exactValue=INT - public Assignment getExactValueAssignment() { return cExactValueAssignment; } - - //INT - public RuleCall getExactValueINTTerminalRuleCall_0() { return cExactValueINTTerminalRuleCall_0; } - } - public class UpperBoundElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.UpperBound"); - private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); - private final RuleCall cINTTerminalRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); - private final Keyword cAsteriskKeyword_1 = (Keyword)cAlternatives.eContents().get(1); - - //UpperBound returns ecore::EInt: - // INT | "*"; - @Override public ParserRule getRule() { return rule; } - - //INT | "*" - public Alternatives getAlternatives() { return cAlternatives; } - - //INT - public RuleCall getINTTerminalRuleCall_0() { return cINTTerminalRuleCall_0; } - - //"*" - public Keyword getAsteriskKeyword_1() { return cAsteriskKeyword_1; } - } - public class QualifiedNameElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.QualifiedName"); - private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); - private final RuleCall cQUOTED_IDTerminalRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); - private final Group cGroup_1 = (Group)cAlternatives.eContents().get(1); - private final RuleCall cIdentifierParserRuleCall_1_0 = (RuleCall)cGroup_1.eContents().get(0); - private final Group cGroup_1_1 = (Group)cGroup_1.eContents().get(1); - private final Keyword cColonColonKeyword_1_1_0 = (Keyword)cGroup_1_1.eContents().get(0); - private final RuleCall cIdentifierParserRuleCall_1_1_1 = (RuleCall)cGroup_1_1.eContents().get(1); - - //QualifiedName hidden(): - // QUOTED_ID | Identifier ("::" Identifier)*; - @Override public ParserRule getRule() { return rule; } - - //QUOTED_ID | Identifier ("::" Identifier)* - public Alternatives getAlternatives() { return cAlternatives; } - - //QUOTED_ID - public RuleCall getQUOTED_IDTerminalRuleCall_0() { return cQUOTED_IDTerminalRuleCall_0; } - - //Identifier ("::" Identifier)* - public Group getGroup_1() { return cGroup_1; } - - //Identifier - public RuleCall getIdentifierParserRuleCall_1_0() { return cIdentifierParserRuleCall_1_0; } - - //("::" Identifier)* - public Group getGroup_1_1() { return cGroup_1_1; } - - //"::" - public Keyword getColonColonKeyword_1_1_0() { return cColonColonKeyword_1_1_0; } - - //Identifier - public RuleCall getIdentifierParserRuleCall_1_1_1() { return cIdentifierParserRuleCall_1_1_1; } - } - public class IdentifierElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.Identifier"); - private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); - private final RuleCall cIDTerminalRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); - private final Keyword cTrueKeyword_1 = (Keyword)cAlternatives.eContents().get(1); - private final Keyword cFalseKeyword_2 = (Keyword)cAlternatives.eContents().get(2); - - //Identifier: - // ID | "true" | "false"; - @Override public ParserRule getRule() { return rule; } - - //ID | "true" | "false" - public Alternatives getAlternatives() { return cAlternatives; } - - //ID - public RuleCall getIDTerminalRuleCall_0() { return cIDTerminalRuleCall_0; } - - //"true" - public Keyword getTrueKeyword_1() { return cTrueKeyword_1; } - - //"false" - public Keyword getFalseKeyword_2() { return cFalseKeyword_2; } - } - public class IntegerElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.Integer"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Keyword cHyphenMinusKeyword_0 = (Keyword)cGroup.eContents().get(0); - private final RuleCall cINTTerminalRuleCall_1 = (RuleCall)cGroup.eContents().get(1); - - //Integer returns ecore::EInt hidden(): - // "-"? INT; - @Override public ParserRule getRule() { return rule; } - - //"-"? INT - public Group getGroup() { return cGroup; } - - //"-"? - public Keyword getHyphenMinusKeyword_0() { return cHyphenMinusKeyword_0; } - - //INT - public RuleCall getINTTerminalRuleCall_1() { return cINTTerminalRuleCall_1; } - } - public class RealElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.Real"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Keyword cHyphenMinusKeyword_0 = (Keyword)cGroup.eContents().get(0); - private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1); - private final RuleCall cEXPONENTIALTerminalRuleCall_1_0 = (RuleCall)cAlternatives_1.eContents().get(0); - private final Group cGroup_1_1 = (Group)cAlternatives_1.eContents().get(1); - private final RuleCall cINTTerminalRuleCall_1_1_0 = (RuleCall)cGroup_1_1.eContents().get(0); - private final Keyword cFullStopKeyword_1_1_1 = (Keyword)cGroup_1_1.eContents().get(1); - private final Alternatives cAlternatives_1_1_2 = (Alternatives)cGroup_1_1.eContents().get(2); - private final RuleCall cINTTerminalRuleCall_1_1_2_0 = (RuleCall)cAlternatives_1_1_2.eContents().get(0); - private final RuleCall cEXPONENTIALTerminalRuleCall_1_1_2_1 = (RuleCall)cAlternatives_1_1_2.eContents().get(1); - - //Real returns ecore::EDouble: - // "-"? (EXPONENTIAL | INT "." (INT | EXPONENTIAL)); - @Override public ParserRule getRule() { return rule; } - - //"-"? (EXPONENTIAL | INT "." (INT | EXPONENTIAL)) - public Group getGroup() { return cGroup; } - - //"-"? - public Keyword getHyphenMinusKeyword_0() { return cHyphenMinusKeyword_0; } - - //(EXPONENTIAL | INT "." (INT | EXPONENTIAL)) - public Alternatives getAlternatives_1() { return cAlternatives_1; } - - //EXPONENTIAL - public RuleCall getEXPONENTIALTerminalRuleCall_1_0() { return cEXPONENTIALTerminalRuleCall_1_0; } - - //INT "." (INT | EXPONENTIAL) - public Group getGroup_1_1() { return cGroup_1_1; } - - //INT - public RuleCall getINTTerminalRuleCall_1_1_0() { return cINTTerminalRuleCall_1_1_0; } - - //"." - public Keyword getFullStopKeyword_1_1_1() { return cFullStopKeyword_1_1_1; } - - //(INT | EXPONENTIAL) - public Alternatives getAlternatives_1_1_2() { return cAlternatives_1_1_2; } - - //INT - public RuleCall getINTTerminalRuleCall_1_1_2_0() { return cINTTerminalRuleCall_1_1_2_0; } - - //EXPONENTIAL - public RuleCall getEXPONENTIALTerminalRuleCall_1_1_2_1() { return cEXPONENTIALTerminalRuleCall_1_1_2_1; } - } - - public class LogicValueElements extends AbstractElementFinder.AbstractEnumRuleElementFinder { - private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.LogicValue"); - private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); - private final EnumLiteralDeclaration cTRUEEnumLiteralDeclaration_0 = (EnumLiteralDeclaration)cAlternatives.eContents().get(0); - private final Keyword cTRUETrueKeyword_0_0 = (Keyword)cTRUEEnumLiteralDeclaration_0.eContents().get(0); - private final EnumLiteralDeclaration cFALSEEnumLiteralDeclaration_1 = (EnumLiteralDeclaration)cAlternatives.eContents().get(1); - private final Keyword cFALSEFalseKeyword_1_0 = (Keyword)cFALSEEnumLiteralDeclaration_1.eContents().get(0); - private final EnumLiteralDeclaration cUNKNOWNEnumLiteralDeclaration_2 = (EnumLiteralDeclaration)cAlternatives.eContents().get(2); - private final Keyword cUNKNOWNUnknownKeyword_2_0 = (Keyword)cUNKNOWNEnumLiteralDeclaration_2.eContents().get(0); - - //enum LogicValue: - // TRUE="true" | FALSE="false" | UNKNOWN="unknown"; - public EnumRule getRule() { return rule; } - - //TRUE="true" | FALSE="false" | UNKNOWN="unknown" - public Alternatives getAlternatives() { return cAlternatives; } - - //TRUE="true" - public EnumLiteralDeclaration getTRUEEnumLiteralDeclaration_0() { return cTRUEEnumLiteralDeclaration_0; } - - //"true" - public Keyword getTRUETrueKeyword_0_0() { return cTRUETrueKeyword_0_0; } - - //FALSE="false" - public EnumLiteralDeclaration getFALSEEnumLiteralDeclaration_1() { return cFALSEEnumLiteralDeclaration_1; } - - //"false" - public Keyword getFALSEFalseKeyword_1_0() { return cFALSEFalseKeyword_1_0; } - - //UNKNOWN="unknown" - public EnumLiteralDeclaration getUNKNOWNEnumLiteralDeclaration_2() { return cUNKNOWNEnumLiteralDeclaration_2; } - - //"unknown" - public Keyword getUNKNOWNUnknownKeyword_2_0() { return cUNKNOWNUnknownKeyword_2_0; } - } - public class ShortLogicValueElements extends AbstractElementFinder.AbstractEnumRuleElementFinder { - private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.ShortLogicValue"); - private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); - private final EnumLiteralDeclaration cFALSEEnumLiteralDeclaration_0 = (EnumLiteralDeclaration)cAlternatives.eContents().get(0); - private final Keyword cFALSEExclamationMarkKeyword_0_0 = (Keyword)cFALSEEnumLiteralDeclaration_0.eContents().get(0); - private final EnumLiteralDeclaration cUNKNOWNEnumLiteralDeclaration_1 = (EnumLiteralDeclaration)cAlternatives.eContents().get(1); - private final Keyword cUNKNOWNQuestionMarkKeyword_1_0 = (Keyword)cUNKNOWNEnumLiteralDeclaration_1.eContents().get(0); - - //enum ShortLogicValue returns LogicValue: - // FALSE="!" | UNKNOWN="?"; - public EnumRule getRule() { return rule; } - - //FALSE="!" | UNKNOWN="?" - public Alternatives getAlternatives() { return cAlternatives; } - - //FALSE="!" - public EnumLiteralDeclaration getFALSEEnumLiteralDeclaration_0() { return cFALSEEnumLiteralDeclaration_0; } - - //"!" - public Keyword getFALSEExclamationMarkKeyword_0_0() { return cFALSEExclamationMarkKeyword_0_0; } - - //UNKNOWN="?" - public EnumLiteralDeclaration getUNKNOWNEnumLiteralDeclaration_1() { return cUNKNOWNEnumLiteralDeclaration_1; } - - //"?" - public Keyword getUNKNOWNQuestionMarkKeyword_1_0() { return cUNKNOWNQuestionMarkKeyword_1_0; } - } - - private final ProblemElements pProblem; - private final StatementElements pStatement; - private final ClassDeclarationElements pClassDeclaration; - private final EnumDeclarationElements pEnumDeclaration; - private final EnumLiteralElements pEnumLiteral; - private final ReferenceDeclarationElements pReferenceDeclaration; - private final PredicateDefinitionElements pPredicateDefinition; - private final ParameterElements pParameter; - private final ConjunctionElements pConjunction; - private final LiteralElements pLiteral; - private final NegativeLiteralElements pNegativeLiteral; - private final AtomElements pAtom; - private final ArgumentElements pArgument; - private final VariableOrNodeArgumentElements pVariableOrNodeArgument; - private final ConstantArgumentElements pConstantArgument; - private final AssertionElements pAssertion; - private final AssertionArgumentElements pAssertionArgument; - private final NodeAssertionArgumentElements pNodeAssertionArgument; - private final ConstantAssertionArgumentElements pConstantAssertionArgument; - private final LogicValueElements eLogicValue; - private final ShortLogicValueElements eShortLogicValue; - private final NodeValueAssertionElements pNodeValueAssertion; - private final ConstantElements pConstant; - private final IntConstantElements pIntConstant; - private final RealConstantElements pRealConstant; - private final StringConstantElements pStringConstant; - private final ScopeDeclarationElements pScopeDeclaration; - private final TypeScopeElements pTypeScope; - private final MultiplicityElements pMultiplicity; - private final DefiniteMultiplicityElements pDefiniteMultiplicity; - private final UnboundedMultiplicityElements pUnboundedMultiplicity; - private final RangeMultiplicityElements pRangeMultiplicity; - private final ExactMultiplicityElements pExactMultiplicity; - private final UpperBoundElements pUpperBound; - private final QualifiedNameElements pQualifiedName; - private final IdentifierElements pIdentifier; - private final IntegerElements pInteger; - private final RealElements pReal; - private final TerminalRule tID; - private final TerminalRule tEXPONENTIAL; - private final TerminalRule tSTRING; - private final TerminalRule tQUOTED_ID; - private final TerminalRule tSL_COMMENT; - - private final Grammar grammar; - - private final TerminalsGrammarAccess gaTerminals; - - @Inject - public ProblemGrammarAccess(GrammarProvider grammarProvider, - TerminalsGrammarAccess gaTerminals) { - this.grammar = internalFindGrammar(grammarProvider); - this.gaTerminals = gaTerminals; - this.pProblem = new ProblemElements(); - this.pStatement = new StatementElements(); - this.pClassDeclaration = new ClassDeclarationElements(); - this.pEnumDeclaration = new EnumDeclarationElements(); - this.pEnumLiteral = new EnumLiteralElements(); - this.pReferenceDeclaration = new ReferenceDeclarationElements(); - this.pPredicateDefinition = new PredicateDefinitionElements(); - this.pParameter = new ParameterElements(); - this.pConjunction = new ConjunctionElements(); - this.pLiteral = new LiteralElements(); - this.pNegativeLiteral = new NegativeLiteralElements(); - this.pAtom = new AtomElements(); - this.pArgument = new ArgumentElements(); - this.pVariableOrNodeArgument = new VariableOrNodeArgumentElements(); - this.pConstantArgument = new ConstantArgumentElements(); - this.pAssertion = new AssertionElements(); - this.pAssertionArgument = new AssertionArgumentElements(); - this.pNodeAssertionArgument = new NodeAssertionArgumentElements(); - this.pConstantAssertionArgument = new ConstantAssertionArgumentElements(); - this.eLogicValue = new LogicValueElements(); - this.eShortLogicValue = new ShortLogicValueElements(); - this.pNodeValueAssertion = new NodeValueAssertionElements(); - this.pConstant = new ConstantElements(); - this.pIntConstant = new IntConstantElements(); - this.pRealConstant = new RealConstantElements(); - this.pStringConstant = new StringConstantElements(); - this.pScopeDeclaration = new ScopeDeclarationElements(); - this.pTypeScope = new TypeScopeElements(); - this.pMultiplicity = new MultiplicityElements(); - this.pDefiniteMultiplicity = new DefiniteMultiplicityElements(); - this.pUnboundedMultiplicity = new UnboundedMultiplicityElements(); - this.pRangeMultiplicity = new RangeMultiplicityElements(); - this.pExactMultiplicity = new ExactMultiplicityElements(); - this.pUpperBound = new UpperBoundElements(); - this.pQualifiedName = new QualifiedNameElements(); - this.pIdentifier = new IdentifierElements(); - this.pInteger = new IntegerElements(); - this.pReal = new RealElements(); - this.tID = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.ID"); - this.tEXPONENTIAL = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.EXPONENTIAL"); - this.tSTRING = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.STRING"); - this.tQUOTED_ID = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.QUOTED_ID"); - this.tSL_COMMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.viatra.solver.language.Problem.SL_COMMENT"); - } - - protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { - Grammar grammar = grammarProvider.getGrammar(this); - while (grammar != null) { - if ("org.eclipse.viatra.solver.language.Problem".equals(grammar.getName())) { - return grammar; - } - List grammars = grammar.getUsedGrammars(); - if (!grammars.isEmpty()) { - grammar = grammars.iterator().next(); - } else { - return null; - } - } - return grammar; - } - - @Override - public Grammar getGrammar() { - return grammar; - } - - - public TerminalsGrammarAccess getTerminalsGrammarAccess() { - return gaTerminals; - } - - - //Problem: - // ("problem" name=Identifier ".")? - // statements+=Statement*; - public ProblemElements getProblemAccess() { - return pProblem; - } - - public ParserRule getProblemRule() { - return getProblemAccess().getRule(); - } - - //Statement: - // ClassDeclaration | EnumDeclaration | PredicateDefinition | Assertion | NodeValueAssertion | ScopeDeclaration; - public StatementElements getStatementAccess() { - return pStatement; - } - - public ParserRule getStatementRule() { - return getStatementAccess().getRule(); - } - - //ClassDeclaration: - // abstract?="abstract"? "class" - // name=Identifier - // ("extends" superTypes+=[Relation|QualifiedName] ("," superTypes+=[Relation|QualifiedName])*)? - // ("{" (referenceDeclarations+=ReferenceDeclaration ";"?)* "}" | "."); - public ClassDeclarationElements getClassDeclarationAccess() { - return pClassDeclaration; - } - - public ParserRule getClassDeclarationRule() { - return getClassDeclarationAccess().getRule(); - } - - //EnumDeclaration: - // "enum" - // name=Identifier - // ("{" (literals+=EnumLiteral ("," literals+=EnumLiteral)* ("," | ";")?)? "}" | "."); - public EnumDeclarationElements getEnumDeclarationAccess() { - return pEnumDeclaration; - } - - public ParserRule getEnumDeclarationRule() { - return getEnumDeclarationAccess().getRule(); - } - - //EnumLiteral returns Node: - // name=Identifier; - public EnumLiteralElements getEnumLiteralAccess() { - return pEnumLiteral; - } - - public ParserRule getEnumLiteralRule() { - return getEnumLiteralAccess().getRule(); - } - - //ReferenceDeclaration: - // (containment?="contains" | "refers")? - // referenceType=[Relation|QualifiedName] - // ("[" multiplicity=Multiplicity "]")? - // name=Identifier - // ("opposite" opposite=[ReferenceDeclaration|QualifiedName])?; - public ReferenceDeclarationElements getReferenceDeclarationAccess() { - return pReferenceDeclaration; - } - - public ParserRule getReferenceDeclarationRule() { - return getReferenceDeclarationAccess().getRule(); - } - - //PredicateDefinition: - // (error?="error" "pred"? | "pred") - // name=Identifier - // "(" (parameters+=Parameter ("," parameters+=Parameter)*)? ")" - // (":-" bodies+=Conjunction (";" bodies+=Conjunction)*)? - // "."; - public PredicateDefinitionElements getPredicateDefinitionAccess() { - return pPredicateDefinition; - } - - public ParserRule getPredicateDefinitionRule() { - return getPredicateDefinitionAccess().getRule(); - } - - //Parameter: - // parameterType=[Relation|QualifiedName]? name=Identifier; - public ParameterElements getParameterAccess() { - return pParameter; - } - - public ParserRule getParameterRule() { - return getParameterAccess().getRule(); - } - - //Conjunction: - // literals+=Literal ("," literals+=Literal)*; - public ConjunctionElements getConjunctionAccess() { - return pConjunction; - } - - public ParserRule getConjunctionRule() { - return getConjunctionAccess().getRule(); - } - - //Literal: - // Atom | NegativeLiteral; - public LiteralElements getLiteralAccess() { - return pLiteral; - } - - public ParserRule getLiteralRule() { - return getLiteralAccess().getRule(); - } - - //NegativeLiteral: - // "!" atom=Atom; - public NegativeLiteralElements getNegativeLiteralAccess() { - return pNegativeLiteral; - } - - public ParserRule getNegativeLiteralRule() { - return getNegativeLiteralAccess().getRule(); - } - - //Atom: - // relation=[Relation|QualifiedName] - // transitiveClosure?="+"? - // "(" (arguments+=Argument ("," arguments+=Argument)*)? ")"; - public AtomElements getAtomAccess() { - return pAtom; - } - - public ParserRule getAtomRule() { - return getAtomAccess().getRule(); - } - - //Argument: - // VariableOrNodeArgument | ConstantArgument; - public ArgumentElements getArgumentAccess() { - return pArgument; - } - - public ParserRule getArgumentRule() { - return getArgumentAccess().getRule(); - } - - //VariableOrNodeArgument: - // variableOrNode=[VariableOrNode|QualifiedName]; - public VariableOrNodeArgumentElements getVariableOrNodeArgumentAccess() { - return pVariableOrNodeArgument; - } - - public ParserRule getVariableOrNodeArgumentRule() { - return getVariableOrNodeArgumentAccess().getRule(); - } - - //ConstantArgument: - // constant=Constant; - public ConstantArgumentElements getConstantArgumentAccess() { - return pConstantArgument; - } - - public ParserRule getConstantArgumentRule() { - return getConstantArgumentAccess().getRule(); - } - - //Assertion: - // (relation=[Relation|QualifiedName] - // "(" (arguments+=AssertionArgument ("," arguments+=AssertionArgument)*)? ")" - // ":" value=LogicValue | - // value=ShortLogicValue? - // relation=[Relation|QualifiedName] - // "(" (arguments+=AssertionArgument ("," arguments+=AssertionArgument)*)? ")") - // "."; - public AssertionElements getAssertionAccess() { - return pAssertion; - } - - public ParserRule getAssertionRule() { - return getAssertionAccess().getRule(); - } - - //AssertionArgument: - // NodeAssertionArgument | ConstantAssertionArgument; - public AssertionArgumentElements getAssertionArgumentAccess() { - return pAssertionArgument; - } - - public ParserRule getAssertionArgumentRule() { - return getAssertionArgumentAccess().getRule(); - } - - //NodeAssertionArgument: - // node=[Node|QualifiedName]; - public NodeAssertionArgumentElements getNodeAssertionArgumentAccess() { - return pNodeAssertionArgument; - } - - public ParserRule getNodeAssertionArgumentRule() { - return getNodeAssertionArgumentAccess().getRule(); - } - - //ConstantAssertionArgument: - // constant=Constant; - public ConstantAssertionArgumentElements getConstantAssertionArgumentAccess() { - return pConstantAssertionArgument; - } - - public ParserRule getConstantAssertionArgumentRule() { - return getConstantAssertionArgumentAccess().getRule(); - } - - //enum LogicValue: - // TRUE="true" | FALSE="false" | UNKNOWN="unknown"; - public LogicValueElements getLogicValueAccess() { - return eLogicValue; - } - - public EnumRule getLogicValueRule() { - return getLogicValueAccess().getRule(); - } - - //enum ShortLogicValue returns LogicValue: - // FALSE="!" | UNKNOWN="?"; - public ShortLogicValueElements getShortLogicValueAccess() { - return eShortLogicValue; - } - - public EnumRule getShortLogicValueRule() { - return getShortLogicValueAccess().getRule(); - } - - //NodeValueAssertion: - // node=[Node|QualifiedName] ":" value=Constant "."; - public NodeValueAssertionElements getNodeValueAssertionAccess() { - return pNodeValueAssertion; - } - - public ParserRule getNodeValueAssertionRule() { - return getNodeValueAssertionAccess().getRule(); - } - - //Constant: - // RealConstant | IntConstant | StringConstant; - public ConstantElements getConstantAccess() { - return pConstant; - } - - public ParserRule getConstantRule() { - return getConstantAccess().getRule(); - } - - //IntConstant: - // intValue=Integer; - public IntConstantElements getIntConstantAccess() { - return pIntConstant; - } - - public ParserRule getIntConstantRule() { - return getIntConstantAccess().getRule(); - } - - //RealConstant: - // realValue=Real; - public RealConstantElements getRealConstantAccess() { - return pRealConstant; - } - - public ParserRule getRealConstantRule() { - return getRealConstantAccess().getRule(); - } - - //StringConstant: - // stringValue=STRING; - public StringConstantElements getStringConstantAccess() { - return pStringConstant; - } - - public ParserRule getStringConstantRule() { - return getStringConstantAccess().getRule(); - } - - //ScopeDeclaration: - // "scope" typeScopes+=TypeScope ("," typeScopes+=TypeScope)* "."; - public ScopeDeclarationElements getScopeDeclarationAccess() { - return pScopeDeclaration; - } - - public ParserRule getScopeDeclarationRule() { - return getScopeDeclarationAccess().getRule(); - } - - //TypeScope: - // targetType=[ClassDeclaration] - // (increment?="+=" | "=") - // multiplicity=DefiniteMultiplicity; - public TypeScopeElements getTypeScopeAccess() { - return pTypeScope; - } - - public ParserRule getTypeScopeRule() { - return getTypeScopeAccess().getRule(); - } - - //Multiplicity: - // UnboundedMultiplicity | DefiniteMultiplicity; - public MultiplicityElements getMultiplicityAccess() { - return pMultiplicity; - } - - public ParserRule getMultiplicityRule() { - return getMultiplicityAccess().getRule(); - } - - //DefiniteMultiplicity returns Multiplicity: - // RangeMultiplicity | ExactMultiplicity; - public DefiniteMultiplicityElements getDefiniteMultiplicityAccess() { - return pDefiniteMultiplicity; - } - - public ParserRule getDefiniteMultiplicityRule() { - return getDefiniteMultiplicityAccess().getRule(); - } - - //UnboundedMultiplicity: - // {UnboundedMultiplicity}; - public UnboundedMultiplicityElements getUnboundedMultiplicityAccess() { - return pUnboundedMultiplicity; - } - - public ParserRule getUnboundedMultiplicityRule() { - return getUnboundedMultiplicityAccess().getRule(); - } - - //RangeMultiplicity: - // lowerBound=INT ".." upperBound=UpperBound; - public RangeMultiplicityElements getRangeMultiplicityAccess() { - return pRangeMultiplicity; - } - - public ParserRule getRangeMultiplicityRule() { - return getRangeMultiplicityAccess().getRule(); - } - - //ExactMultiplicity: - // exactValue=INT; - public ExactMultiplicityElements getExactMultiplicityAccess() { - return pExactMultiplicity; - } - - public ParserRule getExactMultiplicityRule() { - return getExactMultiplicityAccess().getRule(); - } - - //UpperBound returns ecore::EInt: - // INT | "*"; - public UpperBoundElements getUpperBoundAccess() { - return pUpperBound; - } - - public ParserRule getUpperBoundRule() { - return getUpperBoundAccess().getRule(); - } - - //QualifiedName hidden(): - // QUOTED_ID | Identifier ("::" Identifier)*; - public QualifiedNameElements getQualifiedNameAccess() { - return pQualifiedName; - } - - public ParserRule getQualifiedNameRule() { - return getQualifiedNameAccess().getRule(); - } - - //Identifier: - // ID | "true" | "false"; - public IdentifierElements getIdentifierAccess() { - return pIdentifier; - } - - public ParserRule getIdentifierRule() { - return getIdentifierAccess().getRule(); - } - - //Integer returns ecore::EInt hidden(): - // "-"? INT; - public IntegerElements getIntegerAccess() { - return pInteger; - } - - public ParserRule getIntegerRule() { - return getIntegerAccess().getRule(); - } - - //Real returns ecore::EDouble: - // "-"? (EXPONENTIAL | INT "." (INT | EXPONENTIAL)); - public RealElements getRealAccess() { - return pReal; - } - - public ParserRule getRealRule() { - return getRealAccess().getRule(); - } - - //@Override - //terminal ID: - // ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; - public TerminalRule getIDRule() { - return tID; - } - - //terminal EXPONENTIAL: - // INT ("e" | "E") ("+" | "-")? INT; - public TerminalRule getEXPONENTIALRule() { - return tEXPONENTIAL; - } - - //@Override - //terminal STRING: - // '"' ('\\' . /* 'b'|'t'|'n'|'f'|'r'|'u'|'"'|"'"|'\\' */ | !('\\' | '"'))* '"'; - public TerminalRule getSTRINGRule() { - return tSTRING; - } - - //terminal QUOTED_ID: - // "'" ('\\' . /* 'b'|'t'|'n'|'f'|'r'|'u'|'"'|"'"|'\\' */ | !('\\' | "'"))* "'"; - public TerminalRule getQUOTED_IDRule() { - return tQUOTED_ID; - } - - //@Override - //terminal SL_COMMENT: - // ('%' | '//') !('\n' | '\r')* ('\r'? '\n')?; - public TerminalRule getSL_COMMENTRule() { - return tSL_COMMENT; - } - - //terminal INT returns ecore::EInt: ('0'..'9')+; - public TerminalRule getINTRule() { - return gaTerminals.getINTRule(); - } - - //terminal ML_COMMENT : '/*' -> '*/'; - public TerminalRule getML_COMMENTRule() { - return gaTerminals.getML_COMMENTRule(); - } - - //terminal WS : (' '|'\t'|'\r'|'\n')+; - public TerminalRule getWSRule() { - return gaTerminals.getWSRule(); - } - - //terminal ANY_OTHER: .; - public TerminalRule getANY_OTHERRule() { - return gaTerminals.getANY_OTHERRule(); - } -} diff --git a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/validation/AbstractProblemValidator.java b/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/validation/AbstractProblemValidator.java deleted file mode 100644 index 9cd73e1e..00000000 --- a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/validation/AbstractProblemValidator.java +++ /dev/null @@ -1,19 +0,0 @@ -/* - * generated by Xtext 2.26.0.M1 - */ -package org.eclipse.viatra.solver.language.validation; - -import java.util.ArrayList; -import java.util.List; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.xtext.validation.AbstractDeclarativeValidator; - -public abstract class AbstractProblemValidator extends AbstractDeclarativeValidator { - - @Override - protected List getEPackages() { - List result = new ArrayList(); - result.add(EPackage.Registry.INSTANCE.getEPackage("http://www.eclipse.org/viatra/solver/language/model/Problem")); - return result; - } -} diff --git a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/validation/ProblemConfigurableIssueCodesProvider.java b/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/validation/ProblemConfigurableIssueCodesProvider.java deleted file mode 100644 index f5a0d87d..00000000 --- a/language/src/main/xtext-gen/org/eclipse/viatra/solver/language/validation/ProblemConfigurableIssueCodesProvider.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * generated by Xtext 2.26.0.M1 - */ -package org.eclipse.viatra.solver.language.validation; - -import org.eclipse.xtext.preferences.PreferenceKey; -import org.eclipse.xtext.util.IAcceptor; -import org.eclipse.xtext.validation.ConfigurableIssueCodesProvider; -import org.eclipse.xtext.validation.SeverityConverter; - -@SuppressWarnings("restriction") -public class ProblemConfigurableIssueCodesProvider extends ConfigurableIssueCodesProvider { - protected static final String ISSUE_CODE_PREFIX = "org.eclipse.viatra.solver.language."; - - public static final String DEPRECATED_MODEL_PART = ISSUE_CODE_PREFIX + "deprecatedModelPart"; - - @Override - protected void initialize(IAcceptor acceptor) { - super.initialize(acceptor); - acceptor.accept(create(DEPRECATED_MODEL_PART, SeverityConverter.SEVERITY_WARNING)); - } -} diff --git a/language/src/test/xtext-gen/org/eclipse/viatra/solver/language/tests/ProblemInjectorProvider.java b/language/src/test/xtext-gen/org/eclipse/viatra/solver/language/tests/ProblemInjectorProvider.java deleted file mode 100644 index 7d0ef1bb..00000000 --- a/language/src/test/xtext-gen/org/eclipse/viatra/solver/language/tests/ProblemInjectorProvider.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * generated by Xtext 2.26.0.M1 - */ -package org.eclipse.viatra.solver.language.tests; - -import com.google.inject.Guice; -import com.google.inject.Injector; -import org.eclipse.viatra.solver.language.ProblemRuntimeModule; -import org.eclipse.viatra.solver.language.ProblemStandaloneSetup; -import org.eclipse.xtext.testing.GlobalRegistries; -import org.eclipse.xtext.testing.GlobalRegistries.GlobalStateMemento; -import org.eclipse.xtext.testing.IInjectorProvider; -import org.eclipse.xtext.testing.IRegistryConfigurator; - -public class ProblemInjectorProvider implements IInjectorProvider, IRegistryConfigurator { - - protected GlobalStateMemento stateBeforeInjectorCreation; - protected GlobalStateMemento stateAfterInjectorCreation; - protected Injector injector; - - static { - GlobalRegistries.initializeDefaults(); - } - - @Override - public Injector getInjector() { - if (injector == null) { - this.injector = internalCreateInjector(); - stateAfterInjectorCreation = GlobalRegistries.makeCopyOfGlobalState(); - } - return injector; - } - - protected Injector internalCreateInjector() { - return new ProblemStandaloneSetup() { - @Override - public Injector createInjector() { - return Guice.createInjector(createRuntimeModule()); - } - }.createInjectorAndDoEMFRegistration(); - } - - protected ProblemRuntimeModule createRuntimeModule() { - // make it work also with Maven/Tycho and OSGI - // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=493672 - return new ProblemRuntimeModule() { - @Override - public ClassLoader bindClassLoaderToInstance() { - return ProblemInjectorProvider.class - .getClassLoader(); - } - }; - } - - @Override - public void restoreRegistry() { - stateBeforeInjectorCreation.restoreGlobalState(); - stateBeforeInjectorCreation = null; - } - - @Override - public void setupRegistry() { - stateBeforeInjectorCreation = GlobalRegistries.makeCopyOfGlobalState(); - if (injector == null) { - getInjector(); - } - stateAfterInjectorCreation.restoreGlobalState(); - } -} -- cgit v1.2.3-54-g00ecf