Skip to content

Instantly share code, notes, and snippets.

@diakopter
Created June 1, 2012 20:26
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 diakopter/2854944 to your computer and use it in GitHub Desktop.
Save diakopter/2854944 to your computer and use it in GitHub Desktop.
grammar F {
token TOP { <aaa> <eat_term> }
token aaa { 'aaa' }
token eat_term { ';' | <?term> }
token term { <?[;]> }
}
say(F.parse("aaa;"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment