Created
August 18, 2014 20:37
-
-
Save rcoh/6d50eb8eb92f2ea9d54a to your computer and use it in GitHub Desktop.
regexblog2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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