Skip to content

Instantly share code, notes, and snippets.

@ebb
Last active November 24, 2016 23:12
Show Gist options
  • Save ebb/7333392da498a18138e05af3977dbfab to your computer and use it in GitHub Desktop.
Save ebb/7333392da498a18138e05af3977dbfab to your computer and use it in GitHub Desktop.
(term {WHERE {binder}})
:where
:rule binder (RULE ident term | TOKENS {ident})
:where
:rule term (ident | char | '[' choice ']' | '{' choice '}' | '(' choice ')')
:rule choice (sequence {'|' sequence})
:rule sequence (term {term})
:where
:tokens WHERE RULE TOKENS ident char
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment