going to change symbol table structure

This commit is contained in:
ProgramSnail 2023-04-17 11:14:33 +03:00
parent 9c25cb1c6f
commit 782a48c4ff
11 changed files with 535 additions and 354 deletions

View file

@ -9,6 +9,7 @@
#include <memory>
// for clangd
#include "utils.hpp"
namespace interpreter {
class Node;
@ -110,9 +111,9 @@ struct ImportInfo {
struct NamespaceInfo {
enum Modifier { Const, Var };
std::unordered_map<std::string, TypeInfo> types;
std::unordered_map<std::string, TypeclassInfo> typeclasses;
std::unordered_map<std::string, FunctionInfo> functions;
std::unordered_map<std::string, utils::IdType> types;
std::unordered_map<std::string, utils::IdType> typeclasses;
std::unordered_map<std::string, utils::IdType> functions;
std::unordered_map<std::string, NamespaceInfo> namespaces;
std::unordered_map<std::string, std::vector<NamespaceInfo>> variable_namespaces;