Refactoring datatypes start (unstable)

This commit is contained in:
2025-10-04 11:02:55 +10:00
parent cf85205ff0
commit d9cd88625e
12 changed files with 323 additions and 133 deletions

View File

@@ -0,0 +1,15 @@
#include "evaluate.h"
#include "../../defs/defs.h"
#include "../../executor/executor.h"
#include "../../data/data.h"
Value evaluate(Value val) {
if (val.valtype == ValueType::Processed) {
if (val.processed) {
return execute(*val.processed);
}
} else if (val.valtype == ValueType::Variable) {
return data::getValue(val.varName.key);
}
return val;
}