diff options
| author | Cori Barker <coribarker2@gmail.com> | 2026-03-10 15:14:30 +0000 |
|---|---|---|
| committer | Cori Barker <coribarker2@gmail.com> | 2026-03-10 15:14:30 +0000 |
| commit | 64c0ed967b0a800ce950c58cb6c20395ccef86ec (patch) | |
| tree | 7453219131ff2e1d8ff0f0b156f549f35ba05e75 /include | |
| parent | ca44ea33919127b66b3ea9f8714ff0c30be61fee (diff) | |
refactored semantic analyzer
Diffstat (limited to 'include')
| -rw-r--r-- | include/semantic_analyzer.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/semantic_analyzer.hpp b/include/semantic_analyzer.hpp index ec1e4a1..8db3d05 100644 --- a/include/semantic_analyzer.hpp +++ b/include/semantic_analyzer.hpp @@ -1,10 +1,16 @@ #pragma once #include "symbol_table.hpp" +#include "ast_node.hpp" class SemanticAnalyzer { public: explicit SemanticAnalyzer(); + SymbolTable analyze(ASTNode* node); + Symbol* analyzeVariable(ASTNode* node); + Symbol* analyzeFunction(ASTNode* node); + ASTNode* advance(); + ASTNode* peek(); private: SymbolTable symbol_table; |
