Skip to content

Instantly share code, notes, and snippets.

@rcoh
Created August 18, 2014 20:37
Show Gist options
  • Save rcoh/28beabf777caf169bc66 to your computer and use it in GitHub Desktop.
Save rcoh/28beabf777caf169bc66 to your computer and use it in GitHub Desktop.
regexblog2
object RegexParser extends RegexParsers {
def charLit: Parser[RegexExpr] = ("""\w""".r | ".") ^^ {
char => Literal(char.head)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment