empty call

This commit is contained in:
bronku 2025-11-28 09:54:44 +01:00
parent abd15e19cb
commit f732e16c3a

View file

@ -83,7 +83,8 @@ expr:
| expr MULTIPLY expr { $$ = std::make_unique<BinOp>(
BinaryOperator(BinaryOperator::MUL),
std::move($1), std::move($3)); }
| L_PAREN expr R_PAREN {$$ = std::move($2);}
| L_PAREN expr R_PAREN {$$ = std::move($2); /* #todo: test for precedence*/}
| expr L_PAREN R_PAREN { $$ = std::make_unique<Call>(std::move($1), std::vector<std::unique_ptr<Expr>>());}
;