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/evaluator.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'boot/evaluator.cc') diff --git a/boot/evaluator.cc b/boot/evaluator.cc index f782dd6..1acadd3 100644 --- a/boot/evaluator.cc +++ b/boot/evaluator.cc @@ -185,6 +185,10 @@ namespace elna::boot return std::nullopt; }, operand.value()); } + if (subject.operation() == unary_operator::plus) + { + return operand; + } return std::nullopt; } -- cgit v1.2.3