A simple scripting language in C++
Ferenc Szontágh
2025-04-18 acb1c33ab258dc14dcc51b405b44cc5923b34324
src/Symbols/SymbolFactory.hpp
@@ -14,6 +14,11 @@
class SymbolFactory {
  public:
    static std::shared_ptr<Symbol> createVariable(const std::string & name, const Symbols::Value & value,
                                                  const std::string & context) {
        return std::make_shared<VariableSymbol>(name, value, context, value.getType());
    }
    static std::shared_ptr<Symbol> createVariable(const std::string & name, const Symbols::Value & value,
                                                  const std::string & context, Variables::Type type) {
        return std::make_shared<VariableSymbol>(name, value, context, type);
    }