diff options
Diffstat (limited to 'include/symbol.hpp')
| -rw-r--r-- | include/symbol.hpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/symbol.hpp b/include/symbol.hpp index c3c7ef4..a388f04 100644 --- a/include/symbol.hpp +++ b/include/symbol.hpp @@ -1,13 +1,18 @@ #pragma once +#include "symbol_type.hpp" +#include "type.hpp" + +#include <variant> +#include <string> + class Symbol { public: explicit Symbol(); private: std::string identifier; - Type type; + + SymbolType symbol_type; std::variant<int, bool, std::string> value; }; - -Symbol::Symbol(std::string identifier, Type type, std::variant<int, bool, std::string> value) : identifier(identifier), type(type), value(value) { } |
