Skip to content

Instantly share code, notes, and snippets.

@szarnekow
Created October 27, 2012 16:12
Show Gist options
  • Save szarnekow/3965194 to your computer and use it in GitHub Desktop.
Save szarnekow/3965194 to your computer and use it in GitHub Desktop.
Xtext syntactic predicates example
Condition:
"if" "(" condition=BooleanExpression ")"
then=Expression
(=>"else" else=Expression)?
if (condition)
if (condition)
someAction();
else
otherAction();
// or
if (condition)
if (condition)
someAction();
else
otherAction();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment