Fix test regression: incomplete errors no longer cause var parsing to fail
diff --git a/Evaluator.cpp b/Evaluator.cpp
index 696e555..b52b843 100644
--- a/Evaluator.cpp
+++ b/Evaluator.cpp
@@ -36,6 +36,10 @@
return QString(_success) + " " + _errorMessage;
}
+Evaluator::Evaluator()
+{
+}
+
void Evaluator::addFunction(Function func)
{
_functions[func.name()] = func;
@@ -126,6 +130,11 @@
if (!res.success)
continue;
+ if (sentence.isExternal())
+ {
+ return RuntimeResult(sentence.externResult(args));
+ }
+
QList<Token> final;
for (const AstNode &node : sentence.result())
{