This commit is contained in:
aozhiwei 2023-03-04 08:48:12 +08:00
parent cac6a97d11
commit 7b6262760b

View File

@ -36,6 +36,12 @@ public:
std::shared_ptr<a8::lisp::Value> Compile(const std::string& script)
{
auto expr = a8::lisp::Expr::Compile(script, shared_from_this());
if (!expr) {
abort();
}
if (!expr->IsType(a8::lisp::ValueType::kList)) {
abort();
}
return expr;
}