From 50a51df0404ee4f057fbc19657672d1c7d3eef68 Mon Sep 17 00:00:00 2001 From: Cori Barker Date: Sat, 7 Mar 2026 18:33:21 +0000 Subject: removed implementations of symbol table related classes, need to fix the parser to use the new AST node classes then i can write the symbol table classes and refactor the lexer and parser to use the symbol table --- include/symbol.hpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'include/symbol.hpp') 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 +#include + class Symbol { public: explicit Symbol(); private: std::string identifier; - Type type; + + SymbolType symbol_type; std::variant value; }; - -Symbol::Symbol(std::string identifier, Type type, std::variant value) : identifier(identifier), type(type), value(value) { } -- cgit v1.2.3