This commit is contained in:
Abdelrahman Said 2025-06-08 18:16:17 +01:00
parent 8feb7204a0
commit 9cbb61939d

View File

@ -20,7 +20,8 @@ struct Object {
Object() : type{ObjectType::NIL}, value{std::monostate{}} {};
Object(double number) : type{ObjectType::NUMBER}, value{number} {};
Object(StringObjectType string_type, std::string value)
: type{string_type == StringObjectType::IDENTIFIER ?
: type{
string_type == StringObjectType::IDENTIFIER ?
ObjectType::IDENTIFIER :
ObjectType::STRING_LIT
},