diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-07-19 17:09:40 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-07-19 18:30:21 +0200 |
| commit | cdbc1695a93910df5729779de31912a3b4b4172b (patch) | |
| tree | 43a4c5a192df7060f8a36c75d339be7ac5722f72 /boot/evaluator.cc | |
| parent | cd2ee0c97348444779a155909b7ec78d89cfd2e0 (diff) | |
| download | elna-cdbc1695a93910df5729779de31912a3b4b4172b.tar.gz | |
Support unary plus operation
Diffstat (limited to 'boot/evaluator.cc')
| -rw-r--r-- | boot/evaluator.cc | 4 |
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; } |
