In this part I show and explain the switch expression, which is defined in Xbase, so you can also have that in you Xtext DSL if you want :-)
In the tutorial at EclipseCon on Thursday we will show how to embed Xbase expressions in a simple DSL.
Here again I use Xtend for the demo: