Skip to content

Instantly share code, notes, and snippets.

@jml
Created September 29, 2013 22:36
Show Gist options
  • Select an option

  • Save jml/6757200 to your computer and use it in GitHub Desktop.

Select an option

Save jml/6757200 to your computer and use it in GitHub Desktop.
from parsley import makeGrammar
grammar = "word = <(~ws anything)+>:w"
G = makeGrammar(grammar, {})
print G('word').word()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment