1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#pragma once #include "symbol_type.hpp" #include "type.hpp" #include <variant> #include <string> class Symbol { public: explicit Symbol(); private: std::string identifier; SymbolType symbol_type; std::variant<int, bool, std::string> value; };