Created
July 19, 2020 05:13
-
-
Save bananabrick/0b34347826f79960d17f5d80bd6cb05a 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
appParser :: Parser CoreExpr | |
appParser = foldl App <$> coreWithoutAppWithParen <*> some coreWithParenParser | |
-- Result is this? | |
App {applier = Var {varName = "f"}, appliedOn = App {applier = Num {number = 2}, appliedOn = Num {number = 3}}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment