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 78eb4cd..a96d8ab 100644
--- a/boot/evaluator.cc
+++ b/boot/evaluator.cc
@@ -295,6 +295,10 @@ namespace elna::boot
{
return std::nullopt;
}
+ if (const std::shared_ptr<constant_info> constant = symbol->is_constant())
+ {
+ return constant->value;
+ }
const std::shared_ptr<variable_info> variable = symbol->is_variable();
if (variable == nullptr