Created
July 6, 2020 06:06
-
-
Save bananabrick/1bd000b9188314a69e38fbe6ca30ad74 to your computer and use it in GitHub Desktop.
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
alphaNumUnder :: Parser String | |
-- Parser for string alphanumeric + '_' characters. | |
alphaNumUnder = consume $ many $ alphaNumChar <|> single '_' | |
variable :: Parser String | |
variable = (:) <$> letterChar <*> alphaNumUnder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment