empty call
This commit is contained in:
parent
abd15e19cb
commit
f732e16c3a
1 changed files with 2 additions and 1 deletions
|
|
@ -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>>());}
|
||||
|
||||
;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue