Last active
December 18, 2018 07:52
-
-
Save JanKoehnlein/3680524f7b8e31cec388ba9e405805c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grammar io.typefox.examples.theia.states.States with org.eclipse.xtext.common.Terminals | |
generate states "http://www.typefox.io/examples/theia/states/States" | |
StateMachine: | |
'statemachine' name=ID | |
(states+=State | events+=Event)*; | |
State: | |
'state' name=ID transitions+=Transition*; | |
Event: | |
'event' name=ID; | |
Transition: | |
event=[Event] '=>' state=[State]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment