Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/Room.xtext')
-rw-r--r--plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/Room.xtext15
1 files changed, 13 insertions, 2 deletions
diff --git a/plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/Room.xtext b/plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/Room.xtext
index 4715cf1d4..dd915dc91 100644
--- a/plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/Room.xtext
+++ b/plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/Room.xtext
@@ -321,7 +321,8 @@ StateGraph:
states+=State |
trPoints+=TrPoint |
chPoints+=ChoicePoint |
- transitions+=Transition
+ transitions+=Transition |
+ refinedTransitions+=RefinedTransition
)*
'}';
@@ -332,7 +333,8 @@ StateMachine returns StateGraph:
states+=State |
trPoints+=TrPoint |
chPoints+=ChoicePoint |
- transitions+=Transition
+ transitions+=Transition |
+ refinedTransitions+=RefinedTransition
)*
'}';
@@ -417,6 +419,15 @@ CPBranchTransition:
('action' action=DetailCode)?
'}';
+// by validation RefinedTransition can only be contained in the top level state graph
+RefinedTransition:
+ 'RefinedTransition' target=[Transition|FQN]
+ (docu=Documentation)?
+ '{'
+ 'action' action=DetailCode
+ '}'
+;
+
TransitionTerminal: StateTerminal | TrPointTerminal | SubStateTrPointTerminal | ChoicepointTerminal;
StateTerminal:

Back to the top