diff options
Diffstat (limited to 'plugins/org.eclipse.etrice.core.etmap')
37 files changed, 3151 insertions, 3112 deletions
diff --git a/plugins/org.eclipse.etrice.core.etmap/.launch/Generate Language Infrastructure (org.eclipse.etrice.core.etmap).launch b/plugins/org.eclipse.etrice.core.etmap/.launch/Generate Language Infrastructure (org.eclipse.etrice.core.etmap).launch index fcc33272a..b4e39cc66 100644 --- a/plugins/org.eclipse.etrice.core.etmap/.launch/Generate Language Infrastructure (org.eclipse.etrice.core.etmap).launch +++ b/plugins/org.eclipse.etrice.core.etmap/.launch/Generate Language Infrastructure (org.eclipse.etrice.core.etmap).launch @@ -11,7 +11,7 @@ <listEntry value="org.eclipse.debug.ui.launchGroup.debug"/> <listEntry value="org.eclipse.debug.ui.launchGroup.run"/> </listAttribute> -<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> +<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11"/> <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher"/> <stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="src/org/eclipse/etrice/core/etmap/GenerateETMap.mwe2"/> <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.etrice.core.etmap"/> diff --git a/plugins/org.eclipse.etrice.core.etmap/META-INF/MANIFEST.MF b/plugins/org.eclipse.etrice.core.etmap/META-INF/MANIFEST.MF index d0ab17c29..2811b81de 100644 --- a/plugins/org.eclipse.etrice.core.etmap/META-INF/MANIFEST.MF +++ b/plugins/org.eclipse.etrice.core.etmap/META-INF/MANIFEST.MF @@ -5,34 +5,27 @@ Bundle-Vendor: Eclipse eTrice Bundle-Version: 0.0.0.qualifier Bundle-SymbolicName: org.eclipse.etrice.core.etmap; singleton:=true Bundle-ActivationPolicy: lazy -Require-Bundle: org.eclipse.etrice.core.common, - org.eclipse.etrice.core.fsm, - org.eclipse.etrice.core.room, - org.eclipse.etrice.core.etphys, - org.eclipse.etrice.core.genmodel.fsm, - org.eclipse.etrice.core.genmodel, +Require-Bundle: org.eclipse.etrice.core.common, + org.eclipse.etrice.core.fsm, + org.eclipse.etrice.core.room, + org.eclipse.etrice.core.etphys, + org.eclipse.etrice.core.genmodel.fsm, + org.eclipse.etrice.core.genmodel, org.eclipse.xtext;visibility:=reexport, org.eclipse.xtext.xbase;resolution:=optional;visibility:=reexport, - org.eclipse.xtext.generator;resolution:=optional, - org.apache.commons.logging;resolution:=optional, - org.eclipse.emf.codegen.ecore;resolution:=optional, - org.eclipse.emf.mwe.utils;resolution:=optional, - org.eclipse.emf.mwe2.launch;resolution:=optional, org.eclipse.xtext.util, org.eclipse.emf.ecore, org.eclipse.emf.common, - org.antlr.runtime, - org.eclipse.xtext.xbase.lib, - org.eclipse.etrice.generator.base -Import-Package: org.apache.log4j, - org.eclipse.xtext.xbase.lib -Bundle-RequiredExecutionEnvironment: JavaSE-1.8 + org.antlr.runtime;bundle-version="[3.2.0,3.2.1)", + org.eclipse.xtext.xbase.lib;bundle-version="2.14.0", + org.eclipse.etrice.generator.base +Import-Package: org.apache.log4j +Bundle-RequiredExecutionEnvironment: JavaSE-11 Export-Package: org.eclipse.etrice.core.etmap, org.eclipse.etrice.core.etmap.eTMap, org.eclipse.etrice.core.etmap.eTMap.impl, org.eclipse.etrice.core.etmap.eTMap.util, org.eclipse.etrice.core.etmap.formatting, - org.eclipse.etrice.core.etmap.generator, org.eclipse.etrice.core.etmap.parser.antlr, org.eclipse.etrice.core.etmap.parser.antlr.internal, org.eclipse.etrice.core.etmap.scoping, @@ -41,4 +34,3 @@ Export-Package: org.eclipse.etrice.core.etmap, org.eclipse.etrice.core.etmap.util, org.eclipse.etrice.core.etmap.validation Automatic-Module-Name: org.eclipse.etrice.core.etmap - diff --git a/plugins/org.eclipse.etrice.core.etmap/build.gradle b/plugins/org.eclipse.etrice.core.etmap/build.gradle index 0ddd84a97..656ec1da4 100644 --- a/plugins/org.eclipse.etrice.core.etmap/build.gradle +++ b/plugins/org.eclipse.etrice.core.etmap/build.gradle @@ -1,9 +1,7 @@ dependencies { - compile project(':plugins:org.eclipse.etrice.core.common') - compile project(':plugins:org.eclipse.etrice.core.etphys') - compile project(':plugins:org.eclipse.etrice.core.room') - compile project(':plugins:org.eclipse.etrice.core.genmodel') - - compile "org.eclipse.xtend:org.eclipse.xtend.lib:$versions.xtext" - compile "org.eclipse.xtext:org.eclipse.xtext:$versions.xtext" + api project(':plugins:org.eclipse.etrice.core.etphys') + api project(':plugins:org.eclipse.etrice.core.room') + api project(':plugins:org.eclipse.etrice.core.genmodel') + api "org.eclipse.xtext:org.eclipse.xtext:${versions.xtext}" + api "org.eclipse.xtext:org.eclipse.xtext.xbase:${versions.xtext}" }
\ No newline at end of file diff --git a/plugins/org.eclipse.etrice.core.etmap/build.properties b/plugins/org.eclipse.etrice.core.etmap/build.properties index 31255ed05..b899b37b3 100644 --- a/plugins/org.eclipse.etrice.core.etmap/build.properties +++ b/plugins/org.eclipse.etrice.core.etmap/build.properties @@ -1,6 +1,17 @@ source.. = src/,\ src-gen/,\ xtend-gen/ -bin.includes = META-INF/,\ +bin.includes = model/generated/,\ + META-INF/,\ .,\ - plugin.xml
\ No newline at end of file + plugin.xml +additional.bundles = org.eclipse.xtext.xbase,\ + org.eclipse.xtext.common.types,\ + org.eclipse.xtext.xtext.generator,\ + org.eclipse.emf.codegen.ecore,\ + org.eclipse.emf.mwe.utils,\ + org.eclipse.emf.mwe2.launch,\ + org.eclipse.emf.mwe2.lib,\ + org.objectweb.asm,\ + org.apache.commons.logging,\ + org.apache.log4j
\ No newline at end of file diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/ETMap.ecore b/plugins/org.eclipse.etrice.core.etmap/model/generated/ETMap.ecore index f4c410005..408c89e66 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/ETMap.ecore +++ b/plugins/org.eclipse.etrice.core.etmap/model/generated/ETMap.ecore @@ -12,7 +12,7 @@ </eAnnotations> </eStructuralFeatures> <eStructuralFeatures xsi:type="ecore:EReference" name="imports" upperBound="-1" - eType="ecore:EClass platform:/resource/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/Base.ecore#//Import" + eType="ecore:EClass platform:/resource/org.eclipse.etrice.core.common/model/generated/Base.ecore#//Import" containment="true"> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> <details key="documentation" value="<br>A list of all imported models.
"/> @@ -29,12 +29,12 @@ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> <details key="documentation" value="<br>This is the mapping of a logical system (defined in a ROOM model) to a
physical system (defined in a physical model).
"/> </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EReference" name="logicalSys" eType="ecore:EClass platform:/resource/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/Room.ecore#//LogicalSystem"> + <eStructuralFeatures xsi:type="ecore:EReference" name="logicalSys" eType="ecore:EClass platform:/resource/org.eclipse.etrice.core.room/model/generated/Room.ecore#//LogicalSystem"> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> <details key="documentation" value="<br>This is the logical system being mapped.
"/> </eAnnotations> </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="physicalSys" eType="ecore:EClass platform:/resource/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/ETPhys.ecore#//PhysicalSystem"> + <eStructuralFeatures xsi:type="ecore:EReference" name="physicalSys" eType="ecore:EClass platform:/resource/org.eclipse.etrice.core.etphys/model/generated/ETPhys.ecore#//PhysicalSystem"> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> <details key="documentation" value="<br>This is the physical system being mapped to.
"/> </eAnnotations> @@ -50,12 +50,12 @@ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> <details key="documentation" value="<br>This is the mapping of a sub system (defined in a ROOM model) to a
node (defined in a physical model).
"/> </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EReference" name="logicalSubSys" eType="ecore:EClass platform:/resource/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/Room.ecore#//SubSystemRef"> + <eStructuralFeatures xsi:type="ecore:EReference" name="logicalSubSys" eType="ecore:EClass platform:/resource/org.eclipse.etrice.core.room/model/generated/Room.ecore#//SubSystemRef"> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> <details key="documentation" value="<br>This is the logical sub system being mapped.
"/> </eAnnotations> </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="node" eType="ecore:EClass platform:/resource/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/ETPhys.ecore#//NodeRef"> + <eStructuralFeatures xsi:type="ecore:EReference" name="node" eType="ecore:EClass platform:/resource/org.eclipse.etrice.core.etphys/model/generated/ETPhys.ecore#//NodeRef"> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> <details key="documentation" value="<br>This is the node being mapped to.
"/> </eAnnotations> @@ -71,12 +71,12 @@ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> <details key="documentation" value="<br>This is the mapping of a logical thread (defined in a ROOM model) to a
physical thread (defined in a physical model).
"/> </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EReference" name="logicalThread" eType="ecore:EClass platform:/resource/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/Room.ecore#//LogicalThread"> + <eStructuralFeatures xsi:type="ecore:EReference" name="logicalThread" eType="ecore:EClass platform:/resource/org.eclipse.etrice.core.room/model/generated/Room.ecore#//LogicalThread"> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> <details key="documentation" value="<br>This is the logical thread being mapped.
"/> </eAnnotations> </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EReference" name="physicalThread" eType="ecore:EClass platform:/resource/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/ETPhys.ecore#//PhysicalThread"> + <eStructuralFeatures xsi:type="ecore:EReference" name="physicalThread" eType="ecore:EClass platform:/resource/org.eclipse.etrice.core.etphys/model/generated/ETPhys.ecore#//PhysicalThread"> <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> <details key="documentation" value="<br>This is the physical thread being mapped to.
"/> </eAnnotations> diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/ETMap.genmodel b/plugins/org.eclipse.etrice.core.etmap/model/generated/ETMap.genmodel index 52e7f32a4..8c38348f4 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/ETMap.genmodel +++ b/plugins/org.eclipse.etrice.core.etmap/model/generated/ETMap.genmodel @@ -1,12 +1,11 @@ <?xml version="1.0" encoding="UTF-8"?> <genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" - xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.etrice.core.etmap/src-gen" editDirectory="/org.eclipse.etrice.core.etmap.edit/src" - editorDirectory="/org.eclipse.etrice.core.etmap.editor/src" modelPluginID="org.eclipse.etrice.core.etmap" - forceOverwrite="true" modelName="ETMap" updateClasspath="false" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container" - complianceLevel="6.0" copyrightFields="false" editPluginID="org.eclipse.etrice.core.etmap.edit" - editorPluginID="org.eclipse.etrice.core.etmap.editor" runtimeVersion="2.13" usedGenPackages="platform:/resource/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/Base.genmodel#//base platform:/resource/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/ETPhys.genmodel#//eTPhys platform:/resource/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/Room.genmodel#//room"> + xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="generated by Xtext" modelDirectory="/org.eclipse.etrice.core.etmap/src-gen" + modelPluginID="org.eclipse.etrice.core.etmap" forceOverwrite="true" modelName="ETMap" + updateClasspath="false" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container" + complianceLevel="8.0" copyrightFields="false" runtimeVersion="2.20" usedGenPackages="platform:/resource/org.eclipse.etrice.core.common/model/generated/Base.genmodel#//base platform:/resource/org.eclipse.etrice.core.etphys/model/generated/ETPhys.genmodel#//eTPhys platform:/resource/org.eclipse.etrice.core.room/model/generated/Room.genmodel#//room"> <genPackages prefix="ETMap" basePackage="org.eclipse.etrice.core.etmap" disposableProviderFactory="true" - ecorePackage="ETMap.ecore#/"> + fileExtensions="etmap" ecorePackage="ETMap.ecore#/"> <genClasses ecoreClass="ETMap.ecore#//MappingModel"> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ETMap.ecore#//MappingModel/name"/> <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ETMap.ecore#//MappingModel/imports"/> diff --git a/plugins/org.eclipse.etrice.core.etmap/plugin.xml b/plugins/org.eclipse.etrice.core.etmap/plugin.xml index d905cecd1..9742db4ed 100644 --- a/plugins/org.eclipse.etrice.core.etmap/plugin.xml +++ b/plugins/org.eclipse.etrice.core.etmap/plugin.xml @@ -1,17 +1,10 @@ -<?xml version="1.0" encoding="UTF-8"?> +<?xml version="1.0" encoding="windows-1252"?> <?eclipse version="3.0"?> - <plugin> - - <extension point="org.eclipse.emf.ecore.generated_package"> - <package - uri = "http://www.eclipse.org/etrice/core/etmap/ETMap" - class = "org.eclipse.etrice.core.etmap.eTMap.ETMapPackage" - genModel = "src-gen/org/eclipse/etrice/core/etmap/ETMap.genmodel" /> - - </extension> - - - - + <extension point="org.eclipse.emf.ecore.generated_package"> + <package + uri = "http://www.eclipse.org/etrice/core/etmap/ETMap" + class = "org.eclipse.etrice.core.etmap.eTMap.ETMapPackage" + genModel = "model/generated/ETMap.genmodel" /> + </extension> </plugin> diff --git a/plugins/org.eclipse.etrice.core.etmap/plugin.xml_gen b/plugins/org.eclipse.etrice.core.etmap/plugin.xml_gen index 21bce7c98..d186804dc 100644 --- a/plugins/org.eclipse.etrice.core.etmap/plugin.xml_gen +++ b/plugins/org.eclipse.etrice.core.etmap/plugin.xml_gen @@ -1,17 +1,10 @@ -<?xml version="1.0" encoding="UTF-8"?> +<?xml version="1.0" encoding="windows-1252"?> <?eclipse version="3.0"?> - <plugin> - - <extension point="org.eclipse.emf.ecore.generated_package"> - <package - uri = "http://www.eclipse.org/etrice/core/etmap/ETMap" - class = "org.eclipse.etrice.core.etmap.eTMap.ETMapPackage" - genModel = "org/eclipse/etrice/core/etmap/ETMap.genmodel" /> - - </extension> - - - - + <extension point="org.eclipse.emf.ecore.generated_package"> + <package + uri = "http://www.eclipse.org/etrice/core/etmap/ETMap" + class = "org.eclipse.etrice.core.etmap.eTMap.ETMapPackage" + genModel = "model/generated/ETMap.genmodel" /> + </extension> </plugin> diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/AbstractETMapRuntimeModule.java b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/AbstractETMapRuntimeModule.java index 66c75f680..d63d054fc 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/AbstractETMapRuntimeModule.java +++ b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/AbstractETMapRuntimeModule.java @@ -3,18 +3,56 @@ */ package org.eclipse.etrice.core.etmap; -import java.util.Properties; - -import org.eclipse.xtext.Constants; - import com.google.inject.Binder; +import com.google.inject.Provider; import com.google.inject.name.Names; +import java.util.Properties; +import org.eclipse.etrice.core.etmap.parser.antlr.ETMapAntlrTokenFileProvider; +import org.eclipse.etrice.core.etmap.parser.antlr.ETMapParser; +import org.eclipse.etrice.core.etmap.parser.antlr.internal.InternalETMapLexer; +import org.eclipse.etrice.core.etmap.scoping.ETMapScopeProvider; +import org.eclipse.etrice.core.etmap.serializer.ETMapSemanticSequencer; +import org.eclipse.etrice.core.etmap.serializer.ETMapSyntacticSequencer; +import org.eclipse.etrice.core.etmap.services.ETMapGrammarAccess; +import org.eclipse.etrice.core.etmap.validation.ETMapValidator; +import org.eclipse.xtext.Constants; +import org.eclipse.xtext.IGrammarAccess; +import org.eclipse.xtext.naming.DefaultDeclarativeQualifiedNameProvider; +import org.eclipse.xtext.naming.IQualifiedNameProvider; +import org.eclipse.xtext.parser.IParser; +import org.eclipse.xtext.parser.ITokenToStringConverter; +import org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider; +import org.eclipse.xtext.parser.antlr.AntlrTokenToStringConverter; +import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider; +import org.eclipse.xtext.parser.antlr.ITokenDefProvider; +import org.eclipse.xtext.parser.antlr.Lexer; +import org.eclipse.xtext.parser.antlr.LexerBindings; +import org.eclipse.xtext.parser.antlr.LexerProvider; +import org.eclipse.xtext.resource.IContainer; +import org.eclipse.xtext.resource.IResourceDescriptions; +import org.eclipse.xtext.resource.containers.IAllContainersState; +import org.eclipse.xtext.resource.containers.ResourceSetBasedAllContainersStateProvider; +import org.eclipse.xtext.resource.containers.StateBasedContainerManager; +import org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider; +import org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions; +import org.eclipse.xtext.scoping.IGlobalScopeProvider; +import org.eclipse.xtext.scoping.IScopeProvider; +import org.eclipse.xtext.scoping.IgnoreCaseLinking; +import org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider; +import org.eclipse.xtext.scoping.impl.DefaultGlobalScopeProvider; +import org.eclipse.xtext.scoping.impl.ImportedNamespaceAwareLocalScopeProvider; +import org.eclipse.xtext.serializer.ISerializer; +import org.eclipse.xtext.serializer.impl.Serializer; +import org.eclipse.xtext.serializer.sequencer.ISemanticSequencer; +import org.eclipse.xtext.serializer.sequencer.ISyntacticSequencer; +import org.eclipse.xtext.service.DefaultRuntimeModule; +import org.eclipse.xtext.service.SingletonBinding; /** - * Manual modifications go to {org.eclipse.etrice.core.etmap.ETMapRuntimeModule} + * Manual modifications go to {@link ETMapRuntimeModule}. */ @SuppressWarnings("all") -public abstract class AbstractETMapRuntimeModule extends org.eclipse.xtext.service.DefaultRuntimeModule { +public abstract class AbstractETMapRuntimeModule extends DefaultRuntimeModule { protected Properties properties = null; @@ -33,124 +71,117 @@ public abstract class AbstractETMapRuntimeModule extends org.eclipse.xtext.servi binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("etmap"); } - // contributed by org.eclipse.xtext.generator.grammarAccess.GrammarAccessFragment - public java.lang.ClassLoader bindClassLoaderToInstance() { + // contributed by org.eclipse.xtext.xtext.generator.grammarAccess.GrammarAccessFragment2 + public ClassLoader bindClassLoaderToInstance() { return getClass().getClassLoader(); } - - // contributed by org.eclipse.xtext.generator.grammarAccess.GrammarAccessFragment - public Class<? extends org.eclipse.xtext.IGrammarAccess> bindIGrammarAccess() { - return org.eclipse.etrice.core.etmap.services.ETMapGrammarAccess.class; - } - - // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment - public Class<? extends org.eclipse.xtext.serializer.sequencer.ISemanticSequencer> bindISemanticSequencer() { - return org.eclipse.etrice.core.etmap.serializer.ETMapSemanticSequencer.class; - } - - // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment - public Class<? extends org.eclipse.xtext.serializer.sequencer.ISyntacticSequencer> bindISyntacticSequencer() { - return org.eclipse.etrice.core.etmap.serializer.ETMapSyntacticSequencer.class; + + // contributed by org.eclipse.xtext.xtext.generator.grammarAccess.GrammarAccessFragment2 + public Class<? extends IGrammarAccess> bindIGrammarAccess() { + return ETMapGrammarAccess.class; } - - // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment - public Class<? extends org.eclipse.xtext.serializer.ISerializer> bindISerializer() { - return org.eclipse.xtext.serializer.impl.Serializer.class; + + // contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2 + public Class<? extends ISemanticSequencer> bindISemanticSequencer() { + return ETMapSemanticSequencer.class; } - - // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment - public Class<? extends org.eclipse.xtext.parser.IParser> bindIParser() { - return org.eclipse.etrice.core.etmap.parser.antlr.ETMapParser.class; + + // contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2 + public Class<? extends ISyntacticSequencer> bindISyntacticSequencer() { + return ETMapSyntacticSequencer.class; } - - // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment - public Class<? extends org.eclipse.xtext.parser.ITokenToStringConverter> bindITokenToStringConverter() { - return org.eclipse.xtext.parser.antlr.AntlrTokenToStringConverter.class; + + // contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2 + public Class<? extends ISerializer> bindISerializer() { + return Serializer.class; } - - // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment - public Class<? extends org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() { - return org.eclipse.etrice.core.etmap.parser.antlr.ETMapAntlrTokenFileProvider.class; + + // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 + public Class<? extends IParser> bindIParser() { + return ETMapParser.class; } - - // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment - public Class<? extends org.eclipse.xtext.parser.antlr.Lexer> bindLexer() { - return org.eclipse.etrice.core.etmap.parser.antlr.internal.InternalETMapLexer.class; + + // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 + public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { + return AntlrTokenToStringConverter.class; } - - // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment - public com.google.inject.Provider<org.eclipse.etrice.core.etmap.parser.antlr.internal.InternalETMapLexer> provideInternalETMapLexer() { - return org.eclipse.xtext.parser.antlr.LexerProvider.create(org.eclipse.etrice.core.etmap.parser.antlr.internal.InternalETMapLexer.class); + + // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 + public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() { + return ETMapAntlrTokenFileProvider.class; } - - // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment - public void configureRuntimeLexer(com.google.inject.Binder binder) { - binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.parser.antlr.LexerBindings.RUNTIME)).to(org.eclipse.etrice.core.etmap.parser.antlr.internal.InternalETMapLexer.class); + + // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 + public Class<? extends Lexer> bindLexer() { + return InternalETMapLexer.class; } - - // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment - public Class<? extends org.eclipse.xtext.parser.antlr.ITokenDefProvider> bindITokenDefProvider() { - return org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider.class; + + // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 + public Class<? extends ITokenDefProvider> bindITokenDefProvider() { + return AntlrTokenDefProvider.class; } - - // contributed by org.eclipse.xtext.generator.validation.JavaValidatorFragment - @org.eclipse.xtext.service.SingletonBinding(eager=true) public Class<? extends org.eclipse.etrice.core.etmap.validation.ETMapJavaValidator> bindETMapJavaValidator() { - return org.eclipse.etrice.core.etmap.validation.ETMapJavaValidator.class; + + // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 + public Provider<? extends InternalETMapLexer> provideInternalETMapLexer() { + return LexerProvider.create(InternalETMapLexer.class); } - - // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment - public Class<? extends org.eclipse.xtext.scoping.IScopeProvider> bindIScopeProvider() { - return org.eclipse.etrice.core.etmap.scoping.ETMapScopeProvider.class; + + // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 + public void configureRuntimeLexer(Binder binder) { + binder.bind(Lexer.class) + .annotatedWith(Names.named(LexerBindings.RUNTIME)) + .to(InternalETMapLexer.class); } - - // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment - public void configureIScopeProviderDelegate(com.google.inject.Binder binder) { - binder.bind(org.eclipse.xtext.scoping.IScopeProvider.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(org.eclipse.xtext.scoping.impl.ImportedNamespaceAwareLocalScopeProvider.class); + + // contributed by org.eclipse.xtext.xtext.generator.validation.ValidatorFragment2 + @SingletonBinding(eager=true) + public Class<? extends ETMapValidator> bindETMapValidator() { + return ETMapValidator.class; } - - // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment - public Class<? extends org.eclipse.xtext.scoping.IGlobalScopeProvider> bindIGlobalScopeProvider() { - return org.eclipse.xtext.scoping.impl.DefaultGlobalScopeProvider.class; + + // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 + public Class<? extends IScopeProvider> bindIScopeProvider() { + return ETMapScopeProvider.class; } - - // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment - public void configureIgnoreCaseLinking(com.google.inject.Binder binder) { - binder.bindConstant().annotatedWith(org.eclipse.xtext.scoping.IgnoreCaseLinking.class).to(false); + + // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 + public void configureIScopeProviderDelegate(Binder binder) { + binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class); } - - // contributed by org.eclipse.xtext.generator.exporting.QualifiedNamesFragment - public Class<? extends org.eclipse.xtext.naming.IQualifiedNameProvider> bindIQualifiedNameProvider() { - return org.eclipse.xtext.naming.DefaultDeclarativeQualifiedNameProvider.class; + + // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 + public Class<? extends IGlobalScopeProvider> bindIGlobalScopeProvider() { + return DefaultGlobalScopeProvider.class; } - - // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment - public Class<? extends org.eclipse.xtext.resource.IContainer.Manager> bindIContainer$Manager() { - return org.eclipse.xtext.resource.containers.StateBasedContainerManager.class; + + // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 + public void configureIgnoreCaseLinking(Binder binder) { + binder.bindConstant().annotatedWith(IgnoreCaseLinking.class).to(false); } - - // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment - public Class<? extends org.eclipse.xtext.resource.containers.IAllContainersState.Provider> bindIAllContainersState$Provider() { - return org.eclipse.xtext.resource.containers.ResourceSetBasedAllContainersStateProvider.class; + + // contributed by org.eclipse.xtext.xtext.generator.exporting.QualifiedNamesFragment2 + public Class<? extends IQualifiedNameProvider> bindIQualifiedNameProvider() { + return DefaultDeclarativeQualifiedNameProvider.class; } - - // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment - public void configureIResourceDescriptions(com.google.inject.Binder binder) { - binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class); + + // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 + public Class<? extends IContainer.Manager> bindIContainer$Manager() { + return StateBasedContainerManager.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.resource.impl.ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)).to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class); + + // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 + public Class<? extends IAllContainersState.Provider> bindIAllContainersState$Provider() { + return ResourceSetBasedAllContainersStateProvider.class; } - - // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment - public Class<? extends org.eclipse.xtext.generator.IGenerator> bindIGenerator() { - return org.eclipse.etrice.core.etmap.generator.ETMapGenerator.class; + + // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 + public void configureIResourceDescriptions(Binder binder) { + binder.bind(IResourceDescriptions.class).to(ResourceSetBasedResourceDescriptions.class); } - - // contributed by org.eclipse.xtext.generator.formatting.FormatterFragment - public Class<? extends org.eclipse.xtext.formatting.IFormatter> bindIFormatter() { - return org.eclipse.etrice.core.etmap.formatting.ETMapFormatter.class; + + // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 + public void configureIResourceDescriptionsPersisted(Binder binder) { + binder.bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)).to(ResourceSetBasedResourceDescriptions.class); } - + } diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/ETMapStandaloneSetupGenerated.java b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/ETMapStandaloneSetupGenerated.java index bc3f903a9..7bf29d590 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/ETMapStandaloneSetupGenerated.java +++ b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/ETMapStandaloneSetupGenerated.java @@ -3,22 +3,22 @@ */ package org.eclipse.etrice.core.etmap; +import com.google.inject.Guice; +import com.google.inject.Injector; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.resource.Resource; +import org.eclipse.etrice.core.common.BaseStandaloneSetup; +import org.eclipse.etrice.core.etmap.eTMap.ETMapPackage; import org.eclipse.xtext.ISetup; +import org.eclipse.xtext.resource.IResourceFactory; +import org.eclipse.xtext.resource.IResourceServiceProvider; -import com.google.inject.Guice; -import com.google.inject.Injector; - -/** - * Generated from StandaloneSetup.xpt! - */ @SuppressWarnings("all") public class ETMapStandaloneSetupGenerated implements ISetup { @Override public Injector createInjectorAndDoEMFRegistration() { - org.eclipse.etrice.core.common.BaseStandaloneSetup.doSetup(); + BaseStandaloneSetup.doSetup(); Injector injector = createInjector(); register(injector); @@ -26,21 +26,17 @@ public class ETMapStandaloneSetupGenerated implements ISetup { } public Injector createInjector() { - return Guice.createInjector(new org.eclipse.etrice.core.etmap.ETMapRuntimeModule()); + return Guice.createInjector(new ETMapRuntimeModule()); } public void register(Injector injector) { - if (!EPackage.Registry.INSTANCE.containsKey("http://www.eclipse.org/etrice/core/etmap/ETMap")) { - EPackage.Registry.INSTANCE.put("http://www.eclipse.org/etrice/core/etmap/ETMap", org.eclipse.etrice.core.etmap.eTMap.ETMapPackage.eINSTANCE); - } - - org.eclipse.xtext.resource.IResourceFactory resourceFactory = injector.getInstance(org.eclipse.xtext.resource.IResourceFactory.class); - org.eclipse.xtext.resource.IResourceServiceProvider serviceProvider = injector.getInstance(org.eclipse.xtext.resource.IResourceServiceProvider.class); - Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("etmap", resourceFactory); - org.eclipse.xtext.resource.IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("etmap", serviceProvider); + if (!EPackage.Registry.INSTANCE.containsKey("http://www.eclipse.org/etrice/core/etmap/ETMap")) { + EPackage.Registry.INSTANCE.put("http://www.eclipse.org/etrice/core/etmap/ETMap", ETMapPackage.eINSTANCE); + } + IResourceFactory resourceFactory = injector.getInstance(IResourceFactory.class); + IResourceServiceProvider serviceProvider = injector.getInstance(IResourceServiceProvider.class); - - - + Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("etmap", resourceFactory); + IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("etmap", serviceProvider); } } diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/ETMapFactory.java b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/ETMapFactory.java index f6562edd6..9423b31b6 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/ETMapFactory.java +++ b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/ETMapFactory.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.etrice.core.etmap.eTMap; diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/ETMapPackage.java b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/ETMapPackage.java index 93bd4508f..82935e879 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/ETMapPackage.java +++ b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/ETMapPackage.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.etrice.core.etmap.eTMap; diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/Mapping.java b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/Mapping.java index d46418d3e..4161b2102 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/Mapping.java +++ b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/Mapping.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.etrice.core.etmap.eTMap; diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/MappingModel.java b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/MappingModel.java index 010ad67c2..28f872b05 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/MappingModel.java +++ b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/MappingModel.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.etrice.core.etmap.eTMap; diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/SubSystemMapping.java b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/SubSystemMapping.java index e9b5a1554..beb81be09 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/SubSystemMapping.java +++ b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/SubSystemMapping.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.etrice.core.etmap.eTMap; diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/ThreadMapping.java b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/ThreadMapping.java index bbd101ea5..2719ab8e3 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/ThreadMapping.java +++ b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/ThreadMapping.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.etrice.core.etmap.eTMap; diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/impl/ETMapFactoryImpl.java b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/impl/ETMapFactoryImpl.java index 666d27ed6..f21c7a6a3 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/impl/ETMapFactoryImpl.java +++ b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/impl/ETMapFactoryImpl.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.etrice.core.etmap.eTMap.impl; @@ -78,6 +79,7 @@ public class ETMapFactoryImpl extends EFactoryImpl implements ETMapFactory * <!-- end-user-doc --> * @generated */ + @Override public MappingModel createMappingModel() { MappingModelImpl mappingModel = new MappingModelImpl(); @@ -89,6 +91,7 @@ public class ETMapFactoryImpl extends EFactoryImpl implements ETMapFactory * <!-- end-user-doc --> * @generated */ + @Override public Mapping createMapping() { MappingImpl mapping = new MappingImpl(); @@ -100,6 +103,7 @@ public class ETMapFactoryImpl extends EFactoryImpl implements ETMapFactory * <!-- end-user-doc --> * @generated */ + @Override public SubSystemMapping createSubSystemMapping() { SubSystemMappingImpl subSystemMapping = new SubSystemMappingImpl(); @@ -111,6 +115,7 @@ public class ETMapFactoryImpl extends EFactoryImpl implements ETMapFactory * <!-- end-user-doc --> * @generated */ + @Override public ThreadMapping createThreadMapping() { ThreadMappingImpl threadMapping = new ThreadMappingImpl(); @@ -122,6 +127,7 @@ public class ETMapFactoryImpl extends EFactoryImpl implements ETMapFactory * <!-- end-user-doc --> * @generated */ + @Override public ETMapPackage getETMapPackage() { return (ETMapPackage)getEPackage(); diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/impl/ETMapPackageImpl.java b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/impl/ETMapPackageImpl.java index 5bd8892de..0605230b1 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/impl/ETMapPackageImpl.java +++ b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/impl/ETMapPackageImpl.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.etrice.core.etmap.eTMap.impl; @@ -89,7 +90,7 @@ public class ETMapPackageImpl extends EPackageImpl implements ETMapPackage /** * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. - * + * * <p>This method is used to initialize {@link ETMapPackage#eINSTANCE} when that field is accessed. * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. * <!-- begin-user-doc --> @@ -104,7 +105,8 @@ public class ETMapPackageImpl extends EPackageImpl implements ETMapPackage if (isInited) return (ETMapPackage)EPackage.Registry.INSTANCE.getEPackage(ETMapPackage.eNS_URI); // Obtain or create and register package - ETMapPackageImpl theETMapPackage = (ETMapPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ETMapPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ETMapPackageImpl()); + Object registeredETMapPackage = EPackage.Registry.INSTANCE.get(eNS_URI); + ETMapPackageImpl theETMapPackage = registeredETMapPackage instanceof ETMapPackageImpl ? (ETMapPackageImpl)registeredETMapPackage : new ETMapPackageImpl(); isInited = true; @@ -123,7 +125,6 @@ public class ETMapPackageImpl extends EPackageImpl implements ETMapPackage // Mark meta-data to indicate it can't be changed theETMapPackage.freeze(); - // Update the registry and return the package EPackage.Registry.INSTANCE.put(ETMapPackage.eNS_URI, theETMapPackage); return theETMapPackage; @@ -134,6 +135,7 @@ public class ETMapPackageImpl extends EPackageImpl implements ETMapPackage * <!-- end-user-doc --> * @generated */ + @Override public EClass getMappingModel() { return mappingModelEClass; @@ -144,6 +146,7 @@ public class ETMapPackageImpl extends EPackageImpl implements ETMapPackage * <!-- end-user-doc --> * @generated */ + @Override public EAttribute getMappingModel_Name() { return (EAttribute)mappingModelEClass.getEStructuralFeatures().get(0); @@ -154,6 +157,7 @@ public class ETMapPackageImpl extends EPackageImpl implements ETMapPackage * <!-- end-user-doc --> * @generated */ + @Override public EReference getMappingModel_Imports() { return (EReference)mappingModelEClass.getEStructuralFeatures().get(1); @@ -164,6 +168,7 @@ public class ETMapPackageImpl extends EPackageImpl implements ETMapPackage * <!-- end-user-doc --> * @generated */ + @Override public EReference getMappingModel_Mappings() { return (EReference)mappingModelEClass.getEStructuralFeatures().get(2); @@ -174,6 +179,7 @@ public class ETMapPackageImpl extends EPackageImpl implements ETMapPackage * <!-- end-user-doc --> * @generated */ + @Override public EClass getMapping() { return mappingEClass; @@ -184,6 +190,7 @@ public class ETMapPackageImpl extends EPackageImpl implements ETMapPackage * <!-- end-user-doc --> * @generated */ + @Override public EReference getMapping_LogicalSys() { return (EReference)mappingEClass.getEStructuralFeatures().get(0); @@ -194,6 +201,7 @@ public class ETMapPackageImpl extends EPackageImpl implements ETMapPackage * <!-- end-user-doc --> * @generated */ + @Override public EReference getMapping_PhysicalSys() { return (EReference)mappingEClass.getEStructuralFeatures().get(1); @@ -204,6 +212,7 @@ public class ETMapPackageImpl extends EPackageImpl implements ETMapPackage * <!-- end-user-doc --> * @generated */ + @Override public EReference getMapping_SubsysMappings() { return (EReference)mappingEClass.getEStructuralFeatures().get(2); @@ -214,6 +223,7 @@ public class ETMapPackageImpl extends EPackageImpl implements ETMapPackage * <!-- end-user-doc --> * @generated */ + @Override public EClass getSubSystemMapping() { return subSystemMappingEClass; @@ -224,6 +234,7 @@ public class ETMapPackageImpl extends EPackageImpl implements ETMapPackage * <!-- end-user-doc --> * @generated */ + @Override public EReference getSubSystemMapping_LogicalSubSys() { return (EReference)subSystemMappingEClass.getEStructuralFeatures().get(0); @@ -234,6 +245,7 @@ public class ETMapPackageImpl extends EPackageImpl implements ETMapPackage * <!-- end-user-doc --> * @generated */ + @Override public EReference getSubSystemMapping_Node() { return (EReference)subSystemMappingEClass.getEStructuralFeatures().get(1); @@ -244,6 +256,7 @@ public class ETMapPackageImpl extends EPackageImpl implements ETMapPackage * <!-- end-user-doc --> * @generated */ + @Override public EReference getSubSystemMapping_ThreadMappings() { return (EReference)subSystemMappingEClass.getEStructuralFeatures().get(2); @@ -254,6 +267,7 @@ public class ETMapPackageImpl extends EPackageImpl implements ETMapPackage * <!-- end-user-doc --> * @generated */ + @Override public EClass getThreadMapping() { return threadMappingEClass; @@ -264,6 +278,7 @@ public class ETMapPackageImpl extends EPackageImpl implements ETMapPackage * <!-- end-user-doc --> * @generated */ + @Override public EReference getThreadMapping_LogicalThread() { return (EReference)threadMappingEClass.getEStructuralFeatures().get(0); @@ -274,6 +289,7 @@ public class ETMapPackageImpl extends EPackageImpl implements ETMapPackage * <!-- end-user-doc --> * @generated */ + @Override public EReference getThreadMapping_PhysicalThread() { return (EReference)threadMappingEClass.getEStructuralFeatures().get(1); @@ -284,6 +300,7 @@ public class ETMapPackageImpl extends EPackageImpl implements ETMapPackage * <!-- end-user-doc --> * @generated */ + @Override public ETMapFactory getETMapFactory() { return (ETMapFactory)getEFactoryInstance(); diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/impl/MappingImpl.java b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/impl/MappingImpl.java index 5146b7581..3f2e740d0 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/impl/MappingImpl.java +++ b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/impl/MappingImpl.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.etrice.core.etmap.eTMap.impl; @@ -99,6 +100,7 @@ public class MappingImpl extends MinimalEObjectImpl.Container implements Mapping * <!-- end-user-doc --> * @generated */ + @Override public LogicalSystem getLogicalSys() { if (logicalSys != null && logicalSys.eIsProxy()) @@ -129,6 +131,7 @@ public class MappingImpl extends MinimalEObjectImpl.Container implements Mapping * <!-- end-user-doc --> * @generated */ + @Override public void setLogicalSys(LogicalSystem newLogicalSys) { LogicalSystem oldLogicalSys = logicalSys; @@ -142,6 +145,7 @@ public class MappingImpl extends MinimalEObjectImpl.Container implements Mapping * <!-- end-user-doc --> * @generated */ + @Override public PhysicalSystem getPhysicalSys() { if (physicalSys != null && physicalSys.eIsProxy()) @@ -172,6 +176,7 @@ public class MappingImpl extends MinimalEObjectImpl.Container implements Mapping * <!-- end-user-doc --> * @generated */ + @Override public void setPhysicalSys(PhysicalSystem newPhysicalSys) { PhysicalSystem oldPhysicalSys = physicalSys; @@ -185,6 +190,7 @@ public class MappingImpl extends MinimalEObjectImpl.Container implements Mapping * <!-- end-user-doc --> * @generated */ + @Override public EList<SubSystemMapping> getSubsysMappings() { if (subsysMappings == null) diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/impl/MappingModelImpl.java b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/impl/MappingModelImpl.java index 4f5276589..5ad00e546 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/impl/MappingModelImpl.java +++ b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/impl/MappingModelImpl.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.etrice.core.etmap.eTMap.impl; @@ -107,6 +108,7 @@ public class MappingModelImpl extends MinimalEObjectImpl.Container implements Ma * <!-- end-user-doc --> * @generated */ + @Override public String getName() { return name; @@ -117,6 +119,7 @@ public class MappingModelImpl extends MinimalEObjectImpl.Container implements Ma * <!-- end-user-doc --> * @generated */ + @Override public void setName(String newName) { String oldName = name; @@ -130,6 +133,7 @@ public class MappingModelImpl extends MinimalEObjectImpl.Container implements Ma * <!-- end-user-doc --> * @generated */ + @Override public EList<Import> getImports() { if (imports == null) @@ -144,6 +148,7 @@ public class MappingModelImpl extends MinimalEObjectImpl.Container implements Ma * <!-- end-user-doc --> * @generated */ + @Override public EList<Mapping> getMappings() { if (mappings == null) @@ -270,7 +275,7 @@ public class MappingModelImpl extends MinimalEObjectImpl.Container implements Ma { if (eIsProxy()) return super.toString(); - StringBuffer result = new StringBuffer(super.toString()); + StringBuilder result = new StringBuilder(super.toString()); result.append(" (name: "); result.append(name); result.append(')'); diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/impl/SubSystemMappingImpl.java b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/impl/SubSystemMappingImpl.java index 27b15ed97..6aaedcd1d 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/impl/SubSystemMappingImpl.java +++ b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/impl/SubSystemMappingImpl.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.etrice.core.etmap.eTMap.impl; @@ -99,6 +100,7 @@ public class SubSystemMappingImpl extends MinimalEObjectImpl.Container implement * <!-- end-user-doc --> * @generated */ + @Override public SubSystemRef getLogicalSubSys() { if (logicalSubSys != null && logicalSubSys.eIsProxy()) @@ -129,6 +131,7 @@ public class SubSystemMappingImpl extends MinimalEObjectImpl.Container implement * <!-- end-user-doc --> * @generated */ + @Override public void setLogicalSubSys(SubSystemRef newLogicalSubSys) { SubSystemRef oldLogicalSubSys = logicalSubSys; @@ -142,6 +145,7 @@ public class SubSystemMappingImpl extends MinimalEObjectImpl.Container implement * <!-- end-user-doc --> * @generated */ + @Override public NodeRef getNode() { if (node != null && node.eIsProxy()) @@ -172,6 +176,7 @@ public class SubSystemMappingImpl extends MinimalEObjectImpl.Container implement * <!-- end-user-doc --> * @generated */ + @Override public void setNode(NodeRef newNode) { NodeRef oldNode = node; @@ -185,6 +190,7 @@ public class SubSystemMappingImpl extends MinimalEObjectImpl.Container implement * <!-- end-user-doc --> * @generated */ + @Override public EList<ThreadMapping> getThreadMappings() { if (threadMappings == null) diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/impl/ThreadMappingImpl.java b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/impl/ThreadMappingImpl.java index 27132e7a3..cc628d793 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/impl/ThreadMappingImpl.java +++ b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/impl/ThreadMappingImpl.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.etrice.core.etmap.eTMap.impl; @@ -79,6 +80,7 @@ public class ThreadMappingImpl extends MinimalEObjectImpl.Container implements T * <!-- end-user-doc --> * @generated */ + @Override public LogicalThread getLogicalThread() { if (logicalThread != null && logicalThread.eIsProxy()) @@ -109,6 +111,7 @@ public class ThreadMappingImpl extends MinimalEObjectImpl.Container implements T * <!-- end-user-doc --> * @generated */ + @Override public void setLogicalThread(LogicalThread newLogicalThread) { LogicalThread oldLogicalThread = logicalThread; @@ -122,6 +125,7 @@ public class ThreadMappingImpl extends MinimalEObjectImpl.Container implements T * <!-- end-user-doc --> * @generated */ + @Override public PhysicalThread getPhysicalThread() { if (physicalThread != null && physicalThread.eIsProxy()) @@ -152,6 +156,7 @@ public class ThreadMappingImpl extends MinimalEObjectImpl.Container implements T * <!-- end-user-doc --> * @generated */ + @Override public void setPhysicalThread(PhysicalThread newPhysicalThread) { PhysicalThread oldPhysicalThread = physicalThread; diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/util/ETMapAdapterFactory.java b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/util/ETMapAdapterFactory.java index 1ce1fd929..569803cf1 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/util/ETMapAdapterFactory.java +++ b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/util/ETMapAdapterFactory.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.etrice.core.etmap.eTMap.util; diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/util/ETMapSwitch.java b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/util/ETMapSwitch.java index e42d6ebfc..c5d29f55f 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/util/ETMapSwitch.java +++ b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/eTMap/util/ETMapSwitch.java @@ -1,4 +1,5 @@ /** + * generated by Xtext */ package org.eclipse.etrice.core.etmap.eTMap.util; diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/parser/antlr/ETMapAntlrTokenFileProvider.java b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/parser/antlr/ETMapAntlrTokenFileProvider.java index a5e4a5fd4..0a04cf0eb 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/parser/antlr/ETMapAntlrTokenFileProvider.java +++ b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/parser/antlr/ETMapAntlrTokenFileProvider.java @@ -7,10 +7,10 @@ import java.io.InputStream; import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider; public class ETMapAntlrTokenFileProvider implements IAntlrTokenFileProvider { - + @Override public InputStream getAntlrTokenFile() { ClassLoader classLoader = getClass().getClassLoader(); - return classLoader.getResourceAsStream("org/eclipse/etrice/core/etmap/parser/antlr/internal/InternalETMap.tokens"); + return classLoader.getResourceAsStream("org/eclipse/etrice/core/etmap/parser/antlr/internal/InternalETMap.tokens"); } } diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/parser/antlr/ETMapParser.java b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/parser/antlr/ETMapParser.java index fb69233a8..4ec38858b 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/parser/antlr/ETMapParser.java +++ b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/parser/antlr/ETMapParser.java @@ -4,36 +4,37 @@ package org.eclipse.etrice.core.etmap.parser.antlr; import com.google.inject.Inject; - -import org.eclipse.xtext.parser.antlr.XtextTokenStream; +import org.eclipse.etrice.core.etmap.parser.antlr.internal.InternalETMapParser; import org.eclipse.etrice.core.etmap.services.ETMapGrammarAccess; +import org.eclipse.xtext.parser.antlr.AbstractAntlrParser; +import org.eclipse.xtext.parser.antlr.XtextTokenStream; + +public class ETMapParser extends AbstractAntlrParser { -public class ETMapParser extends org.eclipse.xtext.parser.antlr.AbstractAntlrParser { - @Inject private ETMapGrammarAccess grammarAccess; - + @Override protected void setInitialHiddenTokens(XtextTokenStream tokenStream) { tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT"); } + @Override - protected org.eclipse.etrice.core.etmap.parser.antlr.internal.InternalETMapParser createParser(XtextTokenStream stream) { - return new org.eclipse.etrice.core.etmap.parser.antlr.internal.InternalETMapParser(stream, getGrammarAccess()); + protected InternalETMapParser createParser(XtextTokenStream stream) { + return new InternalETMapParser(stream, getGrammarAccess()); } - + @Override protected String getDefaultRuleName() { return "MappingModel"; } - + public ETMapGrammarAccess getGrammarAccess() { return this.grammarAccess; } - + public void setGrammarAccess(ETMapGrammarAccess grammarAccess) { this.grammarAccess = grammarAccess; } - } diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/parser/antlr/internal/InternalETMap.g b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/parser/antlr/internal/InternalETMap.g index 5765a44ad..6fd0c2bb6 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/parser/antlr/internal/InternalETMap.g +++ b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/parser/antlr/internal/InternalETMap.g @@ -5,7 +5,6 @@ grammar InternalETMap; options { superClass=AbstractInternalAntlrParser; - } @lexer::header { @@ -17,7 +16,7 @@ import org.eclipse.xtext.parser.antlr.Lexer; } @parser::header { -package org.eclipse.etrice.core.etmap.parser.antlr.internal; +package org.eclipse.etrice.core.etmap.parser.antlr.internal; import org.eclipse.xtext.*; import org.eclipse.xtext.parser.*; @@ -36,1455 +35,1431 @@ import org.eclipse.etrice.core.etmap.services.ETMapGrammarAccess; @parser::members { private ETMapGrammarAccess grammarAccess; - + public InternalETMapParser(TokenStream input, ETMapGrammarAccess grammarAccess) { this(input); this.grammarAccess = grammarAccess; registerRules(grammarAccess.getGrammar()); } - + @Override protected String getFirstRuleName() { - return "MappingModel"; + return "MappingModel"; } - + @Override protected ETMapGrammarAccess getGrammarAccess() { return grammarAccess; } + } -@rulecatch { - catch (RecognitionException re) { - recover(input,re); +@rulecatch { + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } } - - - // Entry rule entryRuleMappingModel -entryRuleMappingModel returns [EObject current=null] - : +entryRuleMappingModel returns [EObject current=null]: { newCompositeNode(grammarAccess.getMappingModelRule()); } - iv_ruleMappingModel=ruleMappingModel - { $current=$iv_ruleMappingModel.current; } - EOF -; + iv_ruleMappingModel=ruleMappingModel + { $current=$iv_ruleMappingModel.current; } + EOF; // Rule MappingModel -ruleMappingModel returns [EObject current=null] - @init { enterRule(); - } - @after { leaveRule(); }: -( otherlv_0='MappingModel' - { - newLeafNode(otherlv_0, grammarAccess.getMappingModelAccess().getMappingModelKeyword_0()); - } -( -( - { - newCompositeNode(grammarAccess.getMappingModelAccess().getNameFQNParserRuleCall_1_0()); - } - lv_name_1_0=ruleFQN { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getMappingModelRule()); - } - set( - $current, - "name", - lv_name_1_0, - "org.eclipse.etrice.core.common.Base.FQN"); - afterParserOrEnumRuleCall(); - } - -) -) otherlv_2='{' - { - newLeafNode(otherlv_2, grammarAccess.getMappingModelAccess().getLeftCurlyBracketKeyword_2()); - } -( -( - { - newCompositeNode(grammarAccess.getMappingModelAccess().getImportsImportParserRuleCall_3_0()); - } - lv_imports_3_0=ruleImport { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getMappingModelRule()); - } - add( - $current, - "imports", - lv_imports_3_0, - "org.eclipse.etrice.core.common.Base.Import"); - afterParserOrEnumRuleCall(); - } - -) -)*( -( - { - newCompositeNode(grammarAccess.getMappingModelAccess().getMappingsMappingParserRuleCall_4_0()); - } - lv_mappings_4_0=ruleMapping { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getMappingModelRule()); - } - add( - $current, - "mappings", - lv_mappings_4_0, - "org.eclipse.etrice.core.etmap.ETMap.Mapping"); - afterParserOrEnumRuleCall(); - } - -) -)* otherlv_5='}' - { - newLeafNode(otherlv_5, grammarAccess.getMappingModelAccess().getRightCurlyBracketKeyword_5()); - } -) +ruleMappingModel returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='MappingModel' + { + newLeafNode(otherlv_0, grammarAccess.getMappingModelAccess().getMappingModelKeyword_0()); + } + ( + ( + { + newCompositeNode(grammarAccess.getMappingModelAccess().getNameFQNParserRuleCall_1_0()); + } + lv_name_1_0=ruleFQN + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getMappingModelRule()); + } + set( + $current, + "name", + lv_name_1_0, + "org.eclipse.etrice.core.common.Base.FQN"); + afterParserOrEnumRuleCall(); + } + ) + ) + otherlv_2='{' + { + newLeafNode(otherlv_2, grammarAccess.getMappingModelAccess().getLeftCurlyBracketKeyword_2()); + } + ( + ( + { + newCompositeNode(grammarAccess.getMappingModelAccess().getImportsImportParserRuleCall_3_0()); + } + lv_imports_3_0=ruleImport + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getMappingModelRule()); + } + add( + $current, + "imports", + lv_imports_3_0, + "org.eclipse.etrice.core.common.Base.Import"); + afterParserOrEnumRuleCall(); + } + ) + )* + ( + ( + { + newCompositeNode(grammarAccess.getMappingModelAccess().getMappingsMappingParserRuleCall_4_0()); + } + lv_mappings_4_0=ruleMapping + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getMappingModelRule()); + } + add( + $current, + "mappings", + lv_mappings_4_0, + "org.eclipse.etrice.core.etmap.ETMap.Mapping"); + afterParserOrEnumRuleCall(); + } + ) + )* + otherlv_5='}' + { + newLeafNode(otherlv_5, grammarAccess.getMappingModelAccess().getRightCurlyBracketKeyword_5()); + } + ) ; - - - - // Entry rule entryRuleMapping -entryRuleMapping returns [EObject current=null] - : +entryRuleMapping returns [EObject current=null]: { newCompositeNode(grammarAccess.getMappingRule()); } - iv_ruleMapping=ruleMapping - { $current=$iv_ruleMapping.current; } - EOF -; + iv_ruleMapping=ruleMapping + { $current=$iv_ruleMapping.current; } + EOF; // Rule Mapping -ruleMapping returns [EObject current=null] - @init { enterRule(); - } - @after { leaveRule(); }: -( otherlv_0='Mapping' - { - newLeafNode(otherlv_0, grammarAccess.getMappingAccess().getMappingKeyword_0()); - } -( -( +ruleMapping returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='Mapping' { - if ($current==null) { - $current = createModelElement(grammarAccess.getMappingRule()); - } - } - { - newCompositeNode(grammarAccess.getMappingAccess().getLogicalSysLogicalSystemCrossReference_1_0()); - } - ruleFQN { - afterParserOrEnumRuleCall(); - } - -) -) otherlv_2='->' - { - newLeafNode(otherlv_2, grammarAccess.getMappingAccess().getHyphenMinusGreaterThanSignKeyword_2()); - } -( -( + newLeafNode(otherlv_0, grammarAccess.getMappingAccess().getMappingKeyword_0()); + } + ( + ( + { + if ($current==null) { + $current = createModelElement(grammarAccess.getMappingRule()); + } + } + { + newCompositeNode(grammarAccess.getMappingAccess().getLogicalSysLogicalSystemCrossReference_1_0()); + } + ruleFQN + { + afterParserOrEnumRuleCall(); + } + ) + ) + otherlv_2='->' { - if ($current==null) { - $current = createModelElement(grammarAccess.getMappingRule()); - } - } - { - newCompositeNode(grammarAccess.getMappingAccess().getPhysicalSysPhysicalSystemCrossReference_3_0()); - } - ruleFQN { - afterParserOrEnumRuleCall(); - } - -) -) otherlv_4='{' - { - newLeafNode(otherlv_4, grammarAccess.getMappingAccess().getLeftCurlyBracketKeyword_4()); - } -( -( - { - newCompositeNode(grammarAccess.getMappingAccess().getSubsysMappingsSubSystemMappingParserRuleCall_5_0()); - } - lv_subsysMappings_5_0=ruleSubSystemMapping { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getMappingRule()); - } - add( - $current, - "subsysMappings", - lv_subsysMappings_5_0, - "org.eclipse.etrice.core.etmap.ETMap.SubSystemMapping"); - afterParserOrEnumRuleCall(); - } - -) -)* otherlv_6='}' - { - newLeafNode(otherlv_6, grammarAccess.getMappingAccess().getRightCurlyBracketKeyword_6()); - } -) + newLeafNode(otherlv_2, grammarAccess.getMappingAccess().getHyphenMinusGreaterThanSignKeyword_2()); + } + ( + ( + { + if ($current==null) { + $current = createModelElement(grammarAccess.getMappingRule()); + } + } + { + newCompositeNode(grammarAccess.getMappingAccess().getPhysicalSysPhysicalSystemCrossReference_3_0()); + } + ruleFQN + { + afterParserOrEnumRuleCall(); + } + ) + ) + otherlv_4='{' + { + newLeafNode(otherlv_4, grammarAccess.getMappingAccess().getLeftCurlyBracketKeyword_4()); + } + ( + ( + { + newCompositeNode(grammarAccess.getMappingAccess().getSubsysMappingsSubSystemMappingParserRuleCall_5_0()); + } + lv_subsysMappings_5_0=ruleSubSystemMapping + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getMappingRule()); + } + add( + $current, + "subsysMappings", + lv_subsysMappings_5_0, + "org.eclipse.etrice.core.etmap.ETMap.SubSystemMapping"); + afterParserOrEnumRuleCall(); + } + ) + )* + otherlv_6='}' + { + newLeafNode(otherlv_6, grammarAccess.getMappingAccess().getRightCurlyBracketKeyword_6()); + } + ) ; - - - - // Entry rule entryRuleSubSystemMapping -entryRuleSubSystemMapping returns [EObject current=null] - : +entryRuleSubSystemMapping returns [EObject current=null]: { newCompositeNode(grammarAccess.getSubSystemMappingRule()); } - iv_ruleSubSystemMapping=ruleSubSystemMapping - { $current=$iv_ruleSubSystemMapping.current; } - EOF -; + iv_ruleSubSystemMapping=ruleSubSystemMapping + { $current=$iv_ruleSubSystemMapping.current; } + EOF; // Rule SubSystemMapping -ruleSubSystemMapping returns [EObject current=null] - @init { enterRule(); - } - @after { leaveRule(); }: -( otherlv_0='SubSystemMapping' - { - newLeafNode(otherlv_0, grammarAccess.getSubSystemMappingAccess().getSubSystemMappingKeyword_0()); - } -( -( +ruleSubSystemMapping returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='SubSystemMapping' { - if ($current==null) { - $current = createModelElement(grammarAccess.getSubSystemMappingRule()); - } - } - otherlv_1=RULE_ID - { - newLeafNode(otherlv_1, grammarAccess.getSubSystemMappingAccess().getLogicalSubSysSubSystemRefCrossReference_1_0()); - } - -) -) otherlv_2='->' - { - newLeafNode(otherlv_2, grammarAccess.getSubSystemMappingAccess().getHyphenMinusGreaterThanSignKeyword_2()); - } -( -( + newLeafNode(otherlv_0, grammarAccess.getSubSystemMappingAccess().getSubSystemMappingKeyword_0()); + } + ( + ( + { + if ($current==null) { + $current = createModelElement(grammarAccess.getSubSystemMappingRule()); + } + } + otherlv_1=RULE_ID + { + newLeafNode(otherlv_1, grammarAccess.getSubSystemMappingAccess().getLogicalSubSysSubSystemRefCrossReference_1_0()); + } + ) + ) + otherlv_2='->' { - if ($current==null) { - $current = createModelElement(grammarAccess.getSubSystemMappingRule()); - } - } - otherlv_3=RULE_ID - { - newLeafNode(otherlv_3, grammarAccess.getSubSystemMappingAccess().getNodeNodeRefCrossReference_3_0()); - } - -) -)( otherlv_4='{' - { - newLeafNode(otherlv_4, grammarAccess.getSubSystemMappingAccess().getLeftCurlyBracketKeyword_4_0()); - } -( -( - { - newCompositeNode(grammarAccess.getSubSystemMappingAccess().getThreadMappingsThreadMappingParserRuleCall_4_1_0()); - } - lv_threadMappings_5_0=ruleThreadMapping { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getSubSystemMappingRule()); - } - add( - $current, - "threadMappings", - lv_threadMappings_5_0, - "org.eclipse.etrice.core.etmap.ETMap.ThreadMapping"); - afterParserOrEnumRuleCall(); - } - -) -)* otherlv_6='}' - { - newLeafNode(otherlv_6, grammarAccess.getSubSystemMappingAccess().getRightCurlyBracketKeyword_4_2()); - } -)?) + newLeafNode(otherlv_2, grammarAccess.getSubSystemMappingAccess().getHyphenMinusGreaterThanSignKeyword_2()); + } + ( + ( + { + if ($current==null) { + $current = createModelElement(grammarAccess.getSubSystemMappingRule()); + } + } + otherlv_3=RULE_ID + { + newLeafNode(otherlv_3, grammarAccess.getSubSystemMappingAccess().getNodeNodeRefCrossReference_3_0()); + } + ) + ) + ( + otherlv_4='{' + { + newLeafNode(otherlv_4, grammarAccess.getSubSystemMappingAccess().getLeftCurlyBracketKeyword_4_0()); + } + ( + ( + { + newCompositeNode(grammarAccess.getSubSystemMappingAccess().getThreadMappingsThreadMappingParserRuleCall_4_1_0()); + } + lv_threadMappings_5_0=ruleThreadMapping + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getSubSystemMappingRule()); + } + add( + $current, + "threadMappings", + lv_threadMappings_5_0, + "org.eclipse.etrice.core.etmap.ETMap.ThreadMapping"); + afterParserOrEnumRuleCall(); + } + ) + )* + otherlv_6='}' + { + newLeafNode(otherlv_6, grammarAccess.getSubSystemMappingAccess().getRightCurlyBracketKeyword_4_2()); + } + )? + ) ; - - - - // Entry rule entryRuleThreadMapping -entryRuleThreadMapping returns [EObject current=null] - : +entryRuleThreadMapping returns [EObject current=null]: { newCompositeNode(grammarAccess.getThreadMappingRule()); } - iv_ruleThreadMapping=ruleThreadMapping - { $current=$iv_ruleThreadMapping.current; } - EOF -; + iv_ruleThreadMapping=ruleThreadMapping + { $current=$iv_ruleThreadMapping.current; } + EOF; // Rule ThreadMapping -ruleThreadMapping returns [EObject current=null] - @init { enterRule(); - } - @after { leaveRule(); }: -( otherlv_0='ThreadMapping' - { - newLeafNode(otherlv_0, grammarAccess.getThreadMappingAccess().getThreadMappingKeyword_0()); - } -( -( +ruleThreadMapping returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='ThreadMapping' { - if ($current==null) { - $current = createModelElement(grammarAccess.getThreadMappingRule()); - } - } - otherlv_1=RULE_ID - { - newLeafNode(otherlv_1, grammarAccess.getThreadMappingAccess().getLogicalThreadLogicalThreadCrossReference_1_0()); - } - -) -) otherlv_2='->' - { - newLeafNode(otherlv_2, grammarAccess.getThreadMappingAccess().getHyphenMinusGreaterThanSignKeyword_2()); - } -( -( + newLeafNode(otherlv_0, grammarAccess.getThreadMappingAccess().getThreadMappingKeyword_0()); + } + ( + ( + { + if ($current==null) { + $current = createModelElement(grammarAccess.getThreadMappingRule()); + } + } + otherlv_1=RULE_ID + { + newLeafNode(otherlv_1, grammarAccess.getThreadMappingAccess().getLogicalThreadLogicalThreadCrossReference_1_0()); + } + ) + ) + otherlv_2='->' { - if ($current==null) { - $current = createModelElement(grammarAccess.getThreadMappingRule()); - } - } - otherlv_3=RULE_ID - { - newLeafNode(otherlv_3, grammarAccess.getThreadMappingAccess().getPhysicalThreadPhysicalThreadCrossReference_3_0()); - } - -) -)) + newLeafNode(otherlv_2, grammarAccess.getThreadMappingAccess().getHyphenMinusGreaterThanSignKeyword_2()); + } + ( + ( + { + if ($current==null) { + $current = createModelElement(grammarAccess.getThreadMappingRule()); + } + } + otherlv_3=RULE_ID + { + newLeafNode(otherlv_3, grammarAccess.getThreadMappingAccess().getPhysicalThreadPhysicalThreadCrossReference_3_0()); + } + ) + ) + ) ; - - - - - - // Entry rule entryRuleKeyValue -entryRuleKeyValue returns [EObject current=null] - : +entryRuleKeyValue returns [EObject current=null]: { newCompositeNode(grammarAccess.getKeyValueRule()); } - iv_ruleKeyValue=ruleKeyValue - { $current=$iv_ruleKeyValue.current; } - EOF -; + iv_ruleKeyValue=ruleKeyValue + { $current=$iv_ruleKeyValue.current; } + EOF; // Rule KeyValue -ruleKeyValue returns [EObject current=null] - @init { enterRule(); - } - @after { leaveRule(); }: -(( -( - lv_key_0_0=RULE_ID +ruleKeyValue returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + ( + lv_key_0_0=RULE_ID + { + newLeafNode(lv_key_0_0, grammarAccess.getKeyValueAccess().getKeyIDTerminalRuleCall_0_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getKeyValueRule()); + } + setWithLastConsumed( + $current, + "key", + lv_key_0_0, + "org.eclipse.xtext.common.Terminals.ID"); + } + ) + ) + otherlv_1='=' { - newLeafNode(lv_key_0_0, grammarAccess.getKeyValueAccess().getKeyIDTerminalRuleCall_0_0()); + newLeafNode(otherlv_1, grammarAccess.getKeyValueAccess().getEqualsSignKeyword_1()); } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getKeyValueRule()); - } - setWithLastConsumed( - $current, - "key", - lv_key_0_0, - "org.eclipse.xtext.common.Terminals.ID"); - } - -) -) otherlv_1='=' - { - newLeafNode(otherlv_1, grammarAccess.getKeyValueAccess().getEqualsSignKeyword_1()); - } -( -( - { - newCompositeNode(grammarAccess.getKeyValueAccess().getValueLiteralParserRuleCall_2_0()); - } - lv_value_2_0=ruleLiteral { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getKeyValueRule()); - } - set( - $current, - "value", - lv_value_2_0, - "org.eclipse.etrice.core.common.Base.Literal"); - afterParserOrEnumRuleCall(); - } - -) -)) + ( + ( + { + newCompositeNode(grammarAccess.getKeyValueAccess().getValueLiteralParserRuleCall_2_0()); + } + lv_value_2_0=ruleLiteral + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getKeyValueRule()); + } + set( + $current, + "value", + lv_value_2_0, + "org.eclipse.etrice.core.common.Base.Literal"); + afterParserOrEnumRuleCall(); + } + ) + ) + ) ; - - - - - - // Entry rule entryRuleAnnotationTargetType -entryRuleAnnotationTargetType returns [String current=null] - : - { newCompositeNode(grammarAccess.getAnnotationTargetTypeRule()); } - iv_ruleAnnotationTargetType=ruleAnnotationTargetType - { $current=$iv_ruleAnnotationTargetType.current.getText(); } - EOF -; +entryRuleAnnotationTargetType returns [String current=null]: + { newCompositeNode(grammarAccess.getAnnotationTargetTypeRule()); } + iv_ruleAnnotationTargetType=ruleAnnotationTargetType + { $current=$iv_ruleAnnotationTargetType.current.getText(); } + EOF; // Rule AnnotationTargetType -ruleAnnotationTargetType returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] - @init { enterRule(); - } - @after { leaveRule(); }: - this_ID_0=RULE_ID { +ruleAnnotationTargetType returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + this_ID_0=RULE_ID + { $current.merge(this_ID_0); - } - - { - newLeafNode(this_ID_0, grammarAccess.getAnnotationTargetTypeAccess().getIDTerminalRuleCall()); - } - - ; - - - - + } + { + newLeafNode(this_ID_0, grammarAccess.getAnnotationTargetTypeAccess().getIDTerminalRuleCall()); + } +; // Entry rule entryRuleAnnotationAttribute -entryRuleAnnotationAttribute returns [EObject current=null] - : +entryRuleAnnotationAttribute returns [EObject current=null]: { newCompositeNode(grammarAccess.getAnnotationAttributeRule()); } - iv_ruleAnnotationAttribute=ruleAnnotationAttribute - { $current=$iv_ruleAnnotationAttribute.current; } - EOF -; + iv_ruleAnnotationAttribute=ruleAnnotationAttribute + { $current=$iv_ruleAnnotationAttribute.current; } + EOF; // Rule AnnotationAttribute -ruleAnnotationAttribute returns [EObject current=null] - @init { enterRule(); - } - @after { leaveRule(); }: -( - { - newCompositeNode(grammarAccess.getAnnotationAttributeAccess().getSimpleAnnotationAttributeParserRuleCall_0()); - } - this_SimpleAnnotationAttribute_0=ruleSimpleAnnotationAttribute - { - $current = $this_SimpleAnnotationAttribute_0.current; - afterParserOrEnumRuleCall(); - } - - | - { - newCompositeNode(grammarAccess.getAnnotationAttributeAccess().getEnumAnnotationAttributeParserRuleCall_1()); - } - this_EnumAnnotationAttribute_1=ruleEnumAnnotationAttribute - { - $current = $this_EnumAnnotationAttribute_1.current; - afterParserOrEnumRuleCall(); - } -) +ruleAnnotationAttribute returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + { + newCompositeNode(grammarAccess.getAnnotationAttributeAccess().getSimpleAnnotationAttributeParserRuleCall_0()); + } + this_SimpleAnnotationAttribute_0=ruleSimpleAnnotationAttribute + { + $current = $this_SimpleAnnotationAttribute_0.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getAnnotationAttributeAccess().getEnumAnnotationAttributeParserRuleCall_1()); + } + this_EnumAnnotationAttribute_1=ruleEnumAnnotationAttribute + { + $current = $this_EnumAnnotationAttribute_1.current; + afterParserOrEnumRuleCall(); + } + ) ; - - - - // Entry rule entryRuleSimpleAnnotationAttribute -entryRuleSimpleAnnotationAttribute returns [EObject current=null] - : +entryRuleSimpleAnnotationAttribute returns [EObject current=null]: { newCompositeNode(grammarAccess.getSimpleAnnotationAttributeRule()); } - iv_ruleSimpleAnnotationAttribute=ruleSimpleAnnotationAttribute - { $current=$iv_ruleSimpleAnnotationAttribute.current; } - EOF -; + iv_ruleSimpleAnnotationAttribute=ruleSimpleAnnotationAttribute + { $current=$iv_ruleSimpleAnnotationAttribute.current; } + EOF; // Rule SimpleAnnotationAttribute -ruleSimpleAnnotationAttribute returns [EObject current=null] - @init { enterRule(); - } - @after { leaveRule(); }: -((( -( - lv_optional_0_0= 'optional' - { - newLeafNode(lv_optional_0_0, grammarAccess.getSimpleAnnotationAttributeAccess().getOptionalOptionalKeyword_0_0_0()); - } - - { - if ($current==null) { - $current = createModelElement(grammarAccess.getSimpleAnnotationAttributeRule()); - } - setWithLastConsumed($current, "optional", true, "optional"); - } - -) -) - | otherlv_1='mandatory' - { - newLeafNode(otherlv_1, grammarAccess.getSimpleAnnotationAttributeAccess().getMandatoryKeyword_0_1()); - } -) otherlv_2='attribute' - { - newLeafNode(otherlv_2, grammarAccess.getSimpleAnnotationAttributeAccess().getAttributeKeyword_1()); - } -( -( - lv_name_3_0=RULE_ID +ruleSimpleAnnotationAttribute returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + ( + ( + lv_optional_0_0='optional' + { + newLeafNode(lv_optional_0_0, grammarAccess.getSimpleAnnotationAttributeAccess().getOptionalOptionalKeyword_0_0_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getSimpleAnnotationAttributeRule()); + } + setWithLastConsumed($current, "optional", lv_optional_0_0 != null, "optional"); + } + ) + ) + | + otherlv_1='mandatory' + { + newLeafNode(otherlv_1, grammarAccess.getSimpleAnnotationAttributeAccess().getMandatoryKeyword_0_1()); + } + ) + otherlv_2='attribute' { - newLeafNode(lv_name_3_0, grammarAccess.getSimpleAnnotationAttributeAccess().getNameIDTerminalRuleCall_2_0()); + newLeafNode(otherlv_2, grammarAccess.getSimpleAnnotationAttributeAccess().getAttributeKeyword_1()); } + ( + ( + lv_name_3_0=RULE_ID + { + newLeafNode(lv_name_3_0, grammarAccess.getSimpleAnnotationAttributeAccess().getNameIDTerminalRuleCall_2_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getSimpleAnnotationAttributeRule()); + } + setWithLastConsumed( + $current, + "name", + lv_name_3_0, + "org.eclipse.xtext.common.Terminals.ID"); + } + ) + ) + otherlv_4=':' { - if ($current==null) { - $current = createModelElement(grammarAccess.getSimpleAnnotationAttributeRule()); - } - setWithLastConsumed( - $current, - "name", - lv_name_3_0, - "org.eclipse.xtext.common.Terminals.ID"); - } - -) -) otherlv_4=':' - { - newLeafNode(otherlv_4, grammarAccess.getSimpleAnnotationAttributeAccess().getColonKeyword_3()); - } -( -( - { - newCompositeNode(grammarAccess.getSimpleAnnotationAttributeAccess().getTypeLiteralTypeEnumRuleCall_4_0()); - } - lv_type_5_0=ruleLiteralType { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getSimpleAnnotationAttributeRule()); - } - set( - $current, - "type", - lv_type_5_0, - "org.eclipse.etrice.core.common.Base.LiteralType"); - afterParserOrEnumRuleCall(); - } - -) -)) + newLeafNode(otherlv_4, grammarAccess.getSimpleAnnotationAttributeAccess().getColonKeyword_3()); + } + ( + ( + { + newCompositeNode(grammarAccess.getSimpleAnnotationAttributeAccess().getTypeLiteralTypeEnumRuleCall_4_0()); + } + lv_type_5_0=ruleLiteralType + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getSimpleAnnotationAttributeRule()); + } + set( + $current, + "type", + lv_type_5_0, + "org.eclipse.etrice.core.common.Base.LiteralType"); + afterParserOrEnumRuleCall(); + } + ) + ) + ) ; - - - - // Entry rule entryRuleEnumAnnotationAttribute -entryRuleEnumAnnotationAttribute returns [EObject current=null] - : +entryRuleEnumAnnotationAttribute returns [EObject current=null]: { newCompositeNode(grammarAccess.getEnumAnnotationAttributeRule()); } - iv_ruleEnumAnnotationAttribute=ruleEnumAnnotationAttribute - { $current=$iv_ruleEnumAnnotationAttribute.current; } - EOF -; + iv_ruleEnumAnnotationAttribute=ruleEnumAnnotationAttribute + { $current=$iv_ruleEnumAnnotationAttribute.current; } + EOF; // Rule EnumAnnotationAttribute -ruleEnumAnnotationAttribute returns [EObject current=null] - @init { enterRule(); - } - @after { leaveRule(); }: -((( -( - lv_optional_0_0= 'optional' - { - newLeafNode(lv_optional_0_0, grammarAccess.getEnumAnnotationAttributeAccess().getOptionalOptionalKeyword_0_0_0()); - } - - { - if ($current==null) { - $current = createModelElement(grammarAccess.getEnumAnnotationAttributeRule()); - } - setWithLastConsumed($current, "optional", true, "optional"); - } - -) -) - | otherlv_1='mandatory' - { - newLeafNode(otherlv_1, grammarAccess.getEnumAnnotationAttributeAccess().getMandatoryKeyword_0_1()); - } -) otherlv_2='attribute' - { - newLeafNode(otherlv_2, grammarAccess.getEnumAnnotationAttributeAccess().getAttributeKeyword_1()); - } -( -( - lv_name_3_0=RULE_ID +ruleEnumAnnotationAttribute returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + ( + ( + lv_optional_0_0='optional' + { + newLeafNode(lv_optional_0_0, grammarAccess.getEnumAnnotationAttributeAccess().getOptionalOptionalKeyword_0_0_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getEnumAnnotationAttributeRule()); + } + setWithLastConsumed($current, "optional", lv_optional_0_0 != null, "optional"); + } + ) + ) + | + otherlv_1='mandatory' + { + newLeafNode(otherlv_1, grammarAccess.getEnumAnnotationAttributeAccess().getMandatoryKeyword_0_1()); + } + ) + otherlv_2='attribute' { - newLeafNode(lv_name_3_0, grammarAccess.getEnumAnnotationAttributeAccess().getNameIDTerminalRuleCall_2_0()); + newLeafNode(otherlv_2, grammarAccess.getEnumAnnotationAttributeAccess().getAttributeKeyword_1()); } + ( + ( + lv_name_3_0=RULE_ID + { + newLeafNode(lv_name_3_0, grammarAccess.getEnumAnnotationAttributeAccess().getNameIDTerminalRuleCall_2_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getEnumAnnotationAttributeRule()); + } + setWithLastConsumed( + $current, + "name", + lv_name_3_0, + "org.eclipse.xtext.common.Terminals.ID"); + } + ) + ) + otherlv_4=':' { - if ($current==null) { - $current = createModelElement(grammarAccess.getEnumAnnotationAttributeRule()); - } - setWithLastConsumed( - $current, - "name", - lv_name_3_0, - "org.eclipse.xtext.common.Terminals.ID"); - } - -) -) otherlv_4=':' - { - newLeafNode(otherlv_4, grammarAccess.getEnumAnnotationAttributeAccess().getColonKeyword_3()); - } - otherlv_5='{' - { - newLeafNode(otherlv_5, grammarAccess.getEnumAnnotationAttributeAccess().getLeftCurlyBracketKeyword_4()); - } -( -( - lv_values_6_0=RULE_STRING - { - newLeafNode(lv_values_6_0, grammarAccess.getEnumAnnotationAttributeAccess().getValuesSTRINGTerminalRuleCall_5_0()); + newLeafNode(otherlv_4, grammarAccess.getEnumAnnotationAttributeAccess().getColonKeyword_3()); } + otherlv_5='{' { - if ($current==null) { - $current = createModelElement(grammarAccess.getEnumAnnotationAttributeRule()); - } - addWithLastConsumed( - $current, - "values", - lv_values_6_0, - "org.eclipse.xtext.common.Terminals.STRING"); - } - -) -)( otherlv_7=',' - { - newLeafNode(otherlv_7, grammarAccess.getEnumAnnotationAttributeAccess().getCommaKeyword_6_0()); - } -( -( - lv_values_8_0=RULE_STRING - { - newLeafNode(lv_values_8_0, grammarAccess.getEnumAnnotationAttributeAccess().getValuesSTRINGTerminalRuleCall_6_1_0()); + newLeafNode(otherlv_5, grammarAccess.getEnumAnnotationAttributeAccess().getLeftCurlyBracketKeyword_4()); } + ( + ( + lv_values_6_0=RULE_STRING + { + newLeafNode(lv_values_6_0, grammarAccess.getEnumAnnotationAttributeAccess().getValuesSTRINGTerminalRuleCall_5_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getEnumAnnotationAttributeRule()); + } + addWithLastConsumed( + $current, + "values", + lv_values_6_0, + "org.eclipse.xtext.common.Terminals.STRING"); + } + ) + ) + ( + otherlv_7=',' + { + newLeafNode(otherlv_7, grammarAccess.getEnumAnnotationAttributeAccess().getCommaKeyword_6_0()); + } + ( + ( + lv_values_8_0=RULE_STRING + { + newLeafNode(lv_values_8_0, grammarAccess.getEnumAnnotationAttributeAccess().getValuesSTRINGTerminalRuleCall_6_1_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getEnumAnnotationAttributeRule()); + } + addWithLastConsumed( + $current, + "values", + lv_values_8_0, + "org.eclipse.xtext.common.Terminals.STRING"); + } + ) + ) + )* + otherlv_9='}' { - if ($current==null) { - $current = createModelElement(grammarAccess.getEnumAnnotationAttributeRule()); - } - addWithLastConsumed( - $current, - "values", - lv_values_8_0, - "org.eclipse.xtext.common.Terminals.STRING"); - } - -) -))* otherlv_9='}' - { - newLeafNode(otherlv_9, grammarAccess.getEnumAnnotationAttributeAccess().getRightCurlyBracketKeyword_7()); - } -) + newLeafNode(otherlv_9, grammarAccess.getEnumAnnotationAttributeAccess().getRightCurlyBracketKeyword_7()); + } + ) ; - - - - // Entry rule entryRuleImport -entryRuleImport returns [EObject current=null] - : +entryRuleImport returns [EObject current=null]: { newCompositeNode(grammarAccess.getImportRule()); } - iv_ruleImport=ruleImport - { $current=$iv_ruleImport.current; } - EOF -; + iv_ruleImport=ruleImport + { $current=$iv_ruleImport.current; } + EOF; // Rule Import -ruleImport returns [EObject current=null] - @init { enterRule(); - } - @after { leaveRule(); }: -( otherlv_0='import' - { - newLeafNode(otherlv_0, grammarAccess.getImportAccess().getImportKeyword_0()); - } -((( -( - { - newCompositeNode(grammarAccess.getImportAccess().getImportedNamespaceImportedFQNParserRuleCall_1_0_0_0()); - } - lv_importedNamespace_1_0=ruleImportedFQN { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getImportRule()); - } - set( - $current, - "importedNamespace", - lv_importedNamespace_1_0, - "org.eclipse.etrice.core.common.Base.ImportedFQN"); - afterParserOrEnumRuleCall(); - } - -) -)( otherlv_2='from' - { - newLeafNode(otherlv_2, grammarAccess.getImportAccess().getFromKeyword_1_0_1_0()); - } -( -( - lv_importURI_3_0=RULE_STRING - { - newLeafNode(lv_importURI_3_0, grammarAccess.getImportAccess().getImportURISTRINGTerminalRuleCall_1_0_1_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getImportRule()); - } - setWithLastConsumed( - $current, - "importURI", - lv_importURI_3_0, - "org.eclipse.xtext.common.Terminals.STRING"); - } - -) -))?) - |( otherlv_4='model' - { - newLeafNode(otherlv_4, grammarAccess.getImportAccess().getModelKeyword_1_1_0()); - } -( -( - lv_importURI_5_0=RULE_STRING +ruleImport returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + otherlv_0='import' { - newLeafNode(lv_importURI_5_0, grammarAccess.getImportAccess().getImportURISTRINGTerminalRuleCall_1_1_1_0()); + newLeafNode(otherlv_0, grammarAccess.getImportAccess().getImportKeyword_0()); } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getImportRule()); - } - setWithLastConsumed( - $current, - "importURI", - lv_importURI_5_0, - "org.eclipse.xtext.common.Terminals.STRING"); - } - -) -)))) + ( + ( + ( + ( + { + newCompositeNode(grammarAccess.getImportAccess().getImportedNamespaceImportedFQNParserRuleCall_1_0_0_0()); + } + lv_importedNamespace_1_0=ruleImportedFQN + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getImportRule()); + } + set( + $current, + "importedNamespace", + lv_importedNamespace_1_0, + "org.eclipse.etrice.core.common.Base.ImportedFQN"); + afterParserOrEnumRuleCall(); + } + ) + ) + ( + otherlv_2='from' + { + newLeafNode(otherlv_2, grammarAccess.getImportAccess().getFromKeyword_1_0_1_0()); + } + ( + ( + lv_importURI_3_0=RULE_STRING + { + newLeafNode(lv_importURI_3_0, grammarAccess.getImportAccess().getImportURISTRINGTerminalRuleCall_1_0_1_1_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getImportRule()); + } + setWithLastConsumed( + $current, + "importURI", + lv_importURI_3_0, + "org.eclipse.xtext.common.Terminals.STRING"); + } + ) + ) + )? + ) + | + ( + otherlv_4='model' + { + newLeafNode(otherlv_4, grammarAccess.getImportAccess().getModelKeyword_1_1_0()); + } + ( + ( + lv_importURI_5_0=RULE_STRING + { + newLeafNode(lv_importURI_5_0, grammarAccess.getImportAccess().getImportURISTRINGTerminalRuleCall_1_1_1_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getImportRule()); + } + setWithLastConsumed( + $current, + "importURI", + lv_importURI_5_0, + "org.eclipse.xtext.common.Terminals.STRING"); + } + ) + ) + ) + ) + ) ; - - - - // Entry rule entryRuleImportedFQN -entryRuleImportedFQN returns [String current=null] - : - { newCompositeNode(grammarAccess.getImportedFQNRule()); } - iv_ruleImportedFQN=ruleImportedFQN - { $current=$iv_ruleImportedFQN.current.getText(); } - EOF -; +entryRuleImportedFQN returns [String current=null]: + { newCompositeNode(grammarAccess.getImportedFQNRule()); } + iv_ruleImportedFQN=ruleImportedFQN + { $current=$iv_ruleImportedFQN.current.getText(); } + EOF; // Rule ImportedFQN -ruleImportedFQN returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] - @init { enterRule(); - } - @after { leaveRule(); }: -( - { - newCompositeNode(grammarAccess.getImportedFQNAccess().getFQNParserRuleCall_0()); - } - this_FQN_0=ruleFQN { - $current.merge(this_FQN_0); - } - - { - afterParserOrEnumRuleCall(); - } -( - kw='.*' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getImportedFQNAccess().getFullStopAsteriskKeyword_1()); - } -)?) - ; - - - - +ruleImportedFQN returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + { + newCompositeNode(grammarAccess.getImportedFQNAccess().getFQNParserRuleCall_0()); + } + this_FQN_0=ruleFQN + { + $current.merge(this_FQN_0); + } + { + afterParserOrEnumRuleCall(); + } + ( + kw='.*' + { + $current.merge(kw); + newLeafNode(kw, grammarAccess.getImportedFQNAccess().getFullStopAsteriskKeyword_1()); + } + )? + ) +; // Entry rule entryRuleDocumentation -entryRuleDocumentation returns [EObject current=null] - : +entryRuleDocumentation returns [EObject current=null]: { newCompositeNode(grammarAccess.getDocumentationRule()); } - iv_ruleDocumentation=ruleDocumentation - { $current=$iv_ruleDocumentation.current; } - EOF -; + iv_ruleDocumentation=ruleDocumentation + { $current=$iv_ruleDocumentation.current; } + EOF; // Rule Documentation -ruleDocumentation returns [EObject current=null] - @init { enterRule(); - } - @after { leaveRule(); }: -(( - { - $current = forceCreateModelElement( - grammarAccess.getDocumentationAccess().getDocumentationAction_0(), - $current); - } -) otherlv_1='[' - { - newLeafNode(otherlv_1, grammarAccess.getDocumentationAccess().getLeftSquareBracketKeyword_1()); - } -( -( - lv_lines_2_0=RULE_STRING +ruleDocumentation returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + { + $current = forceCreateModelElement( + grammarAccess.getDocumentationAccess().getDocumentationAction_0(), + $current); + } + ) + otherlv_1='[' { - newLeafNode(lv_lines_2_0, grammarAccess.getDocumentationAccess().getLinesSTRINGTerminalRuleCall_2_0()); + newLeafNode(otherlv_1, grammarAccess.getDocumentationAccess().getLeftSquareBracketKeyword_1()); } + ( + ( + lv_lines_2_0=RULE_STRING + { + newLeafNode(lv_lines_2_0, grammarAccess.getDocumentationAccess().getLinesSTRINGTerminalRuleCall_2_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getDocumentationRule()); + } + addWithLastConsumed( + $current, + "lines", + lv_lines_2_0, + "org.eclipse.xtext.common.Terminals.STRING"); + } + ) + )* + otherlv_3=']' { - if ($current==null) { - $current = createModelElement(grammarAccess.getDocumentationRule()); - } - addWithLastConsumed( - $current, - "lines", - lv_lines_2_0, - "org.eclipse.xtext.common.Terminals.STRING"); - } - -) -)* otherlv_3=']' - { - newLeafNode(otherlv_3, grammarAccess.getDocumentationAccess().getRightSquareBracketKeyword_3()); - } -) + newLeafNode(otherlv_3, grammarAccess.getDocumentationAccess().getRightSquareBracketKeyword_3()); + } + ) ; - - - - - - - - // Entry rule entryRuleLiteral -entryRuleLiteral returns [EObject current=null] - : +entryRuleLiteral returns [EObject current=null]: { newCompositeNode(grammarAccess.getLiteralRule()); } - iv_ruleLiteral=ruleLiteral - { $current=$iv_ruleLiteral.current; } - EOF -; + iv_ruleLiteral=ruleLiteral + { $current=$iv_ruleLiteral.current; } + EOF; // Rule Literal -ruleLiteral returns [EObject current=null] - @init { enterRule(); - } - @after { leaveRule(); }: -( - { - newCompositeNode(grammarAccess.getLiteralAccess().getBooleanLiteralParserRuleCall_0()); - } - this_BooleanLiteral_0=ruleBooleanLiteral - { - $current = $this_BooleanLiteral_0.current; - afterParserOrEnumRuleCall(); - } - - | - { - newCompositeNode(grammarAccess.getLiteralAccess().getNumberLiteralParserRuleCall_1()); - } - this_NumberLiteral_1=ruleNumberLiteral - { - $current = $this_NumberLiteral_1.current; - afterParserOrEnumRuleCall(); - } - - | - { - newCompositeNode(grammarAccess.getLiteralAccess().getStringLiteralParserRuleCall_2()); - } - this_StringLiteral_2=ruleStringLiteral - { - $current = $this_StringLiteral_2.current; - afterParserOrEnumRuleCall(); - } -) +ruleLiteral returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + { + newCompositeNode(grammarAccess.getLiteralAccess().getBooleanLiteralParserRuleCall_0()); + } + this_BooleanLiteral_0=ruleBooleanLiteral + { + $current = $this_BooleanLiteral_0.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getLiteralAccess().getNumberLiteralParserRuleCall_1()); + } + this_NumberLiteral_1=ruleNumberLiteral + { + $current = $this_NumberLiteral_1.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getLiteralAccess().getStringLiteralParserRuleCall_2()); + } + this_StringLiteral_2=ruleStringLiteral + { + $current = $this_StringLiteral_2.current; + afterParserOrEnumRuleCall(); + } + ) ; - - - - // Entry rule entryRuleBooleanLiteral -entryRuleBooleanLiteral returns [EObject current=null] - : +entryRuleBooleanLiteral returns [EObject current=null]: { newCompositeNode(grammarAccess.getBooleanLiteralRule()); } - iv_ruleBooleanLiteral=ruleBooleanLiteral - { $current=$iv_ruleBooleanLiteral.current; } - EOF -; + iv_ruleBooleanLiteral=ruleBooleanLiteral + { $current=$iv_ruleBooleanLiteral.current; } + EOF; // Rule BooleanLiteral -ruleBooleanLiteral returns [EObject current=null] - @init { enterRule(); - } - @after { leaveRule(); }: -(( - { - $current = forceCreateModelElement( - grammarAccess.getBooleanLiteralAccess().getBooleanLiteralAction_0(), - $current); - } -)( otherlv_1='false' - { - newLeafNode(otherlv_1, grammarAccess.getBooleanLiteralAccess().getFalseKeyword_1_0()); - } - - |( -( - lv_isTrue_2_0= 'true' - { - newLeafNode(lv_isTrue_2_0, grammarAccess.getBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0()); - } - - { - if ($current==null) { - $current = createModelElement(grammarAccess.getBooleanLiteralRule()); - } - setWithLastConsumed($current, "isTrue", true, "true"); - } - -) -))) +ruleBooleanLiteral returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + { + $current = forceCreateModelElement( + grammarAccess.getBooleanLiteralAccess().getBooleanLiteralAction_0(), + $current); + } + ) + ( + otherlv_1='false' + { + newLeafNode(otherlv_1, grammarAccess.getBooleanLiteralAccess().getFalseKeyword_1_0()); + } + | + ( + ( + lv_isTrue_2_0='true' + { + newLeafNode(lv_isTrue_2_0, grammarAccess.getBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getBooleanLiteralRule()); + } + setWithLastConsumed($current, "isTrue", lv_isTrue_2_0 != null, "true"); + } + ) + ) + ) + ) ; - - - - // Entry rule entryRuleNumberLiteral -entryRuleNumberLiteral returns [EObject current=null] - : +entryRuleNumberLiteral returns [EObject current=null]: { newCompositeNode(grammarAccess.getNumberLiteralRule()); } - iv_ruleNumberLiteral=ruleNumberLiteral - { $current=$iv_ruleNumberLiteral.current; } - EOF -; + iv_ruleNumberLiteral=ruleNumberLiteral + { $current=$iv_ruleNumberLiteral.current; } + EOF; // Rule NumberLiteral -ruleNumberLiteral returns [EObject current=null] - @init { enterRule(); - } - @after { leaveRule(); }: -( - { - newCompositeNode(grammarAccess.getNumberLiteralAccess().getIntLiteralParserRuleCall_0()); - } - this_IntLiteral_0=ruleIntLiteral - { - $current = $this_IntLiteral_0.current; - afterParserOrEnumRuleCall(); - } - - | - { - newCompositeNode(grammarAccess.getNumberLiteralAccess().getRealLiteralParserRuleCall_1()); - } - this_RealLiteral_1=ruleRealLiteral - { - $current = $this_RealLiteral_1.current; - afterParserOrEnumRuleCall(); - } -) +ruleNumberLiteral returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + { + newCompositeNode(grammarAccess.getNumberLiteralAccess().getIntLiteralParserRuleCall_0()); + } + this_IntLiteral_0=ruleIntLiteral + { + $current = $this_IntLiteral_0.current; + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getNumberLiteralAccess().getRealLiteralParserRuleCall_1()); + } + this_RealLiteral_1=ruleRealLiteral + { + $current = $this_RealLiteral_1.current; + afterParserOrEnumRuleCall(); + } + ) ; - - - - // Entry rule entryRuleRealLiteral -entryRuleRealLiteral returns [EObject current=null] - : +entryRuleRealLiteral returns [EObject current=null]: { newCompositeNode(grammarAccess.getRealLiteralRule()); } - iv_ruleRealLiteral=ruleRealLiteral - { $current=$iv_ruleRealLiteral.current; } - EOF -; + iv_ruleRealLiteral=ruleRealLiteral + { $current=$iv_ruleRealLiteral.current; } + EOF; // Rule RealLiteral -ruleRealLiteral returns [EObject current=null] - @init { enterRule(); - } - @after { leaveRule(); }: -(( - { - $current = forceCreateModelElement( - grammarAccess.getRealLiteralAccess().getRealLiteralAction_0(), - $current); - } -)( -( - { - newCompositeNode(grammarAccess.getRealLiteralAccess().getValueRealParserRuleCall_1_0()); - } - lv_value_1_0=ruleReal { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getRealLiteralRule()); - } - set( - $current, - "value", - lv_value_1_0, - "org.eclipse.etrice.core.common.Base.Real"); - afterParserOrEnumRuleCall(); - } - -) -)) +ruleRealLiteral returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + { + $current = forceCreateModelElement( + grammarAccess.getRealLiteralAccess().getRealLiteralAction_0(), + $current); + } + ) + ( + ( + { + newCompositeNode(grammarAccess.getRealLiteralAccess().getValueRealParserRuleCall_1_0()); + } + lv_value_1_0=ruleReal + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getRealLiteralRule()); + } + set( + $current, + "value", + lv_value_1_0, + "org.eclipse.etrice.core.common.Base.Real"); + afterParserOrEnumRuleCall(); + } + ) + ) + ) ; - - - - // Entry rule entryRuleIntLiteral -entryRuleIntLiteral returns [EObject current=null] - : +entryRuleIntLiteral returns [EObject current=null]: { newCompositeNode(grammarAccess.getIntLiteralRule()); } - iv_ruleIntLiteral=ruleIntLiteral - { $current=$iv_ruleIntLiteral.current; } - EOF -; + iv_ruleIntLiteral=ruleIntLiteral + { $current=$iv_ruleIntLiteral.current; } + EOF; // Rule IntLiteral -ruleIntLiteral returns [EObject current=null] - @init { enterRule(); - } - @after { leaveRule(); }: -(( - { - $current = forceCreateModelElement( - grammarAccess.getIntLiteralAccess().getIntLiteralAction_0(), - $current); - } -)( -( - { - newCompositeNode(grammarAccess.getIntLiteralAccess().getValueIntegerParserRuleCall_1_0()); - } - lv_value_1_0=ruleInteger { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getIntLiteralRule()); - } - set( - $current, - "value", - lv_value_1_0, - "org.eclipse.etrice.core.common.Base.Integer"); - afterParserOrEnumRuleCall(); - } - -) -)) +ruleIntLiteral returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + { + $current = forceCreateModelElement( + grammarAccess.getIntLiteralAccess().getIntLiteralAction_0(), + $current); + } + ) + ( + ( + { + newCompositeNode(grammarAccess.getIntLiteralAccess().getValueIntegerParserRuleCall_1_0()); + } + lv_value_1_0=ruleInteger + { + if ($current==null) { + $current = createModelElementForParent(grammarAccess.getIntLiteralRule()); + } + set( + $current, + "value", + lv_value_1_0, + "org.eclipse.etrice.core.common.Base.Integer"); + afterParserOrEnumRuleCall(); + } + ) + ) + ) ; - - - - // Entry rule entryRuleStringLiteral -entryRuleStringLiteral returns [EObject current=null] - : +entryRuleStringLiteral returns [EObject current=null]: { newCompositeNode(grammarAccess.getStringLiteralRule()); } - iv_ruleStringLiteral=ruleStringLiteral - { $current=$iv_ruleStringLiteral.current; } - EOF -; + iv_ruleStringLiteral=ruleStringLiteral + { $current=$iv_ruleStringLiteral.current; } + EOF; // Rule StringLiteral -ruleStringLiteral returns [EObject current=null] - @init { enterRule(); - } - @after { leaveRule(); }: -(( - { - $current = forceCreateModelElement( - grammarAccess.getStringLiteralAccess().getStringLiteralAction_0(), - $current); - } -)( -( - lv_value_1_0=RULE_STRING - { - newLeafNode(lv_value_1_0, grammarAccess.getStringLiteralAccess().getValueSTRINGTerminalRuleCall_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getStringLiteralRule()); - } - setWithLastConsumed( - $current, - "value", - lv_value_1_0, - "org.eclipse.xtext.common.Terminals.STRING"); - } - -) -)) +ruleStringLiteral returns [EObject current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + { + $current = forceCreateModelElement( + grammarAccess.getStringLiteralAccess().getStringLiteralAction_0(), + $current); + } + ) + ( + ( + lv_value_1_0=RULE_STRING + { + newLeafNode(lv_value_1_0, grammarAccess.getStringLiteralAccess().getValueSTRINGTerminalRuleCall_1_0()); + } + { + if ($current==null) { + $current = createModelElement(grammarAccess.getStringLiteralRule()); + } + setWithLastConsumed( + $current, + "value", + lv_value_1_0, + "org.eclipse.xtext.common.Terminals.STRING"); + } + ) + ) + ) ; - - - - // Entry rule entryRuleInteger -entryRuleInteger returns [String current=null] - : - { newCompositeNode(grammarAccess.getIntegerRule()); } - iv_ruleInteger=ruleInteger - { $current=$iv_ruleInteger.current.getText(); } - EOF -; +entryRuleInteger returns [String current=null]: + { newCompositeNode(grammarAccess.getIntegerRule()); } + iv_ruleInteger=ruleInteger + { $current=$iv_ruleInteger.current.getText(); } + EOF; // Rule Integer -ruleInteger returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] - @init { enterRule(); - } - @after { leaveRule(); }: -((( - kw='+' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getIntegerAccess().getPlusSignKeyword_0_0_0()); - } - - | - kw='-' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getIntegerAccess().getHyphenMinusKeyword_0_0_1()); - } -)? this_INT_2=RULE_INT { - $current.merge(this_INT_2); - } - - { - newLeafNode(this_INT_2, grammarAccess.getIntegerAccess().getINTTerminalRuleCall_0_1()); - } -) - | this_HEX_3=RULE_HEX { - $current.merge(this_HEX_3); - } - - { - newLeafNode(this_HEX_3, grammarAccess.getIntegerAccess().getHEXTerminalRuleCall_1()); - } -) - ; - - - - +ruleInteger returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + ( + kw='+' + { + $current.merge(kw); + newLeafNode(kw, grammarAccess.getIntegerAccess().getPlusSignKeyword_0_0_0()); + } + | + kw='-' + { + $current.merge(kw); + newLeafNode(kw, grammarAccess.getIntegerAccess().getHyphenMinusKeyword_0_0_1()); + } + )? + this_INT_2=RULE_INT + { + $current.merge(this_INT_2); + } + { + newLeafNode(this_INT_2, grammarAccess.getIntegerAccess().getINTTerminalRuleCall_0_1()); + } + ) + | + this_HEX_3=RULE_HEX + { + $current.merge(this_HEX_3); + } + { + newLeafNode(this_HEX_3, grammarAccess.getIntegerAccess().getHEXTerminalRuleCall_1()); + } + ) +; // Entry rule entryRuleReal -entryRuleReal returns [String current=null] - : - { newCompositeNode(grammarAccess.getRealRule()); } - iv_ruleReal=ruleReal - { $current=$iv_ruleReal.current.getText(); } - EOF -; +entryRuleReal returns [String current=null]: + { newCompositeNode(grammarAccess.getRealRule()); } + iv_ruleReal=ruleReal + { $current=$iv_ruleReal.current.getText(); } + EOF; // Rule Real -ruleReal returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] - @init { enterRule(); - } - @after { leaveRule(); }: -( - { - newCompositeNode(grammarAccess.getRealAccess().getDecimalParserRuleCall_0()); - } - this_Decimal_0=ruleDecimal { - $current.merge(this_Decimal_0); - } - - { - afterParserOrEnumRuleCall(); - } - - | - { - newCompositeNode(grammarAccess.getRealAccess().getDecimalExpParserRuleCall_1()); - } - this_DecimalExp_1=ruleDecimalExp { - $current.merge(this_DecimalExp_1); - } - - { - afterParserOrEnumRuleCall(); - } -) - ; - - - - +ruleReal returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + { + newCompositeNode(grammarAccess.getRealAccess().getDecimalParserRuleCall_0()); + } + this_Decimal_0=ruleDecimal + { + $current.merge(this_Decimal_0); + } + { + afterParserOrEnumRuleCall(); + } + | + { + newCompositeNode(grammarAccess.getRealAccess().getDecimalExpParserRuleCall_1()); + } + this_DecimalExp_1=ruleDecimalExp + { + $current.merge(this_DecimalExp_1); + } + { + afterParserOrEnumRuleCall(); + } + ) +; // Entry rule entryRuleDecimal -entryRuleDecimal returns [String current=null] - @init { - HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); - } - : - { newCompositeNode(grammarAccess.getDecimalRule()); } - iv_ruleDecimal=ruleDecimal - { $current=$iv_ruleDecimal.current.getText(); } - EOF -; +entryRuleDecimal returns [String current=null]@init { + HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); +}: + { newCompositeNode(grammarAccess.getDecimalRule()); } + iv_ruleDecimal=ruleDecimal + { $current=$iv_ruleDecimal.current.getText(); } + EOF; finally { myHiddenTokenState.restore(); } // Rule Decimal -ruleDecimal returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] - @init { enterRule(); - HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); - } - @after { leaveRule(); }: -(( - kw='+' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getDecimalAccess().getPlusSignKeyword_0_0()); - } - - | - kw='-' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getDecimalAccess().getHyphenMinusKeyword_0_1()); - } -)? this_INT_2=RULE_INT { - $current.merge(this_INT_2); - } - - { - newLeafNode(this_INT_2, grammarAccess.getDecimalAccess().getINTTerminalRuleCall_1()); - } - - kw='.' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getDecimalAccess().getFullStopKeyword_2()); - } - this_INT_4=RULE_INT { - $current.merge(this_INT_4); - } - - { - newLeafNode(this_INT_4, grammarAccess.getDecimalAccess().getINTTerminalRuleCall_3()); - } -) - ; +ruleDecimal returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] +@init { + enterRule(); + HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); +} +@after { + leaveRule(); +}: + ( + ( + kw='+' + { + $current.merge(kw); + newLeafNode(kw, grammarAccess.getDecimalAccess().getPlusSignKeyword_0_0()); + } + | + kw='-' + { + $current.merge(kw); + newLeafNode(kw, grammarAccess.getDecimalAccess().getHyphenMinusKeyword_0_1()); + } + )? + this_INT_2=RULE_INT + { + $current.merge(this_INT_2); + } + { + newLeafNode(this_INT_2, grammarAccess.getDecimalAccess().getINTTerminalRuleCall_1()); + } + kw='.' + { + $current.merge(kw); + newLeafNode(kw, grammarAccess.getDecimalAccess().getFullStopKeyword_2()); + } + this_INT_4=RULE_INT + { + $current.merge(this_INT_4); + } + { + newLeafNode(this_INT_4, grammarAccess.getDecimalAccess().getINTTerminalRuleCall_3()); + } + ) +; finally { myHiddenTokenState.restore(); } - - - - // Entry rule entryRuleDecimalExp -entryRuleDecimalExp returns [String current=null] - @init { - HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); - } - : - { newCompositeNode(grammarAccess.getDecimalExpRule()); } - iv_ruleDecimalExp=ruleDecimalExp - { $current=$iv_ruleDecimalExp.current.getText(); } - EOF -; +entryRuleDecimalExp returns [String current=null]@init { + HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); +}: + { newCompositeNode(grammarAccess.getDecimalExpRule()); } + iv_ruleDecimalExp=ruleDecimalExp + { $current=$iv_ruleDecimalExp.current.getText(); } + EOF; finally { myHiddenTokenState.restore(); } // Rule DecimalExp -ruleDecimalExp returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] - @init { enterRule(); - HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); - } - @after { leaveRule(); }: -(( - kw='+' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getDecimalExpAccess().getPlusSignKeyword_0_0()); - } - - | - kw='-' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getDecimalExpAccess().getHyphenMinusKeyword_0_1()); - } -)? this_INT_2=RULE_INT { - $current.merge(this_INT_2); - } - - { - newLeafNode(this_INT_2, grammarAccess.getDecimalExpAccess().getINTTerminalRuleCall_1()); - } - - kw='.' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getDecimalExpAccess().getFullStopKeyword_2()); - } - this_INT_4=RULE_INT { - $current.merge(this_INT_4); - } - - { - newLeafNode(this_INT_4, grammarAccess.getDecimalExpAccess().getINTTerminalRuleCall_3()); - } -( - kw='e' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getDecimalExpAccess().getEKeyword_4_0()); - } - - | - kw='E' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getDecimalExpAccess().getEKeyword_4_1()); - } -)( - kw='+' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getDecimalExpAccess().getPlusSignKeyword_5_0()); - } - - | - kw='-' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getDecimalExpAccess().getHyphenMinusKeyword_5_1()); - } -)? this_INT_9=RULE_INT { - $current.merge(this_INT_9); - } - - { - newLeafNode(this_INT_9, grammarAccess.getDecimalExpAccess().getINTTerminalRuleCall_6()); - } -) - ; +ruleDecimalExp returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] +@init { + enterRule(); + HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); +} +@after { + leaveRule(); +}: + ( + ( + kw='+' + { + $current.merge(kw); + newLeafNode(kw, grammarAccess.getDecimalExpAccess().getPlusSignKeyword_0_0()); + } + | + kw='-' + { + $current.merge(kw); + newLeafNode(kw, grammarAccess.getDecimalExpAccess().getHyphenMinusKeyword_0_1()); + } + )? + this_INT_2=RULE_INT + { + $current.merge(this_INT_2); + } + { + newLeafNode(this_INT_2, grammarAccess.getDecimalExpAccess().getINTTerminalRuleCall_1()); + } + kw='.' + { + $current.merge(kw); + newLeafNode(kw, grammarAccess.getDecimalExpAccess().getFullStopKeyword_2()); + } + this_INT_4=RULE_INT + { + $current.merge(this_INT_4); + } + { + newLeafNode(this_INT_4, grammarAccess.getDecimalExpAccess().getINTTerminalRuleCall_3()); + } + ( + kw='e' + { + $current.merge(kw); + newLeafNode(kw, grammarAccess.getDecimalExpAccess().getEKeyword_4_0()); + } + | + kw='E' + { + $current.merge(kw); + newLeafNode(kw, grammarAccess.getDecimalExpAccess().getEKeyword_4_1()); + } + ) + ( + kw='+' + { + $current.merge(kw); + newLeafNode(kw, grammarAccess.getDecimalExpAccess().getPlusSignKeyword_5_0()); + } + | + kw='-' + { + $current.merge(kw); + newLeafNode(kw, grammarAccess.getDecimalExpAccess().getHyphenMinusKeyword_5_1()); + } + )? + this_INT_9=RULE_INT + { + $current.merge(this_INT_9); + } + { + newLeafNode(this_INT_9, grammarAccess.getDecimalExpAccess().getINTTerminalRuleCall_6()); + } + ) +; finally { myHiddenTokenState.restore(); } - - - - // Entry rule entryRuleFQN -entryRuleFQN returns [String current=null] - : - { newCompositeNode(grammarAccess.getFQNRule()); } - iv_ruleFQN=ruleFQN - { $current=$iv_ruleFQN.current.getText(); } - EOF -; +entryRuleFQN returns [String current=null]: + { newCompositeNode(grammarAccess.getFQNRule()); } + iv_ruleFQN=ruleFQN + { $current=$iv_ruleFQN.current.getText(); } + EOF; // Rule FQN -ruleFQN returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] - @init { enterRule(); - } - @after { leaveRule(); }: -( this_ID_0=RULE_ID { - $current.merge(this_ID_0); - } - - { - newLeafNode(this_ID_0, grammarAccess.getFQNAccess().getIDTerminalRuleCall_0()); - } -( - kw='.' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getFQNAccess().getFullStopKeyword_1_0()); - } - this_ID_2=RULE_ID { - $current.merge(this_ID_2); - } - - { - newLeafNode(this_ID_2, grammarAccess.getFQNAccess().getIDTerminalRuleCall_1_1()); - } -)*) - ; - - - - +ruleFQN returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + this_ID_0=RULE_ID + { + $current.merge(this_ID_0); + } + { + newLeafNode(this_ID_0, grammarAccess.getFQNAccess().getIDTerminalRuleCall_0()); + } + ( + kw='.' + { + $current.merge(kw); + newLeafNode(kw, grammarAccess.getFQNAccess().getFullStopKeyword_1_0()); + } + this_ID_2=RULE_ID + { + $current.merge(this_ID_2); + } + { + newLeafNode(this_ID_2, grammarAccess.getFQNAccess().getIDTerminalRuleCall_1_1()); + } + )* + ) +; // Rule LiteralType -ruleLiteralType returns [Enumerator current=null] - @init { enterRule(); } - @after { leaveRule(); }: -(( enumLiteral_0='ptBoolean' - { - $current = grammarAccess.getLiteralTypeAccess().getBOOLEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_0, grammarAccess.getLiteralTypeAccess().getBOOLEnumLiteralDeclaration_0()); - } -) - |( enumLiteral_1='ptInteger' - { - $current = grammarAccess.getLiteralTypeAccess().getINTEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_1, grammarAccess.getLiteralTypeAccess().getINTEnumLiteralDeclaration_1()); - } -) - |( enumLiteral_2='ptReal' - { - $current = grammarAccess.getLiteralTypeAccess().getREALEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_2, grammarAccess.getLiteralTypeAccess().getREALEnumLiteralDeclaration_2()); - } -) - |( enumLiteral_3='ptCharacter' - { - $current = grammarAccess.getLiteralTypeAccess().getCHAREnumLiteralDeclaration_3().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_3, grammarAccess.getLiteralTypeAccess().getCHAREnumLiteralDeclaration_3()); - } -)); - - +ruleLiteralType returns [Enumerator current=null] +@init { + enterRule(); +} +@after { + leaveRule(); +}: + ( + ( + enumLiteral_0='ptBoolean' + { + $current = grammarAccess.getLiteralTypeAccess().getBOOLEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_0, grammarAccess.getLiteralTypeAccess().getBOOLEnumLiteralDeclaration_0()); + } + ) + | + ( + enumLiteral_1='ptInteger' + { + $current = grammarAccess.getLiteralTypeAccess().getINTEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_1, grammarAccess.getLiteralTypeAccess().getINTEnumLiteralDeclaration_1()); + } + ) + | + ( + enumLiteral_2='ptReal' + { + $current = grammarAccess.getLiteralTypeAccess().getREALEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_2, grammarAccess.getLiteralTypeAccess().getREALEnumLiteralDeclaration_2()); + } + ) + | + ( + enumLiteral_3='ptCharacter' + { + $current = grammarAccess.getLiteralTypeAccess().getCHAREnumLiteralDeclaration_3().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_3, grammarAccess.getLiteralTypeAccess().getCHAREnumLiteralDeclaration_3()); + } + ) + ) +; RULE_HEX : ('0x'|'0X') ('0'..'9'|'a'..'f'|'A'..'F')+; @@ -1503,5 +1478,3 @@ RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?; RULE_WS : (' '|'\t'|'\r'|'\n')+; RULE_ANY_OTHER : .; - - diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/parser/antlr/internal/InternalETMapLexer.java b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/parser/antlr/internal/InternalETMapLexer.java index 49e4e01d1..747c0eb64 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/parser/antlr/internal/InternalETMapLexer.java +++ b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/parser/antlr/internal/InternalETMapLexer.java @@ -689,10 +689,10 @@ public class InternalETMapLexer extends Lexer { try { int _type = RULE_HEX; int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalETMap.g:1489:10: ( ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+ ) - // InternalETMap.g:1489:12: ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+ + // InternalETMap.g:1464:10: ( ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+ ) + // InternalETMap.g:1464:12: ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+ { - // InternalETMap.g:1489:12: ( '0x' | '0X' ) + // InternalETMap.g:1464:12: ( '0x' | '0X' ) int alt1=2; int LA1_0 = input.LA(1); @@ -720,7 +720,7 @@ public class InternalETMapLexer extends Lexer { } switch (alt1) { case 1 : - // InternalETMap.g:1489:13: '0x' + // InternalETMap.g:1464:13: '0x' { match("0x"); @@ -728,7 +728,7 @@ public class InternalETMapLexer extends Lexer { } break; case 2 : - // InternalETMap.g:1489:18: '0X' + // InternalETMap.g:1464:18: '0X' { match("0X"); @@ -738,7 +738,7 @@ public class InternalETMapLexer extends Lexer { } - // InternalETMap.g:1489:24: ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+ + // InternalETMap.g:1464:24: ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )+ int cnt2=0; loop2: do { @@ -792,12 +792,12 @@ public class InternalETMapLexer extends Lexer { try { int _type = RULE_CC_STRING; int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalETMap.g:1491:16: ( '\\'\\'\\'' ( options {greedy=false; } : . )* '\\'\\'\\'' ) - // InternalETMap.g:1491:18: '\\'\\'\\'' ( options {greedy=false; } : . )* '\\'\\'\\'' + // InternalETMap.g:1466:16: ( '\\'\\'\\'' ( options {greedy=false; } : . )* '\\'\\'\\'' ) + // InternalETMap.g:1466:18: '\\'\\'\\'' ( options {greedy=false; } : . )* '\\'\\'\\'' { match("'''"); - // InternalETMap.g:1491:27: ( options {greedy=false; } : . )* + // InternalETMap.g:1466:27: ( options {greedy=false; } : . )* loop3: do { int alt3=2; @@ -831,7 +831,7 @@ public class InternalETMapLexer extends Lexer { switch (alt3) { case 1 : - // InternalETMap.g:1491:55: . + // InternalETMap.g:1466:55: . { matchAny(); @@ -861,10 +861,10 @@ public class InternalETMapLexer extends Lexer { try { int _type = RULE_ID; int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalETMap.g:1493:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) - // InternalETMap.g:1493:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* + // InternalETMap.g:1468:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) + // InternalETMap.g:1468:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* { - // InternalETMap.g:1493:11: ( '^' )? + // InternalETMap.g:1468:11: ( '^' )? int alt4=2; int LA4_0 = input.LA(1); @@ -873,7 +873,7 @@ public class InternalETMapLexer extends Lexer { } switch (alt4) { case 1 : - // InternalETMap.g:1493:11: '^' + // InternalETMap.g:1468:11: '^' { match('^'); @@ -891,7 +891,7 @@ public class InternalETMapLexer extends Lexer { recover(mse); throw mse;} - // InternalETMap.g:1493:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* + // InternalETMap.g:1468:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* loop5: do { int alt5=2; @@ -940,10 +940,10 @@ public class InternalETMapLexer extends Lexer { try { int _type = RULE_INT; int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalETMap.g:1495:10: ( ( '0' .. '9' )+ ) - // InternalETMap.g:1495:12: ( '0' .. '9' )+ + // InternalETMap.g:1470:10: ( ( '0' .. '9' )+ ) + // InternalETMap.g:1470:12: ( '0' .. '9' )+ { - // InternalETMap.g:1495:12: ( '0' .. '9' )+ + // InternalETMap.g:1470:12: ( '0' .. '9' )+ int cnt6=0; loop6: do { @@ -957,7 +957,7 @@ public class InternalETMapLexer extends Lexer { switch (alt6) { case 1 : - // InternalETMap.g:1495:13: '0' .. '9' + // InternalETMap.g:1470:13: '0' .. '9' { matchRange('0','9'); @@ -989,10 +989,10 @@ public class InternalETMapLexer extends Lexer { try { int _type = RULE_STRING; int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalETMap.g:1497:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) ) - // InternalETMap.g:1497:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) + // InternalETMap.g:1472:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) ) + // InternalETMap.g:1472:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) { - // InternalETMap.g:1497:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) + // InternalETMap.g:1472:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) int alt9=2; int LA9_0 = input.LA(1); @@ -1010,10 +1010,10 @@ public class InternalETMapLexer extends Lexer { } switch (alt9) { case 1 : - // InternalETMap.g:1497:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' + // InternalETMap.g:1472:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' { match('\"'); - // InternalETMap.g:1497:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* + // InternalETMap.g:1472:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* loop7: do { int alt7=3; @@ -1029,7 +1029,7 @@ public class InternalETMapLexer extends Lexer { switch (alt7) { case 1 : - // InternalETMap.g:1497:21: '\\\\' . + // InternalETMap.g:1472:21: '\\\\' . { match('\\'); matchAny(); @@ -1037,7 +1037,7 @@ public class InternalETMapLexer extends Lexer { } break; case 2 : - // InternalETMap.g:1497:28: ~ ( ( '\\\\' | '\"' ) ) + // InternalETMap.g:1472:28: ~ ( ( '\\\\' | '\"' ) ) { if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { input.consume(); @@ -1062,10 +1062,10 @@ public class InternalETMapLexer extends Lexer { } break; case 2 : - // InternalETMap.g:1497:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' + // InternalETMap.g:1472:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' { match('\''); - // InternalETMap.g:1497:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* + // InternalETMap.g:1472:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* loop8: do { int alt8=3; @@ -1081,7 +1081,7 @@ public class InternalETMapLexer extends Lexer { switch (alt8) { case 1 : - // InternalETMap.g:1497:54: '\\\\' . + // InternalETMap.g:1472:54: '\\\\' . { match('\\'); matchAny(); @@ -1089,7 +1089,7 @@ public class InternalETMapLexer extends Lexer { } break; case 2 : - // InternalETMap.g:1497:61: ~ ( ( '\\\\' | '\\'' ) ) + // InternalETMap.g:1472:61: ~ ( ( '\\\\' | '\\'' ) ) { if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { input.consume(); @@ -1132,12 +1132,12 @@ public class InternalETMapLexer extends Lexer { try { int _type = RULE_ML_COMMENT; int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalETMap.g:1499:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) - // InternalETMap.g:1499:19: '/*' ( options {greedy=false; } : . )* '*/' + // InternalETMap.g:1474:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) + // InternalETMap.g:1474:19: '/*' ( options {greedy=false; } : . )* '*/' { match("/*"); - // InternalETMap.g:1499:24: ( options {greedy=false; } : . )* + // InternalETMap.g:1474:24: ( options {greedy=false; } : . )* loop10: do { int alt10=2; @@ -1162,7 +1162,7 @@ public class InternalETMapLexer extends Lexer { switch (alt10) { case 1 : - // InternalETMap.g:1499:52: . + // InternalETMap.g:1474:52: . { matchAny(); @@ -1192,12 +1192,12 @@ public class InternalETMapLexer extends Lexer { try { int _type = RULE_SL_COMMENT; int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalETMap.g:1501:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) - // InternalETMap.g:1501:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? + // InternalETMap.g:1476:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) + // InternalETMap.g:1476:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? { match("//"); - // InternalETMap.g:1501:24: (~ ( ( '\\n' | '\\r' ) ) )* + // InternalETMap.g:1476:24: (~ ( ( '\\n' | '\\r' ) ) )* loop11: do { int alt11=2; @@ -1210,7 +1210,7 @@ public class InternalETMapLexer extends Lexer { switch (alt11) { case 1 : - // InternalETMap.g:1501:24: ~ ( ( '\\n' | '\\r' ) ) + // InternalETMap.g:1476: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(); @@ -1230,7 +1230,7 @@ public class InternalETMapLexer extends Lexer { } } while (true); - // InternalETMap.g:1501:40: ( ( '\\r' )? '\\n' )? + // InternalETMap.g:1476:40: ( ( '\\r' )? '\\n' )? int alt13=2; int LA13_0 = input.LA(1); @@ -1239,9 +1239,9 @@ public class InternalETMapLexer extends Lexer { } switch (alt13) { case 1 : - // InternalETMap.g:1501:41: ( '\\r' )? '\\n' + // InternalETMap.g:1476:41: ( '\\r' )? '\\n' { - // InternalETMap.g:1501:41: ( '\\r' )? + // InternalETMap.g:1476:41: ( '\\r' )? int alt12=2; int LA12_0 = input.LA(1); @@ -1250,7 +1250,7 @@ public class InternalETMapLexer extends Lexer { } switch (alt12) { case 1 : - // InternalETMap.g:1501:41: '\\r' + // InternalETMap.g:1476:41: '\\r' { match('\r'); @@ -1282,10 +1282,10 @@ public class InternalETMapLexer extends Lexer { try { int _type = RULE_WS; int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalETMap.g:1503:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) - // InternalETMap.g:1503:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ + // InternalETMap.g:1478:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) + // InternalETMap.g:1478:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ { - // InternalETMap.g:1503:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ + // InternalETMap.g:1478:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ int cnt14=0; loop14: do { @@ -1339,8 +1339,8 @@ public class InternalETMapLexer extends Lexer { try { int _type = RULE_ANY_OTHER; int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalETMap.g:1505:16: ( . ) - // InternalETMap.g:1505:18: . + // InternalETMap.g:1480:16: ( . ) + // InternalETMap.g:1480:18: . { matchAny(); diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/parser/antlr/internal/InternalETMapParser.java b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/parser/antlr/internal/InternalETMapParser.java index 651267632..dcf9167cc 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/parser/antlr/internal/InternalETMapParser.java +++ b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/parser/antlr/internal/InternalETMapParser.java @@ -1,4 +1,4 @@ -package org.eclipse.etrice.core.etmap.parser.antlr.internal; +package org.eclipse.etrice.core.etmap.parser.antlr.internal; import org.eclipse.xtext.*; import org.eclipse.xtext.parser.*; @@ -84,18 +84,18 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { private ETMapGrammarAccess grammarAccess; - + public InternalETMapParser(TokenStream input, ETMapGrammarAccess grammarAccess) { this(input); this.grammarAccess = grammarAccess; registerRules(grammarAccess.getGrammar()); } - + @Override protected String getFirstRuleName() { - return "MappingModel"; + return "MappingModel"; } - + @Override protected ETMapGrammarAccess getGrammarAccess() { return grammarAccess; @@ -103,8 +103,9 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { + // $ANTLR start "entryRuleMappingModel" - // InternalETMap.g:68:1: entryRuleMappingModel returns [EObject current=null] : iv_ruleMappingModel= ruleMappingModel EOF ; + // InternalETMap.g:65:1: entryRuleMappingModel returns [EObject current=null] : iv_ruleMappingModel= ruleMappingModel EOF ; public final EObject entryRuleMappingModel() throws RecognitionException { EObject current = null; @@ -112,8 +113,8 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { try { - // InternalETMap.g:69:2: (iv_ruleMappingModel= ruleMappingModel EOF ) - // InternalETMap.g:70:2: iv_ruleMappingModel= ruleMappingModel EOF + // InternalETMap.g:65:53: (iv_ruleMappingModel= ruleMappingModel EOF ) + // InternalETMap.g:66:2: iv_ruleMappingModel= ruleMappingModel EOF { newCompositeNode(grammarAccess.getMappingModelRule()); pushFollow(FOLLOW_1); @@ -127,11 +128,11 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -140,7 +141,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "ruleMappingModel" - // InternalETMap.g:77:1: ruleMappingModel returns [EObject current=null] : (otherlv_0= 'MappingModel' ( (lv_name_1_0= ruleFQN ) ) otherlv_2= '{' ( (lv_imports_3_0= ruleImport ) )* ( (lv_mappings_4_0= ruleMapping ) )* otherlv_5= '}' ) ; + // InternalETMap.g:72:1: ruleMappingModel returns [EObject current=null] : (otherlv_0= 'MappingModel' ( (lv_name_1_0= ruleFQN ) ) otherlv_2= '{' ( (lv_imports_3_0= ruleImport ) )* ( (lv_mappings_4_0= ruleMapping ) )* otherlv_5= '}' ) ; public final EObject ruleMappingModel() throws RecognitionException { EObject current = null; @@ -154,44 +155,45 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { EObject lv_mappings_4_0 = null; - enterRule(); - + + enterRule(); + try { - // InternalETMap.g:80:28: ( (otherlv_0= 'MappingModel' ( (lv_name_1_0= ruleFQN ) ) otherlv_2= '{' ( (lv_imports_3_0= ruleImport ) )* ( (lv_mappings_4_0= ruleMapping ) )* otherlv_5= '}' ) ) - // InternalETMap.g:81:1: (otherlv_0= 'MappingModel' ( (lv_name_1_0= ruleFQN ) ) otherlv_2= '{' ( (lv_imports_3_0= ruleImport ) )* ( (lv_mappings_4_0= ruleMapping ) )* otherlv_5= '}' ) + // InternalETMap.g:78:2: ( (otherlv_0= 'MappingModel' ( (lv_name_1_0= ruleFQN ) ) otherlv_2= '{' ( (lv_imports_3_0= ruleImport ) )* ( (lv_mappings_4_0= ruleMapping ) )* otherlv_5= '}' ) ) + // InternalETMap.g:79:2: (otherlv_0= 'MappingModel' ( (lv_name_1_0= ruleFQN ) ) otherlv_2= '{' ( (lv_imports_3_0= ruleImport ) )* ( (lv_mappings_4_0= ruleMapping ) )* otherlv_5= '}' ) { - // InternalETMap.g:81:1: (otherlv_0= 'MappingModel' ( (lv_name_1_0= ruleFQN ) ) otherlv_2= '{' ( (lv_imports_3_0= ruleImport ) )* ( (lv_mappings_4_0= ruleMapping ) )* otherlv_5= '}' ) - // InternalETMap.g:81:3: otherlv_0= 'MappingModel' ( (lv_name_1_0= ruleFQN ) ) otherlv_2= '{' ( (lv_imports_3_0= ruleImport ) )* ( (lv_mappings_4_0= ruleMapping ) )* otherlv_5= '}' + // InternalETMap.g:79:2: (otherlv_0= 'MappingModel' ( (lv_name_1_0= ruleFQN ) ) otherlv_2= '{' ( (lv_imports_3_0= ruleImport ) )* ( (lv_mappings_4_0= ruleMapping ) )* otherlv_5= '}' ) + // InternalETMap.g:80:3: otherlv_0= 'MappingModel' ( (lv_name_1_0= ruleFQN ) ) otherlv_2= '{' ( (lv_imports_3_0= ruleImport ) )* ( (lv_mappings_4_0= ruleMapping ) )* otherlv_5= '}' { otherlv_0=(Token)match(input,13,FOLLOW_3); - newLeafNode(otherlv_0, grammarAccess.getMappingModelAccess().getMappingModelKeyword_0()); - - // InternalETMap.g:85:1: ( (lv_name_1_0= ruleFQN ) ) - // InternalETMap.g:86:1: (lv_name_1_0= ruleFQN ) + newLeafNode(otherlv_0, grammarAccess.getMappingModelAccess().getMappingModelKeyword_0()); + + // InternalETMap.g:84:3: ( (lv_name_1_0= ruleFQN ) ) + // InternalETMap.g:85:4: (lv_name_1_0= ruleFQN ) { - // InternalETMap.g:86:1: (lv_name_1_0= ruleFQN ) - // InternalETMap.g:87:3: lv_name_1_0= ruleFQN + // InternalETMap.g:85:4: (lv_name_1_0= ruleFQN ) + // InternalETMap.g:86:5: lv_name_1_0= ruleFQN { - - newCompositeNode(grammarAccess.getMappingModelAccess().getNameFQNParserRuleCall_1_0()); - + + newCompositeNode(grammarAccess.getMappingModelAccess().getNameFQNParserRuleCall_1_0()); + pushFollow(FOLLOW_4); lv_name_1_0=ruleFQN(); state._fsp--; - if (current==null) { - current = createModelElementForParent(grammarAccess.getMappingModelRule()); - } - set( - current, - "name", - lv_name_1_0, - "org.eclipse.etrice.core.common.Base.FQN"); - afterParserOrEnumRuleCall(); - + if (current==null) { + current = createModelElementForParent(grammarAccess.getMappingModelRule()); + } + set( + current, + "name", + lv_name_1_0, + "org.eclipse.etrice.core.common.Base.FQN"); + afterParserOrEnumRuleCall(); + } @@ -200,9 +202,9 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { otherlv_2=(Token)match(input,14,FOLLOW_5); - newLeafNode(otherlv_2, grammarAccess.getMappingModelAccess().getLeftCurlyBracketKeyword_2()); - - // InternalETMap.g:107:1: ( (lv_imports_3_0= ruleImport ) )* + newLeafNode(otherlv_2, grammarAccess.getMappingModelAccess().getLeftCurlyBracketKeyword_2()); + + // InternalETMap.g:107:3: ( (lv_imports_3_0= ruleImport ) )* loop1: do { int alt1=2; @@ -215,30 +217,30 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { switch (alt1) { case 1 : - // InternalETMap.g:108:1: (lv_imports_3_0= ruleImport ) + // InternalETMap.g:108:4: (lv_imports_3_0= ruleImport ) { - // InternalETMap.g:108:1: (lv_imports_3_0= ruleImport ) - // InternalETMap.g:109:3: lv_imports_3_0= ruleImport + // InternalETMap.g:108:4: (lv_imports_3_0= ruleImport ) + // InternalETMap.g:109:5: lv_imports_3_0= ruleImport { - - newCompositeNode(grammarAccess.getMappingModelAccess().getImportsImportParserRuleCall_3_0()); - + + newCompositeNode(grammarAccess.getMappingModelAccess().getImportsImportParserRuleCall_3_0()); + pushFollow(FOLLOW_5); lv_imports_3_0=ruleImport(); state._fsp--; - if (current==null) { - current = createModelElementForParent(grammarAccess.getMappingModelRule()); - } - add( - current, - "imports", - lv_imports_3_0, - "org.eclipse.etrice.core.common.Base.Import"); - afterParserOrEnumRuleCall(); - + if (current==null) { + current = createModelElementForParent(grammarAccess.getMappingModelRule()); + } + add( + current, + "imports", + lv_imports_3_0, + "org.eclipse.etrice.core.common.Base.Import"); + afterParserOrEnumRuleCall(); + } @@ -251,7 +253,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } } while (true); - // InternalETMap.g:125:3: ( (lv_mappings_4_0= ruleMapping ) )* + // InternalETMap.g:126:3: ( (lv_mappings_4_0= ruleMapping ) )* loop2: do { int alt2=2; @@ -264,30 +266,30 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { switch (alt2) { case 1 : - // InternalETMap.g:126:1: (lv_mappings_4_0= ruleMapping ) + // InternalETMap.g:127:4: (lv_mappings_4_0= ruleMapping ) { - // InternalETMap.g:126:1: (lv_mappings_4_0= ruleMapping ) - // InternalETMap.g:127:3: lv_mappings_4_0= ruleMapping + // InternalETMap.g:127:4: (lv_mappings_4_0= ruleMapping ) + // InternalETMap.g:128:5: lv_mappings_4_0= ruleMapping { - - newCompositeNode(grammarAccess.getMappingModelAccess().getMappingsMappingParserRuleCall_4_0()); - + + newCompositeNode(grammarAccess.getMappingModelAccess().getMappingsMappingParserRuleCall_4_0()); + pushFollow(FOLLOW_6); lv_mappings_4_0=ruleMapping(); state._fsp--; - if (current==null) { - current = createModelElementForParent(grammarAccess.getMappingModelRule()); - } - add( - current, - "mappings", - lv_mappings_4_0, - "org.eclipse.etrice.core.etmap.ETMap.Mapping"); - afterParserOrEnumRuleCall(); - + if (current==null) { + current = createModelElementForParent(grammarAccess.getMappingModelRule()); + } + add( + current, + "mappings", + lv_mappings_4_0, + "org.eclipse.etrice.core.etmap.ETMap.Mapping"); + afterParserOrEnumRuleCall(); + } @@ -302,21 +304,23 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { otherlv_5=(Token)match(input,15,FOLLOW_2); - newLeafNode(otherlv_5, grammarAccess.getMappingModelAccess().getRightCurlyBracketKeyword_5()); - + newLeafNode(otherlv_5, grammarAccess.getMappingModelAccess().getRightCurlyBracketKeyword_5()); + } } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -325,7 +329,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "entryRuleMapping" - // InternalETMap.g:155:1: entryRuleMapping returns [EObject current=null] : iv_ruleMapping= ruleMapping EOF ; + // InternalETMap.g:153:1: entryRuleMapping returns [EObject current=null] : iv_ruleMapping= ruleMapping EOF ; public final EObject entryRuleMapping() throws RecognitionException { EObject current = null; @@ -333,8 +337,8 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { try { - // InternalETMap.g:156:2: (iv_ruleMapping= ruleMapping EOF ) - // InternalETMap.g:157:2: iv_ruleMapping= ruleMapping EOF + // InternalETMap.g:153:48: (iv_ruleMapping= ruleMapping EOF ) + // InternalETMap.g:154:2: iv_ruleMapping= ruleMapping EOF { newCompositeNode(grammarAccess.getMappingRule()); pushFollow(FOLLOW_1); @@ -348,11 +352,11 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -361,7 +365,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "ruleMapping" - // InternalETMap.g:164:1: ruleMapping returns [EObject current=null] : (otherlv_0= 'Mapping' ( ( ruleFQN ) ) otherlv_2= '->' ( ( ruleFQN ) ) otherlv_4= '{' ( (lv_subsysMappings_5_0= ruleSubSystemMapping ) )* otherlv_6= '}' ) ; + // InternalETMap.g:160:1: ruleMapping returns [EObject current=null] : (otherlv_0= 'Mapping' ( ( ruleFQN ) ) otherlv_2= '->' ( ( ruleFQN ) ) otherlv_4= '{' ( (lv_subsysMappings_5_0= ruleSubSystemMapping ) )* otherlv_6= '}' ) ; public final EObject ruleMapping() throws RecognitionException { EObject current = null; @@ -372,41 +376,42 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { EObject lv_subsysMappings_5_0 = null; - enterRule(); - + + enterRule(); + try { - // InternalETMap.g:167:28: ( (otherlv_0= 'Mapping' ( ( ruleFQN ) ) otherlv_2= '->' ( ( ruleFQN ) ) otherlv_4= '{' ( (lv_subsysMappings_5_0= ruleSubSystemMapping ) )* otherlv_6= '}' ) ) - // InternalETMap.g:168:1: (otherlv_0= 'Mapping' ( ( ruleFQN ) ) otherlv_2= '->' ( ( ruleFQN ) ) otherlv_4= '{' ( (lv_subsysMappings_5_0= ruleSubSystemMapping ) )* otherlv_6= '}' ) + // InternalETMap.g:166:2: ( (otherlv_0= 'Mapping' ( ( ruleFQN ) ) otherlv_2= '->' ( ( ruleFQN ) ) otherlv_4= '{' ( (lv_subsysMappings_5_0= ruleSubSystemMapping ) )* otherlv_6= '}' ) ) + // InternalETMap.g:167:2: (otherlv_0= 'Mapping' ( ( ruleFQN ) ) otherlv_2= '->' ( ( ruleFQN ) ) otherlv_4= '{' ( (lv_subsysMappings_5_0= ruleSubSystemMapping ) )* otherlv_6= '}' ) { - // InternalETMap.g:168:1: (otherlv_0= 'Mapping' ( ( ruleFQN ) ) otherlv_2= '->' ( ( ruleFQN ) ) otherlv_4= '{' ( (lv_subsysMappings_5_0= ruleSubSystemMapping ) )* otherlv_6= '}' ) + // InternalETMap.g:167:2: (otherlv_0= 'Mapping' ( ( ruleFQN ) ) otherlv_2= '->' ( ( ruleFQN ) ) otherlv_4= '{' ( (lv_subsysMappings_5_0= ruleSubSystemMapping ) )* otherlv_6= '}' ) // InternalETMap.g:168:3: otherlv_0= 'Mapping' ( ( ruleFQN ) ) otherlv_2= '->' ( ( ruleFQN ) ) otherlv_4= '{' ( (lv_subsysMappings_5_0= ruleSubSystemMapping ) )* otherlv_6= '}' { otherlv_0=(Token)match(input,16,FOLLOW_3); - newLeafNode(otherlv_0, grammarAccess.getMappingAccess().getMappingKeyword_0()); - - // InternalETMap.g:172:1: ( ( ruleFQN ) ) - // InternalETMap.g:173:1: ( ruleFQN ) + newLeafNode(otherlv_0, grammarAccess.getMappingAccess().getMappingKeyword_0()); + + // InternalETMap.g:172:3: ( ( ruleFQN ) ) + // InternalETMap.g:173:4: ( ruleFQN ) { - // InternalETMap.g:173:1: ( ruleFQN ) - // InternalETMap.g:174:3: ruleFQN + // InternalETMap.g:173:4: ( ruleFQN ) + // InternalETMap.g:174:5: ruleFQN { - if (current==null) { - current = createModelElement(grammarAccess.getMappingRule()); - } - - - newCompositeNode(grammarAccess.getMappingAccess().getLogicalSysLogicalSystemCrossReference_1_0()); - + if (current==null) { + current = createModelElement(grammarAccess.getMappingRule()); + } + + + newCompositeNode(grammarAccess.getMappingAccess().getLogicalSysLogicalSystemCrossReference_1_0()); + pushFollow(FOLLOW_7); ruleFQN(); state._fsp--; - - afterParserOrEnumRuleCall(); - + + afterParserOrEnumRuleCall(); + } @@ -415,30 +420,30 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { otherlv_2=(Token)match(input,17,FOLLOW_3); - newLeafNode(otherlv_2, grammarAccess.getMappingAccess().getHyphenMinusGreaterThanSignKeyword_2()); - - // InternalETMap.g:191:1: ( ( ruleFQN ) ) - // InternalETMap.g:192:1: ( ruleFQN ) + newLeafNode(otherlv_2, grammarAccess.getMappingAccess().getHyphenMinusGreaterThanSignKeyword_2()); + + // InternalETMap.g:192:3: ( ( ruleFQN ) ) + // InternalETMap.g:193:4: ( ruleFQN ) { - // InternalETMap.g:192:1: ( ruleFQN ) - // InternalETMap.g:193:3: ruleFQN + // InternalETMap.g:193:4: ( ruleFQN ) + // InternalETMap.g:194:5: ruleFQN { - if (current==null) { - current = createModelElement(grammarAccess.getMappingRule()); - } - - - newCompositeNode(grammarAccess.getMappingAccess().getPhysicalSysPhysicalSystemCrossReference_3_0()); - + if (current==null) { + current = createModelElement(grammarAccess.getMappingRule()); + } + + + newCompositeNode(grammarAccess.getMappingAccess().getPhysicalSysPhysicalSystemCrossReference_3_0()); + pushFollow(FOLLOW_4); ruleFQN(); state._fsp--; - - afterParserOrEnumRuleCall(); - + + afterParserOrEnumRuleCall(); + } @@ -447,9 +452,9 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { otherlv_4=(Token)match(input,14,FOLLOW_8); - newLeafNode(otherlv_4, grammarAccess.getMappingAccess().getLeftCurlyBracketKeyword_4()); - - // InternalETMap.g:210:1: ( (lv_subsysMappings_5_0= ruleSubSystemMapping ) )* + newLeafNode(otherlv_4, grammarAccess.getMappingAccess().getLeftCurlyBracketKeyword_4()); + + // InternalETMap.g:212:3: ( (lv_subsysMappings_5_0= ruleSubSystemMapping ) )* loop3: do { int alt3=2; @@ -462,30 +467,30 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { switch (alt3) { case 1 : - // InternalETMap.g:211:1: (lv_subsysMappings_5_0= ruleSubSystemMapping ) + // InternalETMap.g:213:4: (lv_subsysMappings_5_0= ruleSubSystemMapping ) { - // InternalETMap.g:211:1: (lv_subsysMappings_5_0= ruleSubSystemMapping ) - // InternalETMap.g:212:3: lv_subsysMappings_5_0= ruleSubSystemMapping + // InternalETMap.g:213:4: (lv_subsysMappings_5_0= ruleSubSystemMapping ) + // InternalETMap.g:214:5: lv_subsysMappings_5_0= ruleSubSystemMapping { - - newCompositeNode(grammarAccess.getMappingAccess().getSubsysMappingsSubSystemMappingParserRuleCall_5_0()); - + + newCompositeNode(grammarAccess.getMappingAccess().getSubsysMappingsSubSystemMappingParserRuleCall_5_0()); + pushFollow(FOLLOW_8); lv_subsysMappings_5_0=ruleSubSystemMapping(); state._fsp--; - if (current==null) { - current = createModelElementForParent(grammarAccess.getMappingRule()); - } - add( - current, - "subsysMappings", - lv_subsysMappings_5_0, - "org.eclipse.etrice.core.etmap.ETMap.SubSystemMapping"); - afterParserOrEnumRuleCall(); - + if (current==null) { + current = createModelElementForParent(grammarAccess.getMappingRule()); + } + add( + current, + "subsysMappings", + lv_subsysMappings_5_0, + "org.eclipse.etrice.core.etmap.ETMap.SubSystemMapping"); + afterParserOrEnumRuleCall(); + } @@ -500,21 +505,23 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { otherlv_6=(Token)match(input,15,FOLLOW_2); - newLeafNode(otherlv_6, grammarAccess.getMappingAccess().getRightCurlyBracketKeyword_6()); - + newLeafNode(otherlv_6, grammarAccess.getMappingAccess().getRightCurlyBracketKeyword_6()); + } } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -523,7 +530,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "entryRuleSubSystemMapping" - // InternalETMap.g:240:1: entryRuleSubSystemMapping returns [EObject current=null] : iv_ruleSubSystemMapping= ruleSubSystemMapping EOF ; + // InternalETMap.g:239:1: entryRuleSubSystemMapping returns [EObject current=null] : iv_ruleSubSystemMapping= ruleSubSystemMapping EOF ; public final EObject entryRuleSubSystemMapping() throws RecognitionException { EObject current = null; @@ -531,8 +538,8 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { try { - // InternalETMap.g:241:2: (iv_ruleSubSystemMapping= ruleSubSystemMapping EOF ) - // InternalETMap.g:242:2: iv_ruleSubSystemMapping= ruleSubSystemMapping EOF + // InternalETMap.g:239:57: (iv_ruleSubSystemMapping= ruleSubSystemMapping EOF ) + // InternalETMap.g:240:2: iv_ruleSubSystemMapping= ruleSubSystemMapping EOF { newCompositeNode(grammarAccess.getSubSystemMappingRule()); pushFollow(FOLLOW_1); @@ -546,11 +553,11 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -559,7 +566,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "ruleSubSystemMapping" - // InternalETMap.g:249:1: ruleSubSystemMapping returns [EObject current=null] : (otherlv_0= 'SubSystemMapping' ( (otherlv_1= RULE_ID ) ) otherlv_2= '->' ( (otherlv_3= RULE_ID ) ) (otherlv_4= '{' ( (lv_threadMappings_5_0= ruleThreadMapping ) )* otherlv_6= '}' )? ) ; + // InternalETMap.g:246:1: ruleSubSystemMapping returns [EObject current=null] : (otherlv_0= 'SubSystemMapping' ( (otherlv_1= RULE_ID ) ) otherlv_2= '->' ( (otherlv_3= RULE_ID ) ) (otherlv_4= '{' ( (lv_threadMappings_5_0= ruleThreadMapping ) )* otherlv_6= '}' )? ) ; public final EObject ruleSubSystemMapping() throws RecognitionException { EObject current = null; @@ -572,34 +579,35 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { EObject lv_threadMappings_5_0 = null; - enterRule(); - + + enterRule(); + try { - // InternalETMap.g:252:28: ( (otherlv_0= 'SubSystemMapping' ( (otherlv_1= RULE_ID ) ) otherlv_2= '->' ( (otherlv_3= RULE_ID ) ) (otherlv_4= '{' ( (lv_threadMappings_5_0= ruleThreadMapping ) )* otherlv_6= '}' )? ) ) - // InternalETMap.g:253:1: (otherlv_0= 'SubSystemMapping' ( (otherlv_1= RULE_ID ) ) otherlv_2= '->' ( (otherlv_3= RULE_ID ) ) (otherlv_4= '{' ( (lv_threadMappings_5_0= ruleThreadMapping ) )* otherlv_6= '}' )? ) + // InternalETMap.g:252:2: ( (otherlv_0= 'SubSystemMapping' ( (otherlv_1= RULE_ID ) ) otherlv_2= '->' ( (otherlv_3= RULE_ID ) ) (otherlv_4= '{' ( (lv_threadMappings_5_0= ruleThreadMapping ) )* otherlv_6= '}' )? ) ) + // InternalETMap.g:253:2: (otherlv_0= 'SubSystemMapping' ( (otherlv_1= RULE_ID ) ) otherlv_2= '->' ( (otherlv_3= RULE_ID ) ) (otherlv_4= '{' ( (lv_threadMappings_5_0= ruleThreadMapping ) )* otherlv_6= '}' )? ) { - // InternalETMap.g:253:1: (otherlv_0= 'SubSystemMapping' ( (otherlv_1= RULE_ID ) ) otherlv_2= '->' ( (otherlv_3= RULE_ID ) ) (otherlv_4= '{' ( (lv_threadMappings_5_0= ruleThreadMapping ) )* otherlv_6= '}' )? ) - // InternalETMap.g:253:3: otherlv_0= 'SubSystemMapping' ( (otherlv_1= RULE_ID ) ) otherlv_2= '->' ( (otherlv_3= RULE_ID ) ) (otherlv_4= '{' ( (lv_threadMappings_5_0= ruleThreadMapping ) )* otherlv_6= '}' )? + // InternalETMap.g:253:2: (otherlv_0= 'SubSystemMapping' ( (otherlv_1= RULE_ID ) ) otherlv_2= '->' ( (otherlv_3= RULE_ID ) ) (otherlv_4= '{' ( (lv_threadMappings_5_0= ruleThreadMapping ) )* otherlv_6= '}' )? ) + // InternalETMap.g:254:3: otherlv_0= 'SubSystemMapping' ( (otherlv_1= RULE_ID ) ) otherlv_2= '->' ( (otherlv_3= RULE_ID ) ) (otherlv_4= '{' ( (lv_threadMappings_5_0= ruleThreadMapping ) )* otherlv_6= '}' )? { otherlv_0=(Token)match(input,18,FOLLOW_3); - newLeafNode(otherlv_0, grammarAccess.getSubSystemMappingAccess().getSubSystemMappingKeyword_0()); - - // InternalETMap.g:257:1: ( (otherlv_1= RULE_ID ) ) - // InternalETMap.g:258:1: (otherlv_1= RULE_ID ) + newLeafNode(otherlv_0, grammarAccess.getSubSystemMappingAccess().getSubSystemMappingKeyword_0()); + + // InternalETMap.g:258:3: ( (otherlv_1= RULE_ID ) ) + // InternalETMap.g:259:4: (otherlv_1= RULE_ID ) { - // InternalETMap.g:258:1: (otherlv_1= RULE_ID ) - // InternalETMap.g:259:3: otherlv_1= RULE_ID + // InternalETMap.g:259:4: (otherlv_1= RULE_ID ) + // InternalETMap.g:260:5: otherlv_1= RULE_ID { - if (current==null) { - current = createModelElement(grammarAccess.getSubSystemMappingRule()); - } - + if (current==null) { + current = createModelElement(grammarAccess.getSubSystemMappingRule()); + } + otherlv_1=(Token)match(input,RULE_ID,FOLLOW_7); - newLeafNode(otherlv_1, grammarAccess.getSubSystemMappingAccess().getLogicalSubSysSubSystemRefCrossReference_1_0()); - + newLeafNode(otherlv_1, grammarAccess.getSubSystemMappingAccess().getLogicalSubSysSubSystemRefCrossReference_1_0()); + } @@ -608,30 +616,30 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { otherlv_2=(Token)match(input,17,FOLLOW_3); - newLeafNode(otherlv_2, grammarAccess.getSubSystemMappingAccess().getHyphenMinusGreaterThanSignKeyword_2()); - - // InternalETMap.g:274:1: ( (otherlv_3= RULE_ID ) ) - // InternalETMap.g:275:1: (otherlv_3= RULE_ID ) + newLeafNode(otherlv_2, grammarAccess.getSubSystemMappingAccess().getHyphenMinusGreaterThanSignKeyword_2()); + + // InternalETMap.g:275:3: ( (otherlv_3= RULE_ID ) ) + // InternalETMap.g:276:4: (otherlv_3= RULE_ID ) { - // InternalETMap.g:275:1: (otherlv_3= RULE_ID ) - // InternalETMap.g:276:3: otherlv_3= RULE_ID + // InternalETMap.g:276:4: (otherlv_3= RULE_ID ) + // InternalETMap.g:277:5: otherlv_3= RULE_ID { - if (current==null) { - current = createModelElement(grammarAccess.getSubSystemMappingRule()); - } - + if (current==null) { + current = createModelElement(grammarAccess.getSubSystemMappingRule()); + } + otherlv_3=(Token)match(input,RULE_ID,FOLLOW_9); - newLeafNode(otherlv_3, grammarAccess.getSubSystemMappingAccess().getNodeNodeRefCrossReference_3_0()); - + newLeafNode(otherlv_3, grammarAccess.getSubSystemMappingAccess().getNodeNodeRefCrossReference_3_0()); + } } - // InternalETMap.g:287:2: (otherlv_4= '{' ( (lv_threadMappings_5_0= ruleThreadMapping ) )* otherlv_6= '}' )? + // InternalETMap.g:288:3: (otherlv_4= '{' ( (lv_threadMappings_5_0= ruleThreadMapping ) )* otherlv_6= '}' )? int alt5=2; int LA5_0 = input.LA(1); @@ -640,13 +648,13 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } switch (alt5) { case 1 : - // InternalETMap.g:287:4: otherlv_4= '{' ( (lv_threadMappings_5_0= ruleThreadMapping ) )* otherlv_6= '}' + // InternalETMap.g:289:4: otherlv_4= '{' ( (lv_threadMappings_5_0= ruleThreadMapping ) )* otherlv_6= '}' { otherlv_4=(Token)match(input,14,FOLLOW_10); - newLeafNode(otherlv_4, grammarAccess.getSubSystemMappingAccess().getLeftCurlyBracketKeyword_4_0()); - - // InternalETMap.g:291:1: ( (lv_threadMappings_5_0= ruleThreadMapping ) )* + newLeafNode(otherlv_4, grammarAccess.getSubSystemMappingAccess().getLeftCurlyBracketKeyword_4_0()); + + // InternalETMap.g:293:4: ( (lv_threadMappings_5_0= ruleThreadMapping ) )* loop4: do { int alt4=2; @@ -659,30 +667,30 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { switch (alt4) { case 1 : - // InternalETMap.g:292:1: (lv_threadMappings_5_0= ruleThreadMapping ) + // InternalETMap.g:294:5: (lv_threadMappings_5_0= ruleThreadMapping ) { - // InternalETMap.g:292:1: (lv_threadMappings_5_0= ruleThreadMapping ) - // InternalETMap.g:293:3: lv_threadMappings_5_0= ruleThreadMapping + // InternalETMap.g:294:5: (lv_threadMappings_5_0= ruleThreadMapping ) + // InternalETMap.g:295:6: lv_threadMappings_5_0= ruleThreadMapping { - - newCompositeNode(grammarAccess.getSubSystemMappingAccess().getThreadMappingsThreadMappingParserRuleCall_4_1_0()); - + + newCompositeNode(grammarAccess.getSubSystemMappingAccess().getThreadMappingsThreadMappingParserRuleCall_4_1_0()); + pushFollow(FOLLOW_10); lv_threadMappings_5_0=ruleThreadMapping(); state._fsp--; - if (current==null) { - current = createModelElementForParent(grammarAccess.getSubSystemMappingRule()); - } - add( - current, - "threadMappings", - lv_threadMappings_5_0, - "org.eclipse.etrice.core.etmap.ETMap.ThreadMapping"); - afterParserOrEnumRuleCall(); - + if (current==null) { + current = createModelElementForParent(grammarAccess.getSubSystemMappingRule()); + } + add( + current, + "threadMappings", + lv_threadMappings_5_0, + "org.eclipse.etrice.core.etmap.ETMap.ThreadMapping"); + afterParserOrEnumRuleCall(); + } @@ -697,8 +705,8 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { otherlv_6=(Token)match(input,15,FOLLOW_2); - newLeafNode(otherlv_6, grammarAccess.getSubSystemMappingAccess().getRightCurlyBracketKeyword_4_2()); - + newLeafNode(otherlv_6, grammarAccess.getSubSystemMappingAccess().getRightCurlyBracketKeyword_4_2()); + } break; @@ -711,13 +719,15 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -734,8 +744,8 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { try { - // InternalETMap.g:322:2: (iv_ruleThreadMapping= ruleThreadMapping EOF ) - // InternalETMap.g:323:2: iv_ruleThreadMapping= ruleThreadMapping EOF + // InternalETMap.g:321:54: (iv_ruleThreadMapping= ruleThreadMapping EOF ) + // InternalETMap.g:322:2: iv_ruleThreadMapping= ruleThreadMapping EOF { newCompositeNode(grammarAccess.getThreadMappingRule()); pushFollow(FOLLOW_1); @@ -749,11 +759,11 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -762,7 +772,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "ruleThreadMapping" - // InternalETMap.g:330:1: ruleThreadMapping returns [EObject current=null] : (otherlv_0= 'ThreadMapping' ( (otherlv_1= RULE_ID ) ) otherlv_2= '->' ( (otherlv_3= RULE_ID ) ) ) ; + // InternalETMap.g:328:1: ruleThreadMapping returns [EObject current=null] : (otherlv_0= 'ThreadMapping' ( (otherlv_1= RULE_ID ) ) otherlv_2= '->' ( (otherlv_3= RULE_ID ) ) ) ; public final EObject ruleThreadMapping() throws RecognitionException { EObject current = null; @@ -771,34 +781,35 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { Token otherlv_2=null; Token otherlv_3=null; - enterRule(); - + + enterRule(); + try { - // InternalETMap.g:333:28: ( (otherlv_0= 'ThreadMapping' ( (otherlv_1= RULE_ID ) ) otherlv_2= '->' ( (otherlv_3= RULE_ID ) ) ) ) - // InternalETMap.g:334:1: (otherlv_0= 'ThreadMapping' ( (otherlv_1= RULE_ID ) ) otherlv_2= '->' ( (otherlv_3= RULE_ID ) ) ) + // InternalETMap.g:334:2: ( (otherlv_0= 'ThreadMapping' ( (otherlv_1= RULE_ID ) ) otherlv_2= '->' ( (otherlv_3= RULE_ID ) ) ) ) + // InternalETMap.g:335:2: (otherlv_0= 'ThreadMapping' ( (otherlv_1= RULE_ID ) ) otherlv_2= '->' ( (otherlv_3= RULE_ID ) ) ) { - // InternalETMap.g:334:1: (otherlv_0= 'ThreadMapping' ( (otherlv_1= RULE_ID ) ) otherlv_2= '->' ( (otherlv_3= RULE_ID ) ) ) - // InternalETMap.g:334:3: otherlv_0= 'ThreadMapping' ( (otherlv_1= RULE_ID ) ) otherlv_2= '->' ( (otherlv_3= RULE_ID ) ) + // InternalETMap.g:335:2: (otherlv_0= 'ThreadMapping' ( (otherlv_1= RULE_ID ) ) otherlv_2= '->' ( (otherlv_3= RULE_ID ) ) ) + // InternalETMap.g:336:3: otherlv_0= 'ThreadMapping' ( (otherlv_1= RULE_ID ) ) otherlv_2= '->' ( (otherlv_3= RULE_ID ) ) { otherlv_0=(Token)match(input,19,FOLLOW_3); - newLeafNode(otherlv_0, grammarAccess.getThreadMappingAccess().getThreadMappingKeyword_0()); - - // InternalETMap.g:338:1: ( (otherlv_1= RULE_ID ) ) - // InternalETMap.g:339:1: (otherlv_1= RULE_ID ) + newLeafNode(otherlv_0, grammarAccess.getThreadMappingAccess().getThreadMappingKeyword_0()); + + // InternalETMap.g:340:3: ( (otherlv_1= RULE_ID ) ) + // InternalETMap.g:341:4: (otherlv_1= RULE_ID ) { - // InternalETMap.g:339:1: (otherlv_1= RULE_ID ) - // InternalETMap.g:340:3: otherlv_1= RULE_ID + // InternalETMap.g:341:4: (otherlv_1= RULE_ID ) + // InternalETMap.g:342:5: otherlv_1= RULE_ID { - if (current==null) { - current = createModelElement(grammarAccess.getThreadMappingRule()); - } - + if (current==null) { + current = createModelElement(grammarAccess.getThreadMappingRule()); + } + otherlv_1=(Token)match(input,RULE_ID,FOLLOW_7); - newLeafNode(otherlv_1, grammarAccess.getThreadMappingAccess().getLogicalThreadLogicalThreadCrossReference_1_0()); - + newLeafNode(otherlv_1, grammarAccess.getThreadMappingAccess().getLogicalThreadLogicalThreadCrossReference_1_0()); + } @@ -807,23 +818,23 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { otherlv_2=(Token)match(input,17,FOLLOW_3); - newLeafNode(otherlv_2, grammarAccess.getThreadMappingAccess().getHyphenMinusGreaterThanSignKeyword_2()); - - // InternalETMap.g:355:1: ( (otherlv_3= RULE_ID ) ) - // InternalETMap.g:356:1: (otherlv_3= RULE_ID ) + newLeafNode(otherlv_2, grammarAccess.getThreadMappingAccess().getHyphenMinusGreaterThanSignKeyword_2()); + + // InternalETMap.g:357:3: ( (otherlv_3= RULE_ID ) ) + // InternalETMap.g:358:4: (otherlv_3= RULE_ID ) { - // InternalETMap.g:356:1: (otherlv_3= RULE_ID ) - // InternalETMap.g:357:3: otherlv_3= RULE_ID + // InternalETMap.g:358:4: (otherlv_3= RULE_ID ) + // InternalETMap.g:359:5: otherlv_3= RULE_ID { - if (current==null) { - current = createModelElement(grammarAccess.getThreadMappingRule()); - } - + if (current==null) { + current = createModelElement(grammarAccess.getThreadMappingRule()); + } + otherlv_3=(Token)match(input,RULE_ID,FOLLOW_2); - newLeafNode(otherlv_3, grammarAccess.getThreadMappingAccess().getPhysicalThreadPhysicalThreadCrossReference_3_0()); - + newLeafNode(otherlv_3, grammarAccess.getThreadMappingAccess().getPhysicalThreadPhysicalThreadCrossReference_3_0()); + } @@ -836,13 +847,15 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -851,7 +864,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "entryRuleKeyValue" - // InternalETMap.g:378:1: entryRuleKeyValue returns [EObject current=null] : iv_ruleKeyValue= ruleKeyValue EOF ; + // InternalETMap.g:374:1: entryRuleKeyValue returns [EObject current=null] : iv_ruleKeyValue= ruleKeyValue EOF ; public final EObject entryRuleKeyValue() throws RecognitionException { EObject current = null; @@ -859,8 +872,8 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { try { - // InternalETMap.g:379:2: (iv_ruleKeyValue= ruleKeyValue EOF ) - // InternalETMap.g:380:2: iv_ruleKeyValue= ruleKeyValue EOF + // InternalETMap.g:374:49: (iv_ruleKeyValue= ruleKeyValue EOF ) + // InternalETMap.g:375:2: iv_ruleKeyValue= ruleKeyValue EOF { newCompositeNode(grammarAccess.getKeyValueRule()); pushFollow(FOLLOW_1); @@ -874,11 +887,11 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -887,7 +900,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "ruleKeyValue" - // InternalETMap.g:387:1: ruleKeyValue returns [EObject current=null] : ( ( (lv_key_0_0= RULE_ID ) ) otherlv_1= '=' ( (lv_value_2_0= ruleLiteral ) ) ) ; + // InternalETMap.g:381:1: ruleKeyValue returns [EObject current=null] : ( ( (lv_key_0_0= RULE_ID ) ) otherlv_1= '=' ( (lv_value_2_0= ruleLiteral ) ) ) ; public final EObject ruleKeyValue() throws RecognitionException { EObject current = null; @@ -896,35 +909,36 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { EObject lv_value_2_0 = null; - enterRule(); - + + enterRule(); + try { - // InternalETMap.g:390:28: ( ( ( (lv_key_0_0= RULE_ID ) ) otherlv_1= '=' ( (lv_value_2_0= ruleLiteral ) ) ) ) - // InternalETMap.g:391:1: ( ( (lv_key_0_0= RULE_ID ) ) otherlv_1= '=' ( (lv_value_2_0= ruleLiteral ) ) ) + // InternalETMap.g:387:2: ( ( ( (lv_key_0_0= RULE_ID ) ) otherlv_1= '=' ( (lv_value_2_0= ruleLiteral ) ) ) ) + // InternalETMap.g:388:2: ( ( (lv_key_0_0= RULE_ID ) ) otherlv_1= '=' ( (lv_value_2_0= ruleLiteral ) ) ) { - // InternalETMap.g:391:1: ( ( (lv_key_0_0= RULE_ID ) ) otherlv_1= '=' ( (lv_value_2_0= ruleLiteral ) ) ) - // InternalETMap.g:391:2: ( (lv_key_0_0= RULE_ID ) ) otherlv_1= '=' ( (lv_value_2_0= ruleLiteral ) ) + // InternalETMap.g:388:2: ( ( (lv_key_0_0= RULE_ID ) ) otherlv_1= '=' ( (lv_value_2_0= ruleLiteral ) ) ) + // InternalETMap.g:389:3: ( (lv_key_0_0= RULE_ID ) ) otherlv_1= '=' ( (lv_value_2_0= ruleLiteral ) ) { - // InternalETMap.g:391:2: ( (lv_key_0_0= RULE_ID ) ) - // InternalETMap.g:392:1: (lv_key_0_0= RULE_ID ) + // InternalETMap.g:389:3: ( (lv_key_0_0= RULE_ID ) ) + // InternalETMap.g:390:4: (lv_key_0_0= RULE_ID ) { - // InternalETMap.g:392:1: (lv_key_0_0= RULE_ID ) - // InternalETMap.g:393:3: lv_key_0_0= RULE_ID + // InternalETMap.g:390:4: (lv_key_0_0= RULE_ID ) + // InternalETMap.g:391:5: lv_key_0_0= RULE_ID { lv_key_0_0=(Token)match(input,RULE_ID,FOLLOW_11); - newLeafNode(lv_key_0_0, grammarAccess.getKeyValueAccess().getKeyIDTerminalRuleCall_0_0()); - + newLeafNode(lv_key_0_0, grammarAccess.getKeyValueAccess().getKeyIDTerminalRuleCall_0_0()); + - if (current==null) { - current = createModelElement(grammarAccess.getKeyValueRule()); - } - setWithLastConsumed( - current, - "key", - lv_key_0_0, - "org.eclipse.xtext.common.Terminals.ID"); - + if (current==null) { + current = createModelElement(grammarAccess.getKeyValueRule()); + } + setWithLastConsumed( + current, + "key", + lv_key_0_0, + "org.eclipse.xtext.common.Terminals.ID"); + } @@ -933,33 +947,33 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { otherlv_1=(Token)match(input,20,FOLLOW_12); - newLeafNode(otherlv_1, grammarAccess.getKeyValueAccess().getEqualsSignKeyword_1()); - - // InternalETMap.g:413:1: ( (lv_value_2_0= ruleLiteral ) ) - // InternalETMap.g:414:1: (lv_value_2_0= ruleLiteral ) + newLeafNode(otherlv_1, grammarAccess.getKeyValueAccess().getEqualsSignKeyword_1()); + + // InternalETMap.g:411:3: ( (lv_value_2_0= ruleLiteral ) ) + // InternalETMap.g:412:4: (lv_value_2_0= ruleLiteral ) { - // InternalETMap.g:414:1: (lv_value_2_0= ruleLiteral ) - // InternalETMap.g:415:3: lv_value_2_0= ruleLiteral + // InternalETMap.g:412:4: (lv_value_2_0= ruleLiteral ) + // InternalETMap.g:413:5: lv_value_2_0= ruleLiteral { - - newCompositeNode(grammarAccess.getKeyValueAccess().getValueLiteralParserRuleCall_2_0()); - + + newCompositeNode(grammarAccess.getKeyValueAccess().getValueLiteralParserRuleCall_2_0()); + pushFollow(FOLLOW_2); lv_value_2_0=ruleLiteral(); state._fsp--; - if (current==null) { - current = createModelElementForParent(grammarAccess.getKeyValueRule()); - } - set( - current, - "value", - lv_value_2_0, - "org.eclipse.etrice.core.common.Base.Literal"); - afterParserOrEnumRuleCall(); - + if (current==null) { + current = createModelElementForParent(grammarAccess.getKeyValueRule()); + } + set( + current, + "value", + lv_value_2_0, + "org.eclipse.etrice.core.common.Base.Literal"); + afterParserOrEnumRuleCall(); + } @@ -972,13 +986,15 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -987,7 +1003,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "entryRuleAnnotationTargetType" - // InternalETMap.g:441:1: entryRuleAnnotationTargetType returns [String current=null] : iv_ruleAnnotationTargetType= ruleAnnotationTargetType EOF ; + // InternalETMap.g:434:1: entryRuleAnnotationTargetType returns [String current=null] : iv_ruleAnnotationTargetType= ruleAnnotationTargetType EOF ; public final String entryRuleAnnotationTargetType() throws RecognitionException { String current = null; @@ -995,8 +1011,8 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { try { - // InternalETMap.g:442:2: (iv_ruleAnnotationTargetType= ruleAnnotationTargetType EOF ) - // InternalETMap.g:443:2: iv_ruleAnnotationTargetType= ruleAnnotationTargetType EOF + // InternalETMap.g:434:60: (iv_ruleAnnotationTargetType= ruleAnnotationTargetType EOF ) + // InternalETMap.g:435:2: iv_ruleAnnotationTargetType= ruleAnnotationTargetType EOF { newCompositeNode(grammarAccess.getAnnotationTargetTypeRule()); pushFollow(FOLLOW_1); @@ -1010,11 +1026,11 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -1023,35 +1039,38 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "ruleAnnotationTargetType" - // InternalETMap.g:450:1: ruleAnnotationTargetType returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_ID_0= RULE_ID ; + // InternalETMap.g:441:1: ruleAnnotationTargetType returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_ID_0= RULE_ID ; public final AntlrDatatypeRuleToken ruleAnnotationTargetType() throws RecognitionException { AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); Token this_ID_0=null; - enterRule(); - + + enterRule(); + try { - // InternalETMap.g:453:28: (this_ID_0= RULE_ID ) - // InternalETMap.g:454:5: this_ID_0= RULE_ID + // InternalETMap.g:447:2: (this_ID_0= RULE_ID ) + // InternalETMap.g:448:2: this_ID_0= RULE_ID { this_ID_0=(Token)match(input,RULE_ID,FOLLOW_2); current.merge(this_ID_0); - - - newLeafNode(this_ID_0, grammarAccess.getAnnotationTargetTypeAccess().getIDTerminalRuleCall()); - + + + newLeafNode(this_ID_0, grammarAccess.getAnnotationTargetTypeAccess().getIDTerminalRuleCall()); + } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -1060,7 +1079,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "entryRuleAnnotationAttribute" - // InternalETMap.g:469:1: entryRuleAnnotationAttribute returns [EObject current=null] : iv_ruleAnnotationAttribute= ruleAnnotationAttribute EOF ; + // InternalETMap.g:458:1: entryRuleAnnotationAttribute returns [EObject current=null] : iv_ruleAnnotationAttribute= ruleAnnotationAttribute EOF ; public final EObject entryRuleAnnotationAttribute() throws RecognitionException { EObject current = null; @@ -1068,8 +1087,8 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { try { - // InternalETMap.g:470:2: (iv_ruleAnnotationAttribute= ruleAnnotationAttribute EOF ) - // InternalETMap.g:471:2: iv_ruleAnnotationAttribute= ruleAnnotationAttribute EOF + // InternalETMap.g:458:60: (iv_ruleAnnotationAttribute= ruleAnnotationAttribute EOF ) + // InternalETMap.g:459:2: iv_ruleAnnotationAttribute= ruleAnnotationAttribute EOF { newCompositeNode(grammarAccess.getAnnotationAttributeRule()); pushFollow(FOLLOW_1); @@ -1083,11 +1102,11 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -1096,7 +1115,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "ruleAnnotationAttribute" - // InternalETMap.g:478:1: ruleAnnotationAttribute returns [EObject current=null] : (this_SimpleAnnotationAttribute_0= ruleSimpleAnnotationAttribute | this_EnumAnnotationAttribute_1= ruleEnumAnnotationAttribute ) ; + // InternalETMap.g:465:1: ruleAnnotationAttribute returns [EObject current=null] : (this_SimpleAnnotationAttribute_0= ruleSimpleAnnotationAttribute | this_EnumAnnotationAttribute_1= ruleEnumAnnotationAttribute ) ; public final EObject ruleAnnotationAttribute() throws RecognitionException { EObject current = null; @@ -1105,13 +1124,14 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { EObject this_EnumAnnotationAttribute_1 = null; - enterRule(); - + + enterRule(); + try { - // InternalETMap.g:481:28: ( (this_SimpleAnnotationAttribute_0= ruleSimpleAnnotationAttribute | this_EnumAnnotationAttribute_1= ruleEnumAnnotationAttribute ) ) - // InternalETMap.g:482:1: (this_SimpleAnnotationAttribute_0= ruleSimpleAnnotationAttribute | this_EnumAnnotationAttribute_1= ruleEnumAnnotationAttribute ) + // InternalETMap.g:471:2: ( (this_SimpleAnnotationAttribute_0= ruleSimpleAnnotationAttribute | this_EnumAnnotationAttribute_1= ruleEnumAnnotationAttribute ) ) + // InternalETMap.g:472:2: (this_SimpleAnnotationAttribute_0= ruleSimpleAnnotationAttribute | this_EnumAnnotationAttribute_1= ruleEnumAnnotationAttribute ) { - // InternalETMap.g:482:1: (this_SimpleAnnotationAttribute_0= ruleSimpleAnnotationAttribute | this_EnumAnnotationAttribute_1= ruleEnumAnnotationAttribute ) + // InternalETMap.g:472:2: (this_SimpleAnnotationAttribute_0= ruleSimpleAnnotationAttribute | this_EnumAnnotationAttribute_1= ruleEnumAnnotationAttribute ) int alt6=2; int LA6_0 = input.LA(1); @@ -1215,38 +1235,38 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } switch (alt6) { case 1 : - // InternalETMap.g:483:5: this_SimpleAnnotationAttribute_0= ruleSimpleAnnotationAttribute + // InternalETMap.g:473:3: this_SimpleAnnotationAttribute_0= ruleSimpleAnnotationAttribute { - - newCompositeNode(grammarAccess.getAnnotationAttributeAccess().getSimpleAnnotationAttributeParserRuleCall_0()); - + + newCompositeNode(grammarAccess.getAnnotationAttributeAccess().getSimpleAnnotationAttributeParserRuleCall_0()); + pushFollow(FOLLOW_2); this_SimpleAnnotationAttribute_0=ruleSimpleAnnotationAttribute(); state._fsp--; - - current = this_SimpleAnnotationAttribute_0; - afterParserOrEnumRuleCall(); - + + current = this_SimpleAnnotationAttribute_0; + afterParserOrEnumRuleCall(); + } break; case 2 : - // InternalETMap.g:493:5: this_EnumAnnotationAttribute_1= ruleEnumAnnotationAttribute + // InternalETMap.g:482:3: this_EnumAnnotationAttribute_1= ruleEnumAnnotationAttribute { - - newCompositeNode(grammarAccess.getAnnotationAttributeAccess().getEnumAnnotationAttributeParserRuleCall_1()); - + + newCompositeNode(grammarAccess.getAnnotationAttributeAccess().getEnumAnnotationAttributeParserRuleCall_1()); + pushFollow(FOLLOW_2); this_EnumAnnotationAttribute_1=ruleEnumAnnotationAttribute(); state._fsp--; - - current = this_EnumAnnotationAttribute_1; - afterParserOrEnumRuleCall(); - + + current = this_EnumAnnotationAttribute_1; + afterParserOrEnumRuleCall(); + } break; @@ -1256,13 +1276,15 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -1271,7 +1293,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "entryRuleSimpleAnnotationAttribute" - // InternalETMap.g:509:1: entryRuleSimpleAnnotationAttribute returns [EObject current=null] : iv_ruleSimpleAnnotationAttribute= ruleSimpleAnnotationAttribute EOF ; + // InternalETMap.g:494:1: entryRuleSimpleAnnotationAttribute returns [EObject current=null] : iv_ruleSimpleAnnotationAttribute= ruleSimpleAnnotationAttribute EOF ; public final EObject entryRuleSimpleAnnotationAttribute() throws RecognitionException { EObject current = null; @@ -1279,8 +1301,8 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { try { - // InternalETMap.g:510:2: (iv_ruleSimpleAnnotationAttribute= ruleSimpleAnnotationAttribute EOF ) - // InternalETMap.g:511:2: iv_ruleSimpleAnnotationAttribute= ruleSimpleAnnotationAttribute EOF + // InternalETMap.g:494:66: (iv_ruleSimpleAnnotationAttribute= ruleSimpleAnnotationAttribute EOF ) + // InternalETMap.g:495:2: iv_ruleSimpleAnnotationAttribute= ruleSimpleAnnotationAttribute EOF { newCompositeNode(grammarAccess.getSimpleAnnotationAttributeRule()); pushFollow(FOLLOW_1); @@ -1294,11 +1316,11 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -1307,7 +1329,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "ruleSimpleAnnotationAttribute" - // InternalETMap.g:518:1: ruleSimpleAnnotationAttribute returns [EObject current=null] : ( ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' ( (lv_type_5_0= ruleLiteralType ) ) ) ; + // InternalETMap.g:501:1: ruleSimpleAnnotationAttribute returns [EObject current=null] : ( ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' ( (lv_type_5_0= ruleLiteralType ) ) ) ; public final EObject ruleSimpleAnnotationAttribute() throws RecognitionException { EObject current = null; @@ -1319,16 +1341,17 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { Enumerator lv_type_5_0 = null; - enterRule(); - + + enterRule(); + try { - // InternalETMap.g:521:28: ( ( ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' ( (lv_type_5_0= ruleLiteralType ) ) ) ) - // InternalETMap.g:522:1: ( ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' ( (lv_type_5_0= ruleLiteralType ) ) ) + // InternalETMap.g:507:2: ( ( ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' ( (lv_type_5_0= ruleLiteralType ) ) ) ) + // InternalETMap.g:508:2: ( ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' ( (lv_type_5_0= ruleLiteralType ) ) ) { - // InternalETMap.g:522:1: ( ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' ( (lv_type_5_0= ruleLiteralType ) ) ) - // InternalETMap.g:522:2: ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' ( (lv_type_5_0= ruleLiteralType ) ) + // InternalETMap.g:508:2: ( ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' ( (lv_type_5_0= ruleLiteralType ) ) ) + // InternalETMap.g:509:3: ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' ( (lv_type_5_0= ruleLiteralType ) ) { - // InternalETMap.g:522:2: ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) + // InternalETMap.g:509:3: ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) int alt7=2; int LA7_0 = input.LA(1); @@ -1346,24 +1369,24 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } switch (alt7) { case 1 : - // InternalETMap.g:522:3: ( (lv_optional_0_0= 'optional' ) ) + // InternalETMap.g:510:4: ( (lv_optional_0_0= 'optional' ) ) { - // InternalETMap.g:522:3: ( (lv_optional_0_0= 'optional' ) ) - // InternalETMap.g:523:1: (lv_optional_0_0= 'optional' ) + // InternalETMap.g:510:4: ( (lv_optional_0_0= 'optional' ) ) + // InternalETMap.g:511:5: (lv_optional_0_0= 'optional' ) { - // InternalETMap.g:523:1: (lv_optional_0_0= 'optional' ) - // InternalETMap.g:524:3: lv_optional_0_0= 'optional' + // InternalETMap.g:511:5: (lv_optional_0_0= 'optional' ) + // InternalETMap.g:512:6: lv_optional_0_0= 'optional' { lv_optional_0_0=(Token)match(input,21,FOLLOW_13); - newLeafNode(lv_optional_0_0, grammarAccess.getSimpleAnnotationAttributeAccess().getOptionalOptionalKeyword_0_0_0()); - + newLeafNode(lv_optional_0_0, grammarAccess.getSimpleAnnotationAttributeAccess().getOptionalOptionalKeyword_0_0_0()); + - if (current==null) { - current = createModelElement(grammarAccess.getSimpleAnnotationAttributeRule()); - } - setWithLastConsumed(current, "optional", true, "optional"); - + if (current==null) { + current = createModelElement(grammarAccess.getSimpleAnnotationAttributeRule()); + } + setWithLastConsumed(current, "optional", lv_optional_0_0 != null, "optional"); + } @@ -1374,12 +1397,12 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } break; case 2 : - // InternalETMap.g:538:7: otherlv_1= 'mandatory' + // InternalETMap.g:525:4: otherlv_1= 'mandatory' { otherlv_1=(Token)match(input,22,FOLLOW_13); - newLeafNode(otherlv_1, grammarAccess.getSimpleAnnotationAttributeAccess().getMandatoryKeyword_0_1()); - + newLeafNode(otherlv_1, grammarAccess.getSimpleAnnotationAttributeAccess().getMandatoryKeyword_0_1()); + } break; @@ -1388,28 +1411,28 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { otherlv_2=(Token)match(input,23,FOLLOW_3); - newLeafNode(otherlv_2, grammarAccess.getSimpleAnnotationAttributeAccess().getAttributeKeyword_1()); - - // InternalETMap.g:546:1: ( (lv_name_3_0= RULE_ID ) ) - // InternalETMap.g:547:1: (lv_name_3_0= RULE_ID ) + newLeafNode(otherlv_2, grammarAccess.getSimpleAnnotationAttributeAccess().getAttributeKeyword_1()); + + // InternalETMap.g:534:3: ( (lv_name_3_0= RULE_ID ) ) + // InternalETMap.g:535:4: (lv_name_3_0= RULE_ID ) { - // InternalETMap.g:547:1: (lv_name_3_0= RULE_ID ) - // InternalETMap.g:548:3: lv_name_3_0= RULE_ID + // InternalETMap.g:535:4: (lv_name_3_0= RULE_ID ) + // InternalETMap.g:536:5: lv_name_3_0= RULE_ID { lv_name_3_0=(Token)match(input,RULE_ID,FOLLOW_14); - newLeafNode(lv_name_3_0, grammarAccess.getSimpleAnnotationAttributeAccess().getNameIDTerminalRuleCall_2_0()); - + newLeafNode(lv_name_3_0, grammarAccess.getSimpleAnnotationAttributeAccess().getNameIDTerminalRuleCall_2_0()); + - if (current==null) { - current = createModelElement(grammarAccess.getSimpleAnnotationAttributeRule()); - } - setWithLastConsumed( - current, - "name", - lv_name_3_0, - "org.eclipse.xtext.common.Terminals.ID"); - + if (current==null) { + current = createModelElement(grammarAccess.getSimpleAnnotationAttributeRule()); + } + setWithLastConsumed( + current, + "name", + lv_name_3_0, + "org.eclipse.xtext.common.Terminals.ID"); + } @@ -1418,33 +1441,33 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { otherlv_4=(Token)match(input,24,FOLLOW_15); - newLeafNode(otherlv_4, grammarAccess.getSimpleAnnotationAttributeAccess().getColonKeyword_3()); - - // InternalETMap.g:568:1: ( (lv_type_5_0= ruleLiteralType ) ) - // InternalETMap.g:569:1: (lv_type_5_0= ruleLiteralType ) + newLeafNode(otherlv_4, grammarAccess.getSimpleAnnotationAttributeAccess().getColonKeyword_3()); + + // InternalETMap.g:556:3: ( (lv_type_5_0= ruleLiteralType ) ) + // InternalETMap.g:557:4: (lv_type_5_0= ruleLiteralType ) { - // InternalETMap.g:569:1: (lv_type_5_0= ruleLiteralType ) - // InternalETMap.g:570:3: lv_type_5_0= ruleLiteralType + // InternalETMap.g:557:4: (lv_type_5_0= ruleLiteralType ) + // InternalETMap.g:558:5: lv_type_5_0= ruleLiteralType { - - newCompositeNode(grammarAccess.getSimpleAnnotationAttributeAccess().getTypeLiteralTypeEnumRuleCall_4_0()); - + + newCompositeNode(grammarAccess.getSimpleAnnotationAttributeAccess().getTypeLiteralTypeEnumRuleCall_4_0()); + pushFollow(FOLLOW_2); lv_type_5_0=ruleLiteralType(); state._fsp--; - if (current==null) { - current = createModelElementForParent(grammarAccess.getSimpleAnnotationAttributeRule()); - } - set( - current, - "type", - lv_type_5_0, - "org.eclipse.etrice.core.common.Base.LiteralType"); - afterParserOrEnumRuleCall(); - + if (current==null) { + current = createModelElementForParent(grammarAccess.getSimpleAnnotationAttributeRule()); + } + set( + current, + "type", + lv_type_5_0, + "org.eclipse.etrice.core.common.Base.LiteralType"); + afterParserOrEnumRuleCall(); + } @@ -1457,13 +1480,15 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -1472,7 +1497,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "entryRuleEnumAnnotationAttribute" - // InternalETMap.g:594:1: entryRuleEnumAnnotationAttribute returns [EObject current=null] : iv_ruleEnumAnnotationAttribute= ruleEnumAnnotationAttribute EOF ; + // InternalETMap.g:579:1: entryRuleEnumAnnotationAttribute returns [EObject current=null] : iv_ruleEnumAnnotationAttribute= ruleEnumAnnotationAttribute EOF ; public final EObject entryRuleEnumAnnotationAttribute() throws RecognitionException { EObject current = null; @@ -1480,8 +1505,8 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { try { - // InternalETMap.g:595:2: (iv_ruleEnumAnnotationAttribute= ruleEnumAnnotationAttribute EOF ) - // InternalETMap.g:596:2: iv_ruleEnumAnnotationAttribute= ruleEnumAnnotationAttribute EOF + // InternalETMap.g:579:64: (iv_ruleEnumAnnotationAttribute= ruleEnumAnnotationAttribute EOF ) + // InternalETMap.g:580:2: iv_ruleEnumAnnotationAttribute= ruleEnumAnnotationAttribute EOF { newCompositeNode(grammarAccess.getEnumAnnotationAttributeRule()); pushFollow(FOLLOW_1); @@ -1495,11 +1520,11 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -1508,7 +1533,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "ruleEnumAnnotationAttribute" - // InternalETMap.g:603:1: ruleEnumAnnotationAttribute returns [EObject current=null] : ( ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' otherlv_5= '{' ( (lv_values_6_0= RULE_STRING ) ) (otherlv_7= ',' ( (lv_values_8_0= RULE_STRING ) ) )* otherlv_9= '}' ) ; + // InternalETMap.g:586:1: ruleEnumAnnotationAttribute returns [EObject current=null] : ( ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' otherlv_5= '{' ( (lv_values_6_0= RULE_STRING ) ) (otherlv_7= ',' ( (lv_values_8_0= RULE_STRING ) ) )* otherlv_9= '}' ) ; public final EObject ruleEnumAnnotationAttribute() throws RecognitionException { EObject current = null; @@ -1523,16 +1548,17 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { Token lv_values_8_0=null; Token otherlv_9=null; - enterRule(); - + + enterRule(); + try { - // InternalETMap.g:606:28: ( ( ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' otherlv_5= '{' ( (lv_values_6_0= RULE_STRING ) ) (otherlv_7= ',' ( (lv_values_8_0= RULE_STRING ) ) )* otherlv_9= '}' ) ) - // InternalETMap.g:607:1: ( ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' otherlv_5= '{' ( (lv_values_6_0= RULE_STRING ) ) (otherlv_7= ',' ( (lv_values_8_0= RULE_STRING ) ) )* otherlv_9= '}' ) + // InternalETMap.g:592:2: ( ( ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' otherlv_5= '{' ( (lv_values_6_0= RULE_STRING ) ) (otherlv_7= ',' ( (lv_values_8_0= RULE_STRING ) ) )* otherlv_9= '}' ) ) + // InternalETMap.g:593:2: ( ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' otherlv_5= '{' ( (lv_values_6_0= RULE_STRING ) ) (otherlv_7= ',' ( (lv_values_8_0= RULE_STRING ) ) )* otherlv_9= '}' ) { - // InternalETMap.g:607:1: ( ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' otherlv_5= '{' ( (lv_values_6_0= RULE_STRING ) ) (otherlv_7= ',' ( (lv_values_8_0= RULE_STRING ) ) )* otherlv_9= '}' ) - // InternalETMap.g:607:2: ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' otherlv_5= '{' ( (lv_values_6_0= RULE_STRING ) ) (otherlv_7= ',' ( (lv_values_8_0= RULE_STRING ) ) )* otherlv_9= '}' + // InternalETMap.g:593:2: ( ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' otherlv_5= '{' ( (lv_values_6_0= RULE_STRING ) ) (otherlv_7= ',' ( (lv_values_8_0= RULE_STRING ) ) )* otherlv_9= '}' ) + // InternalETMap.g:594:3: ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) otherlv_2= 'attribute' ( (lv_name_3_0= RULE_ID ) ) otherlv_4= ':' otherlv_5= '{' ( (lv_values_6_0= RULE_STRING ) ) (otherlv_7= ',' ( (lv_values_8_0= RULE_STRING ) ) )* otherlv_9= '}' { - // InternalETMap.g:607:2: ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) + // InternalETMap.g:594:3: ( ( (lv_optional_0_0= 'optional' ) ) | otherlv_1= 'mandatory' ) int alt8=2; int LA8_0 = input.LA(1); @@ -1550,24 +1576,24 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } switch (alt8) { case 1 : - // InternalETMap.g:607:3: ( (lv_optional_0_0= 'optional' ) ) + // InternalETMap.g:595:4: ( (lv_optional_0_0= 'optional' ) ) { - // InternalETMap.g:607:3: ( (lv_optional_0_0= 'optional' ) ) - // InternalETMap.g:608:1: (lv_optional_0_0= 'optional' ) + // InternalETMap.g:595:4: ( (lv_optional_0_0= 'optional' ) ) + // InternalETMap.g:596:5: (lv_optional_0_0= 'optional' ) { - // InternalETMap.g:608:1: (lv_optional_0_0= 'optional' ) - // InternalETMap.g:609:3: lv_optional_0_0= 'optional' + // InternalETMap.g:596:5: (lv_optional_0_0= 'optional' ) + // InternalETMap.g:597:6: lv_optional_0_0= 'optional' { lv_optional_0_0=(Token)match(input,21,FOLLOW_13); - newLeafNode(lv_optional_0_0, grammarAccess.getEnumAnnotationAttributeAccess().getOptionalOptionalKeyword_0_0_0()); - + newLeafNode(lv_optional_0_0, grammarAccess.getEnumAnnotationAttributeAccess().getOptionalOptionalKeyword_0_0_0()); + - if (current==null) { - current = createModelElement(grammarAccess.getEnumAnnotationAttributeRule()); - } - setWithLastConsumed(current, "optional", true, "optional"); - + if (current==null) { + current = createModelElement(grammarAccess.getEnumAnnotationAttributeRule()); + } + setWithLastConsumed(current, "optional", lv_optional_0_0 != null, "optional"); + } @@ -1578,12 +1604,12 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } break; case 2 : - // InternalETMap.g:623:7: otherlv_1= 'mandatory' + // InternalETMap.g:610:4: otherlv_1= 'mandatory' { otherlv_1=(Token)match(input,22,FOLLOW_13); - newLeafNode(otherlv_1, grammarAccess.getEnumAnnotationAttributeAccess().getMandatoryKeyword_0_1()); - + newLeafNode(otherlv_1, grammarAccess.getEnumAnnotationAttributeAccess().getMandatoryKeyword_0_1()); + } break; @@ -1592,28 +1618,28 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { otherlv_2=(Token)match(input,23,FOLLOW_3); - newLeafNode(otherlv_2, grammarAccess.getEnumAnnotationAttributeAccess().getAttributeKeyword_1()); - - // InternalETMap.g:631:1: ( (lv_name_3_0= RULE_ID ) ) - // InternalETMap.g:632:1: (lv_name_3_0= RULE_ID ) + newLeafNode(otherlv_2, grammarAccess.getEnumAnnotationAttributeAccess().getAttributeKeyword_1()); + + // InternalETMap.g:619:3: ( (lv_name_3_0= RULE_ID ) ) + // InternalETMap.g:620:4: (lv_name_3_0= RULE_ID ) { - // InternalETMap.g:632:1: (lv_name_3_0= RULE_ID ) - // InternalETMap.g:633:3: lv_name_3_0= RULE_ID + // InternalETMap.g:620:4: (lv_name_3_0= RULE_ID ) + // InternalETMap.g:621:5: lv_name_3_0= RULE_ID { lv_name_3_0=(Token)match(input,RULE_ID,FOLLOW_14); - newLeafNode(lv_name_3_0, grammarAccess.getEnumAnnotationAttributeAccess().getNameIDTerminalRuleCall_2_0()); - + newLeafNode(lv_name_3_0, grammarAccess.getEnumAnnotationAttributeAccess().getNameIDTerminalRuleCall_2_0()); + - if (current==null) { - current = createModelElement(grammarAccess.getEnumAnnotationAttributeRule()); - } - setWithLastConsumed( - current, - "name", - lv_name_3_0, - "org.eclipse.xtext.common.Terminals.ID"); - + if (current==null) { + current = createModelElement(grammarAccess.getEnumAnnotationAttributeRule()); + } + setWithLastConsumed( + current, + "name", + lv_name_3_0, + "org.eclipse.xtext.common.Terminals.ID"); + } @@ -1622,39 +1648,39 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { otherlv_4=(Token)match(input,24,FOLLOW_4); - newLeafNode(otherlv_4, grammarAccess.getEnumAnnotationAttributeAccess().getColonKeyword_3()); - + newLeafNode(otherlv_4, grammarAccess.getEnumAnnotationAttributeAccess().getColonKeyword_3()); + otherlv_5=(Token)match(input,14,FOLLOW_16); - newLeafNode(otherlv_5, grammarAccess.getEnumAnnotationAttributeAccess().getLeftCurlyBracketKeyword_4()); - - // InternalETMap.g:657:1: ( (lv_values_6_0= RULE_STRING ) ) - // InternalETMap.g:658:1: (lv_values_6_0= RULE_STRING ) + newLeafNode(otherlv_5, grammarAccess.getEnumAnnotationAttributeAccess().getLeftCurlyBracketKeyword_4()); + + // InternalETMap.g:645:3: ( (lv_values_6_0= RULE_STRING ) ) + // InternalETMap.g:646:4: (lv_values_6_0= RULE_STRING ) { - // InternalETMap.g:658:1: (lv_values_6_0= RULE_STRING ) - // InternalETMap.g:659:3: lv_values_6_0= RULE_STRING + // InternalETMap.g:646:4: (lv_values_6_0= RULE_STRING ) + // InternalETMap.g:647:5: lv_values_6_0= RULE_STRING { lv_values_6_0=(Token)match(input,RULE_STRING,FOLLOW_17); - newLeafNode(lv_values_6_0, grammarAccess.getEnumAnnotationAttributeAccess().getValuesSTRINGTerminalRuleCall_5_0()); - + newLeafNode(lv_values_6_0, grammarAccess.getEnumAnnotationAttributeAccess().getValuesSTRINGTerminalRuleCall_5_0()); + - if (current==null) { - current = createModelElement(grammarAccess.getEnumAnnotationAttributeRule()); - } - addWithLastConsumed( - current, - "values", - lv_values_6_0, - "org.eclipse.xtext.common.Terminals.STRING"); - + if (current==null) { + current = createModelElement(grammarAccess.getEnumAnnotationAttributeRule()); + } + addWithLastConsumed( + current, + "values", + lv_values_6_0, + "org.eclipse.xtext.common.Terminals.STRING"); + } } - // InternalETMap.g:675:2: (otherlv_7= ',' ( (lv_values_8_0= RULE_STRING ) ) )* + // InternalETMap.g:663:3: (otherlv_7= ',' ( (lv_values_8_0= RULE_STRING ) ) )* loop9: do { int alt9=2; @@ -1667,32 +1693,32 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { switch (alt9) { case 1 : - // InternalETMap.g:675:4: otherlv_7= ',' ( (lv_values_8_0= RULE_STRING ) ) + // InternalETMap.g:664:4: otherlv_7= ',' ( (lv_values_8_0= RULE_STRING ) ) { otherlv_7=(Token)match(input,25,FOLLOW_16); - newLeafNode(otherlv_7, grammarAccess.getEnumAnnotationAttributeAccess().getCommaKeyword_6_0()); - - // InternalETMap.g:679:1: ( (lv_values_8_0= RULE_STRING ) ) - // InternalETMap.g:680:1: (lv_values_8_0= RULE_STRING ) + newLeafNode(otherlv_7, grammarAccess.getEnumAnnotationAttributeAccess().getCommaKeyword_6_0()); + + // InternalETMap.g:668:4: ( (lv_values_8_0= RULE_STRING ) ) + // InternalETMap.g:669:5: (lv_values_8_0= RULE_STRING ) { - // InternalETMap.g:680:1: (lv_values_8_0= RULE_STRING ) - // InternalETMap.g:681:3: lv_values_8_0= RULE_STRING + // InternalETMap.g:669:5: (lv_values_8_0= RULE_STRING ) + // InternalETMap.g:670:6: lv_values_8_0= RULE_STRING { lv_values_8_0=(Token)match(input,RULE_STRING,FOLLOW_17); - newLeafNode(lv_values_8_0, grammarAccess.getEnumAnnotationAttributeAccess().getValuesSTRINGTerminalRuleCall_6_1_0()); - + newLeafNode(lv_values_8_0, grammarAccess.getEnumAnnotationAttributeAccess().getValuesSTRINGTerminalRuleCall_6_1_0()); + - if (current==null) { - current = createModelElement(grammarAccess.getEnumAnnotationAttributeRule()); - } - addWithLastConsumed( - current, - "values", - lv_values_8_0, - "org.eclipse.xtext.common.Terminals.STRING"); - + if (current==null) { + current = createModelElement(grammarAccess.getEnumAnnotationAttributeRule()); + } + addWithLastConsumed( + current, + "values", + lv_values_8_0, + "org.eclipse.xtext.common.Terminals.STRING"); + } @@ -1710,21 +1736,23 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { otherlv_9=(Token)match(input,15,FOLLOW_2); - newLeafNode(otherlv_9, grammarAccess.getEnumAnnotationAttributeAccess().getRightCurlyBracketKeyword_7()); - + newLeafNode(otherlv_9, grammarAccess.getEnumAnnotationAttributeAccess().getRightCurlyBracketKeyword_7()); + } } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -1733,7 +1761,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "entryRuleImport" - // InternalETMap.g:709:1: entryRuleImport returns [EObject current=null] : iv_ruleImport= ruleImport EOF ; + // InternalETMap.g:695:1: entryRuleImport returns [EObject current=null] : iv_ruleImport= ruleImport EOF ; public final EObject entryRuleImport() throws RecognitionException { EObject current = null; @@ -1741,8 +1769,8 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { try { - // InternalETMap.g:710:2: (iv_ruleImport= ruleImport EOF ) - // InternalETMap.g:711:2: iv_ruleImport= ruleImport EOF + // InternalETMap.g:695:47: (iv_ruleImport= ruleImport EOF ) + // InternalETMap.g:696:2: iv_ruleImport= ruleImport EOF { newCompositeNode(grammarAccess.getImportRule()); pushFollow(FOLLOW_1); @@ -1756,11 +1784,11 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -1769,7 +1797,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "ruleImport" - // InternalETMap.g:718:1: ruleImport returns [EObject current=null] : (otherlv_0= 'import' ( ( ( (lv_importedNamespace_1_0= ruleImportedFQN ) ) (otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) )? ) | (otherlv_4= 'model' ( (lv_importURI_5_0= RULE_STRING ) ) ) ) ) ; + // InternalETMap.g:702:1: ruleImport returns [EObject current=null] : (otherlv_0= 'import' ( ( ( (lv_importedNamespace_1_0= ruleImportedFQN ) ) (otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) )? ) | (otherlv_4= 'model' ( (lv_importURI_5_0= RULE_STRING ) ) ) ) ) ; public final EObject ruleImport() throws RecognitionException { EObject current = null; @@ -1781,20 +1809,21 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { AntlrDatatypeRuleToken lv_importedNamespace_1_0 = null; - enterRule(); - + + enterRule(); + try { - // InternalETMap.g:721:28: ( (otherlv_0= 'import' ( ( ( (lv_importedNamespace_1_0= ruleImportedFQN ) ) (otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) )? ) | (otherlv_4= 'model' ( (lv_importURI_5_0= RULE_STRING ) ) ) ) ) ) - // InternalETMap.g:722:1: (otherlv_0= 'import' ( ( ( (lv_importedNamespace_1_0= ruleImportedFQN ) ) (otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) )? ) | (otherlv_4= 'model' ( (lv_importURI_5_0= RULE_STRING ) ) ) ) ) + // InternalETMap.g:708:2: ( (otherlv_0= 'import' ( ( ( (lv_importedNamespace_1_0= ruleImportedFQN ) ) (otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) )? ) | (otherlv_4= 'model' ( (lv_importURI_5_0= RULE_STRING ) ) ) ) ) ) + // InternalETMap.g:709:2: (otherlv_0= 'import' ( ( ( (lv_importedNamespace_1_0= ruleImportedFQN ) ) (otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) )? ) | (otherlv_4= 'model' ( (lv_importURI_5_0= RULE_STRING ) ) ) ) ) { - // InternalETMap.g:722:1: (otherlv_0= 'import' ( ( ( (lv_importedNamespace_1_0= ruleImportedFQN ) ) (otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) )? ) | (otherlv_4= 'model' ( (lv_importURI_5_0= RULE_STRING ) ) ) ) ) - // InternalETMap.g:722:3: otherlv_0= 'import' ( ( ( (lv_importedNamespace_1_0= ruleImportedFQN ) ) (otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) )? ) | (otherlv_4= 'model' ( (lv_importURI_5_0= RULE_STRING ) ) ) ) + // InternalETMap.g:709:2: (otherlv_0= 'import' ( ( ( (lv_importedNamespace_1_0= ruleImportedFQN ) ) (otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) )? ) | (otherlv_4= 'model' ( (lv_importURI_5_0= RULE_STRING ) ) ) ) ) + // InternalETMap.g:710:3: otherlv_0= 'import' ( ( ( (lv_importedNamespace_1_0= ruleImportedFQN ) ) (otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) )? ) | (otherlv_4= 'model' ( (lv_importURI_5_0= RULE_STRING ) ) ) ) { otherlv_0=(Token)match(input,26,FOLLOW_18); - newLeafNode(otherlv_0, grammarAccess.getImportAccess().getImportKeyword_0()); - - // InternalETMap.g:726:1: ( ( ( (lv_importedNamespace_1_0= ruleImportedFQN ) ) (otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) )? ) | (otherlv_4= 'model' ( (lv_importURI_5_0= RULE_STRING ) ) ) ) + newLeafNode(otherlv_0, grammarAccess.getImportAccess().getImportKeyword_0()); + + // InternalETMap.g:714:3: ( ( ( (lv_importedNamespace_1_0= ruleImportedFQN ) ) (otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) )? ) | (otherlv_4= 'model' ( (lv_importURI_5_0= RULE_STRING ) ) ) ) int alt11=2; int LA11_0 = input.LA(1); @@ -1812,43 +1841,43 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } switch (alt11) { case 1 : - // InternalETMap.g:726:2: ( ( (lv_importedNamespace_1_0= ruleImportedFQN ) ) (otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) )? ) + // InternalETMap.g:715:4: ( ( (lv_importedNamespace_1_0= ruleImportedFQN ) ) (otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) )? ) { - // InternalETMap.g:726:2: ( ( (lv_importedNamespace_1_0= ruleImportedFQN ) ) (otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) )? ) - // InternalETMap.g:726:3: ( (lv_importedNamespace_1_0= ruleImportedFQN ) ) (otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) )? + // InternalETMap.g:715:4: ( ( (lv_importedNamespace_1_0= ruleImportedFQN ) ) (otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) )? ) + // InternalETMap.g:716:5: ( (lv_importedNamespace_1_0= ruleImportedFQN ) ) (otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) )? { - // InternalETMap.g:726:3: ( (lv_importedNamespace_1_0= ruleImportedFQN ) ) - // InternalETMap.g:727:1: (lv_importedNamespace_1_0= ruleImportedFQN ) + // InternalETMap.g:716:5: ( (lv_importedNamespace_1_0= ruleImportedFQN ) ) + // InternalETMap.g:717:6: (lv_importedNamespace_1_0= ruleImportedFQN ) { - // InternalETMap.g:727:1: (lv_importedNamespace_1_0= ruleImportedFQN ) - // InternalETMap.g:728:3: lv_importedNamespace_1_0= ruleImportedFQN + // InternalETMap.g:717:6: (lv_importedNamespace_1_0= ruleImportedFQN ) + // InternalETMap.g:718:7: lv_importedNamespace_1_0= ruleImportedFQN { - - newCompositeNode(grammarAccess.getImportAccess().getImportedNamespaceImportedFQNParserRuleCall_1_0_0_0()); - + + newCompositeNode(grammarAccess.getImportAccess().getImportedNamespaceImportedFQNParserRuleCall_1_0_0_0()); + pushFollow(FOLLOW_19); lv_importedNamespace_1_0=ruleImportedFQN(); state._fsp--; - if (current==null) { - current = createModelElementForParent(grammarAccess.getImportRule()); - } - set( - current, - "importedNamespace", - lv_importedNamespace_1_0, - "org.eclipse.etrice.core.common.Base.ImportedFQN"); - afterParserOrEnumRuleCall(); - + if (current==null) { + current = createModelElementForParent(grammarAccess.getImportRule()); + } + set( + current, + "importedNamespace", + lv_importedNamespace_1_0, + "org.eclipse.etrice.core.common.Base.ImportedFQN"); + afterParserOrEnumRuleCall(); + } } - // InternalETMap.g:744:2: (otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) )? + // InternalETMap.g:735:5: (otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) )? int alt10=2; int LA10_0 = input.LA(1); @@ -1857,32 +1886,32 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } switch (alt10) { case 1 : - // InternalETMap.g:744:4: otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) + // InternalETMap.g:736:6: otherlv_2= 'from' ( (lv_importURI_3_0= RULE_STRING ) ) { otherlv_2=(Token)match(input,27,FOLLOW_16); - newLeafNode(otherlv_2, grammarAccess.getImportAccess().getFromKeyword_1_0_1_0()); - - // InternalETMap.g:748:1: ( (lv_importURI_3_0= RULE_STRING ) ) - // InternalETMap.g:749:1: (lv_importURI_3_0= RULE_STRING ) + newLeafNode(otherlv_2, grammarAccess.getImportAccess().getFromKeyword_1_0_1_0()); + + // InternalETMap.g:740:6: ( (lv_importURI_3_0= RULE_STRING ) ) + // InternalETMap.g:741:7: (lv_importURI_3_0= RULE_STRING ) { - // InternalETMap.g:749:1: (lv_importURI_3_0= RULE_STRING ) - // InternalETMap.g:750:3: lv_importURI_3_0= RULE_STRING + // InternalETMap.g:741:7: (lv_importURI_3_0= RULE_STRING ) + // InternalETMap.g:742:8: lv_importURI_3_0= RULE_STRING { lv_importURI_3_0=(Token)match(input,RULE_STRING,FOLLOW_2); - newLeafNode(lv_importURI_3_0, grammarAccess.getImportAccess().getImportURISTRINGTerminalRuleCall_1_0_1_1_0()); - + newLeafNode(lv_importURI_3_0, grammarAccess.getImportAccess().getImportURISTRINGTerminalRuleCall_1_0_1_1_0()); + - if (current==null) { - current = createModelElement(grammarAccess.getImportRule()); - } - setWithLastConsumed( - current, - "importURI", - lv_importURI_3_0, - "org.eclipse.xtext.common.Terminals.STRING"); - + if (current==null) { + current = createModelElement(grammarAccess.getImportRule()); + } + setWithLastConsumed( + current, + "importURI", + lv_importURI_3_0, + "org.eclipse.xtext.common.Terminals.STRING"); + } @@ -1902,35 +1931,35 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } break; case 2 : - // InternalETMap.g:767:6: (otherlv_4= 'model' ( (lv_importURI_5_0= RULE_STRING ) ) ) + // InternalETMap.g:761:4: (otherlv_4= 'model' ( (lv_importURI_5_0= RULE_STRING ) ) ) { - // InternalETMap.g:767:6: (otherlv_4= 'model' ( (lv_importURI_5_0= RULE_STRING ) ) ) - // InternalETMap.g:767:8: otherlv_4= 'model' ( (lv_importURI_5_0= RULE_STRING ) ) + // InternalETMap.g:761:4: (otherlv_4= 'model' ( (lv_importURI_5_0= RULE_STRING ) ) ) + // InternalETMap.g:762:5: otherlv_4= 'model' ( (lv_importURI_5_0= RULE_STRING ) ) { otherlv_4=(Token)match(input,28,FOLLOW_16); - newLeafNode(otherlv_4, grammarAccess.getImportAccess().getModelKeyword_1_1_0()); - - // InternalETMap.g:771:1: ( (lv_importURI_5_0= RULE_STRING ) ) - // InternalETMap.g:772:1: (lv_importURI_5_0= RULE_STRING ) + newLeafNode(otherlv_4, grammarAccess.getImportAccess().getModelKeyword_1_1_0()); + + // InternalETMap.g:766:5: ( (lv_importURI_5_0= RULE_STRING ) ) + // InternalETMap.g:767:6: (lv_importURI_5_0= RULE_STRING ) { - // InternalETMap.g:772:1: (lv_importURI_5_0= RULE_STRING ) - // InternalETMap.g:773:3: lv_importURI_5_0= RULE_STRING + // InternalETMap.g:767:6: (lv_importURI_5_0= RULE_STRING ) + // InternalETMap.g:768:7: lv_importURI_5_0= RULE_STRING { lv_importURI_5_0=(Token)match(input,RULE_STRING,FOLLOW_2); - newLeafNode(lv_importURI_5_0, grammarAccess.getImportAccess().getImportURISTRINGTerminalRuleCall_1_1_1_0()); - + newLeafNode(lv_importURI_5_0, grammarAccess.getImportAccess().getImportURISTRINGTerminalRuleCall_1_1_1_0()); + - if (current==null) { - current = createModelElement(grammarAccess.getImportRule()); - } - setWithLastConsumed( - current, - "importURI", - lv_importURI_5_0, - "org.eclipse.xtext.common.Terminals.STRING"); - + if (current==null) { + current = createModelElement(grammarAccess.getImportRule()); + } + setWithLastConsumed( + current, + "importURI", + lv_importURI_5_0, + "org.eclipse.xtext.common.Terminals.STRING"); + } @@ -1952,13 +1981,15 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -1967,7 +1998,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "entryRuleImportedFQN" - // InternalETMap.g:797:1: entryRuleImportedFQN returns [String current=null] : iv_ruleImportedFQN= ruleImportedFQN EOF ; + // InternalETMap.g:790:1: entryRuleImportedFQN returns [String current=null] : iv_ruleImportedFQN= ruleImportedFQN EOF ; public final String entryRuleImportedFQN() throws RecognitionException { String current = null; @@ -1975,8 +2006,8 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { try { - // InternalETMap.g:798:2: (iv_ruleImportedFQN= ruleImportedFQN EOF ) - // InternalETMap.g:799:2: iv_ruleImportedFQN= ruleImportedFQN EOF + // InternalETMap.g:790:51: (iv_ruleImportedFQN= ruleImportedFQN EOF ) + // InternalETMap.g:791:2: iv_ruleImportedFQN= ruleImportedFQN EOF { newCompositeNode(grammarAccess.getImportedFQNRule()); pushFollow(FOLLOW_1); @@ -1990,11 +2021,11 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -2003,7 +2034,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "ruleImportedFQN" - // InternalETMap.g:806:1: ruleImportedFQN returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_FQN_0= ruleFQN (kw= '.*' )? ) ; + // InternalETMap.g:797:1: ruleImportedFQN returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_FQN_0= ruleFQN (kw= '.*' )? ) ; public final AntlrDatatypeRuleToken ruleImportedFQN() throws RecognitionException { AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); @@ -2011,30 +2042,31 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { AntlrDatatypeRuleToken this_FQN_0 = null; - enterRule(); - + + enterRule(); + try { - // InternalETMap.g:809:28: ( (this_FQN_0= ruleFQN (kw= '.*' )? ) ) - // InternalETMap.g:810:1: (this_FQN_0= ruleFQN (kw= '.*' )? ) + // InternalETMap.g:803:2: ( (this_FQN_0= ruleFQN (kw= '.*' )? ) ) + // InternalETMap.g:804:2: (this_FQN_0= ruleFQN (kw= '.*' )? ) { - // InternalETMap.g:810:1: (this_FQN_0= ruleFQN (kw= '.*' )? ) - // InternalETMap.g:811:5: this_FQN_0= ruleFQN (kw= '.*' )? + // InternalETMap.g:804:2: (this_FQN_0= ruleFQN (kw= '.*' )? ) + // InternalETMap.g:805:3: this_FQN_0= ruleFQN (kw= '.*' )? { - - newCompositeNode(grammarAccess.getImportedFQNAccess().getFQNParserRuleCall_0()); - + + newCompositeNode(grammarAccess.getImportedFQNAccess().getFQNParserRuleCall_0()); + pushFollow(FOLLOW_20); this_FQN_0=ruleFQN(); state._fsp--; - current.merge(this_FQN_0); - - - afterParserOrEnumRuleCall(); - - // InternalETMap.g:821:1: (kw= '.*' )? + current.merge(this_FQN_0); + + + afterParserOrEnumRuleCall(); + + // InternalETMap.g:815:3: (kw= '.*' )? int alt12=2; int LA12_0 = input.LA(1); @@ -2043,13 +2075,13 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } switch (alt12) { case 1 : - // InternalETMap.g:822:2: kw= '.*' + // InternalETMap.g:816:4: kw= '.*' { kw=(Token)match(input,29,FOLLOW_2); - current.merge(kw); - newLeafNode(kw, grammarAccess.getImportedFQNAccess().getFullStopAsteriskKeyword_1()); - + current.merge(kw); + newLeafNode(kw, grammarAccess.getImportedFQNAccess().getFullStopAsteriskKeyword_1()); + } break; @@ -2062,13 +2094,15 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -2077,7 +2111,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "entryRuleDocumentation" - // InternalETMap.g:835:1: entryRuleDocumentation returns [EObject current=null] : iv_ruleDocumentation= ruleDocumentation EOF ; + // InternalETMap.g:826:1: entryRuleDocumentation returns [EObject current=null] : iv_ruleDocumentation= ruleDocumentation EOF ; public final EObject entryRuleDocumentation() throws RecognitionException { EObject current = null; @@ -2085,8 +2119,8 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { try { - // InternalETMap.g:836:2: (iv_ruleDocumentation= ruleDocumentation EOF ) - // InternalETMap.g:837:2: iv_ruleDocumentation= ruleDocumentation EOF + // InternalETMap.g:826:54: (iv_ruleDocumentation= ruleDocumentation EOF ) + // InternalETMap.g:827:2: iv_ruleDocumentation= ruleDocumentation EOF { newCompositeNode(grammarAccess.getDocumentationRule()); pushFollow(FOLLOW_1); @@ -2100,11 +2134,11 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -2113,7 +2147,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "ruleDocumentation" - // InternalETMap.g:844:1: ruleDocumentation returns [EObject current=null] : ( () otherlv_1= '[' ( (lv_lines_2_0= RULE_STRING ) )* otherlv_3= ']' ) ; + // InternalETMap.g:833:1: ruleDocumentation returns [EObject current=null] : ( () otherlv_1= '[' ( (lv_lines_2_0= RULE_STRING ) )* otherlv_3= ']' ) ; public final EObject ruleDocumentation() throws RecognitionException { EObject current = null; @@ -2121,31 +2155,32 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { Token lv_lines_2_0=null; Token otherlv_3=null; - enterRule(); - + + enterRule(); + try { - // InternalETMap.g:847:28: ( ( () otherlv_1= '[' ( (lv_lines_2_0= RULE_STRING ) )* otherlv_3= ']' ) ) - // InternalETMap.g:848:1: ( () otherlv_1= '[' ( (lv_lines_2_0= RULE_STRING ) )* otherlv_3= ']' ) + // InternalETMap.g:839:2: ( ( () otherlv_1= '[' ( (lv_lines_2_0= RULE_STRING ) )* otherlv_3= ']' ) ) + // InternalETMap.g:840:2: ( () otherlv_1= '[' ( (lv_lines_2_0= RULE_STRING ) )* otherlv_3= ']' ) { - // InternalETMap.g:848:1: ( () otherlv_1= '[' ( (lv_lines_2_0= RULE_STRING ) )* otherlv_3= ']' ) - // InternalETMap.g:848:2: () otherlv_1= '[' ( (lv_lines_2_0= RULE_STRING ) )* otherlv_3= ']' + // InternalETMap.g:840:2: ( () otherlv_1= '[' ( (lv_lines_2_0= RULE_STRING ) )* otherlv_3= ']' ) + // InternalETMap.g:841:3: () otherlv_1= '[' ( (lv_lines_2_0= RULE_STRING ) )* otherlv_3= ']' { - // InternalETMap.g:848:2: () - // InternalETMap.g:849:5: + // InternalETMap.g:841:3: () + // InternalETMap.g:842:4: { - current = forceCreateModelElement( - grammarAccess.getDocumentationAccess().getDocumentationAction_0(), - current); - + current = forceCreateModelElement( + grammarAccess.getDocumentationAccess().getDocumentationAction_0(), + current); + } otherlv_1=(Token)match(input,30,FOLLOW_21); - newLeafNode(otherlv_1, grammarAccess.getDocumentationAccess().getLeftSquareBracketKeyword_1()); - - // InternalETMap.g:858:1: ( (lv_lines_2_0= RULE_STRING ) )* + newLeafNode(otherlv_1, grammarAccess.getDocumentationAccess().getLeftSquareBracketKeyword_1()); + + // InternalETMap.g:852:3: ( (lv_lines_2_0= RULE_STRING ) )* loop13: do { int alt13=2; @@ -2158,25 +2193,25 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { switch (alt13) { case 1 : - // InternalETMap.g:859:1: (lv_lines_2_0= RULE_STRING ) + // InternalETMap.g:853:4: (lv_lines_2_0= RULE_STRING ) { - // InternalETMap.g:859:1: (lv_lines_2_0= RULE_STRING ) - // InternalETMap.g:860:3: lv_lines_2_0= RULE_STRING + // InternalETMap.g:853:4: (lv_lines_2_0= RULE_STRING ) + // InternalETMap.g:854:5: lv_lines_2_0= RULE_STRING { lv_lines_2_0=(Token)match(input,RULE_STRING,FOLLOW_21); - newLeafNode(lv_lines_2_0, grammarAccess.getDocumentationAccess().getLinesSTRINGTerminalRuleCall_2_0()); - + newLeafNode(lv_lines_2_0, grammarAccess.getDocumentationAccess().getLinesSTRINGTerminalRuleCall_2_0()); + - if (current==null) { - current = createModelElement(grammarAccess.getDocumentationRule()); - } - addWithLastConsumed( - current, - "lines", - lv_lines_2_0, - "org.eclipse.xtext.common.Terminals.STRING"); - + if (current==null) { + current = createModelElement(grammarAccess.getDocumentationRule()); + } + addWithLastConsumed( + current, + "lines", + lv_lines_2_0, + "org.eclipse.xtext.common.Terminals.STRING"); + } @@ -2191,21 +2226,23 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { otherlv_3=(Token)match(input,31,FOLLOW_2); - newLeafNode(otherlv_3, grammarAccess.getDocumentationAccess().getRightSquareBracketKeyword_3()); - + newLeafNode(otherlv_3, grammarAccess.getDocumentationAccess().getRightSquareBracketKeyword_3()); + } } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -2214,7 +2251,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "entryRuleLiteral" - // InternalETMap.g:892:1: entryRuleLiteral returns [EObject current=null] : iv_ruleLiteral= ruleLiteral EOF ; + // InternalETMap.g:878:1: entryRuleLiteral returns [EObject current=null] : iv_ruleLiteral= ruleLiteral EOF ; public final EObject entryRuleLiteral() throws RecognitionException { EObject current = null; @@ -2222,8 +2259,8 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { try { - // InternalETMap.g:893:2: (iv_ruleLiteral= ruleLiteral EOF ) - // InternalETMap.g:894:2: iv_ruleLiteral= ruleLiteral EOF + // InternalETMap.g:878:48: (iv_ruleLiteral= ruleLiteral EOF ) + // InternalETMap.g:879:2: iv_ruleLiteral= ruleLiteral EOF { newCompositeNode(grammarAccess.getLiteralRule()); pushFollow(FOLLOW_1); @@ -2237,11 +2274,11 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -2250,7 +2287,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "ruleLiteral" - // InternalETMap.g:901:1: ruleLiteral returns [EObject current=null] : (this_BooleanLiteral_0= ruleBooleanLiteral | this_NumberLiteral_1= ruleNumberLiteral | this_StringLiteral_2= ruleStringLiteral ) ; + // InternalETMap.g:885:1: ruleLiteral returns [EObject current=null] : (this_BooleanLiteral_0= ruleBooleanLiteral | this_NumberLiteral_1= ruleNumberLiteral | this_StringLiteral_2= ruleStringLiteral ) ; public final EObject ruleLiteral() throws RecognitionException { EObject current = null; @@ -2261,13 +2298,14 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { EObject this_StringLiteral_2 = null; - enterRule(); - + + enterRule(); + try { - // InternalETMap.g:904:28: ( (this_BooleanLiteral_0= ruleBooleanLiteral | this_NumberLiteral_1= ruleNumberLiteral | this_StringLiteral_2= ruleStringLiteral ) ) - // InternalETMap.g:905:1: (this_BooleanLiteral_0= ruleBooleanLiteral | this_NumberLiteral_1= ruleNumberLiteral | this_StringLiteral_2= ruleStringLiteral ) + // InternalETMap.g:891:2: ( (this_BooleanLiteral_0= ruleBooleanLiteral | this_NumberLiteral_1= ruleNumberLiteral | this_StringLiteral_2= ruleStringLiteral ) ) + // InternalETMap.g:892:2: (this_BooleanLiteral_0= ruleBooleanLiteral | this_NumberLiteral_1= ruleNumberLiteral | this_StringLiteral_2= ruleStringLiteral ) { - // InternalETMap.g:905:1: (this_BooleanLiteral_0= ruleBooleanLiteral | this_NumberLiteral_1= ruleNumberLiteral | this_StringLiteral_2= ruleStringLiteral ) + // InternalETMap.g:892:2: (this_BooleanLiteral_0= ruleBooleanLiteral | this_NumberLiteral_1= ruleNumberLiteral | this_StringLiteral_2= ruleStringLiteral ) int alt14=3; switch ( input.LA(1) ) { case 32: @@ -2298,56 +2336,56 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { switch (alt14) { case 1 : - // InternalETMap.g:906:5: this_BooleanLiteral_0= ruleBooleanLiteral + // InternalETMap.g:893:3: this_BooleanLiteral_0= ruleBooleanLiteral { - - newCompositeNode(grammarAccess.getLiteralAccess().getBooleanLiteralParserRuleCall_0()); - + + newCompositeNode(grammarAccess.getLiteralAccess().getBooleanLiteralParserRuleCall_0()); + pushFollow(FOLLOW_2); this_BooleanLiteral_0=ruleBooleanLiteral(); state._fsp--; - - current = this_BooleanLiteral_0; - afterParserOrEnumRuleCall(); - + + current = this_BooleanLiteral_0; + afterParserOrEnumRuleCall(); + } break; case 2 : - // InternalETMap.g:916:5: this_NumberLiteral_1= ruleNumberLiteral + // InternalETMap.g:902:3: this_NumberLiteral_1= ruleNumberLiteral { - - newCompositeNode(grammarAccess.getLiteralAccess().getNumberLiteralParserRuleCall_1()); - + + newCompositeNode(grammarAccess.getLiteralAccess().getNumberLiteralParserRuleCall_1()); + pushFollow(FOLLOW_2); this_NumberLiteral_1=ruleNumberLiteral(); state._fsp--; - - current = this_NumberLiteral_1; - afterParserOrEnumRuleCall(); - + + current = this_NumberLiteral_1; + afterParserOrEnumRuleCall(); + } break; case 3 : - // InternalETMap.g:926:5: this_StringLiteral_2= ruleStringLiteral + // InternalETMap.g:911:3: this_StringLiteral_2= ruleStringLiteral { - - newCompositeNode(grammarAccess.getLiteralAccess().getStringLiteralParserRuleCall_2()); - + + newCompositeNode(grammarAccess.getLiteralAccess().getStringLiteralParserRuleCall_2()); + pushFollow(FOLLOW_2); this_StringLiteral_2=ruleStringLiteral(); state._fsp--; - - current = this_StringLiteral_2; - afterParserOrEnumRuleCall(); - + + current = this_StringLiteral_2; + afterParserOrEnumRuleCall(); + } break; @@ -2357,13 +2395,15 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -2372,7 +2412,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "entryRuleBooleanLiteral" - // InternalETMap.g:942:1: entryRuleBooleanLiteral returns [EObject current=null] : iv_ruleBooleanLiteral= ruleBooleanLiteral EOF ; + // InternalETMap.g:923:1: entryRuleBooleanLiteral returns [EObject current=null] : iv_ruleBooleanLiteral= ruleBooleanLiteral EOF ; public final EObject entryRuleBooleanLiteral() throws RecognitionException { EObject current = null; @@ -2380,8 +2420,8 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { try { - // InternalETMap.g:943:2: (iv_ruleBooleanLiteral= ruleBooleanLiteral EOF ) - // InternalETMap.g:944:2: iv_ruleBooleanLiteral= ruleBooleanLiteral EOF + // InternalETMap.g:923:55: (iv_ruleBooleanLiteral= ruleBooleanLiteral EOF ) + // InternalETMap.g:924:2: iv_ruleBooleanLiteral= ruleBooleanLiteral EOF { newCompositeNode(grammarAccess.getBooleanLiteralRule()); pushFollow(FOLLOW_1); @@ -2395,11 +2435,11 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -2408,34 +2448,35 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "ruleBooleanLiteral" - // InternalETMap.g:951:1: ruleBooleanLiteral returns [EObject current=null] : ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) ; + // InternalETMap.g:930:1: ruleBooleanLiteral returns [EObject current=null] : ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) ; public final EObject ruleBooleanLiteral() throws RecognitionException { EObject current = null; Token otherlv_1=null; Token lv_isTrue_2_0=null; - enterRule(); - + + enterRule(); + try { - // InternalETMap.g:954:28: ( ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) ) - // InternalETMap.g:955:1: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) + // InternalETMap.g:936:2: ( ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) ) + // InternalETMap.g:937:2: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) { - // InternalETMap.g:955:1: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) - // InternalETMap.g:955:2: () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) + // InternalETMap.g:937:2: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) + // InternalETMap.g:938:3: () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) { - // InternalETMap.g:955:2: () - // InternalETMap.g:956:5: + // InternalETMap.g:938:3: () + // InternalETMap.g:939:4: { - current = forceCreateModelElement( - grammarAccess.getBooleanLiteralAccess().getBooleanLiteralAction_0(), - current); - + current = forceCreateModelElement( + grammarAccess.getBooleanLiteralAccess().getBooleanLiteralAction_0(), + current); + } - // InternalETMap.g:961:2: (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) + // InternalETMap.g:945:3: (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) int alt15=2; int LA15_0 = input.LA(1); @@ -2453,34 +2494,34 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } switch (alt15) { case 1 : - // InternalETMap.g:961:4: otherlv_1= 'false' + // InternalETMap.g:946:4: otherlv_1= 'false' { otherlv_1=(Token)match(input,32,FOLLOW_2); - newLeafNode(otherlv_1, grammarAccess.getBooleanLiteralAccess().getFalseKeyword_1_0()); - + newLeafNode(otherlv_1, grammarAccess.getBooleanLiteralAccess().getFalseKeyword_1_0()); + } break; case 2 : - // InternalETMap.g:966:6: ( (lv_isTrue_2_0= 'true' ) ) + // InternalETMap.g:951:4: ( (lv_isTrue_2_0= 'true' ) ) { - // InternalETMap.g:966:6: ( (lv_isTrue_2_0= 'true' ) ) - // InternalETMap.g:967:1: (lv_isTrue_2_0= 'true' ) + // InternalETMap.g:951:4: ( (lv_isTrue_2_0= 'true' ) ) + // InternalETMap.g:952:5: (lv_isTrue_2_0= 'true' ) { - // InternalETMap.g:967:1: (lv_isTrue_2_0= 'true' ) - // InternalETMap.g:968:3: lv_isTrue_2_0= 'true' + // InternalETMap.g:952:5: (lv_isTrue_2_0= 'true' ) + // InternalETMap.g:953:6: lv_isTrue_2_0= 'true' { lv_isTrue_2_0=(Token)match(input,33,FOLLOW_2); - newLeafNode(lv_isTrue_2_0, grammarAccess.getBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0()); - + newLeafNode(lv_isTrue_2_0, grammarAccess.getBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0()); + - if (current==null) { - current = createModelElement(grammarAccess.getBooleanLiteralRule()); - } - setWithLastConsumed(current, "isTrue", true, "true"); - + if (current==null) { + current = createModelElement(grammarAccess.getBooleanLiteralRule()); + } + setWithLastConsumed(current, "isTrue", lv_isTrue_2_0 != null, "true"); + } @@ -2499,13 +2540,15 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -2514,7 +2557,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "entryRuleNumberLiteral" - // InternalETMap.g:989:1: entryRuleNumberLiteral returns [EObject current=null] : iv_ruleNumberLiteral= ruleNumberLiteral EOF ; + // InternalETMap.g:970:1: entryRuleNumberLiteral returns [EObject current=null] : iv_ruleNumberLiteral= ruleNumberLiteral EOF ; public final EObject entryRuleNumberLiteral() throws RecognitionException { EObject current = null; @@ -2522,8 +2565,8 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { try { - // InternalETMap.g:990:2: (iv_ruleNumberLiteral= ruleNumberLiteral EOF ) - // InternalETMap.g:991:2: iv_ruleNumberLiteral= ruleNumberLiteral EOF + // InternalETMap.g:970:54: (iv_ruleNumberLiteral= ruleNumberLiteral EOF ) + // InternalETMap.g:971:2: iv_ruleNumberLiteral= ruleNumberLiteral EOF { newCompositeNode(grammarAccess.getNumberLiteralRule()); pushFollow(FOLLOW_1); @@ -2537,11 +2580,11 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -2550,7 +2593,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "ruleNumberLiteral" - // InternalETMap.g:998:1: ruleNumberLiteral returns [EObject current=null] : (this_IntLiteral_0= ruleIntLiteral | this_RealLiteral_1= ruleRealLiteral ) ; + // InternalETMap.g:977:1: ruleNumberLiteral returns [EObject current=null] : (this_IntLiteral_0= ruleIntLiteral | this_RealLiteral_1= ruleRealLiteral ) ; public final EObject ruleNumberLiteral() throws RecognitionException { EObject current = null; @@ -2559,13 +2602,14 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { EObject this_RealLiteral_1 = null; - enterRule(); - + + enterRule(); + try { - // InternalETMap.g:1001:28: ( (this_IntLiteral_0= ruleIntLiteral | this_RealLiteral_1= ruleRealLiteral ) ) - // InternalETMap.g:1002:1: (this_IntLiteral_0= ruleIntLiteral | this_RealLiteral_1= ruleRealLiteral ) + // InternalETMap.g:983:2: ( (this_IntLiteral_0= ruleIntLiteral | this_RealLiteral_1= ruleRealLiteral ) ) + // InternalETMap.g:984:2: (this_IntLiteral_0= ruleIntLiteral | this_RealLiteral_1= ruleRealLiteral ) { - // InternalETMap.g:1002:1: (this_IntLiteral_0= ruleIntLiteral | this_RealLiteral_1= ruleRealLiteral ) + // InternalETMap.g:984:2: (this_IntLiteral_0= ruleIntLiteral | this_RealLiteral_1= ruleRealLiteral ) int alt16=2; switch ( input.LA(1) ) { case 34: @@ -2656,38 +2700,38 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { switch (alt16) { case 1 : - // InternalETMap.g:1003:5: this_IntLiteral_0= ruleIntLiteral + // InternalETMap.g:985:3: this_IntLiteral_0= ruleIntLiteral { - - newCompositeNode(grammarAccess.getNumberLiteralAccess().getIntLiteralParserRuleCall_0()); - + + newCompositeNode(grammarAccess.getNumberLiteralAccess().getIntLiteralParserRuleCall_0()); + pushFollow(FOLLOW_2); this_IntLiteral_0=ruleIntLiteral(); state._fsp--; - - current = this_IntLiteral_0; - afterParserOrEnumRuleCall(); - + + current = this_IntLiteral_0; + afterParserOrEnumRuleCall(); + } break; case 2 : - // InternalETMap.g:1013:5: this_RealLiteral_1= ruleRealLiteral + // InternalETMap.g:994:3: this_RealLiteral_1= ruleRealLiteral { - - newCompositeNode(grammarAccess.getNumberLiteralAccess().getRealLiteralParserRuleCall_1()); - + + newCompositeNode(grammarAccess.getNumberLiteralAccess().getRealLiteralParserRuleCall_1()); + pushFollow(FOLLOW_2); this_RealLiteral_1=ruleRealLiteral(); state._fsp--; - - current = this_RealLiteral_1; - afterParserOrEnumRuleCall(); - + + current = this_RealLiteral_1; + afterParserOrEnumRuleCall(); + } break; @@ -2697,13 +2741,15 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -2712,7 +2758,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "entryRuleRealLiteral" - // InternalETMap.g:1029:1: entryRuleRealLiteral returns [EObject current=null] : iv_ruleRealLiteral= ruleRealLiteral EOF ; + // InternalETMap.g:1006:1: entryRuleRealLiteral returns [EObject current=null] : iv_ruleRealLiteral= ruleRealLiteral EOF ; public final EObject entryRuleRealLiteral() throws RecognitionException { EObject current = null; @@ -2720,8 +2766,8 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { try { - // InternalETMap.g:1030:2: (iv_ruleRealLiteral= ruleRealLiteral EOF ) - // InternalETMap.g:1031:2: iv_ruleRealLiteral= ruleRealLiteral EOF + // InternalETMap.g:1006:52: (iv_ruleRealLiteral= ruleRealLiteral EOF ) + // InternalETMap.g:1007:2: iv_ruleRealLiteral= ruleRealLiteral EOF { newCompositeNode(grammarAccess.getRealLiteralRule()); pushFollow(FOLLOW_1); @@ -2735,11 +2781,11 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -2748,58 +2794,59 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "ruleRealLiteral" - // InternalETMap.g:1038:1: ruleRealLiteral returns [EObject current=null] : ( () ( (lv_value_1_0= ruleReal ) ) ) ; + // InternalETMap.g:1013:1: ruleRealLiteral returns [EObject current=null] : ( () ( (lv_value_1_0= ruleReal ) ) ) ; public final EObject ruleRealLiteral() throws RecognitionException { EObject current = null; AntlrDatatypeRuleToken lv_value_1_0 = null; - enterRule(); - + + enterRule(); + try { - // InternalETMap.g:1041:28: ( ( () ( (lv_value_1_0= ruleReal ) ) ) ) - // InternalETMap.g:1042:1: ( () ( (lv_value_1_0= ruleReal ) ) ) + // InternalETMap.g:1019:2: ( ( () ( (lv_value_1_0= ruleReal ) ) ) ) + // InternalETMap.g:1020:2: ( () ( (lv_value_1_0= ruleReal ) ) ) { - // InternalETMap.g:1042:1: ( () ( (lv_value_1_0= ruleReal ) ) ) - // InternalETMap.g:1042:2: () ( (lv_value_1_0= ruleReal ) ) + // InternalETMap.g:1020:2: ( () ( (lv_value_1_0= ruleReal ) ) ) + // InternalETMap.g:1021:3: () ( (lv_value_1_0= ruleReal ) ) { - // InternalETMap.g:1042:2: () - // InternalETMap.g:1043:5: + // InternalETMap.g:1021:3: () + // InternalETMap.g:1022:4: { - current = forceCreateModelElement( - grammarAccess.getRealLiteralAccess().getRealLiteralAction_0(), - current); - + current = forceCreateModelElement( + grammarAccess.getRealLiteralAccess().getRealLiteralAction_0(), + current); + } - // InternalETMap.g:1048:2: ( (lv_value_1_0= ruleReal ) ) - // InternalETMap.g:1049:1: (lv_value_1_0= ruleReal ) + // InternalETMap.g:1028:3: ( (lv_value_1_0= ruleReal ) ) + // InternalETMap.g:1029:4: (lv_value_1_0= ruleReal ) { - // InternalETMap.g:1049:1: (lv_value_1_0= ruleReal ) - // InternalETMap.g:1050:3: lv_value_1_0= ruleReal + // InternalETMap.g:1029:4: (lv_value_1_0= ruleReal ) + // InternalETMap.g:1030:5: lv_value_1_0= ruleReal { - - newCompositeNode(grammarAccess.getRealLiteralAccess().getValueRealParserRuleCall_1_0()); - + + newCompositeNode(grammarAccess.getRealLiteralAccess().getValueRealParserRuleCall_1_0()); + pushFollow(FOLLOW_2); lv_value_1_0=ruleReal(); state._fsp--; - if (current==null) { - current = createModelElementForParent(grammarAccess.getRealLiteralRule()); - } - set( - current, - "value", - lv_value_1_0, - "org.eclipse.etrice.core.common.Base.Real"); - afterParserOrEnumRuleCall(); - + if (current==null) { + current = createModelElementForParent(grammarAccess.getRealLiteralRule()); + } + set( + current, + "value", + lv_value_1_0, + "org.eclipse.etrice.core.common.Base.Real"); + afterParserOrEnumRuleCall(); + } @@ -2812,13 +2859,15 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -2827,7 +2876,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "entryRuleIntLiteral" - // InternalETMap.g:1074:1: entryRuleIntLiteral returns [EObject current=null] : iv_ruleIntLiteral= ruleIntLiteral EOF ; + // InternalETMap.g:1051:1: entryRuleIntLiteral returns [EObject current=null] : iv_ruleIntLiteral= ruleIntLiteral EOF ; public final EObject entryRuleIntLiteral() throws RecognitionException { EObject current = null; @@ -2835,8 +2884,8 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { try { - // InternalETMap.g:1075:2: (iv_ruleIntLiteral= ruleIntLiteral EOF ) - // InternalETMap.g:1076:2: iv_ruleIntLiteral= ruleIntLiteral EOF + // InternalETMap.g:1051:51: (iv_ruleIntLiteral= ruleIntLiteral EOF ) + // InternalETMap.g:1052:2: iv_ruleIntLiteral= ruleIntLiteral EOF { newCompositeNode(grammarAccess.getIntLiteralRule()); pushFollow(FOLLOW_1); @@ -2850,11 +2899,11 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -2863,58 +2912,59 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "ruleIntLiteral" - // InternalETMap.g:1083:1: ruleIntLiteral returns [EObject current=null] : ( () ( (lv_value_1_0= ruleInteger ) ) ) ; + // InternalETMap.g:1058:1: ruleIntLiteral returns [EObject current=null] : ( () ( (lv_value_1_0= ruleInteger ) ) ) ; public final EObject ruleIntLiteral() throws RecognitionException { EObject current = null; AntlrDatatypeRuleToken lv_value_1_0 = null; - enterRule(); - + + enterRule(); + try { - // InternalETMap.g:1086:28: ( ( () ( (lv_value_1_0= ruleInteger ) ) ) ) - // InternalETMap.g:1087:1: ( () ( (lv_value_1_0= ruleInteger ) ) ) + // InternalETMap.g:1064:2: ( ( () ( (lv_value_1_0= ruleInteger ) ) ) ) + // InternalETMap.g:1065:2: ( () ( (lv_value_1_0= ruleInteger ) ) ) { - // InternalETMap.g:1087:1: ( () ( (lv_value_1_0= ruleInteger ) ) ) - // InternalETMap.g:1087:2: () ( (lv_value_1_0= ruleInteger ) ) + // InternalETMap.g:1065:2: ( () ( (lv_value_1_0= ruleInteger ) ) ) + // InternalETMap.g:1066:3: () ( (lv_value_1_0= ruleInteger ) ) { - // InternalETMap.g:1087:2: () - // InternalETMap.g:1088:5: + // InternalETMap.g:1066:3: () + // InternalETMap.g:1067:4: { - current = forceCreateModelElement( - grammarAccess.getIntLiteralAccess().getIntLiteralAction_0(), - current); - + current = forceCreateModelElement( + grammarAccess.getIntLiteralAccess().getIntLiteralAction_0(), + current); + } - // InternalETMap.g:1093:2: ( (lv_value_1_0= ruleInteger ) ) - // InternalETMap.g:1094:1: (lv_value_1_0= ruleInteger ) + // InternalETMap.g:1073:3: ( (lv_value_1_0= ruleInteger ) ) + // InternalETMap.g:1074:4: (lv_value_1_0= ruleInteger ) { - // InternalETMap.g:1094:1: (lv_value_1_0= ruleInteger ) - // InternalETMap.g:1095:3: lv_value_1_0= ruleInteger + // InternalETMap.g:1074:4: (lv_value_1_0= ruleInteger ) + // InternalETMap.g:1075:5: lv_value_1_0= ruleInteger { - - newCompositeNode(grammarAccess.getIntLiteralAccess().getValueIntegerParserRuleCall_1_0()); - + + newCompositeNode(grammarAccess.getIntLiteralAccess().getValueIntegerParserRuleCall_1_0()); + pushFollow(FOLLOW_2); lv_value_1_0=ruleInteger(); state._fsp--; - if (current==null) { - current = createModelElementForParent(grammarAccess.getIntLiteralRule()); - } - set( - current, - "value", - lv_value_1_0, - "org.eclipse.etrice.core.common.Base.Integer"); - afterParserOrEnumRuleCall(); - + if (current==null) { + current = createModelElementForParent(grammarAccess.getIntLiteralRule()); + } + set( + current, + "value", + lv_value_1_0, + "org.eclipse.etrice.core.common.Base.Integer"); + afterParserOrEnumRuleCall(); + } @@ -2927,13 +2977,15 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -2942,7 +2994,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "entryRuleStringLiteral" - // InternalETMap.g:1119:1: entryRuleStringLiteral returns [EObject current=null] : iv_ruleStringLiteral= ruleStringLiteral EOF ; + // InternalETMap.g:1096:1: entryRuleStringLiteral returns [EObject current=null] : iv_ruleStringLiteral= ruleStringLiteral EOF ; public final EObject entryRuleStringLiteral() throws RecognitionException { EObject current = null; @@ -2950,8 +3002,8 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { try { - // InternalETMap.g:1120:2: (iv_ruleStringLiteral= ruleStringLiteral EOF ) - // InternalETMap.g:1121:2: iv_ruleStringLiteral= ruleStringLiteral EOF + // InternalETMap.g:1096:54: (iv_ruleStringLiteral= ruleStringLiteral EOF ) + // InternalETMap.g:1097:2: iv_ruleStringLiteral= ruleStringLiteral EOF { newCompositeNode(grammarAccess.getStringLiteralRule()); pushFollow(FOLLOW_1); @@ -2965,11 +3017,11 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -2978,52 +3030,53 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "ruleStringLiteral" - // InternalETMap.g:1128:1: ruleStringLiteral returns [EObject current=null] : ( () ( (lv_value_1_0= RULE_STRING ) ) ) ; + // InternalETMap.g:1103:1: ruleStringLiteral returns [EObject current=null] : ( () ( (lv_value_1_0= RULE_STRING ) ) ) ; public final EObject ruleStringLiteral() throws RecognitionException { EObject current = null; Token lv_value_1_0=null; - enterRule(); - + + enterRule(); + try { - // InternalETMap.g:1131:28: ( ( () ( (lv_value_1_0= RULE_STRING ) ) ) ) - // InternalETMap.g:1132:1: ( () ( (lv_value_1_0= RULE_STRING ) ) ) + // InternalETMap.g:1109:2: ( ( () ( (lv_value_1_0= RULE_STRING ) ) ) ) + // InternalETMap.g:1110:2: ( () ( (lv_value_1_0= RULE_STRING ) ) ) { - // InternalETMap.g:1132:1: ( () ( (lv_value_1_0= RULE_STRING ) ) ) - // InternalETMap.g:1132:2: () ( (lv_value_1_0= RULE_STRING ) ) + // InternalETMap.g:1110:2: ( () ( (lv_value_1_0= RULE_STRING ) ) ) + // InternalETMap.g:1111:3: () ( (lv_value_1_0= RULE_STRING ) ) { - // InternalETMap.g:1132:2: () - // InternalETMap.g:1133:5: + // InternalETMap.g:1111:3: () + // InternalETMap.g:1112:4: { - current = forceCreateModelElement( - grammarAccess.getStringLiteralAccess().getStringLiteralAction_0(), - current); - + current = forceCreateModelElement( + grammarAccess.getStringLiteralAccess().getStringLiteralAction_0(), + current); + } - // InternalETMap.g:1138:2: ( (lv_value_1_0= RULE_STRING ) ) - // InternalETMap.g:1139:1: (lv_value_1_0= RULE_STRING ) + // InternalETMap.g:1118:3: ( (lv_value_1_0= RULE_STRING ) ) + // InternalETMap.g:1119:4: (lv_value_1_0= RULE_STRING ) { - // InternalETMap.g:1139:1: (lv_value_1_0= RULE_STRING ) - // InternalETMap.g:1140:3: lv_value_1_0= RULE_STRING + // InternalETMap.g:1119:4: (lv_value_1_0= RULE_STRING ) + // InternalETMap.g:1120:5: lv_value_1_0= RULE_STRING { lv_value_1_0=(Token)match(input,RULE_STRING,FOLLOW_2); - newLeafNode(lv_value_1_0, grammarAccess.getStringLiteralAccess().getValueSTRINGTerminalRuleCall_1_0()); - + newLeafNode(lv_value_1_0, grammarAccess.getStringLiteralAccess().getValueSTRINGTerminalRuleCall_1_0()); + - if (current==null) { - current = createModelElement(grammarAccess.getStringLiteralRule()); - } - setWithLastConsumed( - current, - "value", - lv_value_1_0, - "org.eclipse.xtext.common.Terminals.STRING"); - + if (current==null) { + current = createModelElement(grammarAccess.getStringLiteralRule()); + } + setWithLastConsumed( + current, + "value", + lv_value_1_0, + "org.eclipse.xtext.common.Terminals.STRING"); + } @@ -3036,13 +3089,15 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -3051,7 +3106,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "entryRuleInteger" - // InternalETMap.g:1164:1: entryRuleInteger returns [String current=null] : iv_ruleInteger= ruleInteger EOF ; + // InternalETMap.g:1140:1: entryRuleInteger returns [String current=null] : iv_ruleInteger= ruleInteger EOF ; public final String entryRuleInteger() throws RecognitionException { String current = null; @@ -3059,8 +3114,8 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { try { - // InternalETMap.g:1165:2: (iv_ruleInteger= ruleInteger EOF ) - // InternalETMap.g:1166:2: iv_ruleInteger= ruleInteger EOF + // InternalETMap.g:1140:47: (iv_ruleInteger= ruleInteger EOF ) + // InternalETMap.g:1141:2: iv_ruleInteger= ruleInteger EOF { newCompositeNode(grammarAccess.getIntegerRule()); pushFollow(FOLLOW_1); @@ -3074,11 +3129,11 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -3087,7 +3142,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "ruleInteger" - // InternalETMap.g:1173:1: ruleInteger returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT ) | this_HEX_3= RULE_HEX ) ; + // InternalETMap.g:1147:1: ruleInteger returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT ) | this_HEX_3= RULE_HEX ) ; public final AntlrDatatypeRuleToken ruleInteger() throws RecognitionException { AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); @@ -3095,13 +3150,14 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { Token this_INT_2=null; Token this_HEX_3=null; - enterRule(); - + + enterRule(); + try { - // InternalETMap.g:1176:28: ( ( ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT ) | this_HEX_3= RULE_HEX ) ) - // InternalETMap.g:1177:1: ( ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT ) | this_HEX_3= RULE_HEX ) + // InternalETMap.g:1153:2: ( ( ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT ) | this_HEX_3= RULE_HEX ) ) + // InternalETMap.g:1154:2: ( ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT ) | this_HEX_3= RULE_HEX ) { - // InternalETMap.g:1177:1: ( ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT ) | this_HEX_3= RULE_HEX ) + // InternalETMap.g:1154:2: ( ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT ) | this_HEX_3= RULE_HEX ) int alt18=2; int LA18_0 = input.LA(1); @@ -3119,12 +3175,12 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } switch (alt18) { case 1 : - // InternalETMap.g:1177:2: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT ) + // InternalETMap.g:1155:3: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT ) { - // InternalETMap.g:1177:2: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT ) - // InternalETMap.g:1177:3: (kw= '+' | kw= '-' )? this_INT_2= RULE_INT + // InternalETMap.g:1155:3: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT ) + // InternalETMap.g:1156:4: (kw= '+' | kw= '-' )? this_INT_2= RULE_INT { - // InternalETMap.g:1177:3: (kw= '+' | kw= '-' )? + // InternalETMap.g:1156:4: (kw= '+' | kw= '-' )? int alt17=3; int LA17_0 = input.LA(1); @@ -3136,24 +3192,24 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } switch (alt17) { case 1 : - // InternalETMap.g:1178:2: kw= '+' + // InternalETMap.g:1157:5: kw= '+' { kw=(Token)match(input,34,FOLLOW_22); - current.merge(kw); - newLeafNode(kw, grammarAccess.getIntegerAccess().getPlusSignKeyword_0_0_0()); - + current.merge(kw); + newLeafNode(kw, grammarAccess.getIntegerAccess().getPlusSignKeyword_0_0_0()); + } break; case 2 : - // InternalETMap.g:1185:2: kw= '-' + // InternalETMap.g:1163:5: kw= '-' { kw=(Token)match(input,35,FOLLOW_22); - current.merge(kw); - newLeafNode(kw, grammarAccess.getIntegerAccess().getHyphenMinusKeyword_0_0_1()); - + current.merge(kw); + newLeafNode(kw, grammarAccess.getIntegerAccess().getHyphenMinusKeyword_0_0_1()); + } break; @@ -3162,11 +3218,11 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { this_INT_2=(Token)match(input,RULE_INT,FOLLOW_2); - current.merge(this_INT_2); - - - newLeafNode(this_INT_2, grammarAccess.getIntegerAccess().getINTTerminalRuleCall_0_1()); - + current.merge(this_INT_2); + + + newLeafNode(this_INT_2, grammarAccess.getIntegerAccess().getINTTerminalRuleCall_0_1()); + } @@ -3174,15 +3230,15 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } break; case 2 : - // InternalETMap.g:1198:10: this_HEX_3= RULE_HEX + // InternalETMap.g:1178:3: this_HEX_3= RULE_HEX { this_HEX_3=(Token)match(input,RULE_HEX,FOLLOW_2); - current.merge(this_HEX_3); - - - newLeafNode(this_HEX_3, grammarAccess.getIntegerAccess().getHEXTerminalRuleCall_1()); - + current.merge(this_HEX_3); + + + newLeafNode(this_HEX_3, grammarAccess.getIntegerAccess().getHEXTerminalRuleCall_1()); + } break; @@ -3192,13 +3248,15 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -3207,7 +3265,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "entryRuleReal" - // InternalETMap.g:1213:1: entryRuleReal returns [String current=null] : iv_ruleReal= ruleReal EOF ; + // InternalETMap.g:1189:1: entryRuleReal returns [String current=null] : iv_ruleReal= ruleReal EOF ; public final String entryRuleReal() throws RecognitionException { String current = null; @@ -3215,8 +3273,8 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { try { - // InternalETMap.g:1214:2: (iv_ruleReal= ruleReal EOF ) - // InternalETMap.g:1215:2: iv_ruleReal= ruleReal EOF + // InternalETMap.g:1189:44: (iv_ruleReal= ruleReal EOF ) + // InternalETMap.g:1190:2: iv_ruleReal= ruleReal EOF { newCompositeNode(grammarAccess.getRealRule()); pushFollow(FOLLOW_1); @@ -3230,11 +3288,11 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -3243,7 +3301,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "ruleReal" - // InternalETMap.g:1222:1: ruleReal returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_Decimal_0= ruleDecimal | this_DecimalExp_1= ruleDecimalExp ) ; + // InternalETMap.g:1196:1: ruleReal returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_Decimal_0= ruleDecimal | this_DecimalExp_1= ruleDecimalExp ) ; public final AntlrDatatypeRuleToken ruleReal() throws RecognitionException { AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); @@ -3252,13 +3310,14 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { AntlrDatatypeRuleToken this_DecimalExp_1 = null; - enterRule(); - + + enterRule(); + try { - // InternalETMap.g:1225:28: ( (this_Decimal_0= ruleDecimal | this_DecimalExp_1= ruleDecimalExp ) ) - // InternalETMap.g:1226:1: (this_Decimal_0= ruleDecimal | this_DecimalExp_1= ruleDecimalExp ) + // InternalETMap.g:1202:2: ( (this_Decimal_0= ruleDecimal | this_DecimalExp_1= ruleDecimalExp ) ) + // InternalETMap.g:1203:2: (this_Decimal_0= ruleDecimal | this_DecimalExp_1= ruleDecimalExp ) { - // InternalETMap.g:1226:1: (this_Decimal_0= ruleDecimal | this_DecimalExp_1= ruleDecimalExp ) + // InternalETMap.g:1203:2: (this_Decimal_0= ruleDecimal | this_DecimalExp_1= ruleDecimalExp ) int alt19=2; switch ( input.LA(1) ) { case 34: @@ -3404,42 +3463,42 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { switch (alt19) { case 1 : - // InternalETMap.g:1227:5: this_Decimal_0= ruleDecimal + // InternalETMap.g:1204:3: this_Decimal_0= ruleDecimal { - - newCompositeNode(grammarAccess.getRealAccess().getDecimalParserRuleCall_0()); - + + newCompositeNode(grammarAccess.getRealAccess().getDecimalParserRuleCall_0()); + pushFollow(FOLLOW_2); this_Decimal_0=ruleDecimal(); state._fsp--; - current.merge(this_Decimal_0); - - - afterParserOrEnumRuleCall(); - + current.merge(this_Decimal_0); + + + afterParserOrEnumRuleCall(); + } break; case 2 : - // InternalETMap.g:1239:5: this_DecimalExp_1= ruleDecimalExp + // InternalETMap.g:1215:3: this_DecimalExp_1= ruleDecimalExp { - - newCompositeNode(grammarAccess.getRealAccess().getDecimalExpParserRuleCall_1()); - + + newCompositeNode(grammarAccess.getRealAccess().getDecimalExpParserRuleCall_1()); + pushFollow(FOLLOW_2); this_DecimalExp_1=ruleDecimalExp(); state._fsp--; - current.merge(this_DecimalExp_1); - - - afterParserOrEnumRuleCall(); - + current.merge(this_DecimalExp_1); + + + afterParserOrEnumRuleCall(); + } break; @@ -3449,13 +3508,15 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -3464,19 +3525,19 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "entryRuleDecimal" - // InternalETMap.g:1257:1: entryRuleDecimal returns [String current=null] : iv_ruleDecimal= ruleDecimal EOF ; + // InternalETMap.g:1229:1: entryRuleDecimal returns [String current=null] : iv_ruleDecimal= ruleDecimal EOF ; public final String entryRuleDecimal() throws RecognitionException { String current = null; AntlrDatatypeRuleToken iv_ruleDecimal = null; - - HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); - + + HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); + try { - // InternalETMap.g:1261:2: (iv_ruleDecimal= ruleDecimal EOF ) - // InternalETMap.g:1262:2: iv_ruleDecimal= ruleDecimal EOF + // InternalETMap.g:1231:2: (iv_ruleDecimal= ruleDecimal EOF ) + // InternalETMap.g:1232:2: iv_ruleDecimal= ruleDecimal EOF { newCompositeNode(grammarAccess.getDecimalRule()); pushFollow(FOLLOW_1); @@ -3490,11 +3551,11 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { myHiddenTokenState.restore(); @@ -3506,7 +3567,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "ruleDecimal" - // InternalETMap.g:1272:1: ruleDecimal returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT ) ; + // InternalETMap.g:1241:1: ruleDecimal returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT ) ; public final AntlrDatatypeRuleToken ruleDecimal() throws RecognitionException { AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); @@ -3514,17 +3575,18 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { Token this_INT_2=null; Token this_INT_4=null; - enterRule(); - HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); - + + enterRule(); + HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); + try { - // InternalETMap.g:1276:28: ( ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT ) ) - // InternalETMap.g:1277:1: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT ) + // InternalETMap.g:1248:2: ( ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT ) ) + // InternalETMap.g:1249:2: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT ) { - // InternalETMap.g:1277:1: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT ) - // InternalETMap.g:1277:2: (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT + // InternalETMap.g:1249:2: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT ) + // InternalETMap.g:1250:3: (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT { - // InternalETMap.g:1277:2: (kw= '+' | kw= '-' )? + // InternalETMap.g:1250:3: (kw= '+' | kw= '-' )? int alt20=3; int LA20_0 = input.LA(1); @@ -3536,24 +3598,24 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } switch (alt20) { case 1 : - // InternalETMap.g:1278:2: kw= '+' + // InternalETMap.g:1251:4: kw= '+' { kw=(Token)match(input,34,FOLLOW_22); - current.merge(kw); - newLeafNode(kw, grammarAccess.getDecimalAccess().getPlusSignKeyword_0_0()); - + current.merge(kw); + newLeafNode(kw, grammarAccess.getDecimalAccess().getPlusSignKeyword_0_0()); + } break; case 2 : - // InternalETMap.g:1285:2: kw= '-' + // InternalETMap.g:1257:4: kw= '-' { kw=(Token)match(input,35,FOLLOW_22); - current.merge(kw); - newLeafNode(kw, grammarAccess.getDecimalAccess().getHyphenMinusKeyword_0_1()); - + current.merge(kw); + newLeafNode(kw, grammarAccess.getDecimalAccess().getHyphenMinusKeyword_0_1()); + } break; @@ -3562,36 +3624,38 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { this_INT_2=(Token)match(input,RULE_INT,FOLLOW_23); - current.merge(this_INT_2); - - - newLeafNode(this_INT_2, grammarAccess.getDecimalAccess().getINTTerminalRuleCall_1()); - + current.merge(this_INT_2); + + + newLeafNode(this_INT_2, grammarAccess.getDecimalAccess().getINTTerminalRuleCall_1()); + kw=(Token)match(input,36,FOLLOW_22); - current.merge(kw); - newLeafNode(kw, grammarAccess.getDecimalAccess().getFullStopKeyword_2()); - + current.merge(kw); + newLeafNode(kw, grammarAccess.getDecimalAccess().getFullStopKeyword_2()); + this_INT_4=(Token)match(input,RULE_INT,FOLLOW_2); - current.merge(this_INT_4); - - - newLeafNode(this_INT_4, grammarAccess.getDecimalAccess().getINTTerminalRuleCall_3()); - + current.merge(this_INT_4); + + + newLeafNode(this_INT_4, grammarAccess.getDecimalAccess().getINTTerminalRuleCall_3()); + } } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { myHiddenTokenState.restore(); @@ -3603,19 +3667,19 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "entryRuleDecimalExp" - // InternalETMap.g:1321:1: entryRuleDecimalExp returns [String current=null] : iv_ruleDecimalExp= ruleDecimalExp EOF ; + // InternalETMap.g:1289:1: entryRuleDecimalExp returns [String current=null] : iv_ruleDecimalExp= ruleDecimalExp EOF ; public final String entryRuleDecimalExp() throws RecognitionException { String current = null; AntlrDatatypeRuleToken iv_ruleDecimalExp = null; - - HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); - + + HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); + try { - // InternalETMap.g:1325:2: (iv_ruleDecimalExp= ruleDecimalExp EOF ) - // InternalETMap.g:1326:2: iv_ruleDecimalExp= ruleDecimalExp EOF + // InternalETMap.g:1291:2: (iv_ruleDecimalExp= ruleDecimalExp EOF ) + // InternalETMap.g:1292:2: iv_ruleDecimalExp= ruleDecimalExp EOF { newCompositeNode(grammarAccess.getDecimalExpRule()); pushFollow(FOLLOW_1); @@ -3629,11 +3693,11 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { myHiddenTokenState.restore(); @@ -3645,7 +3709,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "ruleDecimalExp" - // InternalETMap.g:1336:1: ruleDecimalExp returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT (kw= 'e' | kw= 'E' ) (kw= '+' | kw= '-' )? this_INT_9= RULE_INT ) ; + // InternalETMap.g:1301:1: ruleDecimalExp returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT (kw= 'e' | kw= 'E' ) (kw= '+' | kw= '-' )? this_INT_9= RULE_INT ) ; public final AntlrDatatypeRuleToken ruleDecimalExp() throws RecognitionException { AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); @@ -3654,17 +3718,18 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { Token this_INT_4=null; Token this_INT_9=null; - enterRule(); - HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); - + + enterRule(); + HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); + try { - // InternalETMap.g:1340:28: ( ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT (kw= 'e' | kw= 'E' ) (kw= '+' | kw= '-' )? this_INT_9= RULE_INT ) ) - // InternalETMap.g:1341:1: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT (kw= 'e' | kw= 'E' ) (kw= '+' | kw= '-' )? this_INT_9= RULE_INT ) + // InternalETMap.g:1308:2: ( ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT (kw= 'e' | kw= 'E' ) (kw= '+' | kw= '-' )? this_INT_9= RULE_INT ) ) + // InternalETMap.g:1309:2: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT (kw= 'e' | kw= 'E' ) (kw= '+' | kw= '-' )? this_INT_9= RULE_INT ) { - // InternalETMap.g:1341:1: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT (kw= 'e' | kw= 'E' ) (kw= '+' | kw= '-' )? this_INT_9= RULE_INT ) - // InternalETMap.g:1341:2: (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT (kw= 'e' | kw= 'E' ) (kw= '+' | kw= '-' )? this_INT_9= RULE_INT + // InternalETMap.g:1309:2: ( (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT (kw= 'e' | kw= 'E' ) (kw= '+' | kw= '-' )? this_INT_9= RULE_INT ) + // InternalETMap.g:1310:3: (kw= '+' | kw= '-' )? this_INT_2= RULE_INT kw= '.' this_INT_4= RULE_INT (kw= 'e' | kw= 'E' ) (kw= '+' | kw= '-' )? this_INT_9= RULE_INT { - // InternalETMap.g:1341:2: (kw= '+' | kw= '-' )? + // InternalETMap.g:1310:3: (kw= '+' | kw= '-' )? int alt21=3; int LA21_0 = input.LA(1); @@ -3676,24 +3741,24 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } switch (alt21) { case 1 : - // InternalETMap.g:1342:2: kw= '+' + // InternalETMap.g:1311:4: kw= '+' { kw=(Token)match(input,34,FOLLOW_22); - current.merge(kw); - newLeafNode(kw, grammarAccess.getDecimalExpAccess().getPlusSignKeyword_0_0()); - + current.merge(kw); + newLeafNode(kw, grammarAccess.getDecimalExpAccess().getPlusSignKeyword_0_0()); + } break; case 2 : - // InternalETMap.g:1349:2: kw= '-' + // InternalETMap.g:1317:4: kw= '-' { kw=(Token)match(input,35,FOLLOW_22); - current.merge(kw); - newLeafNode(kw, grammarAccess.getDecimalExpAccess().getHyphenMinusKeyword_0_1()); - + current.merge(kw); + newLeafNode(kw, grammarAccess.getDecimalExpAccess().getHyphenMinusKeyword_0_1()); + } break; @@ -3702,24 +3767,24 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { this_INT_2=(Token)match(input,RULE_INT,FOLLOW_23); - current.merge(this_INT_2); - - - newLeafNode(this_INT_2, grammarAccess.getDecimalExpAccess().getINTTerminalRuleCall_1()); - + current.merge(this_INT_2); + + + newLeafNode(this_INT_2, grammarAccess.getDecimalExpAccess().getINTTerminalRuleCall_1()); + kw=(Token)match(input,36,FOLLOW_22); - current.merge(kw); - newLeafNode(kw, grammarAccess.getDecimalExpAccess().getFullStopKeyword_2()); - + current.merge(kw); + newLeafNode(kw, grammarAccess.getDecimalExpAccess().getFullStopKeyword_2()); + this_INT_4=(Token)match(input,RULE_INT,FOLLOW_24); - current.merge(this_INT_4); - - - newLeafNode(this_INT_4, grammarAccess.getDecimalExpAccess().getINTTerminalRuleCall_3()); - - // InternalETMap.g:1374:1: (kw= 'e' | kw= 'E' ) + current.merge(this_INT_4); + + + newLeafNode(this_INT_4, grammarAccess.getDecimalExpAccess().getINTTerminalRuleCall_3()); + + // InternalETMap.g:1342:3: (kw= 'e' | kw= 'E' ) int alt22=2; int LA22_0 = input.LA(1); @@ -3737,31 +3802,31 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } switch (alt22) { case 1 : - // InternalETMap.g:1375:2: kw= 'e' + // InternalETMap.g:1343:4: kw= 'e' { kw=(Token)match(input,37,FOLLOW_25); - current.merge(kw); - newLeafNode(kw, grammarAccess.getDecimalExpAccess().getEKeyword_4_0()); - + current.merge(kw); + newLeafNode(kw, grammarAccess.getDecimalExpAccess().getEKeyword_4_0()); + } break; case 2 : - // InternalETMap.g:1382:2: kw= 'E' + // InternalETMap.g:1349:4: kw= 'E' { kw=(Token)match(input,38,FOLLOW_25); - current.merge(kw); - newLeafNode(kw, grammarAccess.getDecimalExpAccess().getEKeyword_4_1()); - + current.merge(kw); + newLeafNode(kw, grammarAccess.getDecimalExpAccess().getEKeyword_4_1()); + } break; } - // InternalETMap.g:1387:2: (kw= '+' | kw= '-' )? + // InternalETMap.g:1355:3: (kw= '+' | kw= '-' )? int alt23=3; int LA23_0 = input.LA(1); @@ -3773,24 +3838,24 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } switch (alt23) { case 1 : - // InternalETMap.g:1388:2: kw= '+' + // InternalETMap.g:1356:4: kw= '+' { kw=(Token)match(input,34,FOLLOW_22); - current.merge(kw); - newLeafNode(kw, grammarAccess.getDecimalExpAccess().getPlusSignKeyword_5_0()); - + current.merge(kw); + newLeafNode(kw, grammarAccess.getDecimalExpAccess().getPlusSignKeyword_5_0()); + } break; case 2 : - // InternalETMap.g:1395:2: kw= '-' + // InternalETMap.g:1362:4: kw= '-' { kw=(Token)match(input,35,FOLLOW_22); - current.merge(kw); - newLeafNode(kw, grammarAccess.getDecimalExpAccess().getHyphenMinusKeyword_5_1()); - + current.merge(kw); + newLeafNode(kw, grammarAccess.getDecimalExpAccess().getHyphenMinusKeyword_5_1()); + } break; @@ -3799,24 +3864,26 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { this_INT_9=(Token)match(input,RULE_INT,FOLLOW_2); - current.merge(this_INT_9); - - - newLeafNode(this_INT_9, grammarAccess.getDecimalExpAccess().getINTTerminalRuleCall_6()); - + current.merge(this_INT_9); + + + newLeafNode(this_INT_9, grammarAccess.getDecimalExpAccess().getINTTerminalRuleCall_6()); + } } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { myHiddenTokenState.restore(); @@ -3828,7 +3895,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "entryRuleFQN" - // InternalETMap.g:1418:1: entryRuleFQN returns [String current=null] : iv_ruleFQN= ruleFQN EOF ; + // InternalETMap.g:1382:1: entryRuleFQN returns [String current=null] : iv_ruleFQN= ruleFQN EOF ; public final String entryRuleFQN() throws RecognitionException { String current = null; @@ -3836,8 +3903,8 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { try { - // InternalETMap.g:1419:2: (iv_ruleFQN= ruleFQN EOF ) - // InternalETMap.g:1420:2: iv_ruleFQN= ruleFQN EOF + // InternalETMap.g:1382:43: (iv_ruleFQN= ruleFQN EOF ) + // InternalETMap.g:1383:2: iv_ruleFQN= ruleFQN EOF { newCompositeNode(grammarAccess.getFQNRule()); pushFollow(FOLLOW_1); @@ -3851,11 +3918,11 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -3864,7 +3931,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "ruleFQN" - // InternalETMap.g:1427:1: ruleFQN returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) ; + // InternalETMap.g:1389:1: ruleFQN returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) ; public final AntlrDatatypeRuleToken ruleFQN() throws RecognitionException { AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); @@ -3872,23 +3939,24 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { Token kw=null; Token this_ID_2=null; - enterRule(); - + + enterRule(); + try { - // InternalETMap.g:1430:28: ( (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) ) - // InternalETMap.g:1431:1: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) + // InternalETMap.g:1395:2: ( (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) ) + // InternalETMap.g:1396:2: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) { - // InternalETMap.g:1431:1: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) - // InternalETMap.g:1431:6: this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* + // InternalETMap.g:1396:2: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) + // InternalETMap.g:1397:3: this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* { this_ID_0=(Token)match(input,RULE_ID,FOLLOW_26); - current.merge(this_ID_0); - - - newLeafNode(this_ID_0, grammarAccess.getFQNAccess().getIDTerminalRuleCall_0()); - - // InternalETMap.g:1438:1: (kw= '.' this_ID_2= RULE_ID )* + current.merge(this_ID_0); + + + newLeafNode(this_ID_0, grammarAccess.getFQNAccess().getIDTerminalRuleCall_0()); + + // InternalETMap.g:1404:3: (kw= '.' this_ID_2= RULE_ID )* loop24: do { int alt24=2; @@ -3901,20 +3969,20 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { switch (alt24) { case 1 : - // InternalETMap.g:1439:2: kw= '.' this_ID_2= RULE_ID + // InternalETMap.g:1405:4: kw= '.' this_ID_2= RULE_ID { kw=(Token)match(input,36,FOLLOW_3); - current.merge(kw); - newLeafNode(kw, grammarAccess.getFQNAccess().getFullStopKeyword_1_0()); - + current.merge(kw); + newLeafNode(kw, grammarAccess.getFQNAccess().getFullStopKeyword_1_0()); + this_ID_2=(Token)match(input,RULE_ID,FOLLOW_26); - current.merge(this_ID_2); - - - newLeafNode(this_ID_2, grammarAccess.getFQNAccess().getIDTerminalRuleCall_1_1()); - + current.merge(this_ID_2); + + + newLeafNode(this_ID_2, grammarAccess.getFQNAccess().getIDTerminalRuleCall_1_1()); + } break; @@ -3930,13 +3998,15 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; @@ -3945,7 +4015,7 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { // $ANTLR start "ruleLiteralType" - // InternalETMap.g:1459:1: ruleLiteralType returns [Enumerator current=null] : ( (enumLiteral_0= 'ptBoolean' ) | (enumLiteral_1= 'ptInteger' ) | (enumLiteral_2= 'ptReal' ) | (enumLiteral_3= 'ptCharacter' ) ) ; + // InternalETMap.g:1422:1: ruleLiteralType returns [Enumerator current=null] : ( (enumLiteral_0= 'ptBoolean' ) | (enumLiteral_1= 'ptInteger' ) | (enumLiteral_2= 'ptReal' ) | (enumLiteral_3= 'ptCharacter' ) ) ; public final Enumerator ruleLiteralType() throws RecognitionException { Enumerator current = null; @@ -3954,12 +4024,14 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { Token enumLiteral_2=null; Token enumLiteral_3=null; - enterRule(); + + enterRule(); + try { - // InternalETMap.g:1461:28: ( ( (enumLiteral_0= 'ptBoolean' ) | (enumLiteral_1= 'ptInteger' ) | (enumLiteral_2= 'ptReal' ) | (enumLiteral_3= 'ptCharacter' ) ) ) - // InternalETMap.g:1462:1: ( (enumLiteral_0= 'ptBoolean' ) | (enumLiteral_1= 'ptInteger' ) | (enumLiteral_2= 'ptReal' ) | (enumLiteral_3= 'ptCharacter' ) ) + // InternalETMap.g:1428:2: ( ( (enumLiteral_0= 'ptBoolean' ) | (enumLiteral_1= 'ptInteger' ) | (enumLiteral_2= 'ptReal' ) | (enumLiteral_3= 'ptCharacter' ) ) ) + // InternalETMap.g:1429:2: ( (enumLiteral_0= 'ptBoolean' ) | (enumLiteral_1= 'ptInteger' ) | (enumLiteral_2= 'ptReal' ) | (enumLiteral_3= 'ptCharacter' ) ) { - // InternalETMap.g:1462:1: ( (enumLiteral_0= 'ptBoolean' ) | (enumLiteral_1= 'ptInteger' ) | (enumLiteral_2= 'ptReal' ) | (enumLiteral_3= 'ptCharacter' ) ) + // InternalETMap.g:1429:2: ( (enumLiteral_0= 'ptBoolean' ) | (enumLiteral_1= 'ptInteger' ) | (enumLiteral_2= 'ptReal' ) | (enumLiteral_3= 'ptCharacter' ) ) int alt25=4; switch ( input.LA(1) ) { case 39: @@ -3991,16 +4063,16 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { switch (alt25) { case 1 : - // InternalETMap.g:1462:2: (enumLiteral_0= 'ptBoolean' ) + // InternalETMap.g:1430:3: (enumLiteral_0= 'ptBoolean' ) { - // InternalETMap.g:1462:2: (enumLiteral_0= 'ptBoolean' ) - // InternalETMap.g:1462:4: enumLiteral_0= 'ptBoolean' + // InternalETMap.g:1430:3: (enumLiteral_0= 'ptBoolean' ) + // InternalETMap.g:1431:4: enumLiteral_0= 'ptBoolean' { enumLiteral_0=(Token)match(input,39,FOLLOW_2); - current = grammarAccess.getLiteralTypeAccess().getBOOLEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_0, grammarAccess.getLiteralTypeAccess().getBOOLEnumLiteralDeclaration_0()); - + current = grammarAccess.getLiteralTypeAccess().getBOOLEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_0, grammarAccess.getLiteralTypeAccess().getBOOLEnumLiteralDeclaration_0()); + } @@ -4008,16 +4080,16 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } break; case 2 : - // InternalETMap.g:1468:6: (enumLiteral_1= 'ptInteger' ) + // InternalETMap.g:1438:3: (enumLiteral_1= 'ptInteger' ) { - // InternalETMap.g:1468:6: (enumLiteral_1= 'ptInteger' ) - // InternalETMap.g:1468:8: enumLiteral_1= 'ptInteger' + // InternalETMap.g:1438:3: (enumLiteral_1= 'ptInteger' ) + // InternalETMap.g:1439:4: enumLiteral_1= 'ptInteger' { enumLiteral_1=(Token)match(input,40,FOLLOW_2); - current = grammarAccess.getLiteralTypeAccess().getINTEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_1, grammarAccess.getLiteralTypeAccess().getINTEnumLiteralDeclaration_1()); - + current = grammarAccess.getLiteralTypeAccess().getINTEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_1, grammarAccess.getLiteralTypeAccess().getINTEnumLiteralDeclaration_1()); + } @@ -4025,16 +4097,16 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } break; case 3 : - // InternalETMap.g:1474:6: (enumLiteral_2= 'ptReal' ) + // InternalETMap.g:1446:3: (enumLiteral_2= 'ptReal' ) { - // InternalETMap.g:1474:6: (enumLiteral_2= 'ptReal' ) - // InternalETMap.g:1474:8: enumLiteral_2= 'ptReal' + // InternalETMap.g:1446:3: (enumLiteral_2= 'ptReal' ) + // InternalETMap.g:1447:4: enumLiteral_2= 'ptReal' { enumLiteral_2=(Token)match(input,41,FOLLOW_2); - current = grammarAccess.getLiteralTypeAccess().getREALEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_2, grammarAccess.getLiteralTypeAccess().getREALEnumLiteralDeclaration_2()); - + current = grammarAccess.getLiteralTypeAccess().getREALEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_2, grammarAccess.getLiteralTypeAccess().getREALEnumLiteralDeclaration_2()); + } @@ -4042,16 +4114,16 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } break; case 4 : - // InternalETMap.g:1480:6: (enumLiteral_3= 'ptCharacter' ) + // InternalETMap.g:1454:3: (enumLiteral_3= 'ptCharacter' ) { - // InternalETMap.g:1480:6: (enumLiteral_3= 'ptCharacter' ) - // InternalETMap.g:1480:8: enumLiteral_3= 'ptCharacter' + // InternalETMap.g:1454:3: (enumLiteral_3= 'ptCharacter' ) + // InternalETMap.g:1455:4: enumLiteral_3= 'ptCharacter' { enumLiteral_3=(Token)match(input,42,FOLLOW_2); - current = grammarAccess.getLiteralTypeAccess().getCHAREnumLiteralDeclaration_3().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_3, grammarAccess.getLiteralTypeAccess().getCHAREnumLiteralDeclaration_3()); - + current = grammarAccess.getLiteralTypeAccess().getCHAREnumLiteralDeclaration_3().getEnumLiteral().getInstance(); + newLeafNode(enumLiteral_3, grammarAccess.getLiteralTypeAccess().getCHAREnumLiteralDeclaration_3()); + } @@ -4064,13 +4136,15 @@ public class InternalETMapParser extends AbstractInternalAntlrParser { } - leaveRule(); + + leaveRule(); + } - - catch (RecognitionException re) { - recover(input,re); + + catch (RecognitionException re) { + recover(input,re); appendSkippedTokens(); - } + } finally { } return current; diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/scoping/AbstractETMapScopeProvider.java b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/scoping/AbstractETMapScopeProvider.java new file mode 100644 index 000000000..eaa477f56 --- /dev/null +++ b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/scoping/AbstractETMapScopeProvider.java @@ -0,0 +1,9 @@ +/* + * generated by Xtext + */ +package org.eclipse.etrice.core.etmap.scoping; + +import org.eclipse.etrice.core.common.scoping.BaseScopeProvider; + +public abstract class AbstractETMapScopeProvider extends BaseScopeProvider { +} diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/services/ETMapGrammarAccess.java b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/services/ETMapGrammarAccess.java index 91458b050..42e1fe55c 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/services/ETMapGrammarAccess.java +++ b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/services/ETMapGrammarAccess.java @@ -3,21 +3,26 @@ */ package org.eclipse.etrice.core.etmap.services; -import com.google.inject.Singleton; import com.google.inject.Inject; - +import com.google.inject.Singleton; import java.util.List; - -import org.eclipse.xtext.*; -import org.eclipse.xtext.service.GrammarProvider; -import org.eclipse.xtext.service.AbstractElementFinder.*; - import org.eclipse.etrice.core.common.services.BaseGrammarAccess; +import org.eclipse.xtext.Assignment; +import org.eclipse.xtext.CrossReference; +import org.eclipse.xtext.EnumRule; +import org.eclipse.xtext.Grammar; +import org.eclipse.xtext.GrammarUtil; +import org.eclipse.xtext.Group; +import org.eclipse.xtext.Keyword; +import org.eclipse.xtext.ParserRule; +import org.eclipse.xtext.RuleCall; +import org.eclipse.xtext.TerminalRule; import org.eclipse.xtext.common.services.TerminalsGrammarAccess; +import org.eclipse.xtext.service.AbstractElementFinder; +import org.eclipse.xtext.service.GrammarProvider; @Singleton -public class ETMapGrammarAccess extends AbstractGrammarElementFinder { - +public class ETMapGrammarAccess extends AbstractElementFinder.AbstractGrammarElementFinder { public class MappingModelElements extends AbstractParserRuleElementFinder { private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.etrice.core.etmap.ETMap.MappingModel"); @@ -33,43 +38,46 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cRightCurlyBracketKeyword_5 = (Keyword)cGroup.eContents().get(5); //MappingModel: - // 'MappingModel' name=FQN '{' - // imports+=Import* - // mappings+=Mapping* - // '}'; + // 'MappingModel' name=FQN '{' + // (imports+=Import)* + // mappings+=Mapping* + // '}' + //; @Override public ParserRule getRule() { return rule; } - - //'MappingModel' name=FQN '{' imports+=Import* mappings+=Mapping* '}' + + //'MappingModel' name=FQN '{' + // (imports+=Import)* + // mappings+=Mapping* + //'}' public Group getGroup() { return cGroup; } - + //'MappingModel' public Keyword getMappingModelKeyword_0() { return cMappingModelKeyword_0; } - + //name=FQN public Assignment getNameAssignment_1() { return cNameAssignment_1; } - + //FQN public RuleCall getNameFQNParserRuleCall_1_0() { return cNameFQNParserRuleCall_1_0; } - + //'{' public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; } - - //imports+=Import* + + //(imports+=Import)* public Assignment getImportsAssignment_3() { return cImportsAssignment_3; } - + //Import public RuleCall getImportsImportParserRuleCall_3_0() { return cImportsImportParserRuleCall_3_0; } - + //mappings+=Mapping* public Assignment getMappingsAssignment_4() { return cMappingsAssignment_4; } - + //Mapping public RuleCall getMappingsMappingParserRuleCall_4_0() { return cMappingsMappingParserRuleCall_4_0; } - + //'}' public Keyword getRightCurlyBracketKeyword_5() { return cRightCurlyBracketKeyword_5; } } - public class MappingElements extends AbstractParserRuleElementFinder { private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.etrice.core.etmap.ETMap.Mapping"); private final Group cGroup = (Group)rule.eContents().get(1); @@ -87,52 +95,53 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cRightCurlyBracketKeyword_6 = (Keyword)cGroup.eContents().get(6); //Mapping: - // 'Mapping' logicalSys=[room::LogicalSystem|FQN] '->' physicalSys=[phys::PhysicalSystem|FQN] '{' - // subsysMappings+=SubSystemMapping* - // '}'; + // 'Mapping' logicalSys=[room::LogicalSystem|FQN] '->' physicalSys=[phys::PhysicalSystem|FQN] '{' + // subsysMappings+=SubSystemMapping* + // '}' + //; @Override public ParserRule getRule() { return rule; } - + //'Mapping' logicalSys=[room::LogicalSystem|FQN] '->' physicalSys=[phys::PhysicalSystem|FQN] '{' - //subsysMappings+=SubSystemMapping* '}' + // subsysMappings+=SubSystemMapping* + //'}' public Group getGroup() { return cGroup; } - + //'Mapping' public Keyword getMappingKeyword_0() { return cMappingKeyword_0; } - + //logicalSys=[room::LogicalSystem|FQN] public Assignment getLogicalSysAssignment_1() { return cLogicalSysAssignment_1; } - + //[room::LogicalSystem|FQN] public CrossReference getLogicalSysLogicalSystemCrossReference_1_0() { return cLogicalSysLogicalSystemCrossReference_1_0; } - + //FQN public RuleCall getLogicalSysLogicalSystemFQNParserRuleCall_1_0_1() { return cLogicalSysLogicalSystemFQNParserRuleCall_1_0_1; } - + //'->' public Keyword getHyphenMinusGreaterThanSignKeyword_2() { return cHyphenMinusGreaterThanSignKeyword_2; } - + //physicalSys=[phys::PhysicalSystem|FQN] public Assignment getPhysicalSysAssignment_3() { return cPhysicalSysAssignment_3; } - + //[phys::PhysicalSystem|FQN] public CrossReference getPhysicalSysPhysicalSystemCrossReference_3_0() { return cPhysicalSysPhysicalSystemCrossReference_3_0; } - + //FQN public RuleCall getPhysicalSysPhysicalSystemFQNParserRuleCall_3_0_1() { return cPhysicalSysPhysicalSystemFQNParserRuleCall_3_0_1; } - + //'{' public Keyword getLeftCurlyBracketKeyword_4() { return cLeftCurlyBracketKeyword_4; } - + //subsysMappings+=SubSystemMapping* public Assignment getSubsysMappingsAssignment_5() { return cSubsysMappingsAssignment_5; } - + //SubSystemMapping public RuleCall getSubsysMappingsSubSystemMappingParserRuleCall_5_0() { return cSubsysMappingsSubSystemMappingParserRuleCall_5_0; } - + //'}' public Keyword getRightCurlyBracketKeyword_6() { return cRightCurlyBracketKeyword_6; } } - public class SubSystemMappingElements extends AbstractParserRuleElementFinder { private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.etrice.core.etmap.ETMap.SubSystemMapping"); private final Group cGroup = (Group)rule.eContents().get(1); @@ -151,55 +160,58 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { private final Keyword cRightCurlyBracketKeyword_4_2 = (Keyword)cGroup_4.eContents().get(2); //SubSystemMapping: - // 'SubSystemMapping' logicalSubSys=[room::SubSystemRef] '->' node=[phys::NodeRef] ('{' - // threadMappings+=ThreadMapping* - // '}')?; + // 'SubSystemMapping' logicalSubSys=[room::SubSystemRef|ID] '->' node=[phys::NodeRef|ID] ('{' + // threadMappings+=ThreadMapping* + // '}')? + //; @Override public ParserRule getRule() { return rule; } - - //'SubSystemMapping' logicalSubSys=[room::SubSystemRef] '->' node=[phys::NodeRef] ('{' threadMappings+=ThreadMapping* + + //'SubSystemMapping' logicalSubSys=[room::SubSystemRef|ID] '->' node=[phys::NodeRef|ID] ('{' + // threadMappings+=ThreadMapping* //'}')? public Group getGroup() { return cGroup; } - + //'SubSystemMapping' public Keyword getSubSystemMappingKeyword_0() { return cSubSystemMappingKeyword_0; } - - //logicalSubSys=[room::SubSystemRef] + + //logicalSubSys=[room::SubSystemRef|ID] public Assignment getLogicalSubSysAssignment_1() { return cLogicalSubSysAssignment_1; } - - //[room::SubSystemRef] + + //[room::SubSystemRef|ID] public CrossReference getLogicalSubSysSubSystemRefCrossReference_1_0() { return cLogicalSubSysSubSystemRefCrossReference_1_0; } - + //ID public RuleCall getLogicalSubSysSubSystemRefIDTerminalRuleCall_1_0_1() { return cLogicalSubSysSubSystemRefIDTerminalRuleCall_1_0_1; } - + //'->' public Keyword getHyphenMinusGreaterThanSignKeyword_2() { return cHyphenMinusGreaterThanSignKeyword_2; } - - //node=[phys::NodeRef] + + //node=[phys::NodeRef|ID] public Assignment getNodeAssignment_3() { return cNodeAssignment_3; } - - //[phys::NodeRef] + + //[phys::NodeRef|ID] public CrossReference getNodeNodeRefCrossReference_3_0() { return cNodeNodeRefCrossReference_3_0; } - + //ID public RuleCall getNodeNodeRefIDTerminalRuleCall_3_0_1() { return cNodeNodeRefIDTerminalRuleCall_3_0_1; } - - //('{' threadMappings+=ThreadMapping* '}')? + + //('{' + // threadMappings+=ThreadMapping* + // '}')? public Group getGroup_4() { return cGroup_4; } - + //'{' public Keyword getLeftCurlyBracketKeyword_4_0() { return cLeftCurlyBracketKeyword_4_0; } - + //threadMappings+=ThreadMapping* public Assignment getThreadMappingsAssignment_4_1() { return cThreadMappingsAssignment_4_1; } - + //ThreadMapping public RuleCall getThreadMappingsThreadMappingParserRuleCall_4_1_0() { return cThreadMappingsThreadMappingParserRuleCall_4_1_0; } - + //'}' public Keyword getRightCurlyBracketKeyword_4_2() { return cRightCurlyBracketKeyword_4_2; } } - public class ThreadMappingElements extends AbstractParserRuleElementFinder { private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.etrice.core.etmap.ETMap.ThreadMapping"); private final Group cGroup = (Group)rule.eContents().get(1); @@ -213,33 +225,34 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { private final RuleCall cPhysicalThreadPhysicalThreadIDTerminalRuleCall_3_0_1 = (RuleCall)cPhysicalThreadPhysicalThreadCrossReference_3_0.eContents().get(1); //ThreadMapping: - // 'ThreadMapping' logicalThread=[room::LogicalThread] '->' physicalThread=[phys::PhysicalThread]; + // 'ThreadMapping' logicalThread=[room::LogicalThread|ID] '->' physicalThread=[phys::PhysicalThread|ID] + //; @Override public ParserRule getRule() { return rule; } - - //'ThreadMapping' logicalThread=[room::LogicalThread] '->' physicalThread=[phys::PhysicalThread] + + //'ThreadMapping' logicalThread=[room::LogicalThread|ID] '->' physicalThread=[phys::PhysicalThread|ID] public Group getGroup() { return cGroup; } - + //'ThreadMapping' public Keyword getThreadMappingKeyword_0() { return cThreadMappingKeyword_0; } - - //logicalThread=[room::LogicalThread] + + //logicalThread=[room::LogicalThread|ID] public Assignment getLogicalThreadAssignment_1() { return cLogicalThreadAssignment_1; } - - //[room::LogicalThread] + + //[room::LogicalThread|ID] public CrossReference getLogicalThreadLogicalThreadCrossReference_1_0() { return cLogicalThreadLogicalThreadCrossReference_1_0; } - + //ID public RuleCall getLogicalThreadLogicalThreadIDTerminalRuleCall_1_0_1() { return cLogicalThreadLogicalThreadIDTerminalRuleCall_1_0_1; } - + //'->' public Keyword getHyphenMinusGreaterThanSignKeyword_2() { return cHyphenMinusGreaterThanSignKeyword_2; } - - //physicalThread=[phys::PhysicalThread] + + //physicalThread=[phys::PhysicalThread|ID] public Assignment getPhysicalThreadAssignment_3() { return cPhysicalThreadAssignment_3; } - - //[phys::PhysicalThread] + + //[phys::PhysicalThread|ID] public CrossReference getPhysicalThreadPhysicalThreadCrossReference_3_0() { return cPhysicalThreadPhysicalThreadCrossReference_3_0; } - + //ID public RuleCall getPhysicalThreadPhysicalThreadIDTerminalRuleCall_3_0_1() { return cPhysicalThreadPhysicalThreadIDTerminalRuleCall_3_0_1; } } @@ -251,15 +264,15 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { private final ThreadMappingElements pThreadMapping; private final Grammar grammar; - + private final BaseGrammarAccess gaBase; - + private final TerminalsGrammarAccess gaTerminals; @Inject public ETMapGrammarAccess(GrammarProvider grammarProvider, - BaseGrammarAccess gaBase, - TerminalsGrammarAccess gaTerminals) { + BaseGrammarAccess gaBase, + TerminalsGrammarAccess gaTerminals) { this.grammar = internalFindGrammar(grammarProvider); this.gaBase = gaBase; this.gaTerminals = gaTerminals; @@ -290,21 +303,22 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { return grammar; } - + public BaseGrammarAccess getBaseGrammarAccess() { return gaBase; } - + public TerminalsGrammarAccess getTerminalsGrammarAccess() { return gaTerminals; } //MappingModel: - // 'MappingModel' name=FQN '{' - // imports+=Import* - // mappings+=Mapping* - // '}'; + // 'MappingModel' name=FQN '{' + // (imports+=Import)* + // mappings+=Mapping* + // '}' + //; public MappingModelElements getMappingModelAccess() { return pMappingModel; } @@ -312,11 +326,12 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { public ParserRule getMappingModelRule() { return getMappingModelAccess().getRule(); } - + //Mapping: - // 'Mapping' logicalSys=[room::LogicalSystem|FQN] '->' physicalSys=[phys::PhysicalSystem|FQN] '{' - // subsysMappings+=SubSystemMapping* - // '}'; + // 'Mapping' logicalSys=[room::LogicalSystem|FQN] '->' physicalSys=[phys::PhysicalSystem|FQN] '{' + // subsysMappings+=SubSystemMapping* + // '}' + //; public MappingElements getMappingAccess() { return pMapping; } @@ -324,11 +339,12 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { public ParserRule getMappingRule() { return getMappingAccess().getRule(); } - + //SubSystemMapping: - // 'SubSystemMapping' logicalSubSys=[room::SubSystemRef] '->' node=[phys::NodeRef] ('{' - // threadMappings+=ThreadMapping* - // '}')?; + // 'SubSystemMapping' logicalSubSys=[room::SubSystemRef|ID] '->' node=[phys::NodeRef|ID] ('{' + // threadMappings+=ThreadMapping* + // '}')? + //; public SubSystemMappingElements getSubSystemMappingAccess() { return pSubSystemMapping; } @@ -336,9 +352,10 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { public ParserRule getSubSystemMappingRule() { return getSubSystemMappingAccess().getRule(); } - + //ThreadMapping: - // 'ThreadMapping' logicalThread=[room::LogicalThread] '->' physicalThread=[phys::PhysicalThread]; + // 'ThreadMapping' logicalThread=[room::LogicalThread|ID] '->' physicalThread=[phys::PhysicalThread|ID] + //; public ThreadMappingElements getThreadMappingAccess() { return pThreadMapping; } @@ -346,11 +363,11 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { public ParserRule getThreadMappingRule() { return getThreadMappingAccess().getRule(); } - + //// ************************************************************** //// AnnotationType and Annotation Rules - //Annotation: - // '@' type=[AnnotationType|FQN] ('(' attributes+=KeyValue (',' attributes+=KeyValue)* ')')?; + //Annotation:'@' type=[AnnotationType|FQN] ('(' attributes+=KeyValue (',' attributes+=KeyValue)* ')')? + //; public BaseGrammarAccess.AnnotationElements getAnnotationAccess() { return gaBase.getAnnotationAccess(); } @@ -358,9 +375,8 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { public ParserRule getAnnotationRule() { return getAnnotationAccess().getRule(); } - - //KeyValue: - // key=ID '=' value=Literal; + + //KeyValue: key=ID '=' value=Literal; public BaseGrammarAccess.KeyValueElements getKeyValueAccess() { return gaBase.getKeyValueAccess(); } @@ -368,12 +384,13 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { public ParserRule getKeyValueRule() { return getKeyValueAccess().getRule(); } - + //AnnotationType: - // 'AnnotationType' name=ID docu=Documentation? '{' - // 'target' '=' (targets+=AnnotationTargetType | '{' targets+=AnnotationTargetType (',' targets+=AnnotationTargetType)* - // '}') attributes+=AnnotationAttribute* - // '}'; + // 'AnnotationType' name=ID (docu=Documentation)? '{' + // 'target' '=' (targets+=(AnnotationTargetType) | ( '{' targets+=AnnotationTargetType (',' targets+=AnnotationTargetType)* '}')) + // attributes+=AnnotationAttribute* + // '}' + //; public BaseGrammarAccess.AnnotationTypeElements getAnnotationTypeAccess() { return gaBase.getAnnotationTypeAccess(); } @@ -381,17 +398,18 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { public ParserRule getAnnotationTypeRule() { return getAnnotationTypeAccess().getRule(); } - + //// - //// Sub-grammars should use AnnotationTargetType to refer to - //// specific sub-grammar targets. For example, valid values for - //// AnnotationTargetType in the Room.xtext sub-grammar include "ActorClass", - //// "ActorBehavior", "ProtocolClass", etc. The sub-grammar is responsible for - //// implementing validation, quick-fixes, and code completion proposals via the + //// Sub-grammars should use AnnotationTargetType to refer to + //// specific sub-grammar targets. For example, valid values for + //// AnnotationTargetType in the Room.xtext sub-grammar include "ActorClass", + //// "ActorBehavior", "ProtocolClass", etc. The sub-grammar is responsible for + //// implementing validation, quick-fixes, and code completion proposals via the //// usual Xtext mechanisms. //// //AnnotationTargetType: - // ID; + // ID + //; public BaseGrammarAccess.AnnotationTargetTypeElements getAnnotationTargetTypeAccess() { return gaBase.getAnnotationTargetTypeAccess(); } @@ -399,9 +417,8 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { public ParserRule getAnnotationTargetTypeRule() { return getAnnotationTargetTypeAccess().getRule(); } - - //AnnotationAttribute: - // SimpleAnnotationAttribute | EnumAnnotationAttribute; + + //AnnotationAttribute: SimpleAnnotationAttribute | EnumAnnotationAttribute; public BaseGrammarAccess.AnnotationAttributeElements getAnnotationAttributeAccess() { return gaBase.getAnnotationAttributeAccess(); } @@ -409,9 +426,10 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { public ParserRule getAnnotationAttributeRule() { return getAnnotationAttributeAccess().getRule(); } - + //SimpleAnnotationAttribute: - // (optional?='optional' | 'mandatory') 'attribute' name=ID ':' type=LiteralType; + // (optional?='optional' | 'mandatory') 'attribute' name=ID ':' type=LiteralType + //; public BaseGrammarAccess.SimpleAnnotationAttributeElements getSimpleAnnotationAttributeAccess() { return gaBase.getSimpleAnnotationAttributeAccess(); } @@ -419,9 +437,10 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { public ParserRule getSimpleAnnotationAttributeRule() { return getSimpleAnnotationAttributeAccess().getRule(); } - + //EnumAnnotationAttribute: - // (optional?='optional' | 'mandatory') 'attribute' name=ID ':' '{' values+=STRING (',' values+=STRING)* '}'; + // (optional?='optional' | 'mandatory') 'attribute' name=ID ':' '{' values+=STRING (',' values+=STRING)* '}' + //; public BaseGrammarAccess.EnumAnnotationAttributeElements getEnumAnnotationAttributeAccess() { return gaBase.getEnumAnnotationAttributeAccess(); } @@ -429,29 +448,29 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { public ParserRule getEnumAnnotationAttributeRule() { return getEnumAnnotationAttributeAccess().getRule(); } - + //// ************************************************************** //// Import rules //// HOWTO: use a combination of URI global scopes and namespace aware local scope provider //// this is configured in the work flow by - //// fragment = scoping.ImportURIScopingFragment {} - //// and by overriding configureIScopeProviderDelegate in the runtime module with - //// ImportedNamespaceAwareLocalScopeProvider + //// fragment = scoping.ImportURIScopingFragment {} + //// and by overriding configureIScopeProviderDelegate in the runtime module with + //// ImportedNamespaceAwareLocalScopeProvider //// also configure in the RuntimeModule - //// public Class<? extends ImportUriResolver> bindImportUriResolver() { - //// return PlatformRelativeUriResolver.class; - //// } + //// public Class<? extends ImportUriResolver> bindImportUriResolver() { + //// return PlatformRelativeUriResolver.class; + //// } //// and in the UiRuntimeModule - //// public Class<? extends org.eclipse.xtext.ui.editor.IURIEditorOpener> bindIURIEditorOpener() { - //// return GlobalNonPlatformURIEditorOpener.class; - //// } - //// public Class<? extends IHyperlinkHelper> bindIHyperlinkHelper() { - //// return ImportAwareHyperlinkHelper.class; - //// } + //// public Class<? extends org.eclipse.xtext.ui.editor.IURIEditorOpener> bindIURIEditorOpener() { + //// return GlobalNonPlatformURIEditorOpener.class; + //// } + //// public Class<? extends IHyperlinkHelper> bindIHyperlinkHelper() { + //// return ImportAwareHyperlinkHelper.class; + //// } //// the attribute 'importedNamespace' is picked up by the ImportedNamespaceAwareLocalScopeProvider //// the attribute 'importURI' is picked up by the ImportUriGlobalScopeProvider - //Import: - // 'import' (importedNamespace=ImportedFQN ('from' importURI=STRING)? | 'model' importURI=STRING); + //Import : + // 'import' ((importedNamespace=ImportedFQN ('from' importURI=STRING)?) | ('model' importURI=STRING)); public BaseGrammarAccess.ImportElements getImportAccess() { return gaBase.getImportAccess(); } @@ -459,9 +478,9 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { public ParserRule getImportRule() { return getImportAccess().getRule(); } - + //ImportedFQN: - // FQN '.*'?; + // FQN ('.*')?; public BaseGrammarAccess.ImportedFQNElements getImportedFQNAccess() { return gaBase.getImportedFQNAccess(); } @@ -469,14 +488,14 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { public ParserRule getImportedFQNRule() { return getImportedFQNAccess().getRule(); } - + //// ************************************************************** //// Documentation Rule //Documentation: - // {Documentation} - // '[' - // lines+=STRING* - // ']'; + // {Documentation} + // '[' + // lines+=STRING* + // ']'; public BaseGrammarAccess.DocumentationElements getDocumentationAccess() { return gaBase.getDocumentationAccess(); } @@ -484,11 +503,10 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { public ParserRule getDocumentationRule() { return getDocumentationAccess().getRule(); } - + //// ************************************************************** //// Time Rule - //TIME ecore::ELong: - // INT 's' | INT 'ms' | INT 'us' | INT 'ns'; + //TIME returns ecore::ELong: (INT 's') | (INT 'ms') | (INT 'us') | (INT 'ns'); public BaseGrammarAccess.TIMEElements getTIMEAccess() { return gaBase.getTIMEAccess(); } @@ -496,12 +514,15 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { public ParserRule getTIMERule() { return getTIMEAccess().getRule(); } - + + //// ************************************************************** + //// Literal Rules //enum LiteralType: - // BOOL='ptBoolean' | - // INT='ptInteger' | - // REAL='ptReal' | - // CHAR='ptCharacter'; + // BOOL='ptBoolean' | + // INT='ptInteger' | + // REAL='ptReal' | + // CHAR='ptCharacter' + //; public BaseGrammarAccess.LiteralTypeElements getLiteralTypeAccess() { return gaBase.getLiteralTypeAccess(); } @@ -509,9 +530,9 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { public EnumRule getLiteralTypeRule() { return getLiteralTypeAccess().getRule(); } - + //LiteralArray: - // literals+=Literal (',' literals+=Literal)*; + // literals+=Literal (',' literals+=Literal)*; public BaseGrammarAccess.LiteralArrayElements getLiteralArrayAccess() { return gaBase.getLiteralArrayAccess(); } @@ -519,10 +540,12 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { public ParserRule getLiteralArrayRule() { return getLiteralArrayAccess().getRule(); } - - //// Value Types for Attributes + + // // Value Types for Attributes //Literal: - // BooleanLiteral | NumberLiteral | StringLiteral; + // BooleanLiteral | + // NumberLiteral | + // StringLiteral; public BaseGrammarAccess.LiteralElements getLiteralAccess() { return gaBase.getLiteralAccess(); } @@ -530,9 +553,9 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { public ParserRule getLiteralRule() { return getLiteralAccess().getRule(); } - + //BooleanLiteral: - // {BooleanLiteral} ('false' | isTrue?='true'); + // {BooleanLiteral} ('false' | isTrue?='true'); public BaseGrammarAccess.BooleanLiteralElements getBooleanLiteralAccess() { return gaBase.getBooleanLiteralAccess(); } @@ -540,9 +563,9 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { public ParserRule getBooleanLiteralRule() { return getBooleanLiteralAccess().getRule(); } - + //NumberLiteral: - // IntLiteral | RealLiteral; + // IntLiteral | RealLiteral; public BaseGrammarAccess.NumberLiteralElements getNumberLiteralAccess() { return gaBase.getNumberLiteralAccess(); } @@ -550,9 +573,9 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { public ParserRule getNumberLiteralRule() { return getNumberLiteralAccess().getRule(); } - + //RealLiteral: - // {RealLiteral} value=Real; + // {RealLiteral} value=Real; public BaseGrammarAccess.RealLiteralElements getRealLiteralAccess() { return gaBase.getRealLiteralAccess(); } @@ -560,9 +583,9 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { public ParserRule getRealLiteralRule() { return getRealLiteralAccess().getRule(); } - + //IntLiteral: - // {IntLiteral} value=Integer; + // {IntLiteral} value=Integer; public BaseGrammarAccess.IntLiteralElements getIntLiteralAccess() { return gaBase.getIntLiteralAccess(); } @@ -570,9 +593,9 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { public ParserRule getIntLiteralRule() { return getIntLiteralAccess().getRule(); } - + //StringLiteral: - // {StringLiteral} value=STRING; + // {StringLiteral} value=STRING; public BaseGrammarAccess.StringLiteralElements getStringLiteralAccess() { return gaBase.getStringLiteralAccess(); } @@ -580,9 +603,9 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { public ParserRule getStringLiteralRule() { return getStringLiteralAccess().getRule(); } - - //Integer ecore::ELong: - // ('+' | '-')? INT | HEX; + + //Integer returns ecore::ELong: + // (('+' | '-')? INT) | HEX; public BaseGrammarAccess.IntegerElements getIntegerAccess() { return gaBase.getIntegerAccess(); } @@ -590,9 +613,9 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { public ParserRule getIntegerRule() { return getIntegerAccess().getRule(); } - - //Real ecore::EDouble: - // Decimal | DecimalExp; + + //Real returns ecore::EDouble: + // Decimal | /*DotDecimal | DecimalDot |*/ DecimalExp; public BaseGrammarAccess.RealElements getRealAccess() { return gaBase.getRealAccess(); } @@ -600,9 +623,9 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { public ParserRule getRealRule() { return getRealAccess().getRule(); } - + //Decimal hidden(): - // ('+' | '-')? INT '.' INT; + // ('+' | '-')? INT '.' INT; public BaseGrammarAccess.DecimalElements getDecimalAccess() { return gaBase.getDecimalAccess(); } @@ -610,14 +633,14 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { public ParserRule getDecimalRule() { return getDecimalAccess().getRule(); } - + ////DotDecimal hidden(): - //// ('+' | '-')? '.' INT; + //// ('+' | '-')? '.' INT; //// ////DecimalDot hidden(): - //// ('+' | '-')? INT '.'; + //// ('+' | '-')? INT '.'; //DecimalExp hidden(): - // ('+' | '-')? INT '.' INT ('e' | 'E') ('+' | '-')? INT; + // ('+' | '-')? INT '.' INT ('e' | 'E') ('+' | '-')? INT; public BaseGrammarAccess.DecimalExpElements getDecimalExpAccess() { return gaBase.getDecimalExpAccess(); } @@ -625,9 +648,9 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { public ParserRule getDecimalExpRule() { return getDecimalExpAccess().getRule(); } - + //FQN: - // ID ('.' ID)*; + // ID ('.' ID)*; public BaseGrammarAccess.FQNElements getFQNAccess() { return gaBase.getFQNAccess(); } @@ -635,58 +658,54 @@ public class ETMapGrammarAccess extends AbstractGrammarElementFinder { public ParserRule getFQNRule() { return getFQNAccess().getRule(); } - + //terminal HEX: - // ('0x' | '0X') ('0'..'9' | 'a'..'f' | 'A'..'F')+; + // ('0x' | '0X') ('0'..'9' | 'a'..'f' | 'A'..'F')+; public TerminalRule getHEXRule() { return gaBase.getHEXRule(); - } - + } + //terminal CC_STRING: - // "'''"->"'''"; + // "'''" -> "'''"; public TerminalRule getCC_STRINGRule() { return gaBase.getCC_STRINGRule(); - } - - //terminal ID: - // '^'? ('a'..'z' | 'A'..'Z' | '_') ('a'..'z' | 'A'..'Z' | '_' | '0'..'9')*; + } + + //terminal ID: '^'?('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; public TerminalRule getIDRule() { return gaTerminals.getIDRule(); - } - - //terminal INT returns ecore::EInt: - // '0'..'9'+; + } + + //terminal INT returns ecore::EInt: ('0'..'9')+; public TerminalRule getINTRule() { return gaTerminals.getINTRule(); - } - + } + //terminal STRING: - // '"' ('\\' . | !('\\' | '"'))* '"' | "'" ('\\' . | !('\\' | "'"))* "'"; + // '"' ( '\\' . /* 'b'|'t'|'n'|'f'|'r'|'u'|'"'|"'"|'\\' */ | !('\\'|'"') )* '"' | + // "'" ( '\\' . /* 'b'|'t'|'n'|'f'|'r'|'u'|'"'|"'"|'\\' */ | !('\\'|"'") )* "'" + // ; public TerminalRule getSTRINGRule() { return gaTerminals.getSTRINGRule(); - } - - //terminal ML_COMMENT: - // '/*'->'*/'; + } + + //terminal ML_COMMENT : '/*' -> '*/'; public TerminalRule getML_COMMENTRule() { return gaTerminals.getML_COMMENTRule(); - } - - //terminal SL_COMMENT: - // '//' !('\n' | '\r')* ('\r'? '\n')?; + } + + //terminal SL_COMMENT : '//' !('\n'|'\r')* ('\r'? '\n')?; public TerminalRule getSL_COMMENTRule() { return gaTerminals.getSL_COMMENTRule(); - } - - //terminal WS: - // ' ' | '\t' | '\r' | '\n'+; + } + + //terminal WS : (' '|'\t'|'\r'|'\n')+; public TerminalRule getWSRule() { return gaTerminals.getWSRule(); - } - - //terminal ANY_OTHER: - // .; + } + + //terminal ANY_OTHER: .; public TerminalRule getANY_OTHERRule() { return gaTerminals.getANY_OTHERRule(); - } + } } diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/validation/AbstractETMapJavaValidator.java b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/validation/AbstractETMapJavaValidator.java deleted file mode 100644 index 55d340a01..000000000 --- a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/validation/AbstractETMapJavaValidator.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * generated by Xtext - */ -package org.eclipse.etrice.core.etmap.validation; - -import java.util.ArrayList; -import java.util.List; - -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.xtext.validation.ComposedChecks; - -@ComposedChecks(validators= {org.eclipse.xtext.validation.ImportUriValidator.class}) -public class AbstractETMapJavaValidator extends org.eclipse.etrice.core.common.validation.BaseJavaValidator { - - @Override - protected List<EPackage> getEPackages() { - List<EPackage> result = new ArrayList<EPackage>(); - result.add(org.eclipse.etrice.core.etmap.eTMap.ETMapPackage.eINSTANCE); - return result; - } - -} diff --git a/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/validation/AbstractETMapValidator.java b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/validation/AbstractETMapValidator.java new file mode 100644 index 000000000..c126aff03 --- /dev/null +++ b/plugins/org.eclipse.etrice.core.etmap/src-gen/org/eclipse/etrice/core/etmap/validation/AbstractETMapValidator.java @@ -0,0 +1,22 @@ +/* + * generated by Xtext + */ +package org.eclipse.etrice.core.etmap.validation; + +import java.util.ArrayList; +import java.util.List; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.etrice.core.common.validation.BaseValidator; +import org.eclipse.xtext.validation.ComposedChecks; +import org.eclipse.xtext.validation.ImportUriValidator; + +@ComposedChecks(validators = {ImportUriValidator.class}) +public abstract class AbstractETMapValidator extends BaseValidator { + + @Override + protected List<EPackage> getEPackages() { + List<EPackage> result = new ArrayList<EPackage>(super.getEPackages()); + result.add(org.eclipse.etrice.core.etmap.eTMap.ETMapPackage.eINSTANCE); + return result; + } +} diff --git a/plugins/org.eclipse.etrice.core.etmap/src/org/eclipse/etrice/core/etmap/ETMapRuntimeModule.java b/plugins/org.eclipse.etrice.core.etmap/src/org/eclipse/etrice/core/etmap/ETMapRuntimeModule.java index 35fa20333..503b04665 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src/org/eclipse/etrice/core/etmap/ETMapRuntimeModule.java +++ b/plugins/org.eclipse.etrice.core.etmap/src/org/eclipse/etrice/core/etmap/ETMapRuntimeModule.java @@ -18,6 +18,8 @@ import org.eclipse.etrice.core.common.scoping.CompoundGlobalScopeProvider; import org.eclipse.etrice.core.common.scoping.ModelLocatorUriResolver; import org.eclipse.etrice.core.common.scoping.ModelPathFileExtensionFilter; import org.eclipse.etrice.core.common.scoping.ModelPathGlobalScopeProvider.IModelPathFileFilter; +import org.eclipse.etrice.core.etmap.formatting.ETMapFormatter; +import org.eclipse.xtext.formatting.IFormatter; import org.eclipse.xtext.scoping.IGlobalScopeProvider; import org.eclipse.xtext.scoping.impl.ImportUriResolver; @@ -39,5 +41,10 @@ public class ETMapRuntimeModule extends org.eclipse.etrice.core.etmap.AbstractET public Class<? extends ImportUriResolver> bindImportUriResolver() { return ModelLocatorUriResolver.class; } + + @Override + public Class<? extends IFormatter> bindIFormatter() { + return ETMapFormatter.class; + } } diff --git a/plugins/org.eclipse.etrice.core.etmap/src/org/eclipse/etrice/core/etmap/GenerateETMap.mwe2 b/plugins/org.eclipse.etrice.core.etmap/src/org/eclipse/etrice/core/etmap/GenerateETMap.mwe2 index 7f153a7c2..88860dfab 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src/org/eclipse/etrice/core/etmap/GenerateETMap.mwe2 +++ b/plugins/org.eclipse.etrice.core.etmap/src/org/eclipse/etrice/core/etmap/GenerateETMap.mwe2 @@ -14,143 +14,48 @@ module org.eclipse.etrice.core.etmap.GenerateETMap -import org.eclipse.emf.mwe.utils.* -import org.eclipse.xtext.generator.* -import org.eclipse.xtext.ui.generator.* +import org.eclipse.xtext.xtext.generator.* +import org.eclipse.xtext.xtext.generator.model.project.* -var grammarURI = "classpath:/org/eclipse/etrice/core/etmap/ETMap.xtext" -var file.extensions = "etmap" var projectName = "org.eclipse.etrice.core.etmap" -var runtimeProject = "../${projectName}" Workflow { - bean = StandaloneSetup { - scanClassPath = true - platformUri = "${runtimeProject}/.." - registerGenModelFile = "platform:/resource/org.eclipse.etrice.core.common/src-gen/org/eclipse/etrice/core/common/Base.genmodel" - registerGeneratedEPackage = "org.eclipse.etrice.core.common.base.BasePackage" - registerGeneratedEPackage = "org.eclipse.etrice.core.room.RoomPackage" - registerGenModelFile = "platform:/resource/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/Room.genmodel" - registerGeneratedEPackage = "org.eclipse.etrice.core.etphys.eTPhys.ETPhysPackage" - registerGenModelFile = "platform:/resource/org.eclipse.etrice.core.etphys/src-gen/org/eclipse/etrice/core/etphys/ETPhys.genmodel" - } - - component = DirectoryCleaner { - directory = "${runtimeProject}/src-gen" - } - - component = DirectoryCleaner { - directory = "${runtimeProject}.ui/src-gen" - } - - component = Generator { - pathRtProject = runtimeProject - pathUiProject = "${runtimeProject}.ui" - pathTestProject = "../../tests/${projectName}.tests" - projectNameRt = projectName - projectNameUi = "${projectName}.ui" - language = { - uri = grammarURI - fileExtensions = file.extensions - - // Java API to access grammar elements (required by several other fragments) - fragment = grammarAccess.GrammarAccessFragment {} - - // generates Java API for the generated EPackages - fragment = ecore.EcoreGeneratorFragment { - // referencedGenModels = " - // platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel, - // platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.genmodel - // " - } - - // Serializer 2.0 - fragment = serializer.SerializerFragment { - generateStub = false - } - - // the serialization component (1.0) - // fragment = parseTreeConstructor.ParseTreeConstructorFragment {} - - // a custom ResourceFactory for use with EMF - fragment = resourceFactory.ResourceFactoryFragment { - fileExtensions = file.extensions - } - - // The antlr parser generator fragment. - fragment = parser.antlr.XtextAntlrGeneratorFragment { - // options = { - // backtrack = true - // } - } - - // java-based API for validation - fragment = validation.JavaValidatorFragment { - composedCheck = "org.eclipse.xtext.validation.ImportUriValidator" - // composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator" - } - - // scoping and exporting API - // fragment = scoping.ImportURIScopingFragment {} - // fragment = exporting.SimpleNamesFragment {} - - // scoping and exporting API - fragment = scoping.ImportNamespacesScopingFragment {} - fragment = exporting.QualifiedNamesFragment {} - fragment = builder.BuilderIntegrationFragment {} - - // generator API - fragment = generator.GeneratorFragment { - generateMwe = false - generateJavaMain = false - } - - // formatter API - fragment = formatting.FormatterFragment {} - - // labeling API - fragment = labeling.LabelProviderFragment {} - - // outline API - fragment = outline.OutlineTreeProviderFragment {} - fragment = outline.QuickOutlineFragment {} - - // quickfix API - fragment = quickfix.QuickfixProviderFragment {} - - // content assist API - fragment = contentAssist.JavaBasedContentAssistFragment {} - - // generates a more lightweight Antlr parser and lexer tailored for content assist - fragment = parser.antlr.XtextAntlrUiGeneratorFragment {} - - // generates junit test support classes into Generator#pathTestProject - fragment = junit.Junit4Fragment {} - - // project wizard (optional) - // fragment = projectWizard.SimpleProjectWizardFragment { - // generatorProjectName = "${projectName}" - // modelFileExtension = file.extensions - // } - - // rename refactoring - fragment = refactoring.RefactorElementNameFragment {} - - // provides the necessary bindings for java types integration - //fragment = types.TypesGeneratorFragment {} - - // generates the required bindings only if the grammar inherits from Xbase - //fragment = xbase.XbaseGeneratorFragment {} - - // provides a preference page for template proposals - fragment = templates.CodetemplatesGeneratorFragment {} - - // provides a compare view - fragment = compare.CompareFragment { - fileExtensions = file.extensions - } - - } - } -} - + component = XtextGenerator { + configuration = { + project = StandardProjectConfig { + baseName = projectName + rootPath = ".." + runtimeTest = { + enabled = true + root = "../../tests/${projectName}.tests" + } + eclipsePlugin = { + enabled = true + } + createEclipseMetaData = true + } + code = { + preferXtendStubs = false + } + } + language = StandardLanguage { + name = "org.eclipse.etrice.core.etmap.ETMap" + fileExtensions = "etmap" + referencedResource = "platform:/resource/org.eclipse.etrice.core.common/model/generated/Base.genmodel" + referencedResource = "platform:/resource/org.eclipse.etrice.core.room/model/generated/Room.genmodel" + referencedResource = "platform:/resource/org.eclipse.etrice.core.etphys/model/generated/ETPhys.genmodel" + serializer = { + generateStub = false + } + validator = { + composedCheck = "org.eclipse.xtext.validation.ImportUriValidator" + } + generator = { + generateStub = false + } + junitSupport = { + generateStub = false + } + } + } +}
\ No newline at end of file diff --git a/plugins/org.eclipse.etrice.core.etmap/src/org/eclipse/etrice/core/etmap/generator/ETMapGenerator.xtend b/plugins/org.eclipse.etrice.core.etmap/src/org/eclipse/etrice/core/etmap/generator/ETMapGenerator.xtend deleted file mode 100644 index 99efa2bd0..000000000 --- a/plugins/org.eclipse.etrice.core.etmap/src/org/eclipse/etrice/core/etmap/generator/ETMapGenerator.xtend +++ /dev/null @@ -1,15 +0,0 @@ -/* - * generated by Xtext - */ -package org.eclipse.etrice.core.etmap.generator - -import org.eclipse.emf.ecore.resource.Resource -import org.eclipse.xtext.generator.IGenerator -import org.eclipse.xtext.generator.IFileSystemAccess - -class ETMapGenerator implements IGenerator { - - override void doGenerate(Resource resource, IFileSystemAccess fsa) { - //TODO implement me - } -} diff --git a/plugins/org.eclipse.etrice.core.etmap/src/org/eclipse/etrice/core/etmap/validation/ETMapJavaValidator.java b/plugins/org.eclipse.etrice.core.etmap/src/org/eclipse/etrice/core/etmap/validation/ETMapValidator.java index 6b544775f..cdc9645db 100644 --- a/plugins/org.eclipse.etrice.core.etmap/src/org/eclipse/etrice/core/etmap/validation/ETMapJavaValidator.java +++ b/plugins/org.eclipse.etrice.core.etmap/src/org/eclipse/etrice/core/etmap/validation/ETMapValidator.java @@ -36,7 +36,7 @@ import org.eclipse.xtext.validation.Check; import com.google.inject.Inject; -public class ETMapJavaValidator extends AbstractETMapJavaValidator { +public class ETMapValidator extends AbstractETMapValidator { public static final String DUPLICATE_SUBSYS_MAPPING = "ETMapJavaValidator.DulicateSubSysMapping"; public static final String UNMAPPED_SUBSYS_REFS = "ETMapJavaValidator.UnmappedSubSysRefs"; |