From ba9a9199d01b0fdd4bf9a54914f8058bf71f30c5 Mon Sep 17 00:00:00 2001
From: Ferenc Szontágh <szf@fsociety.hu>
Date: Thu, 17 Apr 2025 16:03:01 +0000
Subject: [PATCH] unary and binary operations

---
 src/Symbols/SymbolKind.hpp |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/src/Symbols/SymbolKind.hpp b/src/Symbols/SymbolKind.hpp
index 5f9c8e8..8b4c5bf 100644
--- a/src/Symbols/SymbolKind.hpp
+++ b/src/Symbols/SymbolKind.hpp
@@ -3,6 +3,8 @@
 #define SYMBOL_KIND_HPP
 
 #include <cstdint>
+#include <string>
+#include <unordered_map>
 
 namespace Symbols {
 
@@ -13,6 +15,19 @@
     // Later: Module, Class, etc..
 };
 
-}; // namespace Symbols
+static std::string kindToString(Symbols::Kind kind) {
+    std::unordered_map<Symbols::Kind, std::string> KindToString = {
+        { Symbols::Kind::Variable, "Variable" },
+        { Symbols::Kind::Constant, "Constant" },
+        { Symbols::Kind::Function, "Function" },
+    };
+
+    auto it = KindToString.find(kind);
+    if (it != KindToString.end()) {
+        return it->second;
+    }
+    return "Unknown kind: " + std::to_string(static_cast<int>(kind));
+}
+};  // namespace Symbols
 
 #endif

--
Gitblit v1.9.3