Skip to content

Instantly share code, notes, and snippets.

@manuelleduc
Last active March 30, 2018 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manuelleduc/ad510fd52c59c98df7e4f7b75a61253a to your computer and use it in GitHub Desktop.
Save manuelleduc/ad510fd52c59c98df7e4f7b75a61253a to your computer and use it in GitHub Desktop.
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