Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/parser/antlr/internal/InternalRoom.g')
-rw-r--r--plugins/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/parser/antlr/internal/InternalRoom.g520
1 files changed, 273 insertions, 247 deletions
diff --git a/plugins/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/parser/antlr/internal/InternalRoom.g b/plugins/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/parser/antlr/internal/InternalRoom.g
index 902a08ee2..aa9c963cc 100644
--- a/plugins/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/parser/antlr/internal/InternalRoom.g
+++ b/plugins/org.eclipse.etrice.core.room/src-gen/org/eclipse/etrice/core/parser/antlr/internal/InternalRoom.g
@@ -7391,55 +7391,226 @@ ruleGuard returns [EObject current=null]
-// Entry rule entryRuleDocumentation
-entryRuleDocumentation returns [EObject current=null]
+// Entry rule entryRuleImport
+entryRuleImport returns [EObject current=null]
:
- { newCompositeNode(grammarAccess.getDocumentationRule()); }
- iv_ruleDocumentation=ruleDocumentation
- { $current=$iv_ruleDocumentation.current; }
+ { newCompositeNode(grammarAccess.getImportRule()); }
+ iv_ruleImport=ruleImport
+ { $current=$iv_ruleImport.current; }
EOF
;
-// Rule Documentation
-ruleDocumentation returns [EObject current=null]
+// Rule Import
+ruleImport returns [EObject current=null]
@init { enterRule();
}
@after { leaveRule(); }:
-((
+( otherlv_0='import'
{
- $current = forceCreateModelElement(
- grammarAccess.getDocumentationAccess().getDocumentationAction_0(),
- $current);
+ newLeafNode(otherlv_0, grammarAccess.getImportAccess().getImportKeyword_0());
}
-) otherlv_1='['
+(((
+(
+ {
+ 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_1, grammarAccess.getDocumentationAccess().getLeftSquareBracketKeyword_1());
+ newLeafNode(otherlv_2, grammarAccess.getImportAccess().getFromKeyword_1_0_1());
}
+)
+ | otherlv_3='model'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getImportAccess().getModelKeyword_1_1());
+ }
+)(
(
-(
- lv_lines_2_0=RULE_STRING
+ lv_importURI_4_0=RULE_STRING
{
- newLeafNode(lv_lines_2_0, grammarAccess.getDocumentationAccess().getLinesSTRINGTerminalRuleCall_2_0());
+ newLeafNode(lv_importURI_4_0, grammarAccess.getImportAccess().getImportURISTRINGTerminalRuleCall_2_0());
}
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getDocumentationRule());
+ $current = createModelElement(grammarAccess.getImportRule());
}
- addWithLastConsumed(
+ setWithLastConsumed(
$current,
- "lines",
- lv_lines_2_0,
+ "importURI",
+ lv_importURI_4_0,
"STRING");
}
)
-)* otherlv_3=']'
+))
+;
+
+
+
+
+
+// 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='.*'
{
- newLeafNode(otherlv_3, grammarAccess.getDocumentationAccess().getRightSquareBracketKeyword_3());
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getImportedFQNAccess().getFullStopAsteriskKeyword_1());
+ }
+)?)
+ ;
+
+
+
+
+
+// Entry rule entryRuleMULTIPLICITY
+entryRuleMULTIPLICITY returns [String current=null]
+ :
+ { newCompositeNode(grammarAccess.getMULTIPLICITYRule()); }
+ iv_ruleMULTIPLICITY=ruleMULTIPLICITY
+ { $current=$iv_ruleMULTIPLICITY.current.getText(); }
+ EOF
+;
+
+// Rule MULTIPLICITY
+ruleMULTIPLICITY returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ kw='['
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getMULTIPLICITYAccess().getLeftSquareBracketKeyword_0());
+ }
+(
+ kw='*'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getMULTIPLICITYAccess().getAsteriskKeyword_1_0());
+ }
+
+ | this_INT_2=RULE_INT {
+ $current.merge(this_INT_2);
+ }
+
+ {
+ newLeafNode(this_INT_2, grammarAccess.getMULTIPLICITYAccess().getINTTerminalRuleCall_1_1());
}
)
+ kw=']'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getMULTIPLICITYAccess().getRightSquareBracketKeyword_2());
+ }
+)
+ ;
+
+
+
+
+
+// Entry rule entryRuleAnnotationTargetType
+entryRuleAnnotationTargetType returns [String current=null]
+ :
+ { newCompositeNode(grammarAccess.getAnnotationTargetTypeRule()); }
+ iv_ruleAnnotationTargetType=ruleAnnotationTargetType
+ { $current=$iv_ruleAnnotationTargetType.current.getText(); }
+ EOF
;
+// Rule AnnotationTargetType
+ruleAnnotationTargetType returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ kw='DataClass'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAnnotationTargetTypeAccess().getDataClassKeyword_0());
+ }
+
+ |
+ kw='ActorClass'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAnnotationTargetTypeAccess().getActorClassKeyword_1());
+ }
+
+ |
+ kw='ActorBehavior'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAnnotationTargetTypeAccess().getActorBehaviorKeyword_2());
+ }
+
+ |
+ kw='ProtocolClass'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAnnotationTargetTypeAccess().getProtocolClassKeyword_3());
+ }
+
+ |
+ kw='CompoundProtocolClass'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAnnotationTargetTypeAccess().getCompoundProtocolClassKeyword_4());
+ }
+
+ |
+ kw='SubSystemClass'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAnnotationTargetTypeAccess().getSubSystemClassKeyword_5());
+ }
+
+ |
+ kw='LogicalSystem'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAnnotationTargetTypeAccess().getLogicalSystemKeyword_6());
+ }
+)
+ ;
+
@@ -7659,10 +7830,14 @@ ruleAnnotationType returns [EObject current=null]
{
newLeafNode(otherlv_5, grammarAccess.getAnnotationTypeAccess().getEqualsSignKeyword_5());
}
-((
+(((
+(
+ruleAnnotationTargetType
+)
+)=>
(
{
- newCompositeNode(grammarAccess.getAnnotationTypeAccess().getTargetsAnnotationTargetTypeEnumRuleCall_6_0_0());
+ newCompositeNode(grammarAccess.getAnnotationTypeAccess().getTargetsAnnotationTargetTypeParserRuleCall_6_0_0());
}
lv_targets_6_0=ruleAnnotationTargetType {
if ($current==null) {
@@ -7685,7 +7860,7 @@ ruleAnnotationType returns [EObject current=null]
(
(
{
- newCompositeNode(grammarAccess.getAnnotationTypeAccess().getTargetsAnnotationTargetTypeEnumRuleCall_6_1_1_0());
+ newCompositeNode(grammarAccess.getAnnotationTypeAccess().getTargetsAnnotationTargetTypeParserRuleCall_6_1_1_0());
}
lv_targets_8_0=ruleAnnotationTargetType {
if ($current==null) {
@@ -7707,7 +7882,7 @@ ruleAnnotationType returns [EObject current=null]
(
(
{
- newCompositeNode(grammarAccess.getAnnotationTypeAccess().getTargetsAnnotationTargetTypeEnumRuleCall_6_1_2_1_0());
+ newCompositeNode(grammarAccess.getAnnotationTypeAccess().getTargetsAnnotationTargetTypeParserRuleCall_6_1_2_1_0());
}
lv_targets_10_0=ruleAnnotationTargetType {
if ($current==null) {
@@ -7995,197 +8170,54 @@ ruleEnumAnnotationAttribute returns [EObject current=null]
-// Entry rule entryRuleImport
-entryRuleImport returns [EObject current=null]
+// Entry rule entryRuleDocumentation
+entryRuleDocumentation returns [EObject current=null]
:
- { newCompositeNode(grammarAccess.getImportRule()); }
- iv_ruleImport=ruleImport
- { $current=$iv_ruleImport.current; }
+ { newCompositeNode(grammarAccess.getDocumentationRule()); }
+ iv_ruleDocumentation=ruleDocumentation
+ { $current=$iv_ruleDocumentation.current; }
EOF
;
-// Rule Import
-ruleImport returns [EObject current=null]
+// Rule Documentation
+ruleDocumentation 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());
+ $current = forceCreateModelElement(
+ grammarAccess.getDocumentationAccess().getDocumentationAction_0(),
+ $current);
}
-)
- | otherlv_3='model'
+) otherlv_1='['
{
- newLeafNode(otherlv_3, grammarAccess.getImportAccess().getModelKeyword_1_1());
+ newLeafNode(otherlv_1, grammarAccess.getDocumentationAccess().getLeftSquareBracketKeyword_1());
}
-)(
(
- lv_importURI_4_0=RULE_STRING
+(
+ lv_lines_2_0=RULE_STRING
{
- newLeafNode(lv_importURI_4_0, grammarAccess.getImportAccess().getImportURISTRINGTerminalRuleCall_2_0());
+ newLeafNode(lv_lines_2_0, grammarAccess.getDocumentationAccess().getLinesSTRINGTerminalRuleCall_2_0());
}
{
if ($current==null) {
- $current = createModelElement(grammarAccess.getImportRule());
+ $current = createModelElement(grammarAccess.getDocumentationRule());
}
- setWithLastConsumed(
+ addWithLastConsumed(
$current,
- "importURI",
- lv_importURI_4_0,
+ "lines",
+ lv_lines_2_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 entryRuleMULTIPLICITY
-entryRuleMULTIPLICITY returns [String current=null]
- :
- { newCompositeNode(grammarAccess.getMULTIPLICITYRule()); }
- iv_ruleMULTIPLICITY=ruleMULTIPLICITY
- { $current=$iv_ruleMULTIPLICITY.current.getText(); }
- EOF
-;
-
-// Rule MULTIPLICITY
-ruleMULTIPLICITY returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- kw='['
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getMULTIPLICITYAccess().getLeftSquareBracketKeyword_0());
- }
-(
- kw='*'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getMULTIPLICITYAccess().getAsteriskKeyword_1_0());
- }
-
- | this_INT_2=RULE_INT {
- $current.merge(this_INT_2);
- }
-
- {
- newLeafNode(this_INT_2, grammarAccess.getMULTIPLICITYAccess().getINTTerminalRuleCall_1_1());
- }
-)
- kw=']'
+)* otherlv_3=']'
{
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getMULTIPLICITYAccess().getRightSquareBracketKeyword_2());
+ newLeafNode(otherlv_3, grammarAccess.getDocumentationAccess().getRightSquareBracketKeyword_3());
}
)
- ;
+;
@@ -8915,34 +8947,44 @@ finally {
-// Rule LiteralType
-ruleLiteralType returns [Enumerator current=null]
- @init { enterRule(); }
+// 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(); }:
-(( enumLiteral_0='ptBoolean'
- {
- $current = grammarAccess.getLiteralTypeAccess().getBOOLEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_0, grammarAccess.getLiteralTypeAccess().getBOOLEnumLiteralDeclaration_0());
+( this_ID_0=RULE_ID {
+ $current.merge(this_ID_0);
}
-)
- |( enumLiteral_1='ptInteger'
- {
- $current = grammarAccess.getLiteralTypeAccess().getINTEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_1, grammarAccess.getLiteralTypeAccess().getINTEnumLiteralDeclaration_1());
+
+ {
+ newLeafNode(this_ID_0, grammarAccess.getFQNAccess().getIDTerminalRuleCall_0());
}
-)
- |( enumLiteral_2='ptReal'
- {
- $current = grammarAccess.getLiteralTypeAccess().getREALEnumLiteralDeclaration_2().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_2, grammarAccess.getLiteralTypeAccess().getREALEnumLiteralDeclaration_2());
+(
+ kw='.'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getFQNAccess().getFullStopKeyword_1_0());
}
-)
- |( enumLiteral_3='ptCharacter'
- {
- $current = grammarAccess.getLiteralTypeAccess().getCHAREnumLiteralDeclaration_3().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_3, grammarAccess.getLiteralTypeAccess().getCHAREnumLiteralDeclaration_3());
+ this_ID_2=RULE_ID {
+ $current.merge(this_ID_2);
}
-));
+
+ {
+ newLeafNode(this_ID_2, grammarAccess.getFQNAccess().getIDTerminalRuleCall_1_1());
+ }
+)*)
+ ;
+
+
@@ -9021,50 +9063,34 @@ ruleReferenceType returns [Enumerator current=null]
-// Rule AnnotationTargetType
-ruleAnnotationTargetType returns [Enumerator current=null]
+
+
+// Rule LiteralType
+ruleLiteralType returns [Enumerator current=null]
@init { enterRule(); }
@after { leaveRule(); }:
-(( enumLiteral_0='DataClass'
- {
- $current = grammarAccess.getAnnotationTargetTypeAccess().getDATA_CLASSEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_0, grammarAccess.getAnnotationTargetTypeAccess().getDATA_CLASSEnumLiteralDeclaration_0());
- }
-)
- |( enumLiteral_1='ActorClass'
- {
- $current = grammarAccess.getAnnotationTargetTypeAccess().getACTOR_CLASSEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_1, grammarAccess.getAnnotationTargetTypeAccess().getACTOR_CLASSEnumLiteralDeclaration_1());
- }
-)
- |( enumLiteral_2='ActorBehavior'
- {
- $current = grammarAccess.getAnnotationTargetTypeAccess().getACTOR_BEHAVIOREnumLiteralDeclaration_2().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_2, grammarAccess.getAnnotationTargetTypeAccess().getACTOR_BEHAVIOREnumLiteralDeclaration_2());
- }
-)
- |( enumLiteral_3='ProtocolClass'
+(( enumLiteral_0='ptBoolean'
{
- $current = grammarAccess.getAnnotationTargetTypeAccess().getPROTOCOL_CLASSEnumLiteralDeclaration_3().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_3, grammarAccess.getAnnotationTargetTypeAccess().getPROTOCOL_CLASSEnumLiteralDeclaration_3());
+ $current = grammarAccess.getLiteralTypeAccess().getBOOLEnumLiteralDeclaration_0().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_0, grammarAccess.getLiteralTypeAccess().getBOOLEnumLiteralDeclaration_0());
}
)
- |( enumLiteral_4='CompoundProtocolClass'
+ |( enumLiteral_1='ptInteger'
{
- $current = grammarAccess.getAnnotationTargetTypeAccess().getCOMPOUND_PROTOCOL_CLASSEnumLiteralDeclaration_4().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_4, grammarAccess.getAnnotationTargetTypeAccess().getCOMPOUND_PROTOCOL_CLASSEnumLiteralDeclaration_4());
+ $current = grammarAccess.getLiteralTypeAccess().getINTEnumLiteralDeclaration_1().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_1, grammarAccess.getLiteralTypeAccess().getINTEnumLiteralDeclaration_1());
}
)
- |( enumLiteral_5='SubSystemClass'
+ |( enumLiteral_2='ptReal'
{
- $current = grammarAccess.getAnnotationTargetTypeAccess().getSUBSYSTEM_CLASSEnumLiteralDeclaration_5().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_5, grammarAccess.getAnnotationTargetTypeAccess().getSUBSYSTEM_CLASSEnumLiteralDeclaration_5());
+ $current = grammarAccess.getLiteralTypeAccess().getREALEnumLiteralDeclaration_2().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_2, grammarAccess.getLiteralTypeAccess().getREALEnumLiteralDeclaration_2());
}
)
- |( enumLiteral_6='LogicalSystem'
+ |( enumLiteral_3='ptCharacter'
{
- $current = grammarAccess.getAnnotationTargetTypeAccess().getLOGICAL_SYSTEM_CLASSEnumLiteralDeclaration_6().getEnumLiteral().getInstance();
- newLeafNode(enumLiteral_6, grammarAccess.getAnnotationTargetTypeAccess().getLOGICAL_SYSTEM_CLASSEnumLiteralDeclaration_6());
+ $current = grammarAccess.getLiteralTypeAccess().getCHAREnumLiteralDeclaration_3().getEnumLiteral().getInstance();
+ newLeafNode(enumLiteral_3, grammarAccess.getLiteralTypeAccess().getCHAREnumLiteralDeclaration_3());
}
));

Back to the top