Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/parser')
-rw-r--r--plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/parser/antlr/ConfigAntlrTokenFileProvider.java30
-rw-r--r--plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/parser/antlr/ConfigParser.java78
-rw-r--r--plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/parser/antlr/internal/InternalConfig.g4294
3 files changed, 2201 insertions, 2201 deletions
diff --git a/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/parser/antlr/ConfigAntlrTokenFileProvider.java b/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/parser/antlr/ConfigAntlrTokenFileProvider.java
index fdd47642c..e7f19df15 100644
--- a/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/parser/antlr/ConfigAntlrTokenFileProvider.java
+++ b/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/parser/antlr/ConfigAntlrTokenFileProvider.java
@@ -1,15 +1,15 @@
-/*
-* generated by Xtext
-*/
-package org.eclipse.etrice.core.parser.antlr;
-
-import java.io.InputStream;
-import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider;
-
-public class ConfigAntlrTokenFileProvider implements IAntlrTokenFileProvider {
-
- public InputStream getAntlrTokenFile() {
- ClassLoader classLoader = getClass().getClassLoader();
- return classLoader.getResourceAsStream("org/eclipse/etrice/core/parser/antlr/internal/InternalConfig.tokens");
- }
-}
+/*
+* generated by Xtext
+*/
+package org.eclipse.etrice.core.parser.antlr;
+
+import java.io.InputStream;
+import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider;
+
+public class ConfigAntlrTokenFileProvider implements IAntlrTokenFileProvider {
+
+ public InputStream getAntlrTokenFile() {
+ ClassLoader classLoader = getClass().getClassLoader();
+ return classLoader.getResourceAsStream("org/eclipse/etrice/core/parser/antlr/internal/InternalConfig.tokens");
+ }
+}
diff --git a/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/parser/antlr/ConfigParser.java b/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/parser/antlr/ConfigParser.java
index 2b7ad294f..db66f38bd 100644
--- a/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/parser/antlr/ConfigParser.java
+++ b/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/parser/antlr/ConfigParser.java
@@ -1,39 +1,39 @@
-/*
-* generated by Xtext
-*/
-package org.eclipse.etrice.core.parser.antlr;
-
-import com.google.inject.Inject;
-
-import org.eclipse.xtext.parser.antlr.XtextTokenStream;
-import org.eclipse.etrice.core.services.ConfigGrammarAccess;
-
-public class ConfigParser extends org.eclipse.xtext.parser.antlr.AbstractAntlrParser {
-
- @Inject
- private ConfigGrammarAccess grammarAccess;
-
- @Override
- protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
- tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
- }
-
- @Override
- protected org.eclipse.etrice.core.parser.antlr.internal.InternalConfigParser createParser(XtextTokenStream stream) {
- return new org.eclipse.etrice.core.parser.antlr.internal.InternalConfigParser(stream, getGrammarAccess());
- }
-
- @Override
- protected String getDefaultRuleName() {
- return "ConfigModel";
- }
-
- public ConfigGrammarAccess getGrammarAccess() {
- return this.grammarAccess;
- }
-
- public void setGrammarAccess(ConfigGrammarAccess grammarAccess) {
- this.grammarAccess = grammarAccess;
- }
-
-}
+/*
+* generated by Xtext
+*/
+package org.eclipse.etrice.core.parser.antlr;
+
+import com.google.inject.Inject;
+
+import org.eclipse.xtext.parser.antlr.XtextTokenStream;
+import org.eclipse.etrice.core.services.ConfigGrammarAccess;
+
+public class ConfigParser extends org.eclipse.xtext.parser.antlr.AbstractAntlrParser {
+
+ @Inject
+ private ConfigGrammarAccess grammarAccess;
+
+ @Override
+ protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
+ tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
+ }
+
+ @Override
+ protected org.eclipse.etrice.core.parser.antlr.internal.InternalConfigParser createParser(XtextTokenStream stream) {
+ return new org.eclipse.etrice.core.parser.antlr.internal.InternalConfigParser(stream, getGrammarAccess());
+ }
+
+ @Override
+ protected String getDefaultRuleName() {
+ return "ConfigModel";
+ }
+
+ public ConfigGrammarAccess getGrammarAccess() {
+ return this.grammarAccess;
+ }
+
+ public void setGrammarAccess(ConfigGrammarAccess grammarAccess) {
+ this.grammarAccess = grammarAccess;
+ }
+
+}
diff --git a/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/parser/antlr/internal/InternalConfig.g b/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/parser/antlr/internal/InternalConfig.g
index a9e7e19bf..303db4fe4 100644
--- a/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/parser/antlr/internal/InternalConfig.g
+++ b/plugins/org.eclipse.etrice.core.config/src-gen/org/eclipse/etrice/core/parser/antlr/internal/InternalConfig.g
@@ -1,2147 +1,2147 @@
-/*
-* generated by Xtext
-*/
-grammar InternalConfig;
-
-options {
- superClass=AbstractInternalAntlrParser;
-
-}
-
-@lexer::header {
-package org.eclipse.etrice.core.parser.antlr.internal;
-
-// Hack: Use our own Lexer superclass by means of import.
-// Currently there is no other way to specify the superclass for the lexer.
-import org.eclipse.xtext.parser.antlr.Lexer;
-}
-
-@parser::header {
-package org.eclipse.etrice.core.parser.antlr.internal;
-
-import org.eclipse.xtext.*;
-import org.eclipse.xtext.parser.*;
-import org.eclipse.xtext.parser.impl.*;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser;
-import org.eclipse.xtext.parser.antlr.XtextTokenStream;
-import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens;
-import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken;
-import org.eclipse.etrice.core.services.ConfigGrammarAccess;
-
-}
-
-@parser::members {
-
- private ConfigGrammarAccess grammarAccess;
-
- public InternalConfigParser(TokenStream input, ConfigGrammarAccess grammarAccess) {
- this(input);
- this.grammarAccess = grammarAccess;
- registerRules(grammarAccess.getGrammar());
- }
-
- @Override
- protected String getFirstRuleName() {
- return "ConfigModel";
- }
-
- @Override
- protected ConfigGrammarAccess getGrammarAccess() {
- return grammarAccess;
- }
-}
-
-@rulecatch {
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
-}
-
-
-
-
-// Entry rule entryRuleConfigModel
-entryRuleConfigModel returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getConfigModelRule()); }
- iv_ruleConfigModel=ruleConfigModel
- { $current=$iv_ruleConfigModel.current; }
- EOF
-;
-
-// Rule ConfigModel
-ruleConfigModel returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getConfigModelAccess().getImportsImportParserRuleCall_0_0());
- }
- lv_imports_0_0=ruleImport {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getConfigModelRule());
- }
- add(
- $current,
- "imports",
- lv_imports_0_0,
- "Import");
- afterParserOrEnumRuleCall();
- }
-
-)
-)*(
-(
- {
- newCompositeNode(grammarAccess.getConfigModelAccess().getConfigElementsConfigElementParserRuleCall_1_0());
- }
- lv_configElements_1_0=ruleConfigElement {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getConfigModelRule());
- }
- add(
- $current,
- "configElements",
- lv_configElements_1_0,
- "ConfigElement");
- afterParserOrEnumRuleCall();
- }
-
-)
-)*)
-;
-
-
-
-
-
-// Entry rule entryRuleConfigElement
-entryRuleConfigElement returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getConfigElementRule()); }
- iv_ruleConfigElement=ruleConfigElement
- { $current=$iv_ruleConfigElement.current; }
- EOF
-;
-
-// Rule ConfigElement
-ruleConfigElement returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- newCompositeNode(grammarAccess.getConfigElementAccess().getSubSystemConfigParserRuleCall_0());
- }
- this_SubSystemConfig_0=ruleSubSystemConfig
- {
- $current = $this_SubSystemConfig_0.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- newCompositeNode(grammarAccess.getConfigElementAccess().getActorClassConfigParserRuleCall_1());
- }
- this_ActorClassConfig_1=ruleActorClassConfig
- {
- $current = $this_ActorClassConfig_1.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- newCompositeNode(grammarAccess.getConfigElementAccess().getActorInstanceConfigParserRuleCall_2());
- }
- this_ActorInstanceConfig_2=ruleActorInstanceConfig
- {
- $current = $this_ActorInstanceConfig_2.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- newCompositeNode(grammarAccess.getConfigElementAccess().getProtocolClassConfigParserRuleCall_3());
- }
- this_ProtocolClassConfig_3=ruleProtocolClassConfig
- {
- $current = $this_ProtocolClassConfig_3.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleSubSystemConfig
-entryRuleSubSystemConfig returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getSubSystemConfigRule()); }
- iv_ruleSubSystemConfig=ruleSubSystemConfig
- { $current=$iv_ruleSubSystemConfig.current; }
- EOF
-;
-
-// Rule SubSystemConfig
-ruleSubSystemConfig returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='SubSystemConfig'
- {
- newLeafNode(otherlv_0, grammarAccess.getSubSystemConfigAccess().getSubSystemConfigKeyword_0());
- }
-(
-(
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getSubSystemConfigRule());
- }
- }
- otherlv_1=RULE_ID
- {
- newLeafNode(otherlv_1, grammarAccess.getSubSystemConfigAccess().getSubSystemSubSystemClassCrossReference_1_0());
- }
-
-)
-) otherlv_2='{'
- {
- newLeafNode(otherlv_2, grammarAccess.getSubSystemConfigAccess().getLeftCurlyBracketKeyword_2());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getSubSystemConfigAccess().getDynConfigDynamicConfigParserRuleCall_3_0());
- }
- lv_dynConfig_3_0=ruleDynamicConfig {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSubSystemConfigRule());
- }
- set(
- $current,
- "dynConfig",
- lv_dynConfig_3_0,
- "DynamicConfig");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_4='}'
- {
- newLeafNode(otherlv_4, grammarAccess.getSubSystemConfigAccess().getRightCurlyBracketKeyword_4());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleDynamicConfig
-entryRuleDynamicConfig returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getDynamicConfigRule()); }
- iv_ruleDynamicConfig=ruleDynamicConfig
- { $current=$iv_ruleDynamicConfig.current; }
- EOF
-;
-
-// Rule DynamicConfig
-ruleDynamicConfig returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='dynamic configuration'
- {
- newLeafNode(otherlv_0, grammarAccess.getDynamicConfigAccess().getDynamicConfigurationKeyword_0());
- }
- otherlv_1='{'
- {
- newLeafNode(otherlv_1, grammarAccess.getDynamicConfigAccess().getLeftCurlyBracketKeyword_1());
- }
-(
-
-(
- {
- getUnorderedGroupHelper().enter(grammarAccess.getDynamicConfigAccess().getUnorderedGroup_2());
- }
- (
- (
-
- (
- {getUnorderedGroupHelper().canSelect(grammarAccess.getDynamicConfigAccess().getUnorderedGroup_2(), 0)}?=>(
- {
- getUnorderedGroupHelper().select(grammarAccess.getDynamicConfigAccess().getUnorderedGroup_2(), 0);
- }
- ({true}?=>(( otherlv_3='file path'
- {
- newLeafNode(otherlv_3, grammarAccess.getDynamicConfigAccess().getFilePathKeyword_2_0_0_0());
- }
-(
-(
- lv_filePath_4_0=RULE_STRING
- {
- newLeafNode(lv_filePath_4_0, grammarAccess.getDynamicConfigAccess().getFilePathSTRINGTerminalRuleCall_2_0_0_1_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getDynamicConfigRule());
- }
- setWithLastConsumed(
- $current,
- "filePath",
- lv_filePath_4_0,
- "STRING");
- }
-
-)
-))
- |(( otherlv_5='user import'
- {
- newLeafNode(otherlv_5, grammarAccess.getDynamicConfigAccess().getUserImportKeyword_2_0_1_0_0());
- }
-(
-(
- lv_userCode1_6_0=RULE_STRING
- {
- newLeafNode(lv_userCode1_6_0, grammarAccess.getDynamicConfigAccess().getUserCode1STRINGTerminalRuleCall_2_0_1_0_1_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getDynamicConfigRule());
- }
- setWithLastConsumed(
- $current,
- "userCode1",
- lv_userCode1_6_0,
- "STRING");
- }
-
-)
-))( otherlv_7='user constructor'
- {
- newLeafNode(otherlv_7, grammarAccess.getDynamicConfigAccess().getUserConstructorKeyword_2_0_1_1_0());
- }
-(
-(
- lv_userCode2_8_0=RULE_STRING
- {
- newLeafNode(lv_userCode2_8_0, grammarAccess.getDynamicConfigAccess().getUserCode2STRINGTerminalRuleCall_2_0_1_1_1_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getDynamicConfigRule());
- }
- setWithLastConsumed(
- $current,
- "userCode2",
- lv_userCode2_8_0,
- "STRING");
- }
-
-)
-)))))
- {
- getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDynamicConfigAccess().getUnorderedGroup_2());
- }
- )
- ) |
-
- (
- {getUnorderedGroupHelper().canSelect(grammarAccess.getDynamicConfigAccess().getUnorderedGroup_2(), 1)}?=>(
- {
- getUnorderedGroupHelper().select(grammarAccess.getDynamicConfigAccess().getUnorderedGroup_2(), 1);
- }
- ({true}?=>( otherlv_9='polling timer [ms]'
- {
- newLeafNode(otherlv_9, grammarAccess.getDynamicConfigAccess().getPollingTimerMsKeyword_2_1_0());
- }
-(
-(
- lv_polling_10_0=RULE_INT
- {
- newLeafNode(lv_polling_10_0, grammarAccess.getDynamicConfigAccess().getPollingINTTerminalRuleCall_2_1_1_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getDynamicConfigRule());
- }
- setWithLastConsumed(
- $current,
- "polling",
- lv_polling_10_0,
- "INT");
- }
-
-)
-)))
- {
- getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDynamicConfigAccess().getUnorderedGroup_2());
- }
- )
- )
-
- )+
- {getUnorderedGroupHelper().canLeave(grammarAccess.getDynamicConfigAccess().getUnorderedGroup_2())}?
- )
-)
- {
- getUnorderedGroupHelper().leave(grammarAccess.getDynamicConfigAccess().getUnorderedGroup_2());
- }
-
-) otherlv_11='}'
- {
- newLeafNode(otherlv_11, grammarAccess.getDynamicConfigAccess().getRightCurlyBracketKeyword_3());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleActorClassConfig
-entryRuleActorClassConfig returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getActorClassConfigRule()); }
- iv_ruleActorClassConfig=ruleActorClassConfig
- { $current=$iv_ruleActorClassConfig.current; }
- EOF
-;
-
-// Rule ActorClassConfig
-ruleActorClassConfig returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='ActorClassConfig'
- {
- newLeafNode(otherlv_0, grammarAccess.getActorClassConfigAccess().getActorClassConfigKeyword_0());
- }
-(
-(
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getActorClassConfigRule());
- }
- }
- {
- newCompositeNode(grammarAccess.getActorClassConfigAccess().getActorActorClassCrossReference_1_0());
- }
- ruleFQN {
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_2='{'
- {
- newLeafNode(otherlv_2, grammarAccess.getActorClassConfigAccess().getLeftCurlyBracketKeyword_2());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getActorClassConfigAccess().getAttributesAttrClassConfigParserRuleCall_3_0());
- }
- lv_attributes_3_0=ruleAttrClassConfig {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getActorClassConfigRule());
- }
- add(
- $current,
- "attributes",
- lv_attributes_3_0,
- "AttrClassConfig");
- afterParserOrEnumRuleCall();
- }
-
-)
-)* otherlv_4='}'
- {
- newLeafNode(otherlv_4, grammarAccess.getActorClassConfigAccess().getRightCurlyBracketKeyword_4());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleActorInstanceConfig
-entryRuleActorInstanceConfig returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getActorInstanceConfigRule()); }
- iv_ruleActorInstanceConfig=ruleActorInstanceConfig
- { $current=$iv_ruleActorInstanceConfig.current; }
- EOF
-;
-
-// Rule ActorInstanceConfig
-ruleActorInstanceConfig returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='ActorInstanceConfig'
- {
- newLeafNode(otherlv_0, grammarAccess.getActorInstanceConfigAccess().getActorInstanceConfigKeyword_0());
- }
-(
-(
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getActorInstanceConfigRule());
- }
- }
- {
- newCompositeNode(grammarAccess.getActorInstanceConfigAccess().getRootSubSystemClassCrossReference_1_0());
- }
- ruleFQN {
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_2='/'
- {
- newLeafNode(otherlv_2, grammarAccess.getActorInstanceConfigAccess().getSolidusKeyword_2());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getActorInstanceConfigAccess().getPathRefPathParserRuleCall_3_0());
- }
- lv_path_3_0=ruleRefPath {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getActorInstanceConfigRule());
- }
- set(
- $current,
- "path",
- lv_path_3_0,
- "RefPath");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_4='{'
- {
- newLeafNode(otherlv_4, grammarAccess.getActorInstanceConfigAccess().getLeftCurlyBracketKeyword_4());
- }
-(
-
-(
- {
- getUnorderedGroupHelper().enter(grammarAccess.getActorInstanceConfigAccess().getUnorderedGroup_5());
- }
- (
- (
-
- (
- {getUnorderedGroupHelper().canSelect(grammarAccess.getActorInstanceConfigAccess().getUnorderedGroup_5(), 0)}?=>(
- {
- getUnorderedGroupHelper().select(grammarAccess.getActorInstanceConfigAccess().getUnorderedGroup_5(), 0);
- }
- ({true}?=>(
-(
- {
- newCompositeNode(grammarAccess.getActorInstanceConfigAccess().getAttributesAttrInstanceConfigParserRuleCall_5_0_0());
- }
- lv_attributes_6_0=ruleAttrInstanceConfig {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getActorInstanceConfigRule());
- }
- add(
- $current,
- "attributes",
- lv_attributes_6_0,
- "AttrInstanceConfig");
- afterParserOrEnumRuleCall();
- }
-
-)
-))+
- {
- getUnorderedGroupHelper().returnFromSelection(grammarAccess.getActorInstanceConfigAccess().getUnorderedGroup_5());
- }
- )
- ) |
-
- (
- {getUnorderedGroupHelper().canSelect(grammarAccess.getActorInstanceConfigAccess().getUnorderedGroup_5(), 1)}?=>(
- {
- getUnorderedGroupHelper().select(grammarAccess.getActorInstanceConfigAccess().getUnorderedGroup_5(), 1);
- }
- ({true}?=>(
-(
- {
- newCompositeNode(grammarAccess.getActorInstanceConfigAccess().getPortsPortInstanceConfigParserRuleCall_5_1_0());
- }
- lv_ports_7_0=rulePortInstanceConfig {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getActorInstanceConfigRule());
- }
- add(
- $current,
- "ports",
- lv_ports_7_0,
- "PortInstanceConfig");
- afterParserOrEnumRuleCall();
- }
-
-)
-))+
- {
- getUnorderedGroupHelper().returnFromSelection(grammarAccess.getActorInstanceConfigAccess().getUnorderedGroup_5());
- }
- )
- )
-
- )*
- )
-)
- {
- getUnorderedGroupHelper().leave(grammarAccess.getActorInstanceConfigAccess().getUnorderedGroup_5());
- }
-
-) otherlv_8='}'
- {
- newLeafNode(otherlv_8, grammarAccess.getActorInstanceConfigAccess().getRightCurlyBracketKeyword_6());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleProtocolClassConfig
-entryRuleProtocolClassConfig returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getProtocolClassConfigRule()); }
- iv_ruleProtocolClassConfig=ruleProtocolClassConfig
- { $current=$iv_ruleProtocolClassConfig.current; }
- EOF
-;
-
-// Rule ProtocolClassConfig
-ruleProtocolClassConfig returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='ProtocolClassConfig'
- {
- newLeafNode(otherlv_0, grammarAccess.getProtocolClassConfigAccess().getProtocolClassConfigKeyword_0());
- }
-(
-(
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getProtocolClassConfigRule());
- }
- }
- {
- newCompositeNode(grammarAccess.getProtocolClassConfigAccess().getProtocolProtocolClassCrossReference_1_0());
- }
- ruleFQN {
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_2='{'
- {
- newLeafNode(otherlv_2, grammarAccess.getProtocolClassConfigAccess().getLeftCurlyBracketKeyword_2());
- }
-(
-
-(
- {
- getUnorderedGroupHelper().enter(grammarAccess.getProtocolClassConfigAccess().getUnorderedGroup_3());
- }
- (
- (
-
- (
- {getUnorderedGroupHelper().canSelect(grammarAccess.getProtocolClassConfigAccess().getUnorderedGroup_3(), 0)}?=>(
- {
- getUnorderedGroupHelper().select(grammarAccess.getProtocolClassConfigAccess().getUnorderedGroup_3(), 0);
- }
- ({true}?=>( otherlv_4='regular'
- {
- newLeafNode(otherlv_4, grammarAccess.getProtocolClassConfigAccess().getRegularKeyword_3_0_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getProtocolClassConfigAccess().getRegularPortClassConfigParserRuleCall_3_0_1_0());
- }
- lv_regular_5_0=rulePortClassConfig {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getProtocolClassConfigRule());
- }
- set(
- $current,
- "regular",
- lv_regular_5_0,
- "PortClassConfig");
- afterParserOrEnumRuleCall();
- }
-
-)
-)))
- {
- getUnorderedGroupHelper().returnFromSelection(grammarAccess.getProtocolClassConfigAccess().getUnorderedGroup_3());
- }
- )
- ) |
-
- (
- {getUnorderedGroupHelper().canSelect(grammarAccess.getProtocolClassConfigAccess().getUnorderedGroup_3(), 1)}?=>(
- {
- getUnorderedGroupHelper().select(grammarAccess.getProtocolClassConfigAccess().getUnorderedGroup_3(), 1);
- }
- ({true}?=>( otherlv_6='conjugate'
- {
- newLeafNode(otherlv_6, grammarAccess.getProtocolClassConfigAccess().getConjugateKeyword_3_1_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getProtocolClassConfigAccess().getConjugatedPortClassConfigParserRuleCall_3_1_1_0());
- }
- lv_conjugated_7_0=rulePortClassConfig {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getProtocolClassConfigRule());
- }
- set(
- $current,
- "conjugated",
- lv_conjugated_7_0,
- "PortClassConfig");
- afterParserOrEnumRuleCall();
- }
-
-)
-)))
- {
- getUnorderedGroupHelper().returnFromSelection(grammarAccess.getProtocolClassConfigAccess().getUnorderedGroup_3());
- }
- )
- )
-
- )*
- )
-)
- {
- getUnorderedGroupHelper().leave(grammarAccess.getProtocolClassConfigAccess().getUnorderedGroup_3());
- }
-
-) otherlv_8='}'
- {
- newLeafNode(otherlv_8, grammarAccess.getProtocolClassConfigAccess().getRightCurlyBracketKeyword_4());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRulePortClassConfig
-entryRulePortClassConfig returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getPortClassConfigRule()); }
- iv_rulePortClassConfig=rulePortClassConfig
- { $current=$iv_rulePortClassConfig.current; }
- EOF
-;
-
-// Rule PortClassConfig
-rulePortClassConfig returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
- {
- $current = forceCreateModelElement(
- grammarAccess.getPortClassConfigAccess().getPortClassConfigAction_0(),
- $current);
- }
-) otherlv_1='Port'
- {
- newLeafNode(otherlv_1, grammarAccess.getPortClassConfigAccess().getPortKeyword_1());
- }
- otherlv_2='{'
- {
- newLeafNode(otherlv_2, grammarAccess.getPortClassConfigAccess().getLeftCurlyBracketKeyword_2());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getPortClassConfigAccess().getAttributesAttrClassConfigParserRuleCall_3_0());
- }
- lv_attributes_3_0=ruleAttrClassConfig {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPortClassConfigRule());
- }
- add(
- $current,
- "attributes",
- lv_attributes_3_0,
- "AttrClassConfig");
- afterParserOrEnumRuleCall();
- }
-
-)
-)* otherlv_4='}'
- {
- newLeafNode(otherlv_4, grammarAccess.getPortClassConfigAccess().getRightCurlyBracketKeyword_4());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRulePortInstanceConfig
-entryRulePortInstanceConfig returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getPortInstanceConfigRule()); }
- iv_rulePortInstanceConfig=rulePortInstanceConfig
- { $current=$iv_rulePortInstanceConfig.current; }
- EOF
-;
-
-// Rule PortInstanceConfig
-rulePortInstanceConfig returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='InterfaceItem'
- {
- newLeafNode(otherlv_0, grammarAccess.getPortInstanceConfigAccess().getInterfaceItemKeyword_0());
- }
-(
-(
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getPortInstanceConfigRule());
- }
- }
- otherlv_1=RULE_ID
- {
- newLeafNode(otherlv_1, grammarAccess.getPortInstanceConfigAccess().getItemInterfaceItemCrossReference_1_0());
- }
-
-)
-) otherlv_2='{'
- {
- newLeafNode(otherlv_2, grammarAccess.getPortInstanceConfigAccess().getLeftCurlyBracketKeyword_2());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getPortInstanceConfigAccess().getAttributesAttrInstanceConfigParserRuleCall_3_0());
- }
- lv_attributes_3_0=ruleAttrInstanceConfig {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPortInstanceConfigRule());
- }
- add(
- $current,
- "attributes",
- lv_attributes_3_0,
- "AttrInstanceConfig");
- afterParserOrEnumRuleCall();
- }
-
-)
-)* otherlv_4='}'
- {
- newLeafNode(otherlv_4, grammarAccess.getPortInstanceConfigAccess().getRightCurlyBracketKeyword_4());
- }
-)
-;
-
-
-
-
-
-
-
-// Entry rule entryRuleAttrClassConfig
-entryRuleAttrClassConfig returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getAttrClassConfigRule()); }
- iv_ruleAttrClassConfig=ruleAttrClassConfig
- { $current=$iv_ruleAttrClassConfig.current; }
- EOF
-;
-
-// Rule AttrClassConfig
-ruleAttrClassConfig returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='Attr'
- {
- newLeafNode(otherlv_0, grammarAccess.getAttrClassConfigAccess().getAttrKeyword_0());
- }
-(
-(
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getAttrClassConfigRule());
- }
- }
- otherlv_1=RULE_ID
- {
- newLeafNode(otherlv_1, grammarAccess.getAttrClassConfigAccess().getAttributeAttributeCrossReference_1_0());
- }
-
-)
-)( otherlv_2='='
- {
- newLeafNode(otherlv_2, grammarAccess.getAttrClassConfigAccess().getEqualsSignKeyword_2_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getAttrClassConfigAccess().getValueLiteralArrayParserRuleCall_2_1_0());
- }
- lv_value_3_0=ruleLiteralArray {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getAttrClassConfigRule());
- }
- set(
- $current,
- "value",
- lv_value_3_0,
- "LiteralArray");
- afterParserOrEnumRuleCall();
- }
-
-)
-))?( otherlv_4='{'
- {
- newLeafNode(otherlv_4, grammarAccess.getAttrClassConfigAccess().getLeftCurlyBracketKeyword_3_0());
- }
-(( otherlv_5='min'
- {
- newLeafNode(otherlv_5, grammarAccess.getAttrClassConfigAccess().getMinKeyword_3_1_0_0());
- }
- otherlv_6='='
- {
- newLeafNode(otherlv_6, grammarAccess.getAttrClassConfigAccess().getEqualsSignKeyword_3_1_0_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getAttrClassConfigAccess().getMinNumberLiteralParserRuleCall_3_1_0_2_0());
- }
- lv_min_7_0=ruleNumberLiteral {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getAttrClassConfigRule());
- }
- set(
- $current,
- "min",
- lv_min_7_0,
- "NumberLiteral");
- afterParserOrEnumRuleCall();
- }
-
-)
-))?( otherlv_8='max'
- {
- newLeafNode(otherlv_8, grammarAccess.getAttrClassConfigAccess().getMaxKeyword_3_1_1_0());
- }
- otherlv_9='='
- {
- newLeafNode(otherlv_9, grammarAccess.getAttrClassConfigAccess().getEqualsSignKeyword_3_1_1_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getAttrClassConfigAccess().getMaxNumberLiteralParserRuleCall_3_1_1_2_0());
- }
- lv_max_10_0=ruleNumberLiteral {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getAttrClassConfigRule());
- }
- set(
- $current,
- "max",
- lv_max_10_0,
- "NumberLiteral");
- afterParserOrEnumRuleCall();
- }
-
-)
-))?(
-(
- {
- newCompositeNode(grammarAccess.getAttrClassConfigAccess().getAttributesAttrClassConfigParserRuleCall_3_1_2_0());
- }
- lv_attributes_11_0=ruleAttrClassConfig {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getAttrClassConfigRule());
- }
- add(
- $current,
- "attributes",
- lv_attributes_11_0,
- "AttrClassConfig");
- afterParserOrEnumRuleCall();
- }
-
-)
-)*) otherlv_12='}'
- {
- newLeafNode(otherlv_12, grammarAccess.getAttrClassConfigAccess().getRightCurlyBracketKeyword_3_2());
- }
-)?)
-;
-
-
-
-
-
-// Entry rule entryRuleAttrInstanceConfig
-entryRuleAttrInstanceConfig returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getAttrInstanceConfigRule()); }
- iv_ruleAttrInstanceConfig=ruleAttrInstanceConfig
- { $current=$iv_ruleAttrInstanceConfig.current; }
- EOF
-;
-
-// Rule AttrInstanceConfig
-ruleAttrInstanceConfig returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='Attr'
- {
- newLeafNode(otherlv_0, grammarAccess.getAttrInstanceConfigAccess().getAttrKeyword_0());
- }
-(
-(
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getAttrInstanceConfigRule());
- }
- }
- otherlv_1=RULE_ID
- {
- newLeafNode(otherlv_1, grammarAccess.getAttrInstanceConfigAccess().getAttributeAttributeCrossReference_1_0());
- }
-
-)
-)( otherlv_2='='
- {
- newLeafNode(otherlv_2, grammarAccess.getAttrInstanceConfigAccess().getEqualsSignKeyword_2_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getAttrInstanceConfigAccess().getValueLiteralArrayParserRuleCall_2_1_0());
- }
- lv_value_3_0=ruleLiteralArray {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getAttrInstanceConfigRule());
- }
- set(
- $current,
- "value",
- lv_value_3_0,
- "LiteralArray");
- afterParserOrEnumRuleCall();
- }
-
-)
-))?( otherlv_4='{'
- {
- newLeafNode(otherlv_4, grammarAccess.getAttrInstanceConfigAccess().getLeftCurlyBracketKeyword_3_0());
- }
-(((
-(
- lv_dynConfig_5_0= 'dynamic configuration'
- {
- newLeafNode(lv_dynConfig_5_0, grammarAccess.getAttrInstanceConfigAccess().getDynConfigDynamicConfigurationKeyword_3_1_0_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getAttrInstanceConfigRule());
- }
- setWithLastConsumed($current, "dynConfig", true, "dynamic configuration");
- }
-
-)
-)((
-(
- lv_readOnly_6_0= 'read'
- {
- newLeafNode(lv_readOnly_6_0, grammarAccess.getAttrInstanceConfigAccess().getReadOnlyReadKeyword_3_1_0_1_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getAttrInstanceConfigRule());
- }
- setWithLastConsumed($current, "readOnly", true, "read");
- }
-
-)
-)
- | otherlv_7='write'
- {
- newLeafNode(otherlv_7, grammarAccess.getAttrInstanceConfigAccess().getWriteKeyword_3_1_0_1_1());
- }
-))?(
-(
- {
- newCompositeNode(grammarAccess.getAttrInstanceConfigAccess().getAttributesAttrInstanceConfigParserRuleCall_3_1_1_0());
- }
- lv_attributes_8_0=ruleAttrInstanceConfig {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getAttrInstanceConfigRule());
- }
- add(
- $current,
- "attributes",
- lv_attributes_8_0,
- "AttrInstanceConfig");
- afterParserOrEnumRuleCall();
- }
-
-)
-)*) otherlv_9='}'
- {
- newLeafNode(otherlv_9, grammarAccess.getAttrInstanceConfigAccess().getRightCurlyBracketKeyword_3_2());
- }
-)?)
-;
-
-
-
-
-
-// Entry rule entryRuleRefPath
-entryRuleRefPath returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getRefPathRule()); }
- iv_ruleRefPath=ruleRefPath
- { $current=$iv_ruleRefPath.current; }
- EOF
-;
-
-// Rule RefPath
-ruleRefPath returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- lv_refs_0_0=RULE_ID
- {
- newLeafNode(lv_refs_0_0, grammarAccess.getRefPathAccess().getRefsIDTerminalRuleCall_0_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getRefPathRule());
- }
- addWithLastConsumed(
- $current,
- "refs",
- lv_refs_0_0,
- "ID");
- }
-
-)
-)( otherlv_1='/'
- {
- newLeafNode(otherlv_1, grammarAccess.getRefPathAccess().getSolidusKeyword_1_0());
- }
-(
-(
- lv_refs_2_0=RULE_ID
- {
- newLeafNode(lv_refs_2_0, grammarAccess.getRefPathAccess().getRefsIDTerminalRuleCall_1_1_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getRefPathRule());
- }
- addWithLastConsumed(
- $current,
- "refs",
- lv_refs_2_0,
- "ID");
- }
-
-)
-))*)
-;
-
-
-
-
-
-// Entry rule entryRuleImport
-entryRuleImport returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getImportRule()); }
- iv_ruleImport=ruleImport
- { $current=$iv_ruleImport.current; }
- EOF
-;
-
-// Rule Import
-ruleImport returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( 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,
- "ImportedFQN");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_2='from'
- {
- newLeafNode(otherlv_2, grammarAccess.getImportAccess().getFromKeyword_1_0_1());
- }
-)
- | otherlv_3='model'
- {
- newLeafNode(otherlv_3, grammarAccess.getImportAccess().getModelKeyword_1_1());
- }
-)(
-(
- lv_importURI_4_0=RULE_STRING
- {
- newLeafNode(lv_importURI_4_0, grammarAccess.getImportAccess().getImportURISTRINGTerminalRuleCall_2_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getImportRule());
- }
- setWithLastConsumed(
- $current,
- "importURI",
- lv_importURI_4_0,
- "STRING");
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleImportedFQN
-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());
- }
-)?)
- ;
-
-
-
-
-
-// Entry rule entryRuleFQN
-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());
- }
-)*)
- ;
-
-
-
-
-
-// Entry rule entryRuleLiteralArray
-entryRuleLiteralArray returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getLiteralArrayRule()); }
- iv_ruleLiteralArray=ruleLiteralArray
- { $current=$iv_ruleLiteralArray.current; }
- EOF
-;
-
-// Rule LiteralArray
-ruleLiteralArray returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getLiteralArrayAccess().getLiteralsLiteralParserRuleCall_0_0());
- }
- lv_literals_0_0=ruleLiteral {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getLiteralArrayRule());
- }
- add(
- $current,
- "literals",
- lv_literals_0_0,
- "Literal");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_1=','
- {
- newLeafNode(otherlv_1, grammarAccess.getLiteralArrayAccess().getCommaKeyword_1_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getLiteralArrayAccess().getLiteralsLiteralParserRuleCall_1_1_0());
- }
- lv_literals_2_0=ruleLiteral {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getLiteralArrayRule());
- }
- add(
- $current,
- "literals",
- lv_literals_2_0,
- "Literal");
- afterParserOrEnumRuleCall();
- }
-
-)
-))*)
-;
-
-
-
-
-
-// Entry rule entryRuleLiteral
-entryRuleLiteral returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getLiteralRule()); }
- iv_ruleLiteral=ruleLiteral
- { $current=$iv_ruleLiteral.current; }
- EOF
-;
-
-// Rule Literal
-ruleLiteral returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- newCompositeNode(grammarAccess.getLiteralAccess().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]
- :
- { newCompositeNode(grammarAccess.getBooleanLiteralRule()); }
- 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");
- }
-
-)
-)))
-;
-
-
-
-
-
-// Entry rule entryRuleNumberLiteral
-entryRuleNumberLiteral returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getNumberLiteralRule()); }
- 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();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleRealLiteral
-entryRuleRealLiteral returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getRealLiteralRule()); }
- 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,
- "Real");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleIntLiteral
-entryRuleIntLiteral returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getIntLiteralRule()); }
- 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,
- "Integer");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleStringLiteral
-entryRuleStringLiteral returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getStringLiteralRule()); }
- 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,
- "STRING");
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleInteger
-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(); }:
-(
- {
- newCompositeNode(grammarAccess.getIntegerAccess().getSignedIntegerParserRuleCall_0());
- }
- this_SignedInteger_0=ruleSignedInteger {
- $current.merge(this_SignedInteger_0);
- }
-
- {
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- newCompositeNode(grammarAccess.getIntegerAccess().getHexadecimalParserRuleCall_1());
- }
- this_Hexadecimal_1=ruleHexadecimal {
- $current.merge(this_Hexadecimal_1);
- }
-
- {
- afterParserOrEnumRuleCall();
- }
-)
- ;
-
-
-
-
-
-// Entry rule entryRuleSignedInteger
-entryRuleSignedInteger returns [String current=null]
- @init {
- HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
- }
- :
- { newCompositeNode(grammarAccess.getSignedIntegerRule()); }
- iv_ruleSignedInteger=ruleSignedInteger
- { $current=$iv_ruleSignedInteger.current.getText(); }
- EOF
-;
-finally {
- myHiddenTokenState.restore();
-}
-
-// Rule SignedInteger
-ruleSignedInteger returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
- @init { enterRule();
- HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
- }
- @after { leaveRule(); }:
-((
- kw='+'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getSignedIntegerAccess().getPlusSignKeyword_0_0());
- }
-
- |
- kw='-'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getSignedIntegerAccess().getHyphenMinusKeyword_0_1());
- }
-)? this_INT_2=RULE_INT {
- $current.merge(this_INT_2);
- }
-
- {
- newLeafNode(this_INT_2, grammarAccess.getSignedIntegerAccess().getINTTerminalRuleCall_1());
- }
-)
- ;
-finally {
- myHiddenTokenState.restore();
-}
-
-
-
-
-
-// Entry rule entryRuleHexadecimal
-entryRuleHexadecimal returns [String current=null]
- @init {
- HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
- }
- :
- { newCompositeNode(grammarAccess.getHexadecimalRule()); }
- iv_ruleHexadecimal=ruleHexadecimal
- { $current=$iv_ruleHexadecimal.current.getText(); }
- EOF
-;
-finally {
- myHiddenTokenState.restore();
-}
-
-// Rule Hexadecimal
-ruleHexadecimal returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
- @init { enterRule();
- HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
- }
- @after { leaveRule(); }:
- this_HEX_0=RULE_HEX {
- $current.merge(this_HEX_0);
- }
-
- {
- newLeafNode(this_HEX_0, grammarAccess.getHexadecimalAccess().getHEXTerminalRuleCall());
- }
-
- ;
-finally {
- myHiddenTokenState.restore();
-}
-
-
-
-
-
-// Entry rule entryRuleReal
-entryRuleReal returns [String current=null]
- :
- { newCompositeNode(grammarAccess.getRealRule()); }
- iv_ruleReal=ruleReal
- { $current=$iv_ruleReal.current.getText(); }
- EOF
-;
-
-// Rule Real
-ruleReal returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- newCompositeNode(grammarAccess.getRealAccess().getDecimalParserRuleCall_0());
- }
- this_Decimal_0=ruleDecimal {
- $current.merge(this_Decimal_0);
- }
-
- {
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- newCompositeNode(grammarAccess.getRealAccess().getDotDecimalParserRuleCall_1());
- }
- this_DotDecimal_1=ruleDotDecimal {
- $current.merge(this_DotDecimal_1);
- }
-
- {
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- newCompositeNode(grammarAccess.getRealAccess().getDecimalDotParserRuleCall_2());
- }
- this_DecimalDot_2=ruleDecimalDot {
- $current.merge(this_DecimalDot_2);
- }
-
- {
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- newCompositeNode(grammarAccess.getRealAccess().getDecimalExpParserRuleCall_3());
- }
- this_DecimalExp_3=ruleDecimalExp {
- $current.merge(this_DecimalExp_3);
- }
-
- {
- 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
-;
-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());
- }
-)
- ;
-finally {
- myHiddenTokenState.restore();
-}
-
-
-
-
-
-// Entry rule entryRuleDotDecimal
-entryRuleDotDecimal returns [String current=null]
- @init {
- HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
- }
- :
- { newCompositeNode(grammarAccess.getDotDecimalRule()); }
- iv_ruleDotDecimal=ruleDotDecimal
- { $current=$iv_ruleDotDecimal.current.getText(); }
- EOF
-;
-finally {
- myHiddenTokenState.restore();
-}
-
-// Rule DotDecimal
-ruleDotDecimal returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
- @init { enterRule();
- HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
- }
- @after { leaveRule(); }:
-((
- kw='+'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getDotDecimalAccess().getPlusSignKeyword_0_0());
- }
-
- |
- kw='-'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getDotDecimalAccess().getHyphenMinusKeyword_0_1());
- }
-)?
- kw='.'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getDotDecimalAccess().getFullStopKeyword_1());
- }
- this_INT_3=RULE_INT {
- $current.merge(this_INT_3);
- }
-
- {
- newLeafNode(this_INT_3, grammarAccess.getDotDecimalAccess().getINTTerminalRuleCall_2());
- }
-)
- ;
-finally {
- myHiddenTokenState.restore();
-}
-
-
-
-
-
-// Entry rule entryRuleDecimalDot
-entryRuleDecimalDot returns [String current=null]
- @init {
- HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
- }
- :
- { newCompositeNode(grammarAccess.getDecimalDotRule()); }
- iv_ruleDecimalDot=ruleDecimalDot
- { $current=$iv_ruleDecimalDot.current.getText(); }
- EOF
-;
-finally {
- myHiddenTokenState.restore();
-}
-
-// Rule DecimalDot
-ruleDecimalDot returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
- @init { enterRule();
- HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
- }
- @after { leaveRule(); }:
-((
- kw='+'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getDecimalDotAccess().getPlusSignKeyword_0_0());
- }
-
- |
- kw='-'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getDecimalDotAccess().getHyphenMinusKeyword_0_1());
- }
-)? this_INT_2=RULE_INT {
- $current.merge(this_INT_2);
- }
-
- {
- newLeafNode(this_INT_2, grammarAccess.getDecimalDotAccess().getINTTerminalRuleCall_1());
- }
-
- kw='.'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getDecimalDotAccess().getFullStopKeyword_2());
- }
-)
- ;
-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
-;
-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());
- }
- this_EXP_5=RULE_EXP {
- $current.merge(this_EXP_5);
- }
-
- {
- newLeafNode(this_EXP_5, grammarAccess.getDecimalExpAccess().getEXPTerminalRuleCall_4());
- }
-)
- ;
-finally {
- myHiddenTokenState.restore();
-}
-
-
-
-
-
-RULE_EXP : ('e'|'E') ('+'|'-')? ('0'..'9')+;
-
-RULE_HEX : ('0x'|'0X') ('0'..'9'|'a'..'f'|'A'..'F')+;
-
-RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*;
-
-RULE_INT : ('0'..'9')+;
-
-RULE_STRING : ('"' ('\\' ('b'|'t'|'n'|'f'|'r'|'u'|'"'|'\''|'\\')|~(('\\'|'"')))* '"'|'\'' ('\\' ('b'|'t'|'n'|'f'|'r'|'u'|'"'|'\''|'\\')|~(('\\'|'\'')))* '\'');
-
-RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/';
-
-RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?;
-
-RULE_WS : (' '|'\t'|'\r'|'\n')+;
-
-RULE_ANY_OTHER : .;
-
-
+/*
+* generated by Xtext
+*/
+grammar InternalConfig;
+
+options {
+ superClass=AbstractInternalAntlrParser;
+
+}
+
+@lexer::header {
+package org.eclipse.etrice.core.parser.antlr.internal;
+
+// Hack: Use our own Lexer superclass by means of import.
+// Currently there is no other way to specify the superclass for the lexer.
+import org.eclipse.xtext.parser.antlr.Lexer;
+}
+
+@parser::header {
+package org.eclipse.etrice.core.parser.antlr.internal;
+
+import org.eclipse.xtext.*;
+import org.eclipse.xtext.parser.*;
+import org.eclipse.xtext.parser.impl.*;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser;
+import org.eclipse.xtext.parser.antlr.XtextTokenStream;
+import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens;
+import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken;
+import org.eclipse.etrice.core.services.ConfigGrammarAccess;
+
+}
+
+@parser::members {
+
+ private ConfigGrammarAccess grammarAccess;
+
+ public InternalConfigParser(TokenStream input, ConfigGrammarAccess grammarAccess) {
+ this(input);
+ this.grammarAccess = grammarAccess;
+ registerRules(grammarAccess.getGrammar());
+ }
+
+ @Override
+ protected String getFirstRuleName() {
+ return "ConfigModel";
+ }
+
+ @Override
+ protected ConfigGrammarAccess getGrammarAccess() {
+ return grammarAccess;
+ }
+}
+
+@rulecatch {
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+}
+
+
+
+
+// Entry rule entryRuleConfigModel
+entryRuleConfigModel returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getConfigModelRule()); }
+ iv_ruleConfigModel=ruleConfigModel
+ { $current=$iv_ruleConfigModel.current; }
+ EOF
+;
+
+// Rule ConfigModel
+ruleConfigModel returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getConfigModelAccess().getImportsImportParserRuleCall_0_0());
+ }
+ lv_imports_0_0=ruleImport {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getConfigModelRule());
+ }
+ add(
+ $current,
+ "imports",
+ lv_imports_0_0,
+ "Import");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)*(
+(
+ {
+ newCompositeNode(grammarAccess.getConfigModelAccess().getConfigElementsConfigElementParserRuleCall_1_0());
+ }
+ lv_configElements_1_0=ruleConfigElement {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getConfigModelRule());
+ }
+ add(
+ $current,
+ "configElements",
+ lv_configElements_1_0,
+ "ConfigElement");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)*)
+;
+
+
+
+
+
+// Entry rule entryRuleConfigElement
+entryRuleConfigElement returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getConfigElementRule()); }
+ iv_ruleConfigElement=ruleConfigElement
+ { $current=$iv_ruleConfigElement.current; }
+ EOF
+;
+
+// Rule ConfigElement
+ruleConfigElement returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ newCompositeNode(grammarAccess.getConfigElementAccess().getSubSystemConfigParserRuleCall_0());
+ }
+ this_SubSystemConfig_0=ruleSubSystemConfig
+ {
+ $current = $this_SubSystemConfig_0.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ newCompositeNode(grammarAccess.getConfigElementAccess().getActorClassConfigParserRuleCall_1());
+ }
+ this_ActorClassConfig_1=ruleActorClassConfig
+ {
+ $current = $this_ActorClassConfig_1.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ newCompositeNode(grammarAccess.getConfigElementAccess().getActorInstanceConfigParserRuleCall_2());
+ }
+ this_ActorInstanceConfig_2=ruleActorInstanceConfig
+ {
+ $current = $this_ActorInstanceConfig_2.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ newCompositeNode(grammarAccess.getConfigElementAccess().getProtocolClassConfigParserRuleCall_3());
+ }
+ this_ProtocolClassConfig_3=ruleProtocolClassConfig
+ {
+ $current = $this_ProtocolClassConfig_3.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleSubSystemConfig
+entryRuleSubSystemConfig returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getSubSystemConfigRule()); }
+ iv_ruleSubSystemConfig=ruleSubSystemConfig
+ { $current=$iv_ruleSubSystemConfig.current; }
+ EOF
+;
+
+// Rule SubSystemConfig
+ruleSubSystemConfig returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='SubSystemConfig'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getSubSystemConfigAccess().getSubSystemConfigKeyword_0());
+ }
+(
+(
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getSubSystemConfigRule());
+ }
+ }
+ otherlv_1=RULE_ID
+ {
+ newLeafNode(otherlv_1, grammarAccess.getSubSystemConfigAccess().getSubSystemSubSystemClassCrossReference_1_0());
+ }
+
+)
+) otherlv_2='{'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getSubSystemConfigAccess().getLeftCurlyBracketKeyword_2());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getSubSystemConfigAccess().getDynConfigDynamicConfigParserRuleCall_3_0());
+ }
+ lv_dynConfig_3_0=ruleDynamicConfig {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSubSystemConfigRule());
+ }
+ set(
+ $current,
+ "dynConfig",
+ lv_dynConfig_3_0,
+ "DynamicConfig");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_4='}'
+ {
+ newLeafNode(otherlv_4, grammarAccess.getSubSystemConfigAccess().getRightCurlyBracketKeyword_4());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleDynamicConfig
+entryRuleDynamicConfig returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getDynamicConfigRule()); }
+ iv_ruleDynamicConfig=ruleDynamicConfig
+ { $current=$iv_ruleDynamicConfig.current; }
+ EOF
+;
+
+// Rule DynamicConfig
+ruleDynamicConfig returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='dynamic configuration'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getDynamicConfigAccess().getDynamicConfigurationKeyword_0());
+ }
+ otherlv_1='{'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getDynamicConfigAccess().getLeftCurlyBracketKeyword_1());
+ }
+(
+
+(
+ {
+ getUnorderedGroupHelper().enter(grammarAccess.getDynamicConfigAccess().getUnorderedGroup_2());
+ }
+ (
+ (
+
+ (
+ {getUnorderedGroupHelper().canSelect(grammarAccess.getDynamicConfigAccess().getUnorderedGroup_2(), 0)}?=>(
+ {
+ getUnorderedGroupHelper().select(grammarAccess.getDynamicConfigAccess().getUnorderedGroup_2(), 0);
+ }
+ ({true}?=>(( otherlv_3='file path'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getDynamicConfigAccess().getFilePathKeyword_2_0_0_0());
+ }
+(
+(
+ lv_filePath_4_0=RULE_STRING
+ {
+ newLeafNode(lv_filePath_4_0, grammarAccess.getDynamicConfigAccess().getFilePathSTRINGTerminalRuleCall_2_0_0_1_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getDynamicConfigRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "filePath",
+ lv_filePath_4_0,
+ "STRING");
+ }
+
+)
+))
+ |(( otherlv_5='user import'
+ {
+ newLeafNode(otherlv_5, grammarAccess.getDynamicConfigAccess().getUserImportKeyword_2_0_1_0_0());
+ }
+(
+(
+ lv_userCode1_6_0=RULE_STRING
+ {
+ newLeafNode(lv_userCode1_6_0, grammarAccess.getDynamicConfigAccess().getUserCode1STRINGTerminalRuleCall_2_0_1_0_1_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getDynamicConfigRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "userCode1",
+ lv_userCode1_6_0,
+ "STRING");
+ }
+
+)
+))( otherlv_7='user constructor'
+ {
+ newLeafNode(otherlv_7, grammarAccess.getDynamicConfigAccess().getUserConstructorKeyword_2_0_1_1_0());
+ }
+(
+(
+ lv_userCode2_8_0=RULE_STRING
+ {
+ newLeafNode(lv_userCode2_8_0, grammarAccess.getDynamicConfigAccess().getUserCode2STRINGTerminalRuleCall_2_0_1_1_1_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getDynamicConfigRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "userCode2",
+ lv_userCode2_8_0,
+ "STRING");
+ }
+
+)
+)))))
+ {
+ getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDynamicConfigAccess().getUnorderedGroup_2());
+ }
+ )
+ ) |
+
+ (
+ {getUnorderedGroupHelper().canSelect(grammarAccess.getDynamicConfigAccess().getUnorderedGroup_2(), 1)}?=>(
+ {
+ getUnorderedGroupHelper().select(grammarAccess.getDynamicConfigAccess().getUnorderedGroup_2(), 1);
+ }
+ ({true}?=>( otherlv_9='polling timer [ms]'
+ {
+ newLeafNode(otherlv_9, grammarAccess.getDynamicConfigAccess().getPollingTimerMsKeyword_2_1_0());
+ }
+(
+(
+ lv_polling_10_0=RULE_INT
+ {
+ newLeafNode(lv_polling_10_0, grammarAccess.getDynamicConfigAccess().getPollingINTTerminalRuleCall_2_1_1_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getDynamicConfigRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "polling",
+ lv_polling_10_0,
+ "INT");
+ }
+
+)
+)))
+ {
+ getUnorderedGroupHelper().returnFromSelection(grammarAccess.getDynamicConfigAccess().getUnorderedGroup_2());
+ }
+ )
+ )
+
+ )+
+ {getUnorderedGroupHelper().canLeave(grammarAccess.getDynamicConfigAccess().getUnorderedGroup_2())}?
+ )
+)
+ {
+ getUnorderedGroupHelper().leave(grammarAccess.getDynamicConfigAccess().getUnorderedGroup_2());
+ }
+
+) otherlv_11='}'
+ {
+ newLeafNode(otherlv_11, grammarAccess.getDynamicConfigAccess().getRightCurlyBracketKeyword_3());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleActorClassConfig
+entryRuleActorClassConfig returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getActorClassConfigRule()); }
+ iv_ruleActorClassConfig=ruleActorClassConfig
+ { $current=$iv_ruleActorClassConfig.current; }
+ EOF
+;
+
+// Rule ActorClassConfig
+ruleActorClassConfig returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='ActorClassConfig'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getActorClassConfigAccess().getActorClassConfigKeyword_0());
+ }
+(
+(
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getActorClassConfigRule());
+ }
+ }
+ {
+ newCompositeNode(grammarAccess.getActorClassConfigAccess().getActorActorClassCrossReference_1_0());
+ }
+ ruleFQN {
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_2='{'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getActorClassConfigAccess().getLeftCurlyBracketKeyword_2());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getActorClassConfigAccess().getAttributesAttrClassConfigParserRuleCall_3_0());
+ }
+ lv_attributes_3_0=ruleAttrClassConfig {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getActorClassConfigRule());
+ }
+ add(
+ $current,
+ "attributes",
+ lv_attributes_3_0,
+ "AttrClassConfig");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)* otherlv_4='}'
+ {
+ newLeafNode(otherlv_4, grammarAccess.getActorClassConfigAccess().getRightCurlyBracketKeyword_4());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleActorInstanceConfig
+entryRuleActorInstanceConfig returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getActorInstanceConfigRule()); }
+ iv_ruleActorInstanceConfig=ruleActorInstanceConfig
+ { $current=$iv_ruleActorInstanceConfig.current; }
+ EOF
+;
+
+// Rule ActorInstanceConfig
+ruleActorInstanceConfig returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='ActorInstanceConfig'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getActorInstanceConfigAccess().getActorInstanceConfigKeyword_0());
+ }
+(
+(
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getActorInstanceConfigRule());
+ }
+ }
+ {
+ newCompositeNode(grammarAccess.getActorInstanceConfigAccess().getRootSubSystemClassCrossReference_1_0());
+ }
+ ruleFQN {
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_2='/'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getActorInstanceConfigAccess().getSolidusKeyword_2());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getActorInstanceConfigAccess().getPathRefPathParserRuleCall_3_0());
+ }
+ lv_path_3_0=ruleRefPath {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getActorInstanceConfigRule());
+ }
+ set(
+ $current,
+ "path",
+ lv_path_3_0,
+ "RefPath");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_4='{'
+ {
+ newLeafNode(otherlv_4, grammarAccess.getActorInstanceConfigAccess().getLeftCurlyBracketKeyword_4());
+ }
+(
+
+(
+ {
+ getUnorderedGroupHelper().enter(grammarAccess.getActorInstanceConfigAccess().getUnorderedGroup_5());
+ }
+ (
+ (
+
+ (
+ {getUnorderedGroupHelper().canSelect(grammarAccess.getActorInstanceConfigAccess().getUnorderedGroup_5(), 0)}?=>(
+ {
+ getUnorderedGroupHelper().select(grammarAccess.getActorInstanceConfigAccess().getUnorderedGroup_5(), 0);
+ }
+ ({true}?=>(
+(
+ {
+ newCompositeNode(grammarAccess.getActorInstanceConfigAccess().getAttributesAttrInstanceConfigParserRuleCall_5_0_0());
+ }
+ lv_attributes_6_0=ruleAttrInstanceConfig {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getActorInstanceConfigRule());
+ }
+ add(
+ $current,
+ "attributes",
+ lv_attributes_6_0,
+ "AttrInstanceConfig");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))+
+ {
+ getUnorderedGroupHelper().returnFromSelection(grammarAccess.getActorInstanceConfigAccess().getUnorderedGroup_5());
+ }
+ )
+ ) |
+
+ (
+ {getUnorderedGroupHelper().canSelect(grammarAccess.getActorInstanceConfigAccess().getUnorderedGroup_5(), 1)}?=>(
+ {
+ getUnorderedGroupHelper().select(grammarAccess.getActorInstanceConfigAccess().getUnorderedGroup_5(), 1);
+ }
+ ({true}?=>(
+(
+ {
+ newCompositeNode(grammarAccess.getActorInstanceConfigAccess().getPortsPortInstanceConfigParserRuleCall_5_1_0());
+ }
+ lv_ports_7_0=rulePortInstanceConfig {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getActorInstanceConfigRule());
+ }
+ add(
+ $current,
+ "ports",
+ lv_ports_7_0,
+ "PortInstanceConfig");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))+
+ {
+ getUnorderedGroupHelper().returnFromSelection(grammarAccess.getActorInstanceConfigAccess().getUnorderedGroup_5());
+ }
+ )
+ )
+
+ )*
+ )
+)
+ {
+ getUnorderedGroupHelper().leave(grammarAccess.getActorInstanceConfigAccess().getUnorderedGroup_5());
+ }
+
+) otherlv_8='}'
+ {
+ newLeafNode(otherlv_8, grammarAccess.getActorInstanceConfigAccess().getRightCurlyBracketKeyword_6());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleProtocolClassConfig
+entryRuleProtocolClassConfig returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getProtocolClassConfigRule()); }
+ iv_ruleProtocolClassConfig=ruleProtocolClassConfig
+ { $current=$iv_ruleProtocolClassConfig.current; }
+ EOF
+;
+
+// Rule ProtocolClassConfig
+ruleProtocolClassConfig returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='ProtocolClassConfig'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getProtocolClassConfigAccess().getProtocolClassConfigKeyword_0());
+ }
+(
+(
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getProtocolClassConfigRule());
+ }
+ }
+ {
+ newCompositeNode(grammarAccess.getProtocolClassConfigAccess().getProtocolProtocolClassCrossReference_1_0());
+ }
+ ruleFQN {
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_2='{'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getProtocolClassConfigAccess().getLeftCurlyBracketKeyword_2());
+ }
+(
+
+(
+ {
+ getUnorderedGroupHelper().enter(grammarAccess.getProtocolClassConfigAccess().getUnorderedGroup_3());
+ }
+ (
+ (
+
+ (
+ {getUnorderedGroupHelper().canSelect(grammarAccess.getProtocolClassConfigAccess().getUnorderedGroup_3(), 0)}?=>(
+ {
+ getUnorderedGroupHelper().select(grammarAccess.getProtocolClassConfigAccess().getUnorderedGroup_3(), 0);
+ }
+ ({true}?=>( otherlv_4='regular'
+ {
+ newLeafNode(otherlv_4, grammarAccess.getProtocolClassConfigAccess().getRegularKeyword_3_0_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getProtocolClassConfigAccess().getRegularPortClassConfigParserRuleCall_3_0_1_0());
+ }
+ lv_regular_5_0=rulePortClassConfig {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getProtocolClassConfigRule());
+ }
+ set(
+ $current,
+ "regular",
+ lv_regular_5_0,
+ "PortClassConfig");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)))
+ {
+ getUnorderedGroupHelper().returnFromSelection(grammarAccess.getProtocolClassConfigAccess().getUnorderedGroup_3());
+ }
+ )
+ ) |
+
+ (
+ {getUnorderedGroupHelper().canSelect(grammarAccess.getProtocolClassConfigAccess().getUnorderedGroup_3(), 1)}?=>(
+ {
+ getUnorderedGroupHelper().select(grammarAccess.getProtocolClassConfigAccess().getUnorderedGroup_3(), 1);
+ }
+ ({true}?=>( otherlv_6='conjugate'
+ {
+ newLeafNode(otherlv_6, grammarAccess.getProtocolClassConfigAccess().getConjugateKeyword_3_1_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getProtocolClassConfigAccess().getConjugatedPortClassConfigParserRuleCall_3_1_1_0());
+ }
+ lv_conjugated_7_0=rulePortClassConfig {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getProtocolClassConfigRule());
+ }
+ set(
+ $current,
+ "conjugated",
+ lv_conjugated_7_0,
+ "PortClassConfig");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)))
+ {
+ getUnorderedGroupHelper().returnFromSelection(grammarAccess.getProtocolClassConfigAccess().getUnorderedGroup_3());
+ }
+ )
+ )
+
+ )*
+ )
+)
+ {
+ getUnorderedGroupHelper().leave(grammarAccess.getProtocolClassConfigAccess().getUnorderedGroup_3());
+ }
+
+) otherlv_8='}'
+ {
+ newLeafNode(otherlv_8, grammarAccess.getProtocolClassConfigAccess().getRightCurlyBracketKeyword_4());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRulePortClassConfig
+entryRulePortClassConfig returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getPortClassConfigRule()); }
+ iv_rulePortClassConfig=rulePortClassConfig
+ { $current=$iv_rulePortClassConfig.current; }
+ EOF
+;
+
+// Rule PortClassConfig
+rulePortClassConfig returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+ {
+ $current = forceCreateModelElement(
+ grammarAccess.getPortClassConfigAccess().getPortClassConfigAction_0(),
+ $current);
+ }
+) otherlv_1='Port'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getPortClassConfigAccess().getPortKeyword_1());
+ }
+ otherlv_2='{'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getPortClassConfigAccess().getLeftCurlyBracketKeyword_2());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getPortClassConfigAccess().getAttributesAttrClassConfigParserRuleCall_3_0());
+ }
+ lv_attributes_3_0=ruleAttrClassConfig {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPortClassConfigRule());
+ }
+ add(
+ $current,
+ "attributes",
+ lv_attributes_3_0,
+ "AttrClassConfig");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)* otherlv_4='}'
+ {
+ newLeafNode(otherlv_4, grammarAccess.getPortClassConfigAccess().getRightCurlyBracketKeyword_4());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRulePortInstanceConfig
+entryRulePortInstanceConfig returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getPortInstanceConfigRule()); }
+ iv_rulePortInstanceConfig=rulePortInstanceConfig
+ { $current=$iv_rulePortInstanceConfig.current; }
+ EOF
+;
+
+// Rule PortInstanceConfig
+rulePortInstanceConfig returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='InterfaceItem'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getPortInstanceConfigAccess().getInterfaceItemKeyword_0());
+ }
+(
+(
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getPortInstanceConfigRule());
+ }
+ }
+ otherlv_1=RULE_ID
+ {
+ newLeafNode(otherlv_1, grammarAccess.getPortInstanceConfigAccess().getItemInterfaceItemCrossReference_1_0());
+ }
+
+)
+) otherlv_2='{'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getPortInstanceConfigAccess().getLeftCurlyBracketKeyword_2());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getPortInstanceConfigAccess().getAttributesAttrInstanceConfigParserRuleCall_3_0());
+ }
+ lv_attributes_3_0=ruleAttrInstanceConfig {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPortInstanceConfigRule());
+ }
+ add(
+ $current,
+ "attributes",
+ lv_attributes_3_0,
+ "AttrInstanceConfig");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)* otherlv_4='}'
+ {
+ newLeafNode(otherlv_4, grammarAccess.getPortInstanceConfigAccess().getRightCurlyBracketKeyword_4());
+ }
+)
+;
+
+
+
+
+
+
+
+// Entry rule entryRuleAttrClassConfig
+entryRuleAttrClassConfig returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getAttrClassConfigRule()); }
+ iv_ruleAttrClassConfig=ruleAttrClassConfig
+ { $current=$iv_ruleAttrClassConfig.current; }
+ EOF
+;
+
+// Rule AttrClassConfig
+ruleAttrClassConfig returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='Attr'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getAttrClassConfigAccess().getAttrKeyword_0());
+ }
+(
+(
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getAttrClassConfigRule());
+ }
+ }
+ otherlv_1=RULE_ID
+ {
+ newLeafNode(otherlv_1, grammarAccess.getAttrClassConfigAccess().getAttributeAttributeCrossReference_1_0());
+ }
+
+)
+)( otherlv_2='='
+ {
+ newLeafNode(otherlv_2, grammarAccess.getAttrClassConfigAccess().getEqualsSignKeyword_2_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getAttrClassConfigAccess().getValueLiteralArrayParserRuleCall_2_1_0());
+ }
+ lv_value_3_0=ruleLiteralArray {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getAttrClassConfigRule());
+ }
+ set(
+ $current,
+ "value",
+ lv_value_3_0,
+ "LiteralArray");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))?( otherlv_4='{'
+ {
+ newLeafNode(otherlv_4, grammarAccess.getAttrClassConfigAccess().getLeftCurlyBracketKeyword_3_0());
+ }
+(( otherlv_5='min'
+ {
+ newLeafNode(otherlv_5, grammarAccess.getAttrClassConfigAccess().getMinKeyword_3_1_0_0());
+ }
+ otherlv_6='='
+ {
+ newLeafNode(otherlv_6, grammarAccess.getAttrClassConfigAccess().getEqualsSignKeyword_3_1_0_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getAttrClassConfigAccess().getMinNumberLiteralParserRuleCall_3_1_0_2_0());
+ }
+ lv_min_7_0=ruleNumberLiteral {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getAttrClassConfigRule());
+ }
+ set(
+ $current,
+ "min",
+ lv_min_7_0,
+ "NumberLiteral");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))?( otherlv_8='max'
+ {
+ newLeafNode(otherlv_8, grammarAccess.getAttrClassConfigAccess().getMaxKeyword_3_1_1_0());
+ }
+ otherlv_9='='
+ {
+ newLeafNode(otherlv_9, grammarAccess.getAttrClassConfigAccess().getEqualsSignKeyword_3_1_1_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getAttrClassConfigAccess().getMaxNumberLiteralParserRuleCall_3_1_1_2_0());
+ }
+ lv_max_10_0=ruleNumberLiteral {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getAttrClassConfigRule());
+ }
+ set(
+ $current,
+ "max",
+ lv_max_10_0,
+ "NumberLiteral");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))?(
+(
+ {
+ newCompositeNode(grammarAccess.getAttrClassConfigAccess().getAttributesAttrClassConfigParserRuleCall_3_1_2_0());
+ }
+ lv_attributes_11_0=ruleAttrClassConfig {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getAttrClassConfigRule());
+ }
+ add(
+ $current,
+ "attributes",
+ lv_attributes_11_0,
+ "AttrClassConfig");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)*) otherlv_12='}'
+ {
+ newLeafNode(otherlv_12, grammarAccess.getAttrClassConfigAccess().getRightCurlyBracketKeyword_3_2());
+ }
+)?)
+;
+
+
+
+
+
+// Entry rule entryRuleAttrInstanceConfig
+entryRuleAttrInstanceConfig returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getAttrInstanceConfigRule()); }
+ iv_ruleAttrInstanceConfig=ruleAttrInstanceConfig
+ { $current=$iv_ruleAttrInstanceConfig.current; }
+ EOF
+;
+
+// Rule AttrInstanceConfig
+ruleAttrInstanceConfig returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='Attr'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getAttrInstanceConfigAccess().getAttrKeyword_0());
+ }
+(
+(
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getAttrInstanceConfigRule());
+ }
+ }
+ otherlv_1=RULE_ID
+ {
+ newLeafNode(otherlv_1, grammarAccess.getAttrInstanceConfigAccess().getAttributeAttributeCrossReference_1_0());
+ }
+
+)
+)( otherlv_2='='
+ {
+ newLeafNode(otherlv_2, grammarAccess.getAttrInstanceConfigAccess().getEqualsSignKeyword_2_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getAttrInstanceConfigAccess().getValueLiteralArrayParserRuleCall_2_1_0());
+ }
+ lv_value_3_0=ruleLiteralArray {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getAttrInstanceConfigRule());
+ }
+ set(
+ $current,
+ "value",
+ lv_value_3_0,
+ "LiteralArray");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))?( otherlv_4='{'
+ {
+ newLeafNode(otherlv_4, grammarAccess.getAttrInstanceConfigAccess().getLeftCurlyBracketKeyword_3_0());
+ }
+(((
+(
+ lv_dynConfig_5_0= 'dynamic configuration'
+ {
+ newLeafNode(lv_dynConfig_5_0, grammarAccess.getAttrInstanceConfigAccess().getDynConfigDynamicConfigurationKeyword_3_1_0_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getAttrInstanceConfigRule());
+ }
+ setWithLastConsumed($current, "dynConfig", true, "dynamic configuration");
+ }
+
+)
+)((
+(
+ lv_readOnly_6_0= 'read'
+ {
+ newLeafNode(lv_readOnly_6_0, grammarAccess.getAttrInstanceConfigAccess().getReadOnlyReadKeyword_3_1_0_1_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getAttrInstanceConfigRule());
+ }
+ setWithLastConsumed($current, "readOnly", true, "read");
+ }
+
+)
+)
+ | otherlv_7='write'
+ {
+ newLeafNode(otherlv_7, grammarAccess.getAttrInstanceConfigAccess().getWriteKeyword_3_1_0_1_1());
+ }
+))?(
+(
+ {
+ newCompositeNode(grammarAccess.getAttrInstanceConfigAccess().getAttributesAttrInstanceConfigParserRuleCall_3_1_1_0());
+ }
+ lv_attributes_8_0=ruleAttrInstanceConfig {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getAttrInstanceConfigRule());
+ }
+ add(
+ $current,
+ "attributes",
+ lv_attributes_8_0,
+ "AttrInstanceConfig");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)*) otherlv_9='}'
+ {
+ newLeafNode(otherlv_9, grammarAccess.getAttrInstanceConfigAccess().getRightCurlyBracketKeyword_3_2());
+ }
+)?)
+;
+
+
+
+
+
+// Entry rule entryRuleRefPath
+entryRuleRefPath returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getRefPathRule()); }
+ iv_ruleRefPath=ruleRefPath
+ { $current=$iv_ruleRefPath.current; }
+ EOF
+;
+
+// Rule RefPath
+ruleRefPath returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ lv_refs_0_0=RULE_ID
+ {
+ newLeafNode(lv_refs_0_0, grammarAccess.getRefPathAccess().getRefsIDTerminalRuleCall_0_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getRefPathRule());
+ }
+ addWithLastConsumed(
+ $current,
+ "refs",
+ lv_refs_0_0,
+ "ID");
+ }
+
+)
+)( otherlv_1='/'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getRefPathAccess().getSolidusKeyword_1_0());
+ }
+(
+(
+ lv_refs_2_0=RULE_ID
+ {
+ newLeafNode(lv_refs_2_0, grammarAccess.getRefPathAccess().getRefsIDTerminalRuleCall_1_1_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getRefPathRule());
+ }
+ addWithLastConsumed(
+ $current,
+ "refs",
+ lv_refs_2_0,
+ "ID");
+ }
+
+)
+))*)
+;
+
+
+
+
+
+// Entry rule entryRuleImport
+entryRuleImport returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getImportRule()); }
+ iv_ruleImport=ruleImport
+ { $current=$iv_ruleImport.current; }
+ EOF
+;
+
+// Rule Import
+ruleImport returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( 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,
+ "ImportedFQN");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_2='from'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getImportAccess().getFromKeyword_1_0_1());
+ }
+)
+ | otherlv_3='model'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getImportAccess().getModelKeyword_1_1());
+ }
+)(
+(
+ lv_importURI_4_0=RULE_STRING
+ {
+ newLeafNode(lv_importURI_4_0, grammarAccess.getImportAccess().getImportURISTRINGTerminalRuleCall_2_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getImportRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "importURI",
+ lv_importURI_4_0,
+ "STRING");
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleImportedFQN
+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());
+ }
+)?)
+ ;
+
+
+
+
+
+// Entry rule entryRuleFQN
+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());
+ }
+)*)
+ ;
+
+
+
+
+
+// Entry rule entryRuleLiteralArray
+entryRuleLiteralArray returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getLiteralArrayRule()); }
+ iv_ruleLiteralArray=ruleLiteralArray
+ { $current=$iv_ruleLiteralArray.current; }
+ EOF
+;
+
+// Rule LiteralArray
+ruleLiteralArray returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getLiteralArrayAccess().getLiteralsLiteralParserRuleCall_0_0());
+ }
+ lv_literals_0_0=ruleLiteral {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getLiteralArrayRule());
+ }
+ add(
+ $current,
+ "literals",
+ lv_literals_0_0,
+ "Literal");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_1=','
+ {
+ newLeafNode(otherlv_1, grammarAccess.getLiteralArrayAccess().getCommaKeyword_1_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getLiteralArrayAccess().getLiteralsLiteralParserRuleCall_1_1_0());
+ }
+ lv_literals_2_0=ruleLiteral {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getLiteralArrayRule());
+ }
+ add(
+ $current,
+ "literals",
+ lv_literals_2_0,
+ "Literal");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))*)
+;
+
+
+
+
+
+// Entry rule entryRuleLiteral
+entryRuleLiteral returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getLiteralRule()); }
+ iv_ruleLiteral=ruleLiteral
+ { $current=$iv_ruleLiteral.current; }
+ EOF
+;
+
+// Rule Literal
+ruleLiteral returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ newCompositeNode(grammarAccess.getLiteralAccess().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]
+ :
+ { newCompositeNode(grammarAccess.getBooleanLiteralRule()); }
+ 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");
+ }
+
+)
+)))
+;
+
+
+
+
+
+// Entry rule entryRuleNumberLiteral
+entryRuleNumberLiteral returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getNumberLiteralRule()); }
+ 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();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleRealLiteral
+entryRuleRealLiteral returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getRealLiteralRule()); }
+ 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,
+ "Real");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleIntLiteral
+entryRuleIntLiteral returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getIntLiteralRule()); }
+ 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,
+ "Integer");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleStringLiteral
+entryRuleStringLiteral returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getStringLiteralRule()); }
+ 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,
+ "STRING");
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleInteger
+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(); }:
+(
+ {
+ newCompositeNode(grammarAccess.getIntegerAccess().getSignedIntegerParserRuleCall_0());
+ }
+ this_SignedInteger_0=ruleSignedInteger {
+ $current.merge(this_SignedInteger_0);
+ }
+
+ {
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ newCompositeNode(grammarAccess.getIntegerAccess().getHexadecimalParserRuleCall_1());
+ }
+ this_Hexadecimal_1=ruleHexadecimal {
+ $current.merge(this_Hexadecimal_1);
+ }
+
+ {
+ afterParserOrEnumRuleCall();
+ }
+)
+ ;
+
+
+
+
+
+// Entry rule entryRuleSignedInteger
+entryRuleSignedInteger returns [String current=null]
+ @init {
+ HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
+ }
+ :
+ { newCompositeNode(grammarAccess.getSignedIntegerRule()); }
+ iv_ruleSignedInteger=ruleSignedInteger
+ { $current=$iv_ruleSignedInteger.current.getText(); }
+ EOF
+;
+finally {
+ myHiddenTokenState.restore();
+}
+
+// Rule SignedInteger
+ruleSignedInteger returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
+ }
+ @after { leaveRule(); }:
+((
+ kw='+'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getSignedIntegerAccess().getPlusSignKeyword_0_0());
+ }
+
+ |
+ kw='-'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getSignedIntegerAccess().getHyphenMinusKeyword_0_1());
+ }
+)? this_INT_2=RULE_INT {
+ $current.merge(this_INT_2);
+ }
+
+ {
+ newLeafNode(this_INT_2, grammarAccess.getSignedIntegerAccess().getINTTerminalRuleCall_1());
+ }
+)
+ ;
+finally {
+ myHiddenTokenState.restore();
+}
+
+
+
+
+
+// Entry rule entryRuleHexadecimal
+entryRuleHexadecimal returns [String current=null]
+ @init {
+ HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
+ }
+ :
+ { newCompositeNode(grammarAccess.getHexadecimalRule()); }
+ iv_ruleHexadecimal=ruleHexadecimal
+ { $current=$iv_ruleHexadecimal.current.getText(); }
+ EOF
+;
+finally {
+ myHiddenTokenState.restore();
+}
+
+// Rule Hexadecimal
+ruleHexadecimal returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
+ }
+ @after { leaveRule(); }:
+ this_HEX_0=RULE_HEX {
+ $current.merge(this_HEX_0);
+ }
+
+ {
+ newLeafNode(this_HEX_0, grammarAccess.getHexadecimalAccess().getHEXTerminalRuleCall());
+ }
+
+ ;
+finally {
+ myHiddenTokenState.restore();
+}
+
+
+
+
+
+// Entry rule entryRuleReal
+entryRuleReal returns [String current=null]
+ :
+ { newCompositeNode(grammarAccess.getRealRule()); }
+ iv_ruleReal=ruleReal
+ { $current=$iv_ruleReal.current.getText(); }
+ EOF
+;
+
+// Rule Real
+ruleReal returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ newCompositeNode(grammarAccess.getRealAccess().getDecimalParserRuleCall_0());
+ }
+ this_Decimal_0=ruleDecimal {
+ $current.merge(this_Decimal_0);
+ }
+
+ {
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ newCompositeNode(grammarAccess.getRealAccess().getDotDecimalParserRuleCall_1());
+ }
+ this_DotDecimal_1=ruleDotDecimal {
+ $current.merge(this_DotDecimal_1);
+ }
+
+ {
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ newCompositeNode(grammarAccess.getRealAccess().getDecimalDotParserRuleCall_2());
+ }
+ this_DecimalDot_2=ruleDecimalDot {
+ $current.merge(this_DecimalDot_2);
+ }
+
+ {
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ newCompositeNode(grammarAccess.getRealAccess().getDecimalExpParserRuleCall_3());
+ }
+ this_DecimalExp_3=ruleDecimalExp {
+ $current.merge(this_DecimalExp_3);
+ }
+
+ {
+ 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
+;
+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());
+ }
+)
+ ;
+finally {
+ myHiddenTokenState.restore();
+}
+
+
+
+
+
+// Entry rule entryRuleDotDecimal
+entryRuleDotDecimal returns [String current=null]
+ @init {
+ HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
+ }
+ :
+ { newCompositeNode(grammarAccess.getDotDecimalRule()); }
+ iv_ruleDotDecimal=ruleDotDecimal
+ { $current=$iv_ruleDotDecimal.current.getText(); }
+ EOF
+;
+finally {
+ myHiddenTokenState.restore();
+}
+
+// Rule DotDecimal
+ruleDotDecimal returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
+ }
+ @after { leaveRule(); }:
+((
+ kw='+'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getDotDecimalAccess().getPlusSignKeyword_0_0());
+ }
+
+ |
+ kw='-'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getDotDecimalAccess().getHyphenMinusKeyword_0_1());
+ }
+)?
+ kw='.'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getDotDecimalAccess().getFullStopKeyword_1());
+ }
+ this_INT_3=RULE_INT {
+ $current.merge(this_INT_3);
+ }
+
+ {
+ newLeafNode(this_INT_3, grammarAccess.getDotDecimalAccess().getINTTerminalRuleCall_2());
+ }
+)
+ ;
+finally {
+ myHiddenTokenState.restore();
+}
+
+
+
+
+
+// Entry rule entryRuleDecimalDot
+entryRuleDecimalDot returns [String current=null]
+ @init {
+ HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
+ }
+ :
+ { newCompositeNode(grammarAccess.getDecimalDotRule()); }
+ iv_ruleDecimalDot=ruleDecimalDot
+ { $current=$iv_ruleDecimalDot.current.getText(); }
+ EOF
+;
+finally {
+ myHiddenTokenState.restore();
+}
+
+// Rule DecimalDot
+ruleDecimalDot returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens();
+ }
+ @after { leaveRule(); }:
+((
+ kw='+'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getDecimalDotAccess().getPlusSignKeyword_0_0());
+ }
+
+ |
+ kw='-'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getDecimalDotAccess().getHyphenMinusKeyword_0_1());
+ }
+)? this_INT_2=RULE_INT {
+ $current.merge(this_INT_2);
+ }
+
+ {
+ newLeafNode(this_INT_2, grammarAccess.getDecimalDotAccess().getINTTerminalRuleCall_1());
+ }
+
+ kw='.'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getDecimalDotAccess().getFullStopKeyword_2());
+ }
+)
+ ;
+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
+;
+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());
+ }
+ this_EXP_5=RULE_EXP {
+ $current.merge(this_EXP_5);
+ }
+
+ {
+ newLeafNode(this_EXP_5, grammarAccess.getDecimalExpAccess().getEXPTerminalRuleCall_4());
+ }
+)
+ ;
+finally {
+ myHiddenTokenState.restore();
+}
+
+
+
+
+
+RULE_EXP : ('e'|'E') ('+'|'-')? ('0'..'9')+;
+
+RULE_HEX : ('0x'|'0X') ('0'..'9'|'a'..'f'|'A'..'F')+;
+
+RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*;
+
+RULE_INT : ('0'..'9')+;
+
+RULE_STRING : ('"' ('\\' ('b'|'t'|'n'|'f'|'r'|'u'|'"'|'\''|'\\')|~(('\\'|'"')))* '"'|'\'' ('\\' ('b'|'t'|'n'|'f'|'r'|'u'|'"'|'\''|'\\')|~(('\\'|'\'')))* '\'');
+
+RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/';
+
+RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?;
+
+RULE_WS : (' '|'\t'|'\r'|'\n')+;
+
+RULE_ANY_OTHER : .;
+
+

Back to the top