From 6f521ceedc818fa1a45b4ffeeba1f1badcb12572 Mon Sep 17 00:00:00 2001 From: Henrik Rentz-Reichert Date: Wed, 2 May 2012 10:50:37 +0200 Subject: [config] generated Xtext infrastructure --- .../etrice/core/ui/AbstractConfigUiModule.java | 242 ++++ .../core/ui/ConfigExecutableExtensionFactory.java | 27 + .../AbstractConfigProposalProvider.java | 39 + .../core/ui/contentassist/antlr/ConfigParser.java | 75 ++ .../antlr/PartialConfigContentAssistParser.java | 37 + .../contentassist/antlr/internal/InternalConfig.g | 499 ++++++++ .../antlr/internal/InternalConfig.tokens | 15 + .../antlr/internal/InternalConfigLexer.java | 895 +++++++++++++++ .../antlr/internal/InternalConfigParser.java | 1202 ++++++++++++++++++++ .../etrice/core/ui/internal/ConfigActivator.java | 82 ++ 10 files changed, 3113 insertions(+) create mode 100644 plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/AbstractConfigUiModule.java create mode 100644 plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/ConfigExecutableExtensionFactory.java create mode 100644 plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/AbstractConfigProposalProvider.java create mode 100644 plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/ConfigParser.java create mode 100644 plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/PartialConfigContentAssistParser.java create mode 100644 plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g create mode 100644 plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.tokens create mode 100644 plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfigLexer.java create mode 100644 plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfigParser.java create mode 100644 plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/internal/ConfigActivator.java (limited to 'plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice') diff --git a/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/AbstractConfigUiModule.java b/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/AbstractConfigUiModule.java new file mode 100644 index 000000000..5f1ee0bd1 --- /dev/null +++ b/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/AbstractConfigUiModule.java @@ -0,0 +1,242 @@ + +/* + * generated by Xtext + */ +package org.eclipse.etrice.core.ui; + +import org.eclipse.xtext.ui.DefaultUiModule; +import org.eclipse.ui.plugin.AbstractUIPlugin; + +/** + * Manual modifications go to {org.eclipse.etrice.core.ui.ConfigUiModule} + */ +@SuppressWarnings("all") +public abstract class AbstractConfigUiModule extends DefaultUiModule { + + public AbstractConfigUiModule(AbstractUIPlugin plugin) { + super(plugin); + } + + + // contributed by org.eclipse.xtext.ui.generator.ImplicitUiFragment + public com.google.inject.Provider provideIAllContainersState() { + return org.eclipse.xtext.ui.shared.Access.getJavaProjectsState(); + } + + // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment + public Class bindIProposalConflictHelper() { + return org.eclipse.xtext.ui.editor.contentassist.antlr.AntlrProposalConflictHelper.class; + } + + // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment + public void configureHighlightingLexer(com.google.inject.Binder binder) { + binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.ui.LexerUIBindings.HIGHLIGHTING)).to(org.eclipse.etrice.core.parser.antlr.internal.InternalConfigLexer.class); + } + + // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment + public void configureHighlightingTokenDefProvider(com.google.inject.Binder binder) { + binder.bind(org.eclipse.xtext.parser.antlr.ITokenDefProvider.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.ui.LexerUIBindings.HIGHLIGHTING)).to(org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider.class); + } + + // contributed by org.eclipse.xtext.generator.exporting.QualifiedNamesFragment + public Class bindIDependentElementsCalculator() { + return org.eclipse.xtext.ui.refactoring.impl.DefaultDependentElementsCalculator.class; + } + + // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment + public void configureIResourceDescriptionsBuilderScope(com.google.inject.Binder binder) { + binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.NAMED_BUILDER_SCOPE)).to(org.eclipse.xtext.builder.clustering.CurrentDescriptions.ResourceSetAware.class); + } + + // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment + public Class bindIXtextEditorCallback() { + return org.eclipse.xtext.builder.nature.NatureAddingEditorCallback.class; + } + + // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment + public void configureIResourceDescriptionsPersisted(com.google.inject.Binder binder) { + binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.builder.impl.PersistentDataAwareDirtyResource.PERSISTED_DESCRIPTIONS)).to(org.eclipse.xtext.builder.builderState.IBuilderState.class); + } + + // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment + public Class bindDocumentBasedDirtyResource() { + return org.eclipse.xtext.builder.impl.PersistentDataAwareDirtyResource.class; + } + + // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment + public Class bindIXtextBuilderParticipant() { + return org.eclipse.xtext.builder.BuilderParticipant.class; + } + + // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment + public org.eclipse.core.resources.IWorkspaceRoot bindIWorkspaceRootToInstance() { + return org.eclipse.core.resources.ResourcesPlugin.getWorkspace().getRoot(); + } + + // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment + public void configureBuilderPreferenceStoreInitializer(com.google.inject.Binder binder) { + binder.bind(org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreInitializer.class).annotatedWith(com.google.inject.name.Names.named("builderPreferenceInitializer")).to(org.eclipse.xtext.builder.preferences.BuilderPreferenceAccess.Initializer.class); + } + + // contributed by org.eclipse.xtext.ui.generator.labeling.LabelProviderFragment + public Class bindILabelProvider() { + return org.eclipse.etrice.core.ui.labeling.ConfigLabelProvider.class; + } + + // contributed by org.eclipse.xtext.ui.generator.labeling.LabelProviderFragment + public void configureResourceUIServiceLabelProvider(com.google.inject.Binder binder) { + binder.bind(org.eclipse.jface.viewers.ILabelProvider.class).annotatedWith(org.eclipse.xtext.ui.resource.ResourceServiceDescriptionLabelProvider.class).to(org.eclipse.etrice.core.ui.labeling.ConfigDescriptionLabelProvider.class); + } + + // contributed by org.eclipse.xtext.ui.generator.outline.OutlineTreeProviderFragment + public Class bindIOutlineTreeProvider() { + return org.eclipse.etrice.core.ui.outline.ConfigOutlineTreeProvider.class; + } + + // contributed by org.eclipse.xtext.ui.generator.outline.OutlineTreeProviderFragment + public Class bindIOutlineTreeStructureProvider() { + return org.eclipse.etrice.core.ui.outline.ConfigOutlineTreeProvider.class; + } + + // contributed by org.eclipse.xtext.ui.generator.quickfix.QuickfixProviderFragment + public Class bindIssueResolutionProvider() { + return org.eclipse.etrice.core.ui.quickfix.ConfigQuickfixProvider.class; + } + + // contributed by org.eclipse.xtext.ui.generator.contentAssist.JavaBasedContentAssistFragment + public Class bindIContentProposalProvider() { + return org.eclipse.etrice.core.ui.contentassist.ConfigProposalProvider.class; + } + + // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment + public Class bindContentAssistContext$Factory() { + return org.eclipse.xtext.ui.editor.contentassist.antlr.ParserBasedContentAssistContextFactory.class; + } + + // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment + public Class bindIContentAssistParser() { + return org.eclipse.etrice.core.ui.contentassist.antlr.ConfigParser.class; + } + + // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment + public void configureContentAssistLexerProvider(com.google.inject.Binder binder) { + binder.bind(org.eclipse.etrice.core.ui.contentassist.antlr.internal.InternalConfigLexer.class).toProvider(org.eclipse.xtext.parser.antlr.LexerProvider.create(org.eclipse.etrice.core.ui.contentassist.antlr.internal.InternalConfigLexer.class)); + } + + // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrUiGeneratorFragment + public void configureContentAssistLexer(com.google.inject.Binder binder) { + binder.bind(org.eclipse.xtext.ui.editor.contentassist.antlr.internal.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.ui.LexerUIBindings.CONTENT_ASSIST)).to(org.eclipse.etrice.core.ui.contentassist.antlr.internal.InternalConfigLexer.class); + } + + // contributed by org.eclipse.xtext.ui.generator.refactoring.RefactorElementNameFragment + public Class bindIRenameStrategy() { + return org.eclipse.xtext.ui.refactoring.impl.DefaultRenameStrategy.class; + } + + // contributed by org.eclipse.xtext.ui.generator.refactoring.RefactorElementNameFragment + public Class bindIReferenceUpdater() { + return org.eclipse.xtext.ui.refactoring.impl.DefaultReferenceUpdater.class; + } + + // contributed by org.eclipse.xtext.ui.generator.refactoring.RefactorElementNameFragment + public void configureIPreferenceStoreInitializer(com.google.inject.Binder binder) { + binder.bind(org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreInitializer.class).annotatedWith(com.google.inject.name.Names.named("RefactoringPreferences")).to(org.eclipse.xtext.ui.refactoring.ui.RefactoringPreferences.Initializer.class); + } + + // contributed by org.eclipse.xtext.ui.generator.refactoring.RefactorElementNameFragment + public Class bindIRenameRefactoringProvider() { + return org.eclipse.xtext.ui.refactoring.impl.DefaultRenameRefactoringProvider.class; + } + + // contributed by org.eclipse.xtext.ui.generator.refactoring.RefactorElementNameFragment + public Class bindIRenameSupport$Factory() { + return org.eclipse.xtext.ui.refactoring.ui.DefaultRenameSupport.Factory.class; + } + + // contributed by org.eclipse.xtext.ui.generator.refactoring.RefactorElementNameFragment + public Class bindIRenameElementHandler() { + return org.eclipse.xtext.ui.refactoring.ui.DefaultRenameElementHandler.class; + } + + // contributed by org.eclipse.xtext.generator.types.TypesGeneratorFragment + public java.lang.ClassLoader bindClassLoaderToInstance() { + return getClass().getClassLoader(); + } + + // contributed by org.eclipse.xtext.generator.types.TypesGeneratorFragment + public Class bindIJvmTypeProvider$Factory() { + return org.eclipse.xtext.common.types.access.jdt.JdtTypeProviderFactory.class; + } + + // contributed by org.eclipse.xtext.generator.types.TypesGeneratorFragment + public Class bindAbstractTypeScopeProvider() { + return org.eclipse.xtext.common.types.xtext.ui.JdtBasedSimpleTypeScopeProvider.class; + } + + // contributed by org.eclipse.xtext.generator.types.TypesGeneratorFragment + public Class bindITypesProposalProvider() { + return org.eclipse.xtext.common.types.xtext.ui.JdtTypesProposalProvider.class; + } + + // contributed by org.eclipse.xtext.generator.types.TypesGeneratorFragment + public Class bindIJavaProjectProvider() { + return org.eclipse.xtext.common.types.xtext.ui.XtextResourceSetBasedProjectProvider.class; + } + + // contributed by org.eclipse.xtext.generator.types.TypesGeneratorFragment + public Class bindIHyperlinkHelper() { + return org.eclipse.xtext.common.types.xtext.ui.TypeAwareHyperlinkHelper.class; + } + + // contributed by org.eclipse.xtext.generator.types.TypesGeneratorFragment + public Class bindPrefixMatcher() { + return org.eclipse.xtext.ui.editor.contentassist.FQNPrefixMatcher.class; + } + + // contributed by org.eclipse.xtext.generator.types.TypesGeneratorFragment + public Class bindAbstractJavaBasedContentProposalProvider$ReferenceProposalCreator() { + return org.eclipse.xtext.common.types.xtext.ui.TypeAwareReferenceProposalCreator.class; + } + + // contributed by org.eclipse.xtext.generator.types.TypesGeneratorFragment + public Class bindIValidationJobScheduler() { + return org.eclipse.xtext.common.types.xtext.ui.JdtValidationJobScheduler.class; + } + + // contributed by org.eclipse.xtext.generator.types.TypesGeneratorFragment + public Class bindRefactoringResourceSetProvider() { + return org.eclipse.xtext.common.types.ui.refactoring.JvmRefactoringResourceSetProvider.class; + } + + // contributed by org.eclipse.xtext.ui.generator.templates.CodetemplatesGeneratorFragment + public com.google.inject.Provider provideTemplatesLanguageConfiguration() { + return org.eclipse.xtext.ui.codetemplates.ui.AccessibleCodetemplatesActivator.getTemplatesLanguageConfigurationProvider(); + } + + // contributed by org.eclipse.xtext.ui.generator.templates.CodetemplatesGeneratorFragment + public com.google.inject.Provider provideLanguageRegistry() { + return org.eclipse.xtext.ui.codetemplates.ui.AccessibleCodetemplatesActivator.getLanguageRegistry(); + } + + // contributed by org.eclipse.xtext.ui.generator.templates.CodetemplatesGeneratorFragment + @org.eclipse.xtext.service.SingletonBinding(eager=true) public Class bindLanguageRegistrar() { + return org.eclipse.xtext.ui.codetemplates.ui.registry.LanguageRegistrar.class; + } + + // contributed by org.eclipse.xtext.ui.generator.templates.CodetemplatesGeneratorFragment + public Class bindXtextTemplatePreferencePage() { + return org.eclipse.xtext.ui.codetemplates.ui.preferences.AdvancedTemplatesPreferencePage.class; + } + + // contributed by org.eclipse.xtext.ui.generator.templates.CodetemplatesGeneratorFragment + public Class bindIPartialContentAssistParser() { + return org.eclipse.etrice.core.ui.contentassist.antlr.PartialConfigContentAssistParser.class; + } + + // contributed by org.eclipse.xtext.ui.generator.compare.CompareFragment + public Class bindIViewerCreator() { + return org.eclipse.xtext.ui.compare.DefaultViewerCreator.class; + } + + +} diff --git a/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/ConfigExecutableExtensionFactory.java b/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/ConfigExecutableExtensionFactory.java new file mode 100644 index 000000000..492ef4f22 --- /dev/null +++ b/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/ConfigExecutableExtensionFactory.java @@ -0,0 +1,27 @@ +/* + * generated by Xtext + */ +package org.eclipse.etrice.core.ui; + +import org.eclipse.xtext.ui.guice.AbstractGuiceAwareExecutableExtensionFactory; +import org.osgi.framework.Bundle; + +import com.google.inject.Injector; + +/** + * This class was generated. Customizations should only happen in a newly + * introduced subclass. + */ +public class ConfigExecutableExtensionFactory extends AbstractGuiceAwareExecutableExtensionFactory { + + @Override + protected Bundle getBundle() { + return org.eclipse.etrice.core.ui.internal.ConfigActivator.getInstance().getBundle(); + } + + @Override + protected Injector getInjector() { + return org.eclipse.etrice.core.ui.internal.ConfigActivator.getInstance().getInjector("org.eclipse.etrice.core.Config"); + } + +} diff --git a/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/AbstractConfigProposalProvider.java b/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/AbstractConfigProposalProvider.java new file mode 100644 index 000000000..5d78da65b --- /dev/null +++ b/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/AbstractConfigProposalProvider.java @@ -0,0 +1,39 @@ +/* +* generated by Xtext +*/ +package org.eclipse.etrice.core.ui.contentassist; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.xtext.*; +import org.eclipse.xtext.common.ui.contentassist.TerminalsProposalProvider; +import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor; +import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext; + +/** + * Represents a generated, default implementation of interface {@link IProposalProvider}. + * Methods are dynamically dispatched on the first parameter, i.e., you can override them + * with a more concrete subtype. + */ +@SuppressWarnings("all") +public class AbstractConfigProposalProvider extends TerminalsProposalProvider { + + public void completeConfigModel_ActorClassConfigs(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeConfigModel_ActorInstanceConfigs(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); + } + public void completeActorClassConfig_ActorClass(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); + } + + public void complete_ConfigModel(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_ActorClassConfig(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } + public void complete_ActorInstanceConfig(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { + // subclasses may override + } +} diff --git a/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/ConfigParser.java b/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/ConfigParser.java new file mode 100644 index 000000000..802d834b3 --- /dev/null +++ b/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/ConfigParser.java @@ -0,0 +1,75 @@ +/* +* generated by Xtext +*/ +package org.eclipse.etrice.core.ui.contentassist.antlr; + +import java.util.Collection; +import java.util.Map; +import java.util.HashMap; + +import org.antlr.runtime.RecognitionException; +import org.eclipse.xtext.AbstractElement; +import org.eclipse.xtext.ui.editor.contentassist.antlr.AbstractContentAssistParser; +import org.eclipse.xtext.ui.editor.contentassist.antlr.FollowElement; +import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; + +import com.google.inject.Inject; + +import org.eclipse.etrice.core.services.ConfigGrammarAccess; + +public class ConfigParser extends AbstractContentAssistParser { + + @Inject + private ConfigGrammarAccess grammarAccess; + + private Map nameMappings; + + @Override + protected org.eclipse.etrice.core.ui.contentassist.antlr.internal.InternalConfigParser createParser() { + org.eclipse.etrice.core.ui.contentassist.antlr.internal.InternalConfigParser result = new org.eclipse.etrice.core.ui.contentassist.antlr.internal.InternalConfigParser(null); + result.setGrammarAccess(grammarAccess); + return result; + } + + @Override + protected String getRuleName(AbstractElement element) { + if (nameMappings == null) { + nameMappings = new HashMap() { + private static final long serialVersionUID = 1L; + { + put(grammarAccess.getConfigModelAccess().getGroup(), "rule__ConfigModel__Group__0"); + put(grammarAccess.getActorClassConfigAccess().getGroup(), "rule__ActorClassConfig__Group__0"); + put(grammarAccess.getActorInstanceConfigAccess().getGroup(), "rule__ActorInstanceConfig__Group__0"); + put(grammarAccess.getConfigModelAccess().getActorClassConfigsAssignment_0(), "rule__ConfigModel__ActorClassConfigsAssignment_0"); + put(grammarAccess.getConfigModelAccess().getActorInstanceConfigsAssignment_1(), "rule__ConfigModel__ActorInstanceConfigsAssignment_1"); + put(grammarAccess.getActorClassConfigAccess().getActorClassAssignment_1(), "rule__ActorClassConfig__ActorClassAssignment_1"); + } + }; + } + return nameMappings.get(element); + } + + @Override + protected Collection getFollowElements(AbstractInternalContentAssistParser parser) { + try { + org.eclipse.etrice.core.ui.contentassist.antlr.internal.InternalConfigParser typedParser = (org.eclipse.etrice.core.ui.contentassist.antlr.internal.InternalConfigParser) parser; + typedParser.entryRuleConfigModel(); + return typedParser.getFollowElements(); + } catch(RecognitionException ex) { + throw new RuntimeException(ex); + } + } + + @Override + protected String[] getInitialHiddenTokens() { + return new String[] { "RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT" }; + } + + public ConfigGrammarAccess getGrammarAccess() { + return this.grammarAccess; + } + + public void setGrammarAccess(ConfigGrammarAccess grammarAccess) { + this.grammarAccess = grammarAccess; + } +} diff --git a/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/PartialConfigContentAssistParser.java b/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/PartialConfigContentAssistParser.java new file mode 100644 index 000000000..4d2604f3e --- /dev/null +++ b/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/PartialConfigContentAssistParser.java @@ -0,0 +1,37 @@ +/* + * generated by Xtext + */ +package org.eclipse.etrice.core.ui.contentassist.antlr; + +import java.util.Collection; +import java.util.Collections; + +import org.eclipse.xtext.AbstractRule; +import org.eclipse.xtext.ui.codetemplates.ui.partialEditing.IPartialContentAssistParser; +import org.eclipse.xtext.ui.editor.contentassist.antlr.FollowElement; +import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; +import org.eclipse.xtext.util.PolymorphicDispatcher; + +/** + * @author Sebastian Zarnekow - Initial contribution and API + */ +public class PartialConfigContentAssistParser extends ConfigParser implements IPartialContentAssistParser { + + private AbstractRule rule; + + public void initializeFor(AbstractRule rule) { + this.rule = rule; + } + + @Override + protected Collection getFollowElements(AbstractInternalContentAssistParser parser) { + if (rule == null || rule.eIsProxy()) + return Collections.emptyList(); + String methodName = "entryRule" + rule.getName(); + PolymorphicDispatcher> dispatcher = + new PolymorphicDispatcher>(methodName, 0, 0, Collections.singletonList(parser)); + dispatcher.invoke(); + return parser.getFollowElements(); + } + +} diff --git a/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g b/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g new file mode 100644 index 000000000..a023a2bdf --- /dev/null +++ b/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g @@ -0,0 +1,499 @@ +/* +* generated by Xtext +*/ +grammar InternalConfig; + +options { + superClass=AbstractInternalContentAssistParser; + +} + +@lexer::header { +package org.eclipse.etrice.core.ui.contentassist.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.ui.editor.contentassist.antlr.internal.Lexer; +} + +@parser::header { +package org.eclipse.etrice.core.ui.contentassist.antlr.internal; + +import java.io.InputStream; +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.xtext.parser.antlr.XtextTokenStream; +import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; +import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; +import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.DFA; +import org.eclipse.etrice.core.services.ConfigGrammarAccess; + +} + +@parser::members { + + private ConfigGrammarAccess grammarAccess; + + public void setGrammarAccess(ConfigGrammarAccess grammarAccess) { + this.grammarAccess = grammarAccess; + } + + @Override + protected Grammar getGrammar() { + return grammarAccess.getGrammar(); + } + + @Override + protected String getValueForTokenName(String tokenName) { + return tokenName; + } + +} + + + + +// Entry rule entryRuleConfigModel +entryRuleConfigModel +: +{ before(grammarAccess.getConfigModelRule()); } + ruleConfigModel +{ after(grammarAccess.getConfigModelRule()); } + EOF +; + +// Rule ConfigModel +ruleConfigModel + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getConfigModelAccess().getGroup()); } +(rule__ConfigModel__Group__0) +{ after(grammarAccess.getConfigModelAccess().getGroup()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleActorClassConfig +entryRuleActorClassConfig +: +{ before(grammarAccess.getActorClassConfigRule()); } + ruleActorClassConfig +{ after(grammarAccess.getActorClassConfigRule()); } + EOF +; + +// Rule ActorClassConfig +ruleActorClassConfig + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getActorClassConfigAccess().getGroup()); } +(rule__ActorClassConfig__Group__0) +{ after(grammarAccess.getActorClassConfigAccess().getGroup()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + +// Entry rule entryRuleActorInstanceConfig +entryRuleActorInstanceConfig +: +{ before(grammarAccess.getActorInstanceConfigRule()); } + ruleActorInstanceConfig +{ after(grammarAccess.getActorInstanceConfigRule()); } + EOF +; + +// Rule ActorInstanceConfig +ruleActorInstanceConfig + @init { + int stackSize = keepStackSize(); + } + : +( +{ before(grammarAccess.getActorInstanceConfigAccess().getGroup()); } +(rule__ActorInstanceConfig__Group__0) +{ after(grammarAccess.getActorInstanceConfigAccess().getGroup()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + +rule__ConfigModel__Group__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__ConfigModel__Group__0__Impl + rule__ConfigModel__Group__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__ConfigModel__Group__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getConfigModelAccess().getActorClassConfigsAssignment_0()); } +(rule__ConfigModel__ActorClassConfigsAssignment_0)* +{ after(grammarAccess.getConfigModelAccess().getActorClassConfigsAssignment_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__ConfigModel__Group__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__ConfigModel__Group__1__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__ConfigModel__Group__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getConfigModelAccess().getActorInstanceConfigsAssignment_1()); } +(rule__ConfigModel__ActorInstanceConfigsAssignment_1)* +{ after(grammarAccess.getConfigModelAccess().getActorInstanceConfigsAssignment_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + +rule__ActorClassConfig__Group__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__ActorClassConfig__Group__0__Impl + rule__ActorClassConfig__Group__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__ActorClassConfig__Group__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getActorClassConfigAccess().getActorClassConfigKeyword_0()); } + + 'ActorClassConfig' + +{ after(grammarAccess.getActorClassConfigAccess().getActorClassConfigKeyword_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__ActorClassConfig__Group__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__ActorClassConfig__Group__1__Impl + rule__ActorClassConfig__Group__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__ActorClassConfig__Group__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getActorClassConfigAccess().getActorClassAssignment_1()); } +(rule__ActorClassConfig__ActorClassAssignment_1) +{ after(grammarAccess.getActorClassConfigAccess().getActorClassAssignment_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__ActorClassConfig__Group__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__ActorClassConfig__Group__2__Impl + rule__ActorClassConfig__Group__3 +; +finally { + restoreStackSize(stackSize); +} + +rule__ActorClassConfig__Group__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getActorClassConfigAccess().getLeftCurlyBracketKeyword_2()); } + + '{' + +{ after(grammarAccess.getActorClassConfigAccess().getLeftCurlyBracketKeyword_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__ActorClassConfig__Group__3 + @init { + int stackSize = keepStackSize(); + } +: + rule__ActorClassConfig__Group__3__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__ActorClassConfig__Group__3__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getActorClassConfigAccess().getRightCurlyBracketKeyword_3()); } + + '}' + +{ after(grammarAccess.getActorClassConfigAccess().getRightCurlyBracketKeyword_3()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + + + +rule__ActorInstanceConfig__Group__0 + @init { + int stackSize = keepStackSize(); + } +: + rule__ActorInstanceConfig__Group__0__Impl + rule__ActorInstanceConfig__Group__1 +; +finally { + restoreStackSize(stackSize); +} + +rule__ActorInstanceConfig__Group__0__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getActorInstanceConfigAccess().getActorInstanceConfigKeyword_0()); } + + 'ActorInstanceConfig' + +{ after(grammarAccess.getActorInstanceConfigAccess().getActorInstanceConfigKeyword_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__ActorInstanceConfig__Group__1 + @init { + int stackSize = keepStackSize(); + } +: + rule__ActorInstanceConfig__Group__1__Impl + rule__ActorInstanceConfig__Group__2 +; +finally { + restoreStackSize(stackSize); +} + +rule__ActorInstanceConfig__Group__1__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getActorInstanceConfigAccess().getLeftCurlyBracketKeyword_1()); } + + '{' + +{ after(grammarAccess.getActorInstanceConfigAccess().getLeftCurlyBracketKeyword_1()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +rule__ActorInstanceConfig__Group__2 + @init { + int stackSize = keepStackSize(); + } +: + rule__ActorInstanceConfig__Group__2__Impl +; +finally { + restoreStackSize(stackSize); +} + +rule__ActorInstanceConfig__Group__2__Impl + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getActorInstanceConfigAccess().getRightCurlyBracketKeyword_2()); } + + '}' + +{ after(grammarAccess.getActorInstanceConfigAccess().getRightCurlyBracketKeyword_2()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + + + + + + + + +rule__ConfigModel__ActorClassConfigsAssignment_0 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getConfigModelAccess().getActorClassConfigsActorClassConfigParserRuleCall_0_0()); } + ruleActorClassConfig{ after(grammarAccess.getConfigModelAccess().getActorClassConfigsActorClassConfigParserRuleCall_0_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__ConfigModel__ActorInstanceConfigsAssignment_1 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getConfigModelAccess().getActorInstanceConfigsActorInstanceConfigParserRuleCall_1_0()); } + ruleActorInstanceConfig{ after(grammarAccess.getConfigModelAccess().getActorInstanceConfigsActorInstanceConfigParserRuleCall_1_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + +rule__ActorClassConfig__ActorClassAssignment_1 + @init { + int stackSize = keepStackSize(); + } +: +( +{ before(grammarAccess.getActorClassConfigAccess().getActorClassActorClassCrossReference_1_0()); } +( +{ before(grammarAccess.getActorClassConfigAccess().getActorClassActorClassIDTerminalRuleCall_1_0_1()); } + RULE_ID{ after(grammarAccess.getActorClassConfigAccess().getActorClassActorClassIDTerminalRuleCall_1_0_1()); } +) +{ after(grammarAccess.getActorClassConfigAccess().getActorClassActorClassCrossReference_1_0()); } +) + +; +finally { + restoreStackSize(stackSize); +} + + +RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; + +RULE_INT : ('0'..'9')+; + +RULE_STRING : ('"' ('\\' ('b'|'t'|'n'|'f'|'r'|'u'|'"'|'\''|'\\')|~(('\\'|'"')))* '"'|'\'' ('\\' ('b'|'t'|'n'|'f'|'r'|'u'|'"'|'\''|'\\')|~(('\\'|'\'')))* '\''); + +RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/'; + +RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?; + +RULE_WS : (' '|'\t'|'\r'|'\n')+; + +RULE_ANY_OTHER : .; + + diff --git a/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.tokens b/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.tokens new file mode 100644 index 000000000..536f0772f --- /dev/null +++ b/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.tokens @@ -0,0 +1,15 @@ +RULE_ID=4 +RULE_STRING=6 +T__12=12 +T__11=11 +T__14=14 +T__13=13 +RULE_ANY_OTHER=10 +RULE_INT=5 +RULE_WS=9 +RULE_SL_COMMENT=8 +RULE_ML_COMMENT=7 +'ActorInstanceConfig'=14 +'}'=13 +'ActorClassConfig'=11 +'{'=12 diff --git a/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfigLexer.java b/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfigLexer.java new file mode 100644 index 000000000..5fbcab914 --- /dev/null +++ b/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfigLexer.java @@ -0,0 +1,895 @@ +package org.eclipse.etrice.core.ui.contentassist.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.ui.editor.contentassist.antlr.internal.Lexer; + + +import org.antlr.runtime.*; +import java.util.Stack; +import java.util.List; +import java.util.ArrayList; + +@SuppressWarnings("all") +public class InternalConfigLexer extends Lexer { + public static final int RULE_ID=4; + public static final int RULE_STRING=6; + public static final int T__12=12; + public static final int T__11=11; + public static final int T__14=14; + public static final int T__13=13; + public static final int RULE_ANY_OTHER=10; + public static final int RULE_INT=5; + public static final int RULE_WS=9; + public static final int RULE_SL_COMMENT=8; + public static final int EOF=-1; + public static final int RULE_ML_COMMENT=7; + + // delegates + // delegators + + public InternalConfigLexer() {;} + public InternalConfigLexer(CharStream input) { + this(input, new RecognizerSharedState()); + } + public InternalConfigLexer(CharStream input, RecognizerSharedState state) { + super(input,state); + + } + public String getGrammarFileName() { return "../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g"; } + + // $ANTLR start "T__11" + public final void mT__11() throws RecognitionException { + try { + int _type = T__11; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:11:7: ( 'ActorClassConfig' ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:11:9: 'ActorClassConfig' + { + match("ActorClassConfig"); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "T__11" + + // $ANTLR start "T__12" + public final void mT__12() throws RecognitionException { + try { + int _type = T__12; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:12:7: ( '{' ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:12:9: '{' + { + match('{'); + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "T__12" + + // $ANTLR start "T__13" + public final void mT__13() throws RecognitionException { + try { + int _type = T__13; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:13:7: ( '}' ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:13:9: '}' + { + match('}'); + + } + + 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; + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:14:7: ( 'ActorInstanceConfig' ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:14:9: 'ActorInstanceConfig' + { + match("ActorInstanceConfig"); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "T__14" + + // $ANTLR start "RULE_ID" + public final void mRULE_ID() throws RecognitionException { + try { + int _type = RULE_ID; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:485:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:485:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* + { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:485:11: ( '^' )? + int alt1=2; + int LA1_0 = input.LA(1); + + if ( (LA1_0=='^') ) { + alt1=1; + } + switch (alt1) { + case 1 : + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:485:11: '^' + { + match('^'); + + } + break; + + } + + 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;} + + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:485:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* + loop2: + do { + int alt2=2; + int LA2_0 = input.LA(1); + + if ( ((LA2_0>='0' && LA2_0<='9')||(LA2_0>='A' && LA2_0<='Z')||LA2_0=='_'||(LA2_0>='a' && LA2_0<='z')) ) { + alt2=1; + } + + + switch (alt2) { + case 1 : + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.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 loop2; + } + } while (true); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "RULE_ID" + + // $ANTLR start "RULE_INT" + public final void mRULE_INT() throws RecognitionException { + try { + int _type = RULE_INT; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:487:10: ( ( '0' .. '9' )+ ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:487:12: ( '0' .. '9' )+ + { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:487:12: ( '0' .. '9' )+ + int cnt3=0; + loop3: + do { + int alt3=2; + int LA3_0 = input.LA(1); + + if ( ((LA3_0>='0' && LA3_0<='9')) ) { + alt3=1; + } + + + switch (alt3) { + case 1 : + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:487:13: '0' .. '9' + { + matchRange('0','9'); + + } + break; + + default : + if ( cnt3 >= 1 ) break loop3; + EarlyExitException eee = + new EarlyExitException(3, input); + throw eee; + } + cnt3++; + } while (true); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "RULE_INT" + + // $ANTLR start "RULE_STRING" + public final void mRULE_STRING() throws RecognitionException { + try { + int _type = RULE_STRING; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:489:13: ( ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:489:15: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) + { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:489:15: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) + int alt6=2; + int LA6_0 = input.LA(1); + + if ( (LA6_0=='\"') ) { + alt6=1; + } + else if ( (LA6_0=='\'') ) { + alt6=2; + } + else { + NoViableAltException nvae = + new NoViableAltException("", 6, 0, input); + + throw nvae; + } + switch (alt6) { + case 1 : + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:489:16: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' + { + match('\"'); + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:489:20: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* + 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 : + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:489:21: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) + { + match('\\'); + if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||(input.LA(1)>='t' && input.LA(1)<='u') ) { + input.consume(); + + } + else { + MismatchedSetException mse = new MismatchedSetException(null,input); + recover(mse); + throw mse;} + + + } + break; + case 2 : + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:489:66: ~ ( ( '\\\\' | '\"' ) ) + { + 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('\"'); + + } + break; + case 2 : + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:489:86: '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' + { + match('\''); + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:489:91: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* + loop5: + do { + int alt5=3; + int LA5_0 = input.LA(1); + + if ( (LA5_0=='\\') ) { + alt5=1; + } + else if ( ((LA5_0>='\u0000' && LA5_0<='&')||(LA5_0>='(' && LA5_0<='[')||(LA5_0>=']' && LA5_0<='\uFFFF')) ) { + alt5=2; + } + + + switch (alt5) { + case 1 : + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:489:92: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | 'u' | '\"' | '\\'' | '\\\\' ) + { + match('\\'); + if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||(input.LA(1)>='t' && input.LA(1)<='u') ) { + input.consume(); + + } + else { + MismatchedSetException mse = new MismatchedSetException(null,input); + recover(mse); + throw mse;} + + + } + break; + case 2 : + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:489:137: ~ ( ( '\\\\' | '\\'' ) ) + { + 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 loop5; + } + } while (true); + + match('\''); + + } + break; + + } + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "RULE_STRING" + + // $ANTLR start "RULE_ML_COMMENT" + public final void mRULE_ML_COMMENT() throws RecognitionException { + try { + int _type = RULE_ML_COMMENT; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:491:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:491:19: '/*' ( options {greedy=false; } : . )* '*/' + { + match("/*"); + + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:491:24: ( options {greedy=false; } : . )* + loop7: + do { + int alt7=2; + int LA7_0 = input.LA(1); + + if ( (LA7_0=='*') ) { + int LA7_1 = input.LA(2); + + if ( (LA7_1=='/') ) { + alt7=2; + } + else if ( ((LA7_1>='\u0000' && LA7_1<='.')||(LA7_1>='0' && LA7_1<='\uFFFF')) ) { + alt7=1; + } + + + } + else if ( ((LA7_0>='\u0000' && LA7_0<=')')||(LA7_0>='+' && LA7_0<='\uFFFF')) ) { + alt7=1; + } + + + switch (alt7) { + case 1 : + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:491:52: . + { + matchAny(); + + } + break; + + default : + break loop7; + } + } while (true); + + match("*/"); + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "RULE_ML_COMMENT" + + // $ANTLR start "RULE_SL_COMMENT" + public final void mRULE_SL_COMMENT() throws RecognitionException { + try { + int _type = RULE_SL_COMMENT; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:493:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:493:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? + { + match("//"); + + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:493:24: (~ ( ( '\\n' | '\\r' ) ) )* + loop8: + do { + int alt8=2; + int LA8_0 = input.LA(1); + + if ( ((LA8_0>='\u0000' && LA8_0<='\t')||(LA8_0>='\u000B' && LA8_0<='\f')||(LA8_0>='\u000E' && LA8_0<='\uFFFF')) ) { + alt8=1; + } + + + switch (alt8) { + case 1 : + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:493:24: ~ ( ( '\\n' | '\\r' ) ) + { + if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) { + input.consume(); + + } + else { + MismatchedSetException mse = new MismatchedSetException(null,input); + recover(mse); + throw mse;} + + + } + break; + + default : + break loop8; + } + } while (true); + + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:493:40: ( ( '\\r' )? '\\n' )? + int alt10=2; + int LA10_0 = input.LA(1); + + if ( (LA10_0=='\n'||LA10_0=='\r') ) { + alt10=1; + } + switch (alt10) { + case 1 : + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:493:41: ( '\\r' )? '\\n' + { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:493:41: ( '\\r' )? + int alt9=2; + int LA9_0 = input.LA(1); + + if ( (LA9_0=='\r') ) { + alt9=1; + } + switch (alt9) { + case 1 : + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:493:41: '\\r' + { + match('\r'); + + } + break; + + } + + match('\n'); + + } + break; + + } + + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "RULE_SL_COMMENT" + + // $ANTLR start "RULE_WS" + public final void mRULE_WS() throws RecognitionException { + try { + int _type = RULE_WS; + int _channel = DEFAULT_TOKEN_CHANNEL; + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:495:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:495:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ + { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:495: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 : + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.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; + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:497:16: ( . ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:497:18: . + { + matchAny(); + + } + + state.type = _type; + state.channel = _channel; + } + finally { + } + } + // $ANTLR end "RULE_ANY_OTHER" + + public void mTokens() throws RecognitionException { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:1:8: ( T__11 | T__12 | T__13 | T__14 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER ) + int alt12=11; + alt12 = dfa12.predict(input); + switch (alt12) { + case 1 : + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:1:10: T__11 + { + mT__11(); + + } + break; + case 2 : + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:1:16: T__12 + { + mT__12(); + + } + break; + case 3 : + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:1:22: T__13 + { + mT__13(); + + } + break; + case 4 : + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:1:28: T__14 + { + mT__14(); + + } + break; + case 5 : + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:1:34: RULE_ID + { + mRULE_ID(); + + } + break; + case 6 : + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:1:42: RULE_INT + { + mRULE_INT(); + + } + break; + case 7 : + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:1:51: RULE_STRING + { + mRULE_STRING(); + + } + break; + case 8 : + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:1:63: RULE_ML_COMMENT + { + mRULE_ML_COMMENT(); + + } + break; + case 9 : + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:1:79: RULE_SL_COMMENT + { + mRULE_SL_COMMENT(); + + } + break; + case 10 : + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:1:95: RULE_WS + { + mRULE_WS(); + + } + break; + case 11 : + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:1:103: RULE_ANY_OTHER + { + mRULE_ANY_OTHER(); + + } + break; + + } + + } + + + protected DFA12 dfa12 = new DFA12(this); + static final String DFA12_eotS = + "\1\uffff\1\15\2\uffff\1\13\2\uffff\3\13\2\uffff\1\15\10\uffff\27"+ + "\15\1\56\1\15\1\uffff\2\15\1\62\1\uffff"; + static final String DFA12_eofS = + "\63\uffff"; + static final String DFA12_minS = + "\1\0\1\143\2\uffff\1\101\2\uffff\2\0\1\52\2\uffff\1\164\10\uffff"+ + "\1\157\1\162\1\103\1\154\1\156\1\141\2\163\1\164\1\163\1\141\1\103"+ + "\1\156\1\157\1\143\1\156\1\145\1\146\1\103\1\151\1\157\1\147\1\156"+ + "\1\60\1\146\1\uffff\1\151\1\147\1\60\1\uffff"; + static final String DFA12_maxS = + "\1\uffff\1\143\2\uffff\1\172\2\uffff\2\uffff\1\57\2\uffff\1\164"+ + "\10\uffff\1\157\1\162\1\111\1\154\1\156\1\141\2\163\1\164\1\163"+ + "\1\141\1\103\1\156\1\157\1\143\1\156\1\145\1\146\1\103\1\151\1\157"+ + "\1\147\1\156\1\172\1\146\1\uffff\1\151\1\147\1\172\1\uffff"; + static final String DFA12_acceptS = + "\2\uffff\1\2\1\3\1\uffff\1\5\1\6\3\uffff\1\12\1\13\1\uffff\1\5"+ + "\1\2\1\3\1\6\1\7\1\10\1\11\1\12\31\uffff\1\1\3\uffff\1\4"; + static final String DFA12_specialS = + "\1\2\6\uffff\1\0\1\1\52\uffff}>"; + static final String[] DFA12_transitionS = { + "\11\13\2\12\2\13\1\12\22\13\1\12\1\13\1\7\4\13\1\10\7\13\1"+ + "\11\12\6\7\13\1\1\31\5\3\13\1\4\1\5\1\13\32\5\1\2\1\13\1\3\uff82"+ + "\13", + "\1\14", + "", + "", + "\32\15\4\uffff\1\15\1\uffff\32\15", + "", + "", + "\0\21", + "\0\21", + "\1\22\4\uffff\1\23", + "", + "", + "\1\25", + "", + "", + "", + "", + "", + "", + "", + "", + "\1\26", + "\1\27", + "\1\30\5\uffff\1\31", + "\1\32", + "\1\33", + "\1\34", + "\1\35", + "\1\36", + "\1\37", + "\1\40", + "\1\41", + "\1\42", + "\1\43", + "\1\44", + "\1\45", + "\1\46", + "\1\47", + "\1\50", + "\1\51", + "\1\52", + "\1\53", + "\1\54", + "\1\55", + "\12\15\7\uffff\32\15\4\uffff\1\15\1\uffff\32\15", + "\1\57", + "", + "\1\60", + "\1\61", + "\12\15\7\uffff\32\15\4\uffff\1\15\1\uffff\32\15", + "" + }; + + 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_7<='\uFFFF')) ) {s = 17;} + + else s = 11; + + if ( s>=0 ) return s; + break; + case 1 : + int LA12_8 = input.LA(1); + + s = -1; + if ( ((LA12_8>='\u0000' && LA12_8<='\uFFFF')) ) {s = 17;} + + else s = 11; + + if ( s>=0 ) return s; + break; + case 2 : + int LA12_0 = input.LA(1); + + s = -1; + if ( (LA12_0=='A') ) {s = 1;} + + else if ( (LA12_0=='{') ) {s = 2;} + + else if ( (LA12_0=='}') ) {s = 3;} + + else if ( (LA12_0=='^') ) {s = 4;} + + else if ( ((LA12_0>='B' && LA12_0<='Z')||LA12_0=='_'||(LA12_0>='a' && LA12_0<='z')) ) {s = 5;} + + else if ( ((LA12_0>='0' && LA12_0<='9')) ) {s = 6;} + + else if ( (LA12_0=='\"') ) {s = 7;} + + else if ( (LA12_0=='\'') ) {s = 8;} + + else if ( (LA12_0=='/') ) {s = 9;} + + else if ( ((LA12_0>='\t' && LA12_0<='\n')||LA12_0=='\r'||LA12_0==' ') ) {s = 10;} + + 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>='~' && LA12_0<='\uFFFF')) ) {s = 11;} + + 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/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfigParser.java b/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfigParser.java new file mode 100644 index 000000000..ec6fcbb9e --- /dev/null +++ b/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfigParser.java @@ -0,0 +1,1202 @@ +package org.eclipse.etrice.core.ui.contentassist.antlr.internal; + +import java.io.InputStream; +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.xtext.parser.antlr.XtextTokenStream; +import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; +import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; +import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.DFA; +import org.eclipse.etrice.core.services.ConfigGrammarAccess; + + + +import org.antlr.runtime.*; +import java.util.Stack; +import java.util.List; +import java.util.ArrayList; + +@SuppressWarnings("all") +public class InternalConfigParser extends AbstractInternalContentAssistParser { + public static final String[] tokenNames = new String[] { + "", "", "", "", "RULE_ID", "RULE_INT", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'ActorClassConfig'", "'{'", "'}'", "'ActorInstanceConfig'" + }; + public static final int RULE_ID=4; + public static final int RULE_STRING=6; + public static final int T__12=12; + public static final int T__11=11; + public static final int T__14=14; + public static final int T__13=13; + public static final int RULE_ANY_OTHER=10; + public static final int RULE_INT=5; + public static final int RULE_WS=9; + public static final int RULE_SL_COMMENT=8; + public static final int EOF=-1; + public static final int RULE_ML_COMMENT=7; + + // delegates + // delegators + + + public InternalConfigParser(TokenStream input) { + this(input, new RecognizerSharedState()); + } + public InternalConfigParser(TokenStream input, RecognizerSharedState state) { + super(input, state); + + } + + + public String[] getTokenNames() { return InternalConfigParser.tokenNames; } + public String getGrammarFileName() { return "../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g"; } + + + + private ConfigGrammarAccess grammarAccess; + + public void setGrammarAccess(ConfigGrammarAccess grammarAccess) { + this.grammarAccess = grammarAccess; + } + + @Override + protected Grammar getGrammar() { + return grammarAccess.getGrammar(); + } + + @Override + protected String getValueForTokenName(String tokenName) { + return tokenName; + } + + + + + // $ANTLR start "entryRuleConfigModel" + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:60:1: entryRuleConfigModel : ruleConfigModel EOF ; + public final void entryRuleConfigModel() throws RecognitionException { + try { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:61:1: ( ruleConfigModel EOF ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:62:1: ruleConfigModel EOF + { + before(grammarAccess.getConfigModelRule()); + pushFollow(FOLLOW_ruleConfigModel_in_entryRuleConfigModel61); + ruleConfigModel(); + + state._fsp--; + + after(grammarAccess.getConfigModelRule()); + match(input,EOF,FOLLOW_EOF_in_entryRuleConfigModel68); + + } + + } + catch (RecognitionException re) { + reportError(re); + recover(input,re); + } + finally { + } + return ; + } + // $ANTLR end "entryRuleConfigModel" + + + // $ANTLR start "ruleConfigModel" + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:69:1: ruleConfigModel : ( ( rule__ConfigModel__Group__0 ) ) ; + public final void ruleConfigModel() throws RecognitionException { + + int stackSize = keepStackSize(); + + try { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:73:2: ( ( ( rule__ConfigModel__Group__0 ) ) ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:74:1: ( ( rule__ConfigModel__Group__0 ) ) + { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:74:1: ( ( rule__ConfigModel__Group__0 ) ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:75:1: ( rule__ConfigModel__Group__0 ) + { + before(grammarAccess.getConfigModelAccess().getGroup()); + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:76:1: ( rule__ConfigModel__Group__0 ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:76:2: rule__ConfigModel__Group__0 + { + pushFollow(FOLLOW_rule__ConfigModel__Group__0_in_ruleConfigModel94); + rule__ConfigModel__Group__0(); + + state._fsp--; + + + } + + after(grammarAccess.getConfigModelAccess().getGroup()); + + } + + + } + + } + catch (RecognitionException re) { + reportError(re); + recover(input,re); + } + finally { + + restoreStackSize(stackSize); + + } + return ; + } + // $ANTLR end "ruleConfigModel" + + + // $ANTLR start "entryRuleActorClassConfig" + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:88:1: entryRuleActorClassConfig : ruleActorClassConfig EOF ; + public final void entryRuleActorClassConfig() throws RecognitionException { + try { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:89:1: ( ruleActorClassConfig EOF ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:90:1: ruleActorClassConfig EOF + { + before(grammarAccess.getActorClassConfigRule()); + pushFollow(FOLLOW_ruleActorClassConfig_in_entryRuleActorClassConfig121); + ruleActorClassConfig(); + + state._fsp--; + + after(grammarAccess.getActorClassConfigRule()); + match(input,EOF,FOLLOW_EOF_in_entryRuleActorClassConfig128); + + } + + } + catch (RecognitionException re) { + reportError(re); + recover(input,re); + } + finally { + } + return ; + } + // $ANTLR end "entryRuleActorClassConfig" + + + // $ANTLR start "ruleActorClassConfig" + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:97:1: ruleActorClassConfig : ( ( rule__ActorClassConfig__Group__0 ) ) ; + public final void ruleActorClassConfig() throws RecognitionException { + + int stackSize = keepStackSize(); + + try { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:101:2: ( ( ( rule__ActorClassConfig__Group__0 ) ) ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:102:1: ( ( rule__ActorClassConfig__Group__0 ) ) + { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:102:1: ( ( rule__ActorClassConfig__Group__0 ) ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:103:1: ( rule__ActorClassConfig__Group__0 ) + { + before(grammarAccess.getActorClassConfigAccess().getGroup()); + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:104:1: ( rule__ActorClassConfig__Group__0 ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:104:2: rule__ActorClassConfig__Group__0 + { + pushFollow(FOLLOW_rule__ActorClassConfig__Group__0_in_ruleActorClassConfig154); + rule__ActorClassConfig__Group__0(); + + state._fsp--; + + + } + + after(grammarAccess.getActorClassConfigAccess().getGroup()); + + } + + + } + + } + catch (RecognitionException re) { + reportError(re); + recover(input,re); + } + finally { + + restoreStackSize(stackSize); + + } + return ; + } + // $ANTLR end "ruleActorClassConfig" + + + // $ANTLR start "entryRuleActorInstanceConfig" + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:116:1: entryRuleActorInstanceConfig : ruleActorInstanceConfig EOF ; + public final void entryRuleActorInstanceConfig() throws RecognitionException { + try { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:117:1: ( ruleActorInstanceConfig EOF ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:118:1: ruleActorInstanceConfig EOF + { + before(grammarAccess.getActorInstanceConfigRule()); + pushFollow(FOLLOW_ruleActorInstanceConfig_in_entryRuleActorInstanceConfig181); + ruleActorInstanceConfig(); + + state._fsp--; + + after(grammarAccess.getActorInstanceConfigRule()); + match(input,EOF,FOLLOW_EOF_in_entryRuleActorInstanceConfig188); + + } + + } + catch (RecognitionException re) { + reportError(re); + recover(input,re); + } + finally { + } + return ; + } + // $ANTLR end "entryRuleActorInstanceConfig" + + + // $ANTLR start "ruleActorInstanceConfig" + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:125:1: ruleActorInstanceConfig : ( ( rule__ActorInstanceConfig__Group__0 ) ) ; + public final void ruleActorInstanceConfig() throws RecognitionException { + + int stackSize = keepStackSize(); + + try { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:129:2: ( ( ( rule__ActorInstanceConfig__Group__0 ) ) ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:130:1: ( ( rule__ActorInstanceConfig__Group__0 ) ) + { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:130:1: ( ( rule__ActorInstanceConfig__Group__0 ) ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:131:1: ( rule__ActorInstanceConfig__Group__0 ) + { + before(grammarAccess.getActorInstanceConfigAccess().getGroup()); + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:132:1: ( rule__ActorInstanceConfig__Group__0 ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:132:2: rule__ActorInstanceConfig__Group__0 + { + pushFollow(FOLLOW_rule__ActorInstanceConfig__Group__0_in_ruleActorInstanceConfig214); + rule__ActorInstanceConfig__Group__0(); + + state._fsp--; + + + } + + after(grammarAccess.getActorInstanceConfigAccess().getGroup()); + + } + + + } + + } + catch (RecognitionException re) { + reportError(re); + recover(input,re); + } + finally { + + restoreStackSize(stackSize); + + } + return ; + } + // $ANTLR end "ruleActorInstanceConfig" + + + // $ANTLR start "rule__ConfigModel__Group__0" + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:146:1: rule__ConfigModel__Group__0 : rule__ConfigModel__Group__0__Impl rule__ConfigModel__Group__1 ; + public final void rule__ConfigModel__Group__0() throws RecognitionException { + + int stackSize = keepStackSize(); + + try { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:150:1: ( rule__ConfigModel__Group__0__Impl rule__ConfigModel__Group__1 ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:151:2: rule__ConfigModel__Group__0__Impl rule__ConfigModel__Group__1 + { + pushFollow(FOLLOW_rule__ConfigModel__Group__0__Impl_in_rule__ConfigModel__Group__0248); + rule__ConfigModel__Group__0__Impl(); + + state._fsp--; + + pushFollow(FOLLOW_rule__ConfigModel__Group__1_in_rule__ConfigModel__Group__0251); + rule__ConfigModel__Group__1(); + + state._fsp--; + + + } + + } + catch (RecognitionException re) { + reportError(re); + recover(input,re); + } + finally { + + restoreStackSize(stackSize); + + } + return ; + } + // $ANTLR end "rule__ConfigModel__Group__0" + + + // $ANTLR start "rule__ConfigModel__Group__0__Impl" + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:158:1: rule__ConfigModel__Group__0__Impl : ( ( rule__ConfigModel__ActorClassConfigsAssignment_0 )* ) ; + public final void rule__ConfigModel__Group__0__Impl() throws RecognitionException { + + int stackSize = keepStackSize(); + + try { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:162:1: ( ( ( rule__ConfigModel__ActorClassConfigsAssignment_0 )* ) ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:163:1: ( ( rule__ConfigModel__ActorClassConfigsAssignment_0 )* ) + { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:163:1: ( ( rule__ConfigModel__ActorClassConfigsAssignment_0 )* ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:164:1: ( rule__ConfigModel__ActorClassConfigsAssignment_0 )* + { + before(grammarAccess.getConfigModelAccess().getActorClassConfigsAssignment_0()); + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:165:1: ( rule__ConfigModel__ActorClassConfigsAssignment_0 )* + loop1: + do { + int alt1=2; + int LA1_0 = input.LA(1); + + if ( (LA1_0==11) ) { + alt1=1; + } + + + switch (alt1) { + case 1 : + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:165:2: rule__ConfigModel__ActorClassConfigsAssignment_0 + { + pushFollow(FOLLOW_rule__ConfigModel__ActorClassConfigsAssignment_0_in_rule__ConfigModel__Group__0__Impl278); + rule__ConfigModel__ActorClassConfigsAssignment_0(); + + state._fsp--; + + + } + break; + + default : + break loop1; + } + } while (true); + + after(grammarAccess.getConfigModelAccess().getActorClassConfigsAssignment_0()); + + } + + + } + + } + catch (RecognitionException re) { + reportError(re); + recover(input,re); + } + finally { + + restoreStackSize(stackSize); + + } + return ; + } + // $ANTLR end "rule__ConfigModel__Group__0__Impl" + + + // $ANTLR start "rule__ConfigModel__Group__1" + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:175:1: rule__ConfigModel__Group__1 : rule__ConfigModel__Group__1__Impl ; + public final void rule__ConfigModel__Group__1() throws RecognitionException { + + int stackSize = keepStackSize(); + + try { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:179:1: ( rule__ConfigModel__Group__1__Impl ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:180:2: rule__ConfigModel__Group__1__Impl + { + pushFollow(FOLLOW_rule__ConfigModel__Group__1__Impl_in_rule__ConfigModel__Group__1309); + rule__ConfigModel__Group__1__Impl(); + + state._fsp--; + + + } + + } + catch (RecognitionException re) { + reportError(re); + recover(input,re); + } + finally { + + restoreStackSize(stackSize); + + } + return ; + } + // $ANTLR end "rule__ConfigModel__Group__1" + + + // $ANTLR start "rule__ConfigModel__Group__1__Impl" + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:186:1: rule__ConfigModel__Group__1__Impl : ( ( rule__ConfigModel__ActorInstanceConfigsAssignment_1 )* ) ; + public final void rule__ConfigModel__Group__1__Impl() throws RecognitionException { + + int stackSize = keepStackSize(); + + try { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:190:1: ( ( ( rule__ConfigModel__ActorInstanceConfigsAssignment_1 )* ) ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:191:1: ( ( rule__ConfigModel__ActorInstanceConfigsAssignment_1 )* ) + { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:191:1: ( ( rule__ConfigModel__ActorInstanceConfigsAssignment_1 )* ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:192:1: ( rule__ConfigModel__ActorInstanceConfigsAssignment_1 )* + { + before(grammarAccess.getConfigModelAccess().getActorInstanceConfigsAssignment_1()); + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:193:1: ( rule__ConfigModel__ActorInstanceConfigsAssignment_1 )* + loop2: + do { + int alt2=2; + int LA2_0 = input.LA(1); + + if ( (LA2_0==14) ) { + alt2=1; + } + + + switch (alt2) { + case 1 : + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:193:2: rule__ConfigModel__ActorInstanceConfigsAssignment_1 + { + pushFollow(FOLLOW_rule__ConfigModel__ActorInstanceConfigsAssignment_1_in_rule__ConfigModel__Group__1__Impl336); + rule__ConfigModel__ActorInstanceConfigsAssignment_1(); + + state._fsp--; + + + } + break; + + default : + break loop2; + } + } while (true); + + after(grammarAccess.getConfigModelAccess().getActorInstanceConfigsAssignment_1()); + + } + + + } + + } + catch (RecognitionException re) { + reportError(re); + recover(input,re); + } + finally { + + restoreStackSize(stackSize); + + } + return ; + } + // $ANTLR end "rule__ConfigModel__Group__1__Impl" + + + // $ANTLR start "rule__ActorClassConfig__Group__0" + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:207:1: rule__ActorClassConfig__Group__0 : rule__ActorClassConfig__Group__0__Impl rule__ActorClassConfig__Group__1 ; + public final void rule__ActorClassConfig__Group__0() throws RecognitionException { + + int stackSize = keepStackSize(); + + try { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:211:1: ( rule__ActorClassConfig__Group__0__Impl rule__ActorClassConfig__Group__1 ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:212:2: rule__ActorClassConfig__Group__0__Impl rule__ActorClassConfig__Group__1 + { + pushFollow(FOLLOW_rule__ActorClassConfig__Group__0__Impl_in_rule__ActorClassConfig__Group__0371); + rule__ActorClassConfig__Group__0__Impl(); + + state._fsp--; + + pushFollow(FOLLOW_rule__ActorClassConfig__Group__1_in_rule__ActorClassConfig__Group__0374); + rule__ActorClassConfig__Group__1(); + + state._fsp--; + + + } + + } + catch (RecognitionException re) { + reportError(re); + recover(input,re); + } + finally { + + restoreStackSize(stackSize); + + } + return ; + } + // $ANTLR end "rule__ActorClassConfig__Group__0" + + + // $ANTLR start "rule__ActorClassConfig__Group__0__Impl" + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:219:1: rule__ActorClassConfig__Group__0__Impl : ( 'ActorClassConfig' ) ; + public final void rule__ActorClassConfig__Group__0__Impl() throws RecognitionException { + + int stackSize = keepStackSize(); + + try { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:223:1: ( ( 'ActorClassConfig' ) ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:224:1: ( 'ActorClassConfig' ) + { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:224:1: ( 'ActorClassConfig' ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:225:1: 'ActorClassConfig' + { + before(grammarAccess.getActorClassConfigAccess().getActorClassConfigKeyword_0()); + match(input,11,FOLLOW_11_in_rule__ActorClassConfig__Group__0__Impl402); + after(grammarAccess.getActorClassConfigAccess().getActorClassConfigKeyword_0()); + + } + + + } + + } + catch (RecognitionException re) { + reportError(re); + recover(input,re); + } + finally { + + restoreStackSize(stackSize); + + } + return ; + } + // $ANTLR end "rule__ActorClassConfig__Group__0__Impl" + + + // $ANTLR start "rule__ActorClassConfig__Group__1" + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:238:1: rule__ActorClassConfig__Group__1 : rule__ActorClassConfig__Group__1__Impl rule__ActorClassConfig__Group__2 ; + public final void rule__ActorClassConfig__Group__1() throws RecognitionException { + + int stackSize = keepStackSize(); + + try { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:242:1: ( rule__ActorClassConfig__Group__1__Impl rule__ActorClassConfig__Group__2 ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:243:2: rule__ActorClassConfig__Group__1__Impl rule__ActorClassConfig__Group__2 + { + pushFollow(FOLLOW_rule__ActorClassConfig__Group__1__Impl_in_rule__ActorClassConfig__Group__1433); + rule__ActorClassConfig__Group__1__Impl(); + + state._fsp--; + + pushFollow(FOLLOW_rule__ActorClassConfig__Group__2_in_rule__ActorClassConfig__Group__1436); + rule__ActorClassConfig__Group__2(); + + state._fsp--; + + + } + + } + catch (RecognitionException re) { + reportError(re); + recover(input,re); + } + finally { + + restoreStackSize(stackSize); + + } + return ; + } + // $ANTLR end "rule__ActorClassConfig__Group__1" + + + // $ANTLR start "rule__ActorClassConfig__Group__1__Impl" + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:250:1: rule__ActorClassConfig__Group__1__Impl : ( ( rule__ActorClassConfig__ActorClassAssignment_1 ) ) ; + public final void rule__ActorClassConfig__Group__1__Impl() throws RecognitionException { + + int stackSize = keepStackSize(); + + try { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:254:1: ( ( ( rule__ActorClassConfig__ActorClassAssignment_1 ) ) ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:255:1: ( ( rule__ActorClassConfig__ActorClassAssignment_1 ) ) + { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:255:1: ( ( rule__ActorClassConfig__ActorClassAssignment_1 ) ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:256:1: ( rule__ActorClassConfig__ActorClassAssignment_1 ) + { + before(grammarAccess.getActorClassConfigAccess().getActorClassAssignment_1()); + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:257:1: ( rule__ActorClassConfig__ActorClassAssignment_1 ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:257:2: rule__ActorClassConfig__ActorClassAssignment_1 + { + pushFollow(FOLLOW_rule__ActorClassConfig__ActorClassAssignment_1_in_rule__ActorClassConfig__Group__1__Impl463); + rule__ActorClassConfig__ActorClassAssignment_1(); + + state._fsp--; + + + } + + after(grammarAccess.getActorClassConfigAccess().getActorClassAssignment_1()); + + } + + + } + + } + catch (RecognitionException re) { + reportError(re); + recover(input,re); + } + finally { + + restoreStackSize(stackSize); + + } + return ; + } + // $ANTLR end "rule__ActorClassConfig__Group__1__Impl" + + + // $ANTLR start "rule__ActorClassConfig__Group__2" + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:267:1: rule__ActorClassConfig__Group__2 : rule__ActorClassConfig__Group__2__Impl rule__ActorClassConfig__Group__3 ; + public final void rule__ActorClassConfig__Group__2() throws RecognitionException { + + int stackSize = keepStackSize(); + + try { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:271:1: ( rule__ActorClassConfig__Group__2__Impl rule__ActorClassConfig__Group__3 ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:272:2: rule__ActorClassConfig__Group__2__Impl rule__ActorClassConfig__Group__3 + { + pushFollow(FOLLOW_rule__ActorClassConfig__Group__2__Impl_in_rule__ActorClassConfig__Group__2493); + rule__ActorClassConfig__Group__2__Impl(); + + state._fsp--; + + pushFollow(FOLLOW_rule__ActorClassConfig__Group__3_in_rule__ActorClassConfig__Group__2496); + rule__ActorClassConfig__Group__3(); + + state._fsp--; + + + } + + } + catch (RecognitionException re) { + reportError(re); + recover(input,re); + } + finally { + + restoreStackSize(stackSize); + + } + return ; + } + // $ANTLR end "rule__ActorClassConfig__Group__2" + + + // $ANTLR start "rule__ActorClassConfig__Group__2__Impl" + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:279:1: rule__ActorClassConfig__Group__2__Impl : ( '{' ) ; + public final void rule__ActorClassConfig__Group__2__Impl() throws RecognitionException { + + int stackSize = keepStackSize(); + + try { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:283:1: ( ( '{' ) ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:284:1: ( '{' ) + { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:284:1: ( '{' ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:285:1: '{' + { + before(grammarAccess.getActorClassConfigAccess().getLeftCurlyBracketKeyword_2()); + match(input,12,FOLLOW_12_in_rule__ActorClassConfig__Group__2__Impl524); + after(grammarAccess.getActorClassConfigAccess().getLeftCurlyBracketKeyword_2()); + + } + + + } + + } + catch (RecognitionException re) { + reportError(re); + recover(input,re); + } + finally { + + restoreStackSize(stackSize); + + } + return ; + } + // $ANTLR end "rule__ActorClassConfig__Group__2__Impl" + + + // $ANTLR start "rule__ActorClassConfig__Group__3" + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:298:1: rule__ActorClassConfig__Group__3 : rule__ActorClassConfig__Group__3__Impl ; + public final void rule__ActorClassConfig__Group__3() throws RecognitionException { + + int stackSize = keepStackSize(); + + try { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:302:1: ( rule__ActorClassConfig__Group__3__Impl ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:303:2: rule__ActorClassConfig__Group__3__Impl + { + pushFollow(FOLLOW_rule__ActorClassConfig__Group__3__Impl_in_rule__ActorClassConfig__Group__3555); + rule__ActorClassConfig__Group__3__Impl(); + + state._fsp--; + + + } + + } + catch (RecognitionException re) { + reportError(re); + recover(input,re); + } + finally { + + restoreStackSize(stackSize); + + } + return ; + } + // $ANTLR end "rule__ActorClassConfig__Group__3" + + + // $ANTLR start "rule__ActorClassConfig__Group__3__Impl" + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:309:1: rule__ActorClassConfig__Group__3__Impl : ( '}' ) ; + public final void rule__ActorClassConfig__Group__3__Impl() throws RecognitionException { + + int stackSize = keepStackSize(); + + try { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:313:1: ( ( '}' ) ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:314:1: ( '}' ) + { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:314:1: ( '}' ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:315:1: '}' + { + before(grammarAccess.getActorClassConfigAccess().getRightCurlyBracketKeyword_3()); + match(input,13,FOLLOW_13_in_rule__ActorClassConfig__Group__3__Impl583); + after(grammarAccess.getActorClassConfigAccess().getRightCurlyBracketKeyword_3()); + + } + + + } + + } + catch (RecognitionException re) { + reportError(re); + recover(input,re); + } + finally { + + restoreStackSize(stackSize); + + } + return ; + } + // $ANTLR end "rule__ActorClassConfig__Group__3__Impl" + + + // $ANTLR start "rule__ActorInstanceConfig__Group__0" + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:336:1: rule__ActorInstanceConfig__Group__0 : rule__ActorInstanceConfig__Group__0__Impl rule__ActorInstanceConfig__Group__1 ; + public final void rule__ActorInstanceConfig__Group__0() throws RecognitionException { + + int stackSize = keepStackSize(); + + try { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:340:1: ( rule__ActorInstanceConfig__Group__0__Impl rule__ActorInstanceConfig__Group__1 ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:341:2: rule__ActorInstanceConfig__Group__0__Impl rule__ActorInstanceConfig__Group__1 + { + pushFollow(FOLLOW_rule__ActorInstanceConfig__Group__0__Impl_in_rule__ActorInstanceConfig__Group__0622); + rule__ActorInstanceConfig__Group__0__Impl(); + + state._fsp--; + + pushFollow(FOLLOW_rule__ActorInstanceConfig__Group__1_in_rule__ActorInstanceConfig__Group__0625); + rule__ActorInstanceConfig__Group__1(); + + state._fsp--; + + + } + + } + catch (RecognitionException re) { + reportError(re); + recover(input,re); + } + finally { + + restoreStackSize(stackSize); + + } + return ; + } + // $ANTLR end "rule__ActorInstanceConfig__Group__0" + + + // $ANTLR start "rule__ActorInstanceConfig__Group__0__Impl" + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:348:1: rule__ActorInstanceConfig__Group__0__Impl : ( 'ActorInstanceConfig' ) ; + public final void rule__ActorInstanceConfig__Group__0__Impl() throws RecognitionException { + + int stackSize = keepStackSize(); + + try { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:352:1: ( ( 'ActorInstanceConfig' ) ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:353:1: ( 'ActorInstanceConfig' ) + { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:353:1: ( 'ActorInstanceConfig' ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:354:1: 'ActorInstanceConfig' + { + before(grammarAccess.getActorInstanceConfigAccess().getActorInstanceConfigKeyword_0()); + match(input,14,FOLLOW_14_in_rule__ActorInstanceConfig__Group__0__Impl653); + after(grammarAccess.getActorInstanceConfigAccess().getActorInstanceConfigKeyword_0()); + + } + + + } + + } + catch (RecognitionException re) { + reportError(re); + recover(input,re); + } + finally { + + restoreStackSize(stackSize); + + } + return ; + } + // $ANTLR end "rule__ActorInstanceConfig__Group__0__Impl" + + + // $ANTLR start "rule__ActorInstanceConfig__Group__1" + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:367:1: rule__ActorInstanceConfig__Group__1 : rule__ActorInstanceConfig__Group__1__Impl rule__ActorInstanceConfig__Group__2 ; + public final void rule__ActorInstanceConfig__Group__1() throws RecognitionException { + + int stackSize = keepStackSize(); + + try { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:371:1: ( rule__ActorInstanceConfig__Group__1__Impl rule__ActorInstanceConfig__Group__2 ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:372:2: rule__ActorInstanceConfig__Group__1__Impl rule__ActorInstanceConfig__Group__2 + { + pushFollow(FOLLOW_rule__ActorInstanceConfig__Group__1__Impl_in_rule__ActorInstanceConfig__Group__1684); + rule__ActorInstanceConfig__Group__1__Impl(); + + state._fsp--; + + pushFollow(FOLLOW_rule__ActorInstanceConfig__Group__2_in_rule__ActorInstanceConfig__Group__1687); + rule__ActorInstanceConfig__Group__2(); + + state._fsp--; + + + } + + } + catch (RecognitionException re) { + reportError(re); + recover(input,re); + } + finally { + + restoreStackSize(stackSize); + + } + return ; + } + // $ANTLR end "rule__ActorInstanceConfig__Group__1" + + + // $ANTLR start "rule__ActorInstanceConfig__Group__1__Impl" + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:379:1: rule__ActorInstanceConfig__Group__1__Impl : ( '{' ) ; + public final void rule__ActorInstanceConfig__Group__1__Impl() throws RecognitionException { + + int stackSize = keepStackSize(); + + try { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:383:1: ( ( '{' ) ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:384:1: ( '{' ) + { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:384:1: ( '{' ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:385:1: '{' + { + before(grammarAccess.getActorInstanceConfigAccess().getLeftCurlyBracketKeyword_1()); + match(input,12,FOLLOW_12_in_rule__ActorInstanceConfig__Group__1__Impl715); + after(grammarAccess.getActorInstanceConfigAccess().getLeftCurlyBracketKeyword_1()); + + } + + + } + + } + catch (RecognitionException re) { + reportError(re); + recover(input,re); + } + finally { + + restoreStackSize(stackSize); + + } + return ; + } + // $ANTLR end "rule__ActorInstanceConfig__Group__1__Impl" + + + // $ANTLR start "rule__ActorInstanceConfig__Group__2" + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:398:1: rule__ActorInstanceConfig__Group__2 : rule__ActorInstanceConfig__Group__2__Impl ; + public final void rule__ActorInstanceConfig__Group__2() throws RecognitionException { + + int stackSize = keepStackSize(); + + try { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:402:1: ( rule__ActorInstanceConfig__Group__2__Impl ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:403:2: rule__ActorInstanceConfig__Group__2__Impl + { + pushFollow(FOLLOW_rule__ActorInstanceConfig__Group__2__Impl_in_rule__ActorInstanceConfig__Group__2746); + rule__ActorInstanceConfig__Group__2__Impl(); + + state._fsp--; + + + } + + } + catch (RecognitionException re) { + reportError(re); + recover(input,re); + } + finally { + + restoreStackSize(stackSize); + + } + return ; + } + // $ANTLR end "rule__ActorInstanceConfig__Group__2" + + + // $ANTLR start "rule__ActorInstanceConfig__Group__2__Impl" + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:409:1: rule__ActorInstanceConfig__Group__2__Impl : ( '}' ) ; + public final void rule__ActorInstanceConfig__Group__2__Impl() throws RecognitionException { + + int stackSize = keepStackSize(); + + try { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:413:1: ( ( '}' ) ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:414:1: ( '}' ) + { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:414:1: ( '}' ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:415:1: '}' + { + before(grammarAccess.getActorInstanceConfigAccess().getRightCurlyBracketKeyword_2()); + match(input,13,FOLLOW_13_in_rule__ActorInstanceConfig__Group__2__Impl774); + after(grammarAccess.getActorInstanceConfigAccess().getRightCurlyBracketKeyword_2()); + + } + + + } + + } + catch (RecognitionException re) { + reportError(re); + recover(input,re); + } + finally { + + restoreStackSize(stackSize); + + } + return ; + } + // $ANTLR end "rule__ActorInstanceConfig__Group__2__Impl" + + + // $ANTLR start "rule__ConfigModel__ActorClassConfigsAssignment_0" + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:435:1: rule__ConfigModel__ActorClassConfigsAssignment_0 : ( ruleActorClassConfig ) ; + public final void rule__ConfigModel__ActorClassConfigsAssignment_0() throws RecognitionException { + + int stackSize = keepStackSize(); + + try { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:439:1: ( ( ruleActorClassConfig ) ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:440:1: ( ruleActorClassConfig ) + { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:440:1: ( ruleActorClassConfig ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:441:1: ruleActorClassConfig + { + before(grammarAccess.getConfigModelAccess().getActorClassConfigsActorClassConfigParserRuleCall_0_0()); + pushFollow(FOLLOW_ruleActorClassConfig_in_rule__ConfigModel__ActorClassConfigsAssignment_0816); + ruleActorClassConfig(); + + state._fsp--; + + after(grammarAccess.getConfigModelAccess().getActorClassConfigsActorClassConfigParserRuleCall_0_0()); + + } + + + } + + } + catch (RecognitionException re) { + reportError(re); + recover(input,re); + } + finally { + + restoreStackSize(stackSize); + + } + return ; + } + // $ANTLR end "rule__ConfigModel__ActorClassConfigsAssignment_0" + + + // $ANTLR start "rule__ConfigModel__ActorInstanceConfigsAssignment_1" + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:450:1: rule__ConfigModel__ActorInstanceConfigsAssignment_1 : ( ruleActorInstanceConfig ) ; + public final void rule__ConfigModel__ActorInstanceConfigsAssignment_1() throws RecognitionException { + + int stackSize = keepStackSize(); + + try { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:454:1: ( ( ruleActorInstanceConfig ) ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:455:1: ( ruleActorInstanceConfig ) + { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:455:1: ( ruleActorInstanceConfig ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:456:1: ruleActorInstanceConfig + { + before(grammarAccess.getConfigModelAccess().getActorInstanceConfigsActorInstanceConfigParserRuleCall_1_0()); + pushFollow(FOLLOW_ruleActorInstanceConfig_in_rule__ConfigModel__ActorInstanceConfigsAssignment_1847); + ruleActorInstanceConfig(); + + state._fsp--; + + after(grammarAccess.getConfigModelAccess().getActorInstanceConfigsActorInstanceConfigParserRuleCall_1_0()); + + } + + + } + + } + catch (RecognitionException re) { + reportError(re); + recover(input,re); + } + finally { + + restoreStackSize(stackSize); + + } + return ; + } + // $ANTLR end "rule__ConfigModel__ActorInstanceConfigsAssignment_1" + + + // $ANTLR start "rule__ActorClassConfig__ActorClassAssignment_1" + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:465:1: rule__ActorClassConfig__ActorClassAssignment_1 : ( ( RULE_ID ) ) ; + public final void rule__ActorClassConfig__ActorClassAssignment_1() throws RecognitionException { + + int stackSize = keepStackSize(); + + try { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:469:1: ( ( ( RULE_ID ) ) ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:470:1: ( ( RULE_ID ) ) + { + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:470:1: ( ( RULE_ID ) ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:471:1: ( RULE_ID ) + { + before(grammarAccess.getActorClassConfigAccess().getActorClassActorClassCrossReference_1_0()); + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:472:1: ( RULE_ID ) + // ../org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/contentassist/antlr/internal/InternalConfig.g:473:1: RULE_ID + { + before(grammarAccess.getActorClassConfigAccess().getActorClassActorClassIDTerminalRuleCall_1_0_1()); + match(input,RULE_ID,FOLLOW_RULE_ID_in_rule__ActorClassConfig__ActorClassAssignment_1882); + after(grammarAccess.getActorClassConfigAccess().getActorClassActorClassIDTerminalRuleCall_1_0_1()); + + } + + after(grammarAccess.getActorClassConfigAccess().getActorClassActorClassCrossReference_1_0()); + + } + + + } + + } + catch (RecognitionException re) { + reportError(re); + recover(input,re); + } + finally { + + restoreStackSize(stackSize); + + } + return ; + } + // $ANTLR end "rule__ActorClassConfig__ActorClassAssignment_1" + + // Delegated rules + + + + + public static final BitSet FOLLOW_ruleConfigModel_in_entryRuleConfigModel61 = new BitSet(new long[]{0x0000000000000000L}); + public static final BitSet FOLLOW_EOF_in_entryRuleConfigModel68 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_rule__ConfigModel__Group__0_in_ruleConfigModel94 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_ruleActorClassConfig_in_entryRuleActorClassConfig121 = new BitSet(new long[]{0x0000000000000000L}); + public static final BitSet FOLLOW_EOF_in_entryRuleActorClassConfig128 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_rule__ActorClassConfig__Group__0_in_ruleActorClassConfig154 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_ruleActorInstanceConfig_in_entryRuleActorInstanceConfig181 = new BitSet(new long[]{0x0000000000000000L}); + public static final BitSet FOLLOW_EOF_in_entryRuleActorInstanceConfig188 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_rule__ActorInstanceConfig__Group__0_in_ruleActorInstanceConfig214 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_rule__ConfigModel__Group__0__Impl_in_rule__ConfigModel__Group__0248 = new BitSet(new long[]{0x0000000000004000L}); + public static final BitSet FOLLOW_rule__ConfigModel__Group__1_in_rule__ConfigModel__Group__0251 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_rule__ConfigModel__ActorClassConfigsAssignment_0_in_rule__ConfigModel__Group__0__Impl278 = new BitSet(new long[]{0x0000000000000802L}); + public static final BitSet FOLLOW_rule__ConfigModel__Group__1__Impl_in_rule__ConfigModel__Group__1309 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_rule__ConfigModel__ActorInstanceConfigsAssignment_1_in_rule__ConfigModel__Group__1__Impl336 = new BitSet(new long[]{0x0000000000004002L}); + public static final BitSet FOLLOW_rule__ActorClassConfig__Group__0__Impl_in_rule__ActorClassConfig__Group__0371 = new BitSet(new long[]{0x0000000000000010L}); + public static final BitSet FOLLOW_rule__ActorClassConfig__Group__1_in_rule__ActorClassConfig__Group__0374 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_11_in_rule__ActorClassConfig__Group__0__Impl402 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_rule__ActorClassConfig__Group__1__Impl_in_rule__ActorClassConfig__Group__1433 = new BitSet(new long[]{0x0000000000001000L}); + public static final BitSet FOLLOW_rule__ActorClassConfig__Group__2_in_rule__ActorClassConfig__Group__1436 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_rule__ActorClassConfig__ActorClassAssignment_1_in_rule__ActorClassConfig__Group__1__Impl463 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_rule__ActorClassConfig__Group__2__Impl_in_rule__ActorClassConfig__Group__2493 = new BitSet(new long[]{0x0000000000002000L}); + public static final BitSet FOLLOW_rule__ActorClassConfig__Group__3_in_rule__ActorClassConfig__Group__2496 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_12_in_rule__ActorClassConfig__Group__2__Impl524 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_rule__ActorClassConfig__Group__3__Impl_in_rule__ActorClassConfig__Group__3555 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_13_in_rule__ActorClassConfig__Group__3__Impl583 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_rule__ActorInstanceConfig__Group__0__Impl_in_rule__ActorInstanceConfig__Group__0622 = new BitSet(new long[]{0x0000000000001000L}); + public static final BitSet FOLLOW_rule__ActorInstanceConfig__Group__1_in_rule__ActorInstanceConfig__Group__0625 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_14_in_rule__ActorInstanceConfig__Group__0__Impl653 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_rule__ActorInstanceConfig__Group__1__Impl_in_rule__ActorInstanceConfig__Group__1684 = new BitSet(new long[]{0x0000000000002000L}); + public static final BitSet FOLLOW_rule__ActorInstanceConfig__Group__2_in_rule__ActorInstanceConfig__Group__1687 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_12_in_rule__ActorInstanceConfig__Group__1__Impl715 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_rule__ActorInstanceConfig__Group__2__Impl_in_rule__ActorInstanceConfig__Group__2746 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_13_in_rule__ActorInstanceConfig__Group__2__Impl774 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_ruleActorClassConfig_in_rule__ConfigModel__ActorClassConfigsAssignment_0816 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_ruleActorInstanceConfig_in_rule__ConfigModel__ActorInstanceConfigsAssignment_1847 = new BitSet(new long[]{0x0000000000000002L}); + public static final BitSet FOLLOW_RULE_ID_in_rule__ActorClassConfig__ActorClassAssignment_1882 = new BitSet(new long[]{0x0000000000000002L}); + +} \ No newline at end of file diff --git a/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/internal/ConfigActivator.java b/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/internal/ConfigActivator.java new file mode 100644 index 000000000..6d008c213 --- /dev/null +++ b/plugins/org.eclipse.etrice.core.config.ui/src-gen/org/eclipse/etrice/core/ui/internal/ConfigActivator.java @@ -0,0 +1,82 @@ +/* + * generated by Xtext + */ +package org.eclipse.etrice.core.ui.internal; + +import static com.google.inject.util.Modules.override; +import static com.google.inject.Guice.createInjector; + +import org.apache.log4j.Logger; + +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +import com.google.inject.Injector; +import com.google.inject.Module; + +import java.util.Map; +import java.util.HashMap; + +/** + * This class was generated. Customizations should only happen in a newly + * introduced subclass. + */ +public class ConfigActivator extends AbstractUIPlugin { + + private Map injectors = new HashMap(); + private static ConfigActivator INSTANCE; + + public Injector getInjector(String languageName) { + return injectors.get(languageName); + } + + @Override + public void start(BundleContext context) throws Exception { + super.start(context); + INSTANCE = this; + try { + registerInjectorFor("org.eclipse.etrice.core.Config"); + + } catch (Exception e) { + Logger.getLogger(getClass()).error(e.getMessage(), e); + throw e; + } + } + + protected void registerInjectorFor(String language) throws Exception { + injectors.put(language, createInjector( + override(override(getRuntimeModule(language)).with(getSharedStateModule())).with(getUiModule(language)))); + } + + @Override + public void stop(BundleContext context) throws Exception { + injectors.clear(); + INSTANCE = null; + super.stop(context); + } + + public static ConfigActivator getInstance() { + return INSTANCE; + } + + protected Module getRuntimeModule(String grammar) { + if ("org.eclipse.etrice.core.Config".equals(grammar)) { + return new org.eclipse.etrice.core.ConfigRuntimeModule(); + } + + throw new IllegalArgumentException(grammar); + } + + protected Module getUiModule(String grammar) { + if ("org.eclipse.etrice.core.Config".equals(grammar)) { + return new org.eclipse.etrice.core.ui.ConfigUiModule(this); + } + + throw new IllegalArgumentException(grammar); + } + + protected Module getSharedStateModule() { + return new org.eclipse.xtext.ui.shared.SharedStateModule(); + } + +} -- cgit v1.2.3