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/BaseSymbol.hpp |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/Symbols/BaseSymbol.hpp b/src/Symbols/BaseSymbol.hpp
index 2d3cdb2..604463c 100644
--- a/src/Symbols/BaseSymbol.hpp
+++ b/src/Symbols/BaseSymbol.hpp
@@ -13,7 +13,7 @@
   protected:
     std::string   name_;
     Value         value_;
-    std::string   context_;
+    std::string   context_; // ns
     Symbols::Kind kind_;
 
   public:
@@ -40,6 +40,15 @@
 
     virtual void setValue(const Value & value) { value_ = value; }
 
+    std::string dump() const {
+        std::string r = "\t\t  "+ kindToString(this->kind_) + " name: '" + name_ + "' \n\t\t\tContext: " + context_;
+        r += " \n\t\t\tType: " + Symbols::Variables::TypeToString(value_.getType());
+        r += " \n\t\t\tValue: '" + Symbols::Value::to_string(value_) + "'";
+        return r;
+    }
+
+
+
     // Templated getter
     template <typename T> T getAs() const { return std::get<T>(value_); }
 };

--
Gitblit v1.9.3