Last active
July 13, 2020 06:34
-
-
Save bananabrick/c565412e87c7644bb3f853c8a4dea686 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
coreExprParser :: Parser CoreExpr | |
coreExprParser = | |
-- I was having some backtracking | |
-- issues so now we "try" every parser. | |
choice [ | |
Var <$> string "wtfd", | |
Var <$> string "wtf", | |
letRecParser, | |
letParser, | |
constrParser, | |
variableParser, | |
numParser | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment