Skip to content

Instantly share code, notes, and snippets.

@heyLu
Created November 21, 2011 19:50
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 heyLu/1383715 to your computer and use it in GitHub Desktop.
Save heyLu/1383715 to your computer and use it in GitHub Desktop.
Trying to parse hashtags in Opa
import stdlib.core.parser
rec tag_parser = parser
[#] tag=[a-zA-Z]+ tags=tag_parser -> [tag | tags]
| [^#]* tags=tag_parser -> tags
| Rule.eos -> []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment