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.g190
1 files changed, 180 insertions, 10 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 f6849a6cf..984049bb3 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
@@ -2111,16 +2111,34 @@ ruleActorClass returns [EObject current=null]
(
(
{
- newCompositeNode(grammarAccess.getActorClassAccess().getOperationsOperationParserRuleCall_8_3_0());
+ newCompositeNode(grammarAccess.getActorClassAccess().getAnnotationsAnnotationParserRuleCall_8_3_0());
}
- lv_operations_31_0=ruleOperation {
+ lv_annotations_31_0=ruleAnnotation {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getActorClassRule());
+ }
+ add(
+ $current,
+ "annotations",
+ lv_annotations_31_0,
+ "Annotation");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)*(
+(
+ {
+ newCompositeNode(grammarAccess.getActorClassAccess().getOperationsOperationParserRuleCall_8_4_0());
+ }
+ lv_operations_32_0=ruleOperation {
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getActorClassRule());
}
add(
$current,
"operations",
- lv_operations_31_0,
+ lv_operations_32_0,
"Operation");
afterParserOrEnumRuleCall();
}
@@ -2129,28 +2147,28 @@ ruleActorClass returns [EObject current=null]
)*(
(
{
- newCompositeNode(grammarAccess.getActorClassAccess().getStateMachineStateMachineParserRuleCall_8_4_0());
+ newCompositeNode(grammarAccess.getActorClassAccess().getStateMachineStateMachineParserRuleCall_8_5_0());
}
- lv_stateMachine_32_0=ruleStateMachine {
+ lv_stateMachine_33_0=ruleStateMachine {
if ($current==null) {
$current = createModelElementForParent(grammarAccess.getActorClassRule());
}
set(
$current,
"stateMachine",
- lv_stateMachine_32_0,
+ lv_stateMachine_33_0,
"StateMachine");
afterParserOrEnumRuleCall();
}
)
-)? otherlv_33='}'
+)? otherlv_34='}'
{
- newLeafNode(otherlv_33, grammarAccess.getActorClassAccess().getRightCurlyBracketKeyword_8_5());
+ newLeafNode(otherlv_34, grammarAccess.getActorClassAccess().getRightCurlyBracketKeyword_8_6());
}
-)? otherlv_34='}'
+)? otherlv_35='}'
{
- newLeafNode(otherlv_34, grammarAccess.getActorClassAccess().getRightCurlyBracketKeyword_9());
+ newLeafNode(otherlv_35, grammarAccess.getActorClassAccess().getRightCurlyBracketKeyword_9());
}
)
;
@@ -5768,6 +5786,158 @@ ruleDocumentation returns [EObject current=null]
+// Entry rule entryRuleAnnotation
+entryRuleAnnotation returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getAnnotationRule()); }
+ iv_ruleAnnotation=ruleAnnotation
+ { $current=$iv_ruleAnnotation.current; }
+ EOF
+;
+
+// Rule Annotation
+ruleAnnotation returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='@'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getAnnotationAccess().getCommercialAtKeyword_0());
+ }
+(
+(
+ lv_name_1_0=RULE_ID
+ {
+ newLeafNode(lv_name_1_0, grammarAccess.getAnnotationAccess().getNameIDTerminalRuleCall_1_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getAnnotationRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "name",
+ lv_name_1_0,
+ "ID");
+ }
+
+)
+)( otherlv_2='('
+ {
+ newLeafNode(otherlv_2, grammarAccess.getAnnotationAccess().getLeftParenthesisKeyword_2_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getAnnotationAccess().getAttributesKeyValueParserRuleCall_2_1_0());
+ }
+ lv_attributes_3_0=ruleKeyValue {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getAnnotationRule());
+ }
+ add(
+ $current,
+ "attributes",
+ lv_attributes_3_0,
+ "KeyValue");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_4=','
+ {
+ newLeafNode(otherlv_4, grammarAccess.getAnnotationAccess().getCommaKeyword_2_2_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getAnnotationAccess().getAttributesKeyValueParserRuleCall_2_2_1_0());
+ }
+ lv_attributes_5_0=ruleKeyValue {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getAnnotationRule());
+ }
+ add(
+ $current,
+ "attributes",
+ lv_attributes_5_0,
+ "KeyValue");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))* otherlv_6=')'
+ {
+ newLeafNode(otherlv_6, grammarAccess.getAnnotationAccess().getRightParenthesisKeyword_2_3());
+ }
+)?)
+;
+
+
+
+
+
+// Entry rule entryRuleKeyValue
+entryRuleKeyValue returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getKeyValueRule()); }
+ iv_ruleKeyValue=ruleKeyValue
+ { $current=$iv_ruleKeyValue.current; }
+ EOF
+;
+
+// Rule KeyValue
+ruleKeyValue returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ lv_key_0_0=RULE_ID
+ {
+ newLeafNode(lv_key_0_0, grammarAccess.getKeyValueAccess().getKeyIDTerminalRuleCall_0_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getKeyValueRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "key",
+ lv_key_0_0,
+ "ID");
+ }
+
+)
+) otherlv_1='='
+ {
+ newLeafNode(otherlv_1, grammarAccess.getKeyValueAccess().getEqualsSignKeyword_1());
+ }
+(
+(
+ lv_value_2_0=RULE_STRING
+ {
+ newLeafNode(lv_value_2_0, grammarAccess.getKeyValueAccess().getValueSTRINGTerminalRuleCall_2_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getKeyValueRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "value",
+ lv_value_2_0,
+ "STRING");
+ }
+
+)
+))
+;
+
+
+
+
+
// Entry rule entryRuleImport
entryRuleImport returns [EObject current=null]
:

Back to the top