diff options
| author | Cori Barker <coribarker2@gmail.com> | 2026-03-07 17:46:38 +0000 |
|---|---|---|
| committer | Cori Barker <coribarker2@gmail.com> | 2026-03-07 17:46:38 +0000 |
| commit | 6761fdd434a7e54551fe28398361f9eed5268406 (patch) | |
| tree | 43f752cc165f6c13b1204dd0e82a219c0d2df4c3 /include/semantic_analyzer.hpp | |
| parent | 32ee1c8be581e1967950e125551d672ff65cb04b (diff) | |
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.
Diffstat (limited to 'include/semantic_analyzer.hpp')
| -rw-r--r-- | include/semantic_analyzer.hpp | 8 |
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) { } |
