From 9d9c7b7e9f90ec39b85eafdb1d68d44aa895a6df Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Wed, 12 Jun 2019 08:54:10 -0700 Subject: [PATCH] Fix parenthesized parsing. --- src/parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.cpp b/src/parser.cpp index 1b975ed..62f61ab 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -18,7 +18,7 @@ namespace lily { static ast_ptr expr_tree(pgs_tree*, const char*); static ast_ptr expr_app_bottom(pgs_tree* base, const char* source) { - if(PGS_TREE_NT_COUNT(*base) == 2) { + if(PGS_TREE_NT_COUNT(*base) == 3) { return expr_tree(PGS_TREE_NT_CHILD(*base, 1), source); } else { pgs_tree* child = PGS_TREE_NT_CHILD(*base, 0);