Fix parenthesized parsing.

This commit is contained in:
Danila Fedorin 2019-06-12 08:54:10 -07:00
parent 396043d801
commit 9d9c7b7e9f

View File

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