aboutsummaryrefslogtreecommitdiff
path: root/include/semantic_analyzer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/semantic_analyzer.hpp')
-rw-r--r--include/semantic_analyzer.hpp8
1 files changed, 8 insertions, 0 deletions
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 <string>
+#include <vector>
+
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) { }