A simple scripting language in C++
Ferenc Szontágh
2025-04-14 d7cd4947b37a168034e9fca2501d98553fdcc137
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// VariableSymbol.hpp
#ifndef VARIABLE_SYMBOL_HPP
#define VARIABLE_SYMBOL_HPP
 
#include "BaseSymbol.hpp"
 
namespace Symbols {
 
class VariableSymbol : public Symbol {
  public:
    VariableSymbol(const std::string & name, const Symbols::Value & value, const std::string & context,
                   Symbols::Kind type) :
        Symbol(name, value, context, type) {}
 
    Symbols::Kind kind() const override { return Symbols::Kind::Variable; }
};
 
}  // namespace Symbols
 
#endif