aboutsummaryrefslogtreecommitdiff
path: root/boot/evaluator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'boot/evaluator.cc')
-rw-r--r--boot/evaluator.cc4
1 files changed, 4 insertions, 0 deletions
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;
}