Skip to content

Instantly share code, notes, and snippets.

@JanKoehnlein
Created December 18, 2018 07:51
Show Gist options
  • Save JanKoehnlein/035b2d89df26029ec9c3071cd6656936 to your computer and use it in GitHub Desktop.
Save JanKoehnlein/035b2d89df26029ec9c3071cd6656936 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