Skip to content

Instantly share code, notes, and snippets.

@pasberth
Created April 24, 2014 04:22
Show Gist options
  • Select an option

  • Save pasberth/11241400 to your computer and use it in GitHub Desktop.

Select an option

Save pasberth/11241400 to your computer and use it in GitHub Desktop.
Token ",";
Token ";";
Syntax "$a ; $b" := "@SEQUENCE $a $b",
level 1, right associativity;
Syntax "Token $a" := "@TOKEN $a",
level 2, no associativity;
Syntax "Syntax $a := $b, level $c, $d associativity" := "@SYNTAX $a $b $c $d",
level 2, no associativity;
Syntax "Notation $a := $b, level $c, $d associativity" := "@NOTATION $a $b $c $d",
level 2, no associativity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment