Skip to content

Instantly share code, notes, and snippets.

@adilakhter
Created May 25, 2011 20:04
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 adilakhter/991799 to your computer and use it in GitHub Desktop.
Save adilakhter/991799 to your computer and use it in GitHub Desktop.
spoofaxlang-example1
package lang.entity
module syntax-definition
context-free start-symbols
Start
context-free syntax
"module" ID Definition* -> Start {cons("Module")}
"entity" ID "{" Property* "}" -> Definition {cons("Entity")}
Type ID -> Property {cons("Property")}
ID -> Type {cons("Type")}
module lang-description
language General properties
name : entity-lang
id : entity-lang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment