Skip to content

Instantly share code, notes, and snippets.

@rcoh
Created August 18, 2014 20:37
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 rcoh/76742e00a1ed02d05b86 to your computer and use it in GitHub Desktop.
Save rcoh/76742e00a1ed02d05b86 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