Created
October 27, 2012 16:12
-
-
Save szarnekow/3965194 to your computer and use it in GitHub Desktop.
Xtext syntactic predicates example
This file contains hidden or 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
Condition: | |
"if" "(" condition=BooleanExpression ")" | |
then=Expression | |
(=>"else" else=Expression)? |
This file contains hidden or 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
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