Created
December 18, 2018 07:51
-
-
Save JanKoehnlein/035b2d89df26029ec9c3071cd6656936 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