From 86904d513734134beffc29c6f4012d53a99f25c5 Mon Sep 17 00:00:00 2001
From: Ferenc Szontágh <szf@fsociety.hu>
Date: Sun, 13 Apr 2025 15:38:34 +0000
Subject: [PATCH] some clean up, added function declaration

---
 src/VariableTypes.hpp |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/VariableTypes.hpp b/src/VariableTypes.hpp
index 6a3d5f1..e03c242 100644
--- a/src/VariableTypes.hpp
+++ b/src/VariableTypes.hpp
@@ -10,22 +10,25 @@
 
 using DataContainer = std::variant<int, double, std::string, bool>;
 
-enum class Type : std::uint8_t { VT_INT, VT_DOUBLE, VT_STRING, VT_BOOLEAN, VT_NULL, VT_NOT_DEFINED };
+enum class Type : std::uint8_t { VT_INT, VT_DOUBLE, VT_STRING, VT_BOOLEAN, VT_NULL, VT_FUNCTION, VT_NOT_DEFINED };
 
 const std::unordered_map<std::string, Type> StringToTypeMap = {
     { "int",         Type::VT_INT         },
     { "double",      Type::VT_DOUBLE      },
     { "string",      Type::VT_STRING      },
+    { "bool",        Type::VT_BOOLEAN     },
     { "boolean",     Type::VT_BOOLEAN     },
     { "null",        Type::VT_NULL        },
+    { "function",    Type::VT_FUNCTION    },
     { "not_defined", Type::VT_NOT_DEFINED },
 };
 const std::unordered_map<Type, std::string> StypeToStringMap = {
     { Type::VT_INT,         "int"         },
     { Type::VT_DOUBLE,      "double"      },
     { Type::VT_STRING,      "string"      },
-    { Type::VT_BOOLEAN,     "boolean"     },
+    { Type::VT_BOOLEAN,     "bool"        },
     { Type::VT_NULL,        "null"        },
+    { Type::VT_FUNCTION,    "function"    },
     { Type::VT_NOT_DEFINED, "not_defined" },
 };
 

--
Gitblit v1.9.3