aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-08-15 12:12:49 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-08-15 12:12:59 +0100
commitde2acb78940df97bd337bb3e8e366c75739390bc (patch)
tree2d68f04c9afa205e4e4ab0861ee8280e72b40c20
parent60d8f688a0c66759bdb7645c9dd4c232bc433c9f (diff)
downloadmicro-lang-hs-de2acb78940df97bd337bb3e8e366c75739390bc.tar.gz
micro-lang-hs-de2acb78940df97bd337bb3e8e366c75739390bc.zip
Try call before lambda
-rw-r--r--src/Parser.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Parser.hs b/src/Parser.hs
index 765a58b..41f2ba3 100644
--- a/src/Parser.hs
+++ b/src/Parser.hs
@@ -107,8 +107,8 @@ call = do
factor :: Parser Expr
factor =
number
- <|> try lambda
<|> try call
+ <|> try lambda
<|> try variable
<|> parens expr