From 6761fdd434a7e54551fe28398361f9eed5268406 Mon Sep 17 00:00:00 2001 From: Cori Barker Date: Sat, 7 Mar 2026 17:46:38 +0000 Subject: code is a complete mess, simplified some classes as they are way too complex will expand in future but too complicated for now since its the first version. --- include/semantic_analyzer.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/semantic_analyzer.hpp') diff --git a/include/semantic_analyzer.hpp b/include/semantic_analyzer.hpp index 0d56599..630a267 100644 --- a/include/semantic_analyzer.hpp +++ b/include/semantic_analyzer.hpp @@ -1,5 +1,10 @@ #pragma once +#include "ast_node.hpp" + +#include +#include + class SemanticAnalyzer { public: explicit SemanticAnalyzer(); @@ -44,3 +49,6 @@ private: std::string current_function_return_type; bool has_main_function; }; + + +SemanticAnalyzer::SemanticAnalyzer() : symbol_table(), errors(), warnings(), current_function(nullptr), current_function_return_type(), has_main_functions(false) { } -- cgit v1.2.3