aboutsummaryrefslogtreecommitdiff
path: root/boot/parser.yy
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-07-19 17:09:40 +0200
committerEugen Wissner <belka@caraus.de>2026-07-19 18:30:21 +0200
commitcdbc1695a93910df5729779de31912a3b4b4172b (patch)
tree43a4c5a192df7060f8a36c75d339be7ac5722f72 /boot/parser.yy
parentcd2ee0c97348444779a155909b7ec78d89cfd2e0 (diff)
downloadelna-cdbc1695a93910df5729779de31912a3b4b4172b.tar.gz
Support unary plus operation
Diffstat (limited to 'boot/parser.yy')
-rw-r--r--boot/parser.yy4
1 files changed, 4 insertions, 0 deletions
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
{