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);