From cdbc1695a93910df5729779de31912a3b4b4172b Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sun, 19 Jul 2026 17:09:40 +0200 Subject: Support unary plus operation --- boot/parser.yy | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'boot/parser.yy') diff --git a/boot/parser.yy b/boot/parser.yy index 1dd42a8..aad5769 100644 --- a/boot/parser.yy +++ b/boot/parser.yy @@ -351,6 +351,10 @@ unary_expression: { $$ = new boot::unary_expression(boot::make_position(@$), $2, boot::unary_operator::minus); } + | "+" operand + { + $$ = new boot::unary_expression(boot::make_position(@$), $2, boot::unary_operator::plus); + } expressions: expression "," expressions { -- cgit v1.2.3