Skip to content

Instantly share code, notes, and snippets.

@JanKoehnlein
Last active December 18, 2018 07:52
Show Gist options
  • Save JanKoehnlein/3680524f7b8e31cec388ba9e405805c7 to your computer and use it in GitHub Desktop.
Save JanKoehnlein/3680524f7b8e31cec388ba9e405805c7 to your computer and use it in GitHub Desktop.
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