Last active
March 30, 2018 16:03
-
-
Save manuelleduc/ad510fd52c59c98df7e4f7b75a61253a to your computer and use it in GitHub Desktop.
This file contains 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
grammar test.enumz.TestEnum with org.eclipse.xtext.common.Terminals | |
generate testEnum "http://www.enumz.test/TestEnum" | |
// https://stackoverflow.com/a/27024776/657524 | |
Pattern returns Pattern: | |
d=Direction; | |
enum Direction: | |
BOTH="b" | | |
LEFT="l" | | |
RIGHT="r"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment