Fix test regression: incomplete errors no longer cause var parsing to fail
diff --git a/StdLib.cpp b/StdLib.cpp
new file mode 100644
index 0000000..0ad7887
--- /dev/null
+++ b/StdLib.cpp
@@ -0,0 +1,23 @@
+#include "StdLib.h"
+#include "PPrint.h"
+
+StdLib::StdLib()
+{
+ _print.addNativeSentence("e.Expr", [](QList<Token> args)
+ {
+ sout(pprint(args));
+ return args;
+ });
+
+ _prout.addNativeSentence("e.Expr", [](QList<Token> args)
+ {
+ sout(pprint(std::move(args)));
+ return QList<Token>();
+ });
+}
+
+void StdLib::load(Evaluator &eval)
+{
+ eval.addFunction(_print);
+ eval.addFunction(_prout);
+}