Finish parsing expressions

This commit is contained in:
2025-06-28 22:51:02 +01:00
parent 6f156c0487
commit 1c1d754750
10 changed files with 270 additions and 23 deletions

View File

@@ -6,6 +6,8 @@ std::ostream &operator<<(std::ostream &os, const ObjectType &type) {
case ObjectType::NIL:
os << "ObjectType::NIL";
break;
case ObjectType::BOOL:
os << "ObjectType::BOOL";
case ObjectType::IDENTIFIER:
os << "ObjectType::IDENTIFIER";
break;
@@ -26,6 +28,9 @@ std::ostream &operator<<(std::ostream &os, const Object &obj) {
switch (obj.type) {
case ObjectType::NIL:
break;
case ObjectType::BOOL:
os << ", " << std::to_string(std::get<bool>(obj.value));
break;
case ObjectType::IDENTIFIER:
case ObjectType::STRING_LIT:
os << ", " << std::get<std::string>(obj.value);