diff --git a/ml.cpp b/ml.cpp index 599d6d5..827f5b7 100644 --- a/ml.cpp +++ b/ml.cpp @@ -287,6 +287,10 @@ MlValue MlValue::cast_to_string() const { return MlValue::string(std::to_string(stack_data.f)); case STRING: return *this; + case TRUE: + return MlValue::string("#t"); + case NIL: + return MlValue::string("nil"); default: throw MlError(*this, MlEnvironment(), BAD_CAST_STRING); }