Fix parenthesized parsing.
This commit is contained in:
parent
396043d801
commit
9d9c7b7e9f
|
@ -18,7 +18,7 @@ namespace lily {
|
||||||
static ast_ptr expr_tree(pgs_tree*, const char*);
|
static ast_ptr expr_tree(pgs_tree*, const char*);
|
||||||
|
|
||||||
static ast_ptr expr_app_bottom(pgs_tree* base, const char* source) {
|
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);
|
return expr_tree(PGS_TREE_NT_CHILD(*base, 1), source);
|
||||||
} else {
|
} else {
|
||||||
pgs_tree* child = PGS_TREE_NT_CHILD(*base, 0);
|
pgs_tree* child = PGS_TREE_NT_CHILD(*base, 0);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user