From 6cc2945c1d1e6ca7bad0542c79de423df5e2db8b Mon Sep 17 00:00:00 2001
From: Ferenc Szontágh <szf@fsociety.hu>
Date: Fri, 18 Apr 2025 18:13:29 +0000
Subject: [PATCH] implements object type

---
 src/Symbols/VariableTypes.hpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/Symbols/VariableTypes.hpp b/src/Symbols/VariableTypes.hpp
index 99c4802..e389b57 100644
--- a/src/Symbols/VariableTypes.hpp
+++ b/src/Symbols/VariableTypes.hpp
@@ -7,7 +7,7 @@
 
 namespace Symbols::Variables {
 
-enum class Type : std::uint8_t { INTEGER, DOUBLE, FLOAT, STRING, BOOLEAN, NULL_TYPE, UNDEFINED_TYPE };
+enum class Type : std::uint8_t { INTEGER, DOUBLE, FLOAT, STRING, BOOLEAN, OBJECT, NULL_TYPE, UNDEFINED_TYPE };
 
 const std::unordered_map<std::string, Type> StringToTypeMap = {
     { "int",       Type::INTEGER        },
@@ -17,6 +17,7 @@
     { "bool",      Type::BOOLEAN        },
     { "boolean",   Type::BOOLEAN        },
     { "null",      Type::NULL_TYPE      },
+    { "object",    Type::OBJECT         },
 
     { "undefined", Type::UNDEFINED_TYPE },
 };
@@ -26,8 +27,9 @@
     { Type::FLOAT,          "float"      },
     { Type::STRING,         "string"     },
     { Type::BOOLEAN,        "bool"       },
+    { Type::OBJECT,         "object"     },
     { Type::NULL_TYPE,      "null"       },
-    { Type::UNDEFINED_TYPE, "undeffined" },
+    { Type::UNDEFINED_TYPE, "undefined"  },
 };
 
 inline static std::string TypeToString(Symbols::Variables::Type type) {

--
Gitblit v1.9.3