diff options
-rw-r--r-- | bin/order.y | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/order.y b/bin/order.y index b798e634..d778eefc 100644 --- a/bin/order.y +++ b/bin/order.y @@ -82,6 +82,7 @@ expr: | Dec expr { $$ = fmt("(--%s)", $2); } | expr Inc { $$ = fmt("(%s++)", $1); } | expr Dec { $$ = fmt("(%s--)", $1); } + | '+' expr %prec '!' { $$ = fmt("(+%s)", $2); } | '-' expr %prec '!' { $$ = fmt("(-%s)", $2); } | '*' expr %prec '!' { $$ = fmt("(*%s)", $2); } | '&' expr %prec '!' { $$ = fmt("(&%s)", $2); } |