Browsable Statecharts Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: uml/statecharts/extracted
Source used for this grammar: Hugo Brunelière, Statecharts.ecore, 2005/08/03

Summary

Syntax

Integer ::=
	integer
String ::=
	string
Boolean ::=
	"true"
	"false"
BooleanExpression ::=
	[value]::String
StateMachine ::=
	[transitions]::Transition+ [top]::State+
State ::=
	CompositeState
State ::=
	[state_container]::StateMachine [internalTransitions]::Transition+ [deferrableEvents]::Event+
CompositeState ::=
	[subVertexes]::StateVertex+ [isConcurrent]::Boolean
Transition ::=
	[transSM_container]::StateMachine [transS_container]::State [trigger]::Event [guard]::Guard [source]::StateVertex [target]::StateVertex
StateVertex ::=
	State
StateVertex ::=
	[sv_container]::CompositeState [outgoing]::Transition+ [incoming]::Transition+
Guard ::=
	[gua_container]::Transition [expression]::BooleanExpression
Event ::=
	[evt_container]::Transition+ [targets]::State+

GrammarLabMaintained by Dr. Vadim Zaytsev a.k.a. @grammarware. Last updated in September 2015. []